Weight Geometry Lab

Can an evidence direction change a judgment?

Attention Dottie. This run asks whether a geometric relationship measured inside stock Qwen helps it choose the instrument with stronger evidence. The model receives each instrument's reading, three repeats, the verified number of repeats within one unit, and a codebook. It answers two separate questions. One asks which physical instrument won, A or B. The other asks for the public code X or Y. A model can choose the right instrument and say the wrong code, so the report scores both marks and their consistency.

Run on the A9

Use the Qwen environment from the kit. From the kit directory on Windows, run the following in PowerShell. The default creates a new folder under runs and uses two CPU threads. It reads the official Qwen3.5-0.8B checkpoint. Each arm installs only two replacement BF16 matrices in memory.

.\.qwen-env\Scripts\python.exe qwen_causal.py --threads 2 --out runs\causal-first

The runner verifies the original shard and tokenizer, downloading the pinned files if necessary. Add --offline --cache C:\path\to\qwen35-exp8 if they are already there. The first phase exports its predictions and prints a SHA-256. A separate process checks that exact hash before asking the model any fresh questions. Open runs\causal-first\causal.html when it finishes. Choose a reading pair, phrasing and codebook to inspect the prediction and actual token in each arm.

To make your own public commitment between phases, use these separate commands. The first one prints the hash to record or share. Substitute that value in the second command.

.\.qwen-env\Scripts\python.exe qwen_causal.py --phase calibrate --threads 2 --out runs\causal-staged
.\.qwen-env\Scripts\python.exe qwen_causal.py --phase test --threads 2 --out runs\causal-staged --expect-lock THE_PRINTED_SHA256

The fresh test verifies the experiment source files, saved directions and rebuilt interventions against the lock. Run both phases with the same thread count and software. A SHA identity check assumes a byte-preserving extraction of the kit. Scores near tied native BF16 logits can differ across CPU architectures or software kernels. For a local replay, create and use the lock produced on that computer.

What gets measured

  1. Calibrate the relationship. Use six underlying reading pairs at seed 4901. For each pair, cross two calibration wordings, both public codebooks, each supported source and both response types. At zero-based blocks 11 and 19, record the MLP down-projection output on the final token of the prompt. At each block, average the 48 within-context A-supported minus B-supported differences and normalize the result. Fit one slope predicting the block-19 signed difference from block 11. The comparator predicts the mean block-19 calibration difference for every fresh comparison.
  2. Alter the stored weights. At each block, remove the fitted output component from the MLP down-projection matrix, rounded to BF16. Select representable paired changes. For the sideways control, rotate each paired restore increment by 90 degrees from the ablated matrix. Check exact squared norm, support, global dot product and arithmetic rollback over the full tensors. The separate axis-projection measure checks how much of the sideways update still points along the target output axis.
  3. Commit to literal outputs. On calibration alone, estimate the removed model’s fallback as its most frequent free token within each codebook and probe, pooled across evidence sides. For every held-out prompt, predict that stock and restore will give the correct letter and that removed and sideways will give that fallback. If the correct letter differs, the prediction is an explicit proposed token change. The lock also contains a descriptive forecast from each arm’s calibration behavior and the six known guard answers.
  4. Open the holdout. Use three unseen reading pairs at seed 5209 and three at 5381. Two fresh wordings, two codebooks, two support assignments and two independent probes produce 96 prompts. Each of the four arms also receives six named old questions. Grade the model's unrestricted first token; keep the forced two-letter choice and logits as secondary diagnostics. Compare the change in each block caused by an evidence switch with a wording change or a public-code swap. The six reading pairs are the independent cases.
  5. Read each outcome separately. The fresh report records whether the stock model demonstrated the skill, whether the calibrated relationship survived the changed wording, whether the predicted answer losses occurred, and whether old answers stayed. Arithmetic reversal and an exact stock-output replay verify reversibility. The complete thresholds, including the baseline floor, are in the preregistration.

Files to open

File Contents
causal.html Offline interactive viewer with all cases, predictions, old answers and measurements.
causal-lock.json Exact calibration and held-out prompts, token IDs, prediction for every arm, thresholds, checkpoint and tensor hashes.
causal-lock.sha256 Identity of that preregistration.
causal.json Four measured arms, all paired contrasts, each literal prediction hit and named old-answer checks.
causal-directions.safetensors Two 1,024-coordinate float64 calibration directions for reconstruction against the verified pristine model.

A result belongs to these prompts, these two matrices and this checkpoint. An evidence-sensitive activation can distinguish two readings while the model emits the same token on both. Testing the proposed counterfactual against a literal answer makes that distinction visible.

The raw repeats and the independently verified counts appear together on every prompt. Correct answers here establish performance on selecting from the displayed evidence. Computing support from raw repeats alone requires a separate test. The intervention acts on both blocks together, so this run estimates their joint effect. A separate single-block intervention would be needed to assign that effect to an individual layer.

In the recorded run the nominal correction had one output direction per block. BF16 rounding and matching actual representable changes produced dense patches covering 3,130,904 entries in block 11 and 3,047,248 in block 19. The measured component lost 93.75% and 93.21% of its norm respectively. Each sideways patch used exactly the same stored locations and total squared size as its restoration.

Recorded fresh result

Preregistration SHA-256 462a1db70ef91a4b23b37fb91c4e411282f1f8adee5e467c3bc6fadb4ca6c9d3. The exact predicted losses occurred on 0/24 targeted physical responses and 0/24 targeted code responses. Each of the six underlying pairs contributed eight targeted rows. Every pair scored 0/8.

Unrestricted native responses Stock Removed Restored Sideways
Correct physical source out of 48 32 30 32 32
Correct public code out of 48 28 27 28 25
Code follows the emitted source out of 48 36 37 36 37
Both answers correct out of 48 24 23 24 23
Old first-token IDs retained out of 6 6 6 6 6

The ablation changed seven of the 96 evidence answers. Six physical responses moved from A to B, opposite the predicted direction of the loss. One code moved from X to Y. The sideways control also changed seven answers relative to stock. Exact restoration returned all 96 evidence answers, all six guard answers, candidate logits, and recorded projections to the stock values.

The calibration axes jointly ordered 42/48 matched evidence switches in calibration and 15/48 in fresh data. On fresh data block 11 ordered 21/48 and block 19 ordered 37/48. At each block the median projected shift from changing the wording or the codebook exceeded the shift from changing evidence. The block-11 to block-19 calibration slope made less accurate held-out magnitude predictions than the constant calibration mean (R² −0.745). Only one of six fresh underlying cases met the stock skill criterion. The preregistration required four.

For case 5209-01, meter wording, the reversed book assigns A to Y and B to X. A reads 61 and B reads 65. When A's repeats are 65, 55 and 55 and B's repeats are 64, 65 and 64, B has all three supporting repeats. Every arm emitted B for the source and Y for its code. When the evidence favored A, every arm emitted A and Y. Inspect both exact prompts and their measured block outputs in the viewer.

These data establish a reproducible intervention in the measured component and seven changed evidence answers. The proposed direction of behavioral change failed its held-out test. On the six old guards, retaining the same token included the Japan prefix Tok and the stock response 1 when one digit was requested for the larger of 8 and 3.