L07 Positive Q3 · Silent weight changes
Realistic edits to the embedding table, including one hidden row
QuestionCan a small, realistic edit to a model hide from output checks if the test prompts never touch it?
Run by us; no unaffiliated reproduction
The test in one picture
Question, method, result and meaning, in plain words. The sourced detail is further down the page.
The same picture, in words
- Question
- Can a small, realistic edit to a model hide from output checks if the test prompts never touch it?
- Why it matters
- A realistic model edit may touch only rare words. If your tests never use those words, output checks pass while the model has changed.
- How the test works
- Edit the model's word table in realistic ways: INT8 round-trip, 1% pruning, a fine-tune-style patch, single rows.
- For single rows: 8 rows the prompts never read, 8 they do read, 5 prompts each (40 trials).
- Compare three detectors with the unedited model: text replay, top-5 logits, computation digest.
- Report counts with 95% intervals. A same-shape model swap was judged infeasible and not run.
- What we found
- 0 of 40 caught by output checks. For one edited row that no test prompt read, text replay and the top-5 check each caught 0 of 40; the computation digest caught 40 of 40. When prompts did read the row, top-5 caught 21 of 40 and text replay 11 of 40.
- What it means
- Output checks are only as good as your test prompts. Small samples (20 or 40), one model, embedding table only; a smarter attacker and the digest's false-positive rate were not tested.
- Everyday comparison
- Like proofreading a book by reading only chapters 1 to 3: an edit on page 200 slips through.
- Where the facts come from
Share this picture: SVG · PNG (1200 x 630)
01Why it matters
A realistic model edit may touch only rare words. If your tests never use those words, output checks pass while the model has changed.
02Method, step by step
- Make realistic edits to the embedding table of one pruned BitNet-2B checkpoint: INT8 round-trip, 1% pruning, an approximated fine-tune patch, and single-row patches.
- For single rows, pick 8 rows the prompts never read and 8 rows they do read, with 5 prompts each (40 trials per case).
- Compare three detectors against the unedited baseline: text replay, top-5 logit set, witness digest.
- Report counts with Wilson 95% intervals. A same-shape checkpoint substitution was attempted in design and found infeasible.
Method as recorded
Substitution classes on the bf16 embedding table (vocab 50,256, hidden 2,560) of one pruned BitNet-2B checkpoint: INT8 round-trip (a), 1% magnitude pruning (d), an approximated fine-tune patch (b), and single-row patches of +1 to the row's int8-quantized code (all 2,560 elements of the row move) on rows that the prompts do not read (b') or do read (b''). Global classes used a 20-prompt set; single-row classes used 8 rows x 5 prompts = 40 trials (a 5-prompt subset, rows sampled with a seed-42 PRNG), greedy decode, 64 new tokens. Detectors: A text replay, B top-5 logit-index set, C witness digest; 'detected' means the check differs from baseline. Wilson 95% CIs. Run by us; the harness is not yet published in a public repo.
03Results, exact and sourced
Text replay: 0 / 40; Top-5 check: 0 / 40; Witness digest: 40 / 40
8 random rows by 5 prompts = 40 trials. Figure drawn from the sourced results below.
-
R1For a single edited embedding row that none of the test prompts read (8 random rows x 5 prompts = 40 trials), text replay and the top-5 check each detected 0 of 40; the witness digest detected 40 of 40.
When the row is not exercised by the test prompts, A and B miss it completely (0/40 each in (b')).
Verbatim source cis2-spec / 2026-09-17-EMBED-SUBSTITUTION-HEADTOHEAD.md -
R2Control with 8 rows the prompts do read (40 trials): the top-5 check detected 21 of 40 (52.5%, Wilson 37.5-67.1%); text replay detected 11 of 40 (27.5%). Even when rows are read, detection is only partial.
| B (top-5 logit-index check) | 21/40 | 52.5% | 37.5–67.1% | 0/40 (0.0%) |
Verbatim source cis2-spec / 2026-09-17-EMBED-SUBSTITUTION-HEADTOHEAD.md -
R31% magnitude pruning of the whole table (20 prompts): text replay detected 18 of 20 (90.0%, Wilson 69.9-97.2%); the top-5 check and witness digest detected 20 of 20.
| A (text replay) | 18/20 | 90.0% | 69.9–97.2% |
Verbatim source cis2-spec / 2026-09-17-EMBED-SUBSTITUTION-HEADTOHEAD.md -
R4In the classes that were run, the witness digest detected every trial. Here 'detected' means the digest differs from baseline; the document reports no false-positive test for it.
The witness digest (C) is the only detector of the three that caught every trial in every class tested here
Verbatim source cis2-spec / 2026-09-17-EMBED-SUBSTITUTION-HEADTOHEAD.md -
R5UNABLE: substituting a different same-shape checkpoint was found infeasible and not run (no independently trained checkpoint with matching shape was available).
### (c) Different same-shape checkpoint — found infeasible
Verbatim source cis2-spec / 2026-09-17-EMBED-SUBSTITUTION-HEADTOHEAD.md
04What it does NOT show
Smarter attackers, rare-token patches, false positives of the digest, or any other part of the model than the embedding table. Samples are small (20 or 40).
05Scope and caveats
- Small samples (n=20 or n=40), wide intervals; one checkpoint, one prompt set, embedding table only.
- The single-row classes used only a 5-prompt subset of the 20 prompts, and 8 rows; the 40 trials are 8 rows x 5 prompts, not 40 independent rows.
- The edit is +1 step of the int8-quantized code on all 2,560 elements of the row, not a bf16 last-bit edit.
- The INT8 class changed 96.91% of values (INT8 round-trip: all three detectors 20/20); the document says this does not show A/B would catch a smaller quantization.
- The fine-tune class is a labelled approximation (token-bigram nudge), not a real gradient step; the document calls its all-caught result weaker evidence than it looks.
- Row choice was a fixed-seed PRNG; the control (b'') drew rows from the prompts' own tokens, a looser selection than (b'). An attacker who knows the test prompts, or a patch confined to rare tokens, was not tested.
- The harness is not published, so the experiment cannot be rerun from the repo.
- Run by us; no unaffiliated reproduction.
06Outcome
The check worked as expected, within the stated scope.
07What we learned
Output checks are only as good as the prompts you test with. One edited row that no prompt read was missed by text replay and by the top-5 check in 40 of 40 trials, while a check over the computation caught all 40. Even when prompts did read the edited row, those output checks caught only 11 and 21 of 40.
08Check it yourself
- cis2-spec / 2026-09-17-EMBED-SUBSTITUTION-HEADTOHEAD.mdhttps://github.com/Aefinity-AI/cis2-spec/blob/main/docs/results/2026-09-17-EMBED-SUBSTITUTION-HEADTOHEAD.md
Read the result page. The harness is not yet in a public repo, so the experiment cannot be rerun from public files.