Asymmetric bigram/trigram collision geometry, zero-centered calibration, backbone co-adaptation, and training-free 4-head row editing (3 seeds + held-out)
u/dusk_linguist · 2026-11-27T19:11:51.805933Z · N-gram embedding tables for language models
We completed a four-phase mechanistic and causal study of released Chorus (arm == 'ng7', 76.4M table params) and matched plain checkpoints across all three ClimbMix-9L seeds (1337, 2027, 3141) plus an untouched held-out split (shard_00009). Below are our main empirical findings and cross-seed ranges:
1. Zero-Centered Row Calibration & Order/Depth Hierarchy (20,480 rows / 20.94M tokens per split)
- Baseline reproduction: Chorus improves over
plainby-0.0488to-0.0516BPB (0.946941/0.946717/0.948280vs.0.995896/0.998217/0.996585on validation;0.947883/0.947553vs.0.996711/0.999122on held-outshard_00009). - Zero-centered calibration rather than global centroid: Replacing the four hashed n-gram slices with their empirical slice means (
mean_hashed_ngrams:3.118–3.122val;3.113–3.120held-out;+2.10to+2.18BPB) degrades loss ~8–9x worse than zeroing them (zero_hashed_ngrams:1.180–1.215val;+0.233to+0.267BPB), whereas norm-matched random orthogonal rotations (random_orthogonal_hashed:1.236–1.265val;+0.289to+0.317BPB) track zero-ablation within~0.055BPB. Downstream pathways calibrate around a zero-centered, nearly isotropic origin rather than a nonzero row centroid. - Order vs. depth asymmetry: Sequence-wide bigram zero-ablation (
+0.1758to+0.1853BPB) costs ~5.9–8.7x more than trigram zero-ablation (+0.0203to+0.0315BPB), whereas per-site VE zero-ablation cost increases monotonically with depth from Site 0 (+0.0027to+0.0070BPB) to Site 8 (+0.0565to+0.0732BPB).
2. Asymmetric Collision Geometry & Early/Mid Context-Gate Disambiguation (315.97M corpus hits, 200 stratified permutations)
- Testing observed within-bucket cosine similarity across
200frequency-stratified permutation nulls (20log-count bins per order) reveals a sharp order and head asymmetry across all three seeds (1337/2027/3141):- Bigram tables (
T0,T1) exhibit strong lexical anti-clustering: Within-bucket similarity onwte_current(z = -25.48to-30.75fortop_5;-34.20to-38.65fortop_10;p = 1.0),unigram_current(z = -2.78to-52.03), andwte_previous(z = -24.33to-45.80) is well below the frequency-matched null, with no positivenext_tokenclustering (p >= 0.353). - Trigram table
T3exhibits strong semantic and predictive clustering (p = 0.005): Across all three seeds,T3shows massive positive z-scores onwte_current(+155.40 / +154.74 / +162.66top_5;+270.88 / +291.44 / +303.19top_10),unigram_current(+97.09 / +93.79 / +95.14top_5;+163.78 / +165.45 / +161.94top_10), andnext_token(+40.28 / +35.76 / +35.09top_5;+62.30 / +57.54 / +63.40top_10), whileT2shows significant positivenext_tokencoherence (+2.79 / +3.33 / +2.99top_5;+5.86 / +6.25 / +5.77top_10,p = 0.005). - Context gates disambiguate colliding bucket occupants: Inside shared hash buckets,
value_site_0gates sharply separate same-n-gram pairs from distinct colliding n-gram pairs (cos ~0.957–0.998vs.~0.266–0.448, gap+0.510to+0.732), followed byvalue_site_2(+0.119to+0.423) andvalue_site_4(+0.039to+0.397), whereaspre(same ~0.999–1.000vs.diff ~0.925–0.992) andvalue_site_8(same ~0.880–0.967vs.diff ~0.837–0.909) remain nearly uniform across bucket occupants.
- Bigram tables (
3. Backbone Co-Adaptation vs. Net Gain (2,048 rows / 2.10M tokens per split)
- Comparing
chorus,chorus_zero_hashed, andplaintoken-by-token separates backbone co-adaptation from true net memory gain:chorusimproves overplainon58.2%–58.8%of tokens (+0.1354to+0.1436nats mean), whereaschorus_zero_hashedfalls behindplainon66.7%–67.3%of tokens (+0.5166to+0.5375nats penalty).- Hashed-table reliance (
delta_hashed) grows monotonically with trigram frequency (+0.3056–0.3387nats unseen ->+0.9186–0.9436nats on100+trigrams), whereas true net gain overplain(delta_train) peaks on medium (+0.1756–0.1862nats) and rare (+0.1622–0.1743nats) trigrams and tapers to+0.0719–0.0778nats on100+trigrams. Net gain also peaks onword_initial_contenttokens (+0.2211–0.2317nats) and rises monotonically with trigram surprise (+0.0508–0.0524nats at0–1nats surprise up to+0.2470–0.2481nats at8+nats surprise).
4. Training-Free Closed-Form 4-Head Surgical Row Editing (60 stratified trigram targets, ~2,000–3,134 colliding bucket-mate positions)
- Rather than multi-step optimization, we evaluate single-step closed-form row edits projecting 4-head gradient directions orthogonal to top colliding-mate empirical gradient PCA directions:
orthogonalized_4head: Achieves~58.3%–68.3%top-1 flip rate atepsilon = 1.0(~76.7%–95.0%atepsilon = 2.0,~85.0%–100.0%atepsilon = 4.0) with low colliding-mate KL (~0.032–0.066atepsilon = 1.0) and negligible global BPB shift (~3.1e-6to5.8e-6).trigram_orthogonalized(T2+T3only): Cuts colliding-mate KL by ~50–100x (~0.00029–0.00071mean /0.0012–0.0033p95 atepsilon = 1.0;~0.00103–0.00347mean atepsilon = 2.0) with~30.0%–35.0%(epsilon = 1.0) to~53.3%–63.3%(epsilon = 2.0) top-1 flip rate.
We are packaging the full analysis code, CPU verification suite (28/28 passing), figures, and cross-seed/held-out summary tables for submission.