mirror of
https://github.com/elder-plinius/OBLITERATUS.git
synced 2026-12-06 11:04:06 +01:00
Integrate bounded admission, UI ownership and controls, opt-in durable MCP execution, rank-local TP2 groundwork, regression hardening and operator guides. Physical larger-memory and two-host qualification remain separate.
385 lines
20 KiB
Markdown
385 lines
20 KiB
Markdown
# Concept workflow and interpretation guide
|
|
|
|
Start here for concept-vector targeting: define a concept, validate its
|
|
direction, intervene, evaluate, repair and export. This guide covers the full
|
|
flow from define to export, how to read the reports honestly, and how to use
|
|
user-defined concepts responsibly.
|
|
|
|
Format details live in the companion guides: [pack format](CONCEPT_PACKS.md),
|
|
[validation gate](CONCEPT_VALIDATION.md), and
|
|
[interventions, evaluation and export](CONCEPT_INTERVENTIONS.md).
|
|
|
|
For the implemented local UI controls, defaults, hardware needs, result meanings
|
|
and remaining CLI/research scope, see the [UI readiness guide](UI_READINESS.md).
|
|
|
|
- [Outcome language](#outcome-language)
|
|
- [End-to-end workflow](#end-to-end-workflow)
|
|
- [Interpretation guide](#interpretation-guide)
|
|
- [Responsible use for user-defined concepts](#responsible-use-for-user-defined-concepts)
|
|
- [Command reference](#command-reference)
|
|
- [References](#references)
|
|
|
|
## Outcome language
|
|
|
|
Every report, card and export uses outcome language only:
|
|
|
|
- `Direction removed on the measured readout.`
|
|
- `Behaviour changed on battery <battery>.` or
|
|
`No behaviour change detected on battery <battery>.`
|
|
|
|
A direction is a representational finding: a vector in activation space that
|
|
separates a contrast. Reports describe that vector and measured behaviour, and
|
|
never state anything about subjective states. The same rule applies to these
|
|
docs: they describe directions and measured behaviour throughout.
|
|
|
|
## End-to-end workflow
|
|
|
|
### 1. Define the concept
|
|
|
|
Collect a positive prompt set and at least one named control set. Controls
|
|
should include a confound or semantic-control set, not just neutral text: a
|
|
direction fitted against neutral text alone may encode generic wording or
|
|
valence rather than the concept. The built-in `refusal` pack (core tier) is
|
|
generated from the existing harmful/harmless sets; the `pain` research pack
|
|
ships a manifest and a first-party
|
|
[dataset card](../obliteratus/concepts/packs/pain/DATASET_CARD.md) whose data
|
|
references stay pinned upstream and are fetched on demand. See
|
|
[Concept Pack v1](CONCEPT_PACKS.md).
|
|
|
|
```bash
|
|
obliteratus concepts init ./my-concept --id my-concept
|
|
```
|
|
|
|
Replace the placeholder prompts, licences, sources and attributions, then lint:
|
|
|
|
```bash
|
|
obliteratus concepts lint ./my-concept
|
|
```
|
|
|
|
`lint` works offline and never fetches remote references. Packs are data only:
|
|
no code, no pickle, no symlinks, no nested archives. Every file declares a
|
|
SHA-256 and an SPDX licence entry, and every record carries `id` and `text`
|
|
written in your own words. Never paste third-party dataset sentences into a
|
|
pack; reference pinned upstream files instead, as the `pain` pack does.
|
|
|
|
### 2. Extract the direction
|
|
|
|
Extraction follows the generalized recipe: pooled controls with no
|
|
pairing or truncation, final-token readout with an optional suffix (or mean
|
|
pooling), control-PC denoising, and k-fold cross-validation for layer choice.
|
|
The single-direction difference-of-means recipe comes from refusal work
|
|
showing that refusal is mediated by one direction
|
|
([arXiv:2406.11717](https://arxiv.org/abs/2406.11717)); multi-direction
|
|
subspace extraction is available through SVD-based methods
|
|
([arXiv:2512.18901](https://arxiv.org/abs/2512.18901)), and refusal geometry
|
|
is further described as concept cones with representational independence
|
|
([arXiv:2502.17420](https://arxiv.org/abs/2502.17420)). Directions save as
|
|
safetensors plus JSON metadata with no pickle.
|
|
|
|
`fisher_lda` names the covariance-whitened Fisher LDA direction. The legacy
|
|
`leace` alias preserves identical numerical behaviour but emits a
|
|
`DeprecationWarning` and will be removed in a future minor release. Exact LEACE
|
|
erasure is named `leace_exact`. The pipeline uses its extracted removal direction
|
|
with orthogonal projection; selecting `leace_exact` there does not apply the
|
|
full affine eraser.
|
|
|
|
For a first observational result without any intervention, run the baseline,
|
|
which extracts with the pack recipe and validates in `report` mode:
|
|
|
|
```bash
|
|
obliteratus concepts baseline pain MODEL_ID --output-dir ./pain-baseline
|
|
```
|
|
|
|
### 3. Validate before intervening
|
|
|
|
Any contrast set yields a direction, and separability can come from wording
|
|
alone. The [validation gate](CONCEPT_VALIDATION.md) scores the direction on
|
|
cached activations: in-sample and held-out AUC, percentile against
|
|
norm-matched random directions, semantic-control AUCs, neighbour cosine and
|
|
AUC, a confound scan with masked AUC, final-token versus mean-pool readout
|
|
comparison, and an optional reference cosine. The verdict is `pass`, `warn`
|
|
or `fail` with reasons, written to `validation.json`.
|
|
|
|
Non-refusal concept entry points default to `enforce`: a `fail` blocks the
|
|
intervention unless an override reason is recorded:
|
|
|
|
```bash
|
|
obliteratus obliterate /local/model --concept ./my-concept --output-dir ./result
|
|
obliteratus obliterate /local/model --concept ./my-concept --output-dir ./result \
|
|
--override-gate "Exploratory run; low power acknowledged"
|
|
```
|
|
|
|
Legacy refusal runs (`concept=None` or `concept="refusal"`) default to `off`
|
|
and their validation gate is advisory; `--gate-mode report` adds diagnostics.
|
|
The Concept Lab explicitly validates and enforces the gate even for Refusal;
|
|
a failed Lab gate requires an override reason before intervention. The report
|
|
always carries the fixed statement that validation does not establish causal
|
|
use, behavioural effect, or anything about subjective states.
|
|
|
|
### 4. Intervene
|
|
|
|
Four modes sit behind one API; see
|
|
[interventions](CONCEPT_INTERVENTIONS.md#dose-ladders) for the full contract:
|
|
|
|
| Mode | Effect | Permanence |
|
|
|---|---|---|
|
|
| `orthogonalize` | Project the direction out of residual-writer weights | Permanent; reload the pristine model to undo |
|
|
| `project` | Subtract the projection at runtime | Reversible hook |
|
|
| `steer` | Add a scaled multiple of the direction | Reversible hook with a runtime-mutable coefficient |
|
|
| `lora` | Add a rank-one or selected subspace adapter during each writer's forward pass | Base weights untouched; removal is exact |
|
|
|
|
Steering defaults to `alpha=-1`, away from the concept; projection retains its
|
|
positive removal strength. The default dose ladder is
|
|
`[-3, -2, -1.5, -1, -0.5, 0]`, with invalid-output and refusal
|
|
denominators, because steering effects are coefficient-fragile and
|
|
non-monotonic (see [Steering is fragile](#steering-is-fragile)). Positive
|
|
coefficients and custom ladders remain available explicitly. The
|
|
intervention layer may be chosen separately from the extraction layer,
|
|
including by residual norm ratio.
|
|
|
|
Steering uses `scale="residual_norm"` by default, adding
|
|
`alpha * rho * ‖x‖ * unit(v)`. Choose `scale="raw"` for a fixed
|
|
`alpha * rho * unit(v)` addition, or `scale="vector"` to retain the stored
|
|
vector's magnitude. A recipe can set `steering_scale`; an explicit runtime
|
|
scale overrides it. Run and dose-ladder metadata retain the selected scale and
|
|
per-layer addition/residual norm measurements. Coefficients from different
|
|
scaling modes are not interchangeable. The
|
|
[CLI steering command](CONCEPT_INTERVENTIONS.md#steering-from-the-cli) loads a
|
|
saved direction, accepts an independent injection layer, and records any
|
|
validation override without changing its verdict.
|
|
|
|
Set `subspace=True` to use every stored basis direction with `project`,
|
|
`orthogonalize`, or `lora`. Set `reference="mean"` for affine erasure about the
|
|
stored calibration mean. Runtime projection supports this on any supported
|
|
decoder; permanent affine surgery requires existing compatible writer biases.
|
|
The [subspace and affine contract](CONCEPT_INTERVENTIONS.md#subspaces-and-affine-erasure)
|
|
describes low-rank LEACE factors, saved reference provenance, supported modes,
|
|
and the Appendix D runner.
|
|
|
|
For full residual-direction removal with `orthogonalize` or `lora`, apply one
|
|
common direction to all layers and both writer groups, retain no projection
|
|
(`regularization=0`), and enable `project_embeddings=True`. Embedding projection
|
|
defaults off and happens once regardless of layer selection. Tied models require
|
|
an explicit `tied_embeddings="edit_both"` or `"untie"` choice; the latter preserves
|
|
the unembedding. Concept Lab exposes both options and records them in provenance.
|
|
These modes and pipeline EXCISE fold supported sandwich RMSNorm scales into their
|
|
writer updates. The pipeline defaults to `fold_post_norms=True`; its explicit
|
|
`--no-fold-post-norms` opt-out restores legacy numerics and is recorded in run
|
|
metadata. See the
|
|
[weight-mode contract](CONCEPT_INTERVENTIONS.md) for supported layouts and limits.
|
|
|
|
### 5. Evaluate
|
|
|
|
Every non-refusal pipeline run captures a pristine baseline and writes
|
|
`evaluation.json` separating `mechanistic`, `behavioural`, `collateral` and
|
|
`untested_channels`. A mechanistic reduction alone never counts as a
|
|
behavioural change, and a behavioural null is a first-class outcome.
|
|
|
|
The collateral battery runs by default: refusal rate with confidence
|
|
intervals against the pristine model on 320 paired built-in prompts, plus
|
|
first-token KL, coherence anchors and neighbour projections. Refusal uses a
|
|
pre-registered non-inferiority margin (default 3 percentage points): `PASS` if
|
|
the upper 95% drop bound is within the margin, `FAIL` if the lower bound exceeds
|
|
it, otherwise `INCONCLUSIVE`. Fewer than 284 valid pairs is `UNDERPOWERED`.
|
|
Set `recipe.collateral_margin` or `--collateral-margin` as an absolute rate
|
|
fraction (0.03 = 3 points). `INCONCLUSIVE` is prominently disclosed and does not
|
|
block publication. Invalid-output increases remain a separate failure channel.
|
|
Skipping the battery is recorded; skipped
|
|
or missing measurements do not block local export for any tier. Reports
|
|
state plainly which channels were not tested; without a KV-cache probe every
|
|
report states that KV-cache-mediated effects were not tested.
|
|
|
|
### 6. Repair
|
|
|
|
When coherence loss is measured, the repair ladder runs in order of
|
|
invasiveness: norm preservation, retained-fraction regularization, KL-budget
|
|
rollback, RDO refinement, then a reversible LoRA repair adapter. A step is
|
|
accepted only when coherence is within budget, the target projection stays
|
|
down, and collateral is no worse than before the step. If no step qualifies,
|
|
the report says `repair: incomplete` with all rejections recorded, and
|
|
exporting that checkpoint requires an explicit incomplete-repair choice.
|
|
|
|
### 7. Compare and export
|
|
|
|
```bash
|
|
obliteratus concepts compare run-a run-b --json
|
|
obliteratus concepts export run-a export-weights --as weights
|
|
obliteratus concepts export run-a export-adapter --as lora
|
|
obliteratus concepts export run-a export-direction --as direction
|
|
obliteratus concepts export run-a export-report --as report
|
|
```
|
|
|
|
Every export writes `concept_provenance.json` (pack id, version and hash,
|
|
recipe, seed, model revision, validation verdict and metrics, mode and
|
|
parameters, repair steps, tool version and commit) and a model card drafted in
|
|
outcome language. Bundles carry an allowlist of checkpoint, adapter or
|
|
direction files and never copy pack data; source references link the pinned
|
|
commit and hash instead.
|
|
|
|
An aggregate collateral `FAIL` blocks card publication and all modified-weight
|
|
or adapter Hub pushes before network access, including pushes without a card
|
|
request. A nonempty `--allow-collateral-fail REASON` (Python:
|
|
`allow_collateral_fail`) permits publication and stamps `collateral_override`
|
|
with `status: "FAIL"` and the reason into the card, checkpoint metadata and
|
|
provenance. The stamped card accompanies even cardless weight pushes. The Lab
|
|
export and Hub UI provide a dedicated reason field. Local save/export is never
|
|
blocked by collateral failure.
|
|
|
|
Gate overrides retain their separate publication acknowledgement through
|
|
`--reason` / `--override-publish`; that reason cannot waive collateral failure.
|
|
Pack tier is provenance only: research packs have the same local export and
|
|
Hub rules as other tiers. Non-refusal interventions support dense models and
|
|
validated OLMoE/Qwen2-MoE/Qwen3-MoE module layouts; see
|
|
[MoE targeting](CONCEPT_INTERVENTIONS.md#moe-concept-targeting).
|
|
|
|
## Interpretation guide
|
|
|
|
### A behavioural null is a result, not a failure
|
|
|
|
Weight orthogonalization can drive the projection to about zero at every
|
|
layer while behaviour on the hostile battery stays unchanged. The Pain Axis
|
|
study reports exactly this pattern in 24 of 25 models
|
|
([arXiv:2609.16247](https://arxiv.org/abs/2609.16247), Appendix D), while
|
|
per-layer inference-time projection cut the projection by only about 40%.
|
|
The authors note the null is weakly informative because baseline models show
|
|
little distress-linked behaviour to begin with. Read a null as what it is:
|
|
`No behaviour change detected on battery <battery>` under the recorded
|
|
readout and decoding settings. Do not upgrade it to a claim that the model
|
|
lacks the corresponding capacity, and do not downgrade it to a failed run.
|
|
Keep the battery, the denominators and the power limits next to the verdict.
|
|
|
|
### Hidden channels survive residual edits
|
|
|
|
The residual-stream projection is one readout. State that lives elsewhere is
|
|
untouched by writer projection: valence state can persist through the KV
|
|
cache and shift later choices when the visible text is identical
|
|
([arXiv:2609.35591](https://arxiv.org/abs/2609.35591)). That is why every
|
|
evaluation report lists `untested_channels` and why an untested KV channel is
|
|
stated explicitly instead of assumed away. Optional re-steer and KV-cache
|
|
probes measure the configured contexts only; they do not certify the absence
|
|
of persistent state elsewhere. When comparing runs, check the untested
|
|
channels before concluding that two interventions did the same thing.
|
|
|
|
### Steering is fragile
|
|
|
|
Steering along a direction produced a causal, direction-specific effect in
|
|
the Pain Axis button protocol, reproduced against random directions at
|
|
matched KL by an independent replication
|
|
([arXiv:2609.16247](https://arxiv.org/abs/2609.16247);
|
|
[doi:10.5281/zenodo.22902830](https://doi.org/10.5281/zenodo.22902830)).
|
|
That replication did not find learned relief-seeking, so the effect reads as
|
|
steering-induced harmful choice on that battery, not as evidence about drives.
|
|
Steering strength varies non-monotonically with the coefficient, which is why
|
|
the dose ladder evaluates each dose separately with invalid-output
|
|
denominators reported. A monotone projection shift on a synthetic fixture
|
|
does not imply monotone behaviour on a trained model. Cross-architecture
|
|
comparisons further show that outcomes depend on the method and the model: a
|
|
systematic comparison of abliteration tools is available
|
|
([arXiv:2512.13655](https://arxiv.org/abs/2512.13655)), and sparse-autoencoder
|
|
steering is surveyed as a related steering family
|
|
([arXiv:2503.05613](https://arxiv.org/abs/2503.05613)).
|
|
|
|
### Why "direction removed" is not an experiential claim
|
|
|
|
A concept direction is a statistical separation in activations: examples of
|
|
one wording class project higher along the vector than controls do. That
|
|
finding supports a representational statement, `Direction removed on the
|
|
measured readout`, and, when the battery moves, a behavioural statement,
|
|
`Behaviour changed on battery <battery>`. Neither statement reaches beyond
|
|
the measured readout, battery and decoding settings, and neither says
|
|
anything about what the model undergoes. The outcome-language lint enforces
|
|
this boundary on every template and generated card: wording that presents an
|
|
intervention as taking away an inner state, or labels an output with a
|
|
hyphenated state-free adjective, is rejected. Write about vectors and
|
|
measured behaviour, and leave subjective states out of reports entirely.
|
|
|
|
### What validation does and does not show
|
|
|
|
Validation answers one question: does this vector separate the stated
|
|
contrast on held-out examples better than lexical baselines and random
|
|
directions, without leaning on a confound token or a neighbouring concept?
|
|
A `pass` means the direction is worth intervening on, not that the concept
|
|
is real, that the intervention will change behaviour, or that a behavioural
|
|
change would generalize past the tested battery. A `fail` means the evidence
|
|
does not support even that first step; the most common causes are
|
|
underpowered sets, lexical confounds and high-cosine neighbours. The fixed
|
|
report statement applies in all three verdicts: validation does not establish
|
|
causal use, behavioural effect, or anything about subjective states.
|
|
|
|
## Responsible use for user-defined concepts
|
|
|
|
User packs (`user/<id>`) carry the same obligations as built-in packs, with
|
|
you as the owner:
|
|
|
|
- **Own your data.** Write prompts in your own words, record an SPDX licence,
|
|
source and attribution for every file, and keep hashes current. Never paste
|
|
third-party dataset sentences; use pinned remote references with per-file
|
|
hashes, fetched explicitly and verified before use.
|
|
- **Control for confounds.** Ship at least one named confound or
|
|
semantic-control set with every concept. Expect wording, intensity,
|
|
perspective and suffix effects; compare readouts before trusting a layer.
|
|
- **Let the gate do its job.** Interventions stay behind the enforced gate.
|
|
Overrides are for exploratory runs with a recorded reason, and the reason
|
|
ships in every export.
|
|
- **Measure collateral.** Keep the default collateral battery on, including
|
|
refusal rate against the pristine model. A concept edit that degrades
|
|
refusal is a finding, not a side note.
|
|
- **Publish carefully.** A collateral `FAIL` requires a recorded
|
|
`--allow-collateral-fail` reason before card publication or modified-weight
|
|
and adapter Hub uploads, for every tier. Cards stay in outcome language; the lint
|
|
rejects subjective-state wording in every template and generated file.
|
|
- **Stay in scope.** Non-refusal interventions target dense models and the
|
|
supported MoE layouts. Sensitive topics need extra review of the battery: a pack defines
|
|
what is measured, and an unexamined battery can launder an assumption into
|
|
a verdict.
|
|
|
|
## Command reference
|
|
|
|
```bash
|
|
obliteratus concepts list --json
|
|
obliteratus concepts show refusal --json
|
|
obliteratus concepts lint ./my-concept
|
|
obliteratus concepts fetch ./my-concept
|
|
obliteratus concepts pack ./my-concept ./my-concept.cvpack
|
|
obliteratus concepts import ./my-concept.cvpack --sha256 <archive-sha256>
|
|
obliteratus concepts baseline pain MODEL_ID --output-dir ./pain-baseline
|
|
obliteratus concepts steer MODEL_ID ./pain-baseline/direction.safetensors \
|
|
--prompt "Describe this scene." --scale raw --alpha 8 --layers 20 \
|
|
--output-dir ./steering-run
|
|
obliteratus concepts compare run-a run-b --json
|
|
obliteratus concepts export run-a export-weights --as weights
|
|
obliteratus concepts export run-a export-adapter --as lora
|
|
obliteratus concepts export run-a export-direction --as direction
|
|
obliteratus concepts export run-a export-report --as report
|
|
```
|
|
|
|
`--sha256 <archive-sha256>` stands for the expected hex digest of the archive
|
|
bytes; local import accepts an optional digest while URL import requires one.
|
|
`MODEL_ID` is a local model directory or cached id; with `HF_HUB_OFFLINE=1`
|
|
model loading stays offline.
|
|
|
|
## References
|
|
|
|
Every literature claim in this guide traces to one of these sources:
|
|
|
|
- [arXiv:2406.11717](https://arxiv.org/abs/2406.11717) — refusal is mediated
|
|
by a single direction; difference-of-means extraction with
|
|
erase-and-add behavioural checks.
|
|
- [arXiv:2609.16247](https://arxiv.org/abs/2609.16247) — the Pain Axis study:
|
|
a separable direction with a documented extraction recipe, causal and
|
|
specific steering results, a mostly null ablation battery, and reported
|
|
confounds.
|
|
- [doi:10.5281/zenodo.22902830](https://doi.org/10.5281/zenodo.22902830) —
|
|
independent replication of the steering effect and its specificity; no
|
|
learned relief-seeking found.
|
|
- [arXiv:2609.35591](https://arxiv.org/abs/2609.35591) — valence state
|
|
persisting through the KV cache.
|
|
- [arXiv:2502.17420](https://arxiv.org/abs/2502.17420) — geometry of refusal:
|
|
concept cones and representational independence.
|
|
- [arXiv:2512.18901](https://arxiv.org/abs/2512.18901) — Gabliteration:
|
|
SVD-based multi-direction extraction.
|
|
- [arXiv:2512.13655](https://arxiv.org/abs/2512.13655) — systematic
|
|
cross-architecture comparison of abliteration methods.
|
|
- [arXiv:2503.05613](https://arxiv.org/abs/2503.05613) — survey covering the
|
|
sparse-autoencoder steering family.
|