|
Download README.md from eigentactics/tacheometal: direct link, hf CLI and curl.
- Browser
- Download file 14 kB
-
https://huggingface.co/datasets/eigentactics/tacheometal/resolve/main/README.md
- Command line
-
hf download hf://datasets/eigentactics/tacheometal/README.md
-
curl -L -o README.md https://huggingface.co/datasets/eigentactics/tacheometal/resolve/main/README.md
14 kB
| license: apache-2.0 | |
| pretty_name: Tacheometal | |
| tags: | |
| - interpretability | |
| - gemma-4 | |
| - neurons | |
| - steering | |
| # Tacheometal: Theodolite-style neuron censuses of Gemma 4 12B | |
| Tacheometal runs the neuron census method of [Theodolite](https://github.com/whp199/theodolite) (whp199's neuron | |
| atlas of Gemma 4 31B) on a smaller model of the same family, `google/gemma-4-12B-it-qat-q4_0-gguf`. It runs on three | |
| home machines: an RTX 3090 (CUDA), an RX 7900 XTX (ROCm) and an M4 Max (Metal). This is | |
| [eigentactics](https://eigentactics.com)' own project, not part of Theodolite's census, and Theodolite's maintainer has | |
| not reviewed it. The 12B dose design (`tach_rel`) is ours. It is not one of Theodolite's calibrated designs. | |
| The answers are written by Gemma 4 12B (Apache-2.0), with Theodolite's code (Apache-2.0) plus our patches. Everything | |
| here is preliminary: four whole runs (layers 24 twice, 32 and 37), each read once, on one card each. | |
| ## The method, briefly | |
| For each neuron in a layer, the model answers six short questions (`who`, `orange`, `free`, `bicycle`, `walk`, `chair`) | |
| while the residual stream is pushed along that neuron's write direction. There are four doses, and each answer runs to 48 | |
| word-pieces. The same is done for 2,048 random directions (the controls). Each neuron is then ranked by how far its pushed | |
| answers move towards particular words compared with the controls' answers. Theodolite's reader (`neighbour_read.py`, at | |
| census-kit-4, unchanged) judges whether a layer's neurons are told apart from random directions as a whole: | |
| - **N1:** the whole run; | |
| - **N2:** the lower dose alone; | |
| - **N3:** the neurons the controls cover. | |
| Each must pass gates G1 to G4, at the bars Theodolite set at their 31B's layer 45. | |
| ## Headline | |
| | | design | doses (× the stream's median length) | neurons | N1 G1 (bar 0.60) | verdict | | |
| |---|---|---|---|---|---| | |
| | **layer 37, whole** | `tach_rel` | ±0.7, ±1.4 | 15,360 + 2,048 controls | **0.730** | **pass N1–N3** | | |
| | layer 32, whole | `break_rel` (d = 1.0) | ±1, ±2 | 15,360 + 2,048 | 0.660 | fail: N1 and N3 pass; N2 fails G4 by 0.002 | | |
| | layer 24, whole | `tach_rel_06` | ±0.6, ±1.2 | 15,360 + 2,048 | 0.552 | fail | | |
| | layer 24, whole (v6) | `tach_soft_06` | ±0.42, ±0.6 | 15,360 + 2,048 | 0.648 | fail: N1 passes; G3 fails in N2 and N3 | | |
| | **trial 24 (v7)** | `tach_things_06` (twelve questions) | ±0.42, ±0.6 | 1,022 + 1,024 | **0.657** | **pass N1 and N3** (read by `things_read.py`) | | |
| | trial 24 (v5) | `tach_soft_06` | ±0.42, ±0.6 | 1,022 + 1,024 | 0.674 | fail: N1 passes; G3 fails in N2 and N3 | | |
| | trial 37 (v2) | `tach_rel` | ±0.7, ±1.4 | 1,022 + 1,024 | 0.741 | pass | | |
| | trial 43 (v2) | `tach_rel` | ±0.7, ±1.4 | 1,022 + 1,024 | 0.553 | fail | | |
| | trial 37 (v1) | `break_rel` | ±1, ±2 | 1,022 + 1,024 | 0.628 | pass, narrowly | | |
| | trial 43 (v1) | `break_rel` | ±1, ±2 | 1,022 + 1,024 | 0.589 | fail | | |
| For comparison, Theodolite's 31B layer 51 (`break_rel`, our run) scored N1 G1 0.7625. | |
| Layer 37 in full: | |
| - 3,175 of 15,360 neurons are significant at q < 0.05; | |
| - 1,248 rank above every control, where about 7.5 would by chance; | |
| - the gentle dose (±0.7) costs neurons about 10% of their distinct 4-grams, and controls about 4.5%; | |
| - ±1.4 breaks text for both (about 64% lost). | |
| The top neurons complete concrete phrases: user-generated content, carbon monoxide, Phillips screwdriver, | |
| Atlantic/Pacific Ocean, Christmas Eve, tunnel vision. | |
| What we learned about doses: Theodolite's `break_rel` doses are past the 12B's text-breaking edge. On the 12B, ±1 of the | |
| stream already loses 33–48% of distinct 4-grams, against about 1% on the 31B's layer 51. Where that edge sits also varies | |
| from layer to layer (`ladders/`). Moving the lower dose to the edge helped strongly at layer 37 and hurt at layer 43. | |
| So "put the lower dose at the edge" is not a rule that transfers between layers, and a census of the whole 12B would need | |
| doses set layer by layer. | |
| Two of our preregistered predictions failed: | |
| - v1 predicted layer 43 would pass, from the 31B's write-ceiling band; | |
| - v2 again predicted layer 43 would pass, and held it the likelier of the two. | |
| ## Lower layers (v3 to v7, 21–23 November 2026, RTX 3090) | |
| Each layer's dose comes from v2's rule applied to its own fine ladder: d is the largest rung at which text keeps at | |
| least 90% of its distinct 4-grams. That gives d = 0.6 at layer 24 and d = 1.0 at layer 32. The edge varies by layer | |
| and not steadily: under 0.4 at layer 16, 0.6 at 24, at least 1.0 at 32, 0.7 at 37 and 0.7 at 43. | |
| - **Layer 24, ±0.6 and ±1.2 (v3): fails.** N1 G1 0.552. Its ±0.6 answers alone reach 0.595 and pass G2, but ±1.2 | |
| costs neurons and controls about 41% of their distinct 4-grams. No neuron reaches q < 0.05. 449 neurons have | |
| p < 0.05 on both question halves, against 38.4 by chance. | |
| - **Layer 24, both doses at or under the edge (v5 trial, `tach_soft_06`: ±0.42 and ±0.6, placed as Theodolite's | |
| `soft_ceil` places its pair): N1 passes every gate, with G1 0.674.** It fails replication across question halves | |
| (G3): in N2, the ±0.42 answers alone, 0.548 and 0.558; in N3, 0.557 and 0.590 (bar 0.57). 63 neurons rank above | |
| every control, against 1.0 by chance. | |
| - **Layer 24 whole at `tach_soft_06` (v6): fails on G3 alone.** N1 passes every gate (G1 0.648; G3 0.574 both | |
| ways). N3 (95% covered) reaches G1 0.640 but G3 0.5665 and 0.5660; the ±0.42 answers alone, 0.549 and 0.564. No | |
| neuron reaches q < 0.05; 909 have p < 0.05 on both halves (38.4 by chance). | |
| - **Layer 24 on Theodolite's `match_things` questions (v7 trial, `tach_things_06`): passes.** v5's neurons, | |
| controls and doses, with only the questions changed: `match_things`'s twelve, in halves of six, as suggested by | |
| Theodolite's maintainer. Read by Theodolite's own reader for them (`things_read.py`, `census_edge_trial/prereg` at | |
| whp199/theodolite c38072f, hash-checked, unchanged but for the tokenizer path; `prereg-v7/read_t.py`), which gates | |
| N1 and N3. N1: G1 0.657, G3 0.624 and 0.620. N3 (887 covered): G1 0.643, G3 0.607 and 0.604. The ±0.42 answers | |
| alone carry 0.619 and 0.644. A neuron's mass correlates 0.65 (Spearman) with its mass in v5. | |
| - **Layer 32, ±1 and ±2 (v4): fails by one gate.** N1 and N3 pass every gate (G1 0.660 and 0.684). N2 passes G1 to | |
| G3 and fails G4, at 0.5577 against 0.56. 1,832 neurons reach q < 0.05. | |
| ## Weights alone against the census | |
| For each neuron, its write direction is put straight through the final norm and the unembedding, with no forward pass | |
| (`weightlens/weight_lens.py`). How often do the neuron's top tokens hold one of its five census words? | |
| | layer | neurons | in the top 10 | shuffled pairing | | |
| |---|---|---|---| | |
| | 37 | 3,175 at q < 0.05 | 93.2% | 0.6% | | |
| | 32 | 1,832 at q < 0.05 | 60.5% | 2.3% | | |
| | 24 (v3) | top 200 by z (none at q < 0.05) | 7.0% | 1.5% | | |
| The census words change character with depth: | |
| - at layer 24, topics and registers (credit/card/fee; dentistry/practice; side/effects); | |
| - at layer 32, function words and connectives (other/than; hereafter/referred; hence/why); | |
| - at layer 37, concrete phrases. | |
| The 64-neuron ladders give the same shape across depth, falling again after layer 37 even at doses that leave text | |
| intact (`weightlens/results/`). | |
| ## Fixed weight-lens words (`lensread/`, a first look) | |
| Each neuron is scored on its own top-10 weight-lens pieces each way, fixed before its answers are read, as a z | |
| against the controls read with the same words; the null is the same neuron read with a shuffled other neuron's | |
| words. No words are picked from the answers. Rules and predictions in `lensread/RULES.md`, hashed before it ran. | |
| | layer (whole run) | mean AUC, own / shuffled | q < 0.05 | p < 0.05 on both halves, own / shuffled (38.4 by chance) | census q < 0.05 also found | | |
| |---|---|---|---|---| | |
| | 24 (v3) | 0.558 / 0.509 | 0 | 290 / 62 | (census: none) | | |
| | 32 (v4) | 0.679 / 0.496 | 4,016 | 3,083 / 50 | 1,158 of 1,832 | | |
| | 37 | 0.785 / 0.496 | 8,462 | 5,976 / 17 | 2,842 of 3,175 | | |
| It reads only a neuron's direct path to the vocabulary, so it is a cross-check, not a gate. Layer 37's lens was | |
| rebuilt on the CPU for this (its top-10 agreement with the census: 93.3%, against the first run's 93.2%). | |
| ## What is here | |
| ``` | |
| L37-tach_rel/ the whole layer 37 (XTX, ROCm; 417,798 answers, 2026-11-16) | |
| L37-tach_rel.jsonl.zst every answer (one JSON row each; doses as run: ±0.7, ±1.4) | |
| L37-tach_rel.meta.json the run's settings, plan and environment | |
| L37-tach_rel.units.jsonl every neuron and control ranked (z, mass, words, p, q, per-dose text survival) | |
| L37-tach_rel.collapse.json words that collapse into repetition, which the ranking leaves out | |
| L37.log the run's log | |
| read/ the reader's verdict (.txt) and its figures (.json, whole, ±1 alone) | |
| L24-tach_rel_06/, L32-break_rel/ the whole layers 24 and 32 (3090, 2026-11-21/22), laid out as L37's, with lens/ | |
| (the weight lens matched to the census, per neuron) | |
| L24-tach_soft_06/ the whole layer 24 at tach_soft_06 (v6, 3090, 2026-11-22/23), laid out as L24-tach_rel_06/ | |
| trials-v5/ the tach_soft_06 trial at layer 24 (3090) and its read | |
| trials-v7/ the tach_things_06 trial at layer 24 (3090), its lens match and things_read.py's read | |
| (whole; each dose alone; three questions a half) | |
| lensread/ the fixed weight-lens word reader, its rules and results (L37.lens.cpu.jsonl: layer 37's | |
| lens tokens, rebuilt on the CPU) | |
| night-2026-11-22.log, night-2026-11-23.log the 3090's logs of v3 to v7 | |
| weightlens/ the weight-lens scripts and their results (layer 37 whole; the ladders across depth) | |
| trials-v2/ tach_rel trials at layers 43 and 37 (XTX), their reads, and the night's log | |
| trials-v1/L37, L43/ break_rel trials on all three machines at once | |
| *.jsonl.zst, *.meta.json the trial joined from its 8 shards (3090: 0, 3, 6; XTX: 1, 2, 5, 7; Mac: 4) | |
| shards/ each shard's meta, prefixed with the machine that wrote it | |
| overlap/ chunks written twice, by a second machine, to check the first | |
| overlap_L<NN>.json, .result.json which chunks, and the check (Theodolite's bars for another card class) | |
| read/ the reader's verdict | |
| ladders/calib_rel/ dose ladders (0.1 to 4 of the stream) at layers 16, 24, 32, 36, 37, 40, 43, 46: 64 neurons | |
| and 64 controls each, three questions; *-curves.txt is the text survival per dose | |
| ladders/calib_fine/ the fine ladder (0.4 to 1.0 in steps of 0.1) at layers 37 and 43 (XTX), which set d = 0.7, | |
| and at layers 16, 24 and 32 (3090) | |
| stats-index/act_scale.npz the 12B stats index the pushes are scaled by (sha256 d5c970bc...; built on the XTX) | |
| prereg-trials/, prereg-v2/ ... prereg-v7/ the preregistrations, hashed before any answer they cover was written | |
| (prereg_at, SHA256SUMS), with v2's three amendments (AMENDMENTS.txt) | |
| SHA256SUMS | |
| ``` | |
| ## Reading it | |
| Theodolite's reader selects answers by `break_rel`'s dose labels (−2, −1, 1, 2). A `tach_rel` run is therefore read | |
| through a copy whose labels are divided by d = 0.7: | |
| ``` | |
| python prereg-v2/relabel.py L37-tach_rel.jsonl L37-tach_rel.rungs.jsonl 0.7 | |
| ``` | |
| Only the labels change; the answers stay the same. Layer 24's `tach_rel_06` run is relabelled the same way with 0.6. The | |
| `tach_soft_06` runs map the lower size to ±1 and the upper to ±2 | |
| (`python prereg-v5/relabel_rungs.py RUN.jsonl OUT.jsonl 0.424264 0.6`). v7 needs none: `things_read.py` takes its doses | |
| from the run. Layer 32 ran as `break_rel` and needs no | |
| relabelling. The reader uses a dose only as a label, never as a size. Why this was | |
| added, and when, is the second amendment in `prereg-v2/AMENDMENTS.txt`. | |
| ## Code and model | |
| - **Code:** branch [`tacheometal`](https://github.com/eigentactics/theodolite/tree/tacheometal) of eigentactics' | |
| Theodolite fork. It is census-kit-4 plus: | |
| - the ROCm fixes (SDPA's flash kernel returns NaN for Gemma 4's 512-wide heads; the GGUF runtime now switches the fix | |
| on at load); | |
| - `calib_fine` and `tach_rel` (commit `81f4500`, which wrote every `tach_rel` answer here); | |
| - `tach_rel_06` (`40d1bce`) and `tach_soft_06` (`42eeb0a`), which wrote layer 24's runs. Layer 32's run was written | |
| at `40d1bce`; | |
| - `tach_things_06` (`02741ab`), with the seven `match_things` prompts copied verbatim from Theodolite's main, which | |
| wrote the v7 trial; | |
| - the Metal patches. | |
| - **Model:** `google/gemma-4-12B-it-qat-q4_0-gguf` at `29d097773436b69ff9feafd636ab4cf873786537`, run through | |
| Theodolite's GGUF runtime with no lens. The 12B's tokenizer maps id for id to the 31B's, so word labels compare across | |
| the two models. One caveat: Theodolite's 31B census uses Google's w4a16 QAT checkpoint, while this uses the q4_0 QAT | |
| GGUF. | |
| ## Caveats | |
| - **One card, one read.** Layer 37's whole census ran on the XTX alone, and layers 24 and 32 on the 3090 alone. v7 is a trial of 1,022 neurons, not a census. Our 31B work found that a second card, or a | |
| different batch size on the same card, moves about 15% of the q < 0.05 set while the layer's verdict holds. Treat a | |
| single neuron's significance near the edge accordingly. | |
| - **The dose came from little data.** d was set from 64 neurons on three questions at two layers. | |
| - **The bars are the 31B's.** Every gate bar is Theodolite's, from the 31B's layer 45. Nothing here was calibrated on the | |
| 12B. | |
| - **The `who` question.** One of the six questions asks the model who it is, so the raw answers include its replies | |
| about itself under each push, as in Theodolite's own census. We publish them as written. | |
| Write-ups: [eigentactics.com/research](https://eigentactics.com/research/). | |