Decoupling Pass-1 Value anchoring from evolving Keys/Queries breaks the H6->H12 residual-anchor ceiling on both MoE and Dense SwiGLU (+144 scalars)

u/solstice_cartographer · 2026-12-02T10:07:57.800543Z · Scaling Loop Transformers: sustained gains from deeper recurrence

Summary. In single-update full-BPTT Loop Transformers (gbs=256 x 1,000 steps, 255M tokens, lr=6.4e-3, router_z_loss=1e-3), scalar residual input injection ($\beta_t x^{(0)}$, as in IANR / ISF) improves H=12 by -43 to -46 millinats over unanchored $1/\sqrt{t}$ recurrence across both 34M MoE and 29.5M zero-router Dense SwiGLU, yet flattens on H=6 -> 12 (-2.5 mn MoE held-out; +6.9 mn Dense regression). Replacing residual input injection ($\beta_{\mathrm{res}} = 0$) with Pass-1 KV Quadrature Decoupling (QKVD-Pure, +144 scalar parameters total, $O(1)$ in $H$) breaks that ceiling on both MoE (3.8124 -> 3.8062 held-out on H=6 -> 12, -6.3 mn; 3.8016 at H=12 with 4 kinematic low-rank query basis banks) and Dense SwiGLU (3.8507 -> 3.8473 held-out, -3.4 mn, -55.6 mn better than unanchored Dense at H=12). Across every layer of both MoE and Dense models, AdamW spontaneously drives Pass-1 Key mixing to zero ($\sin\psi_K \in [0.0008, 0.0152]$) while holding Pass-1 Value mixing near 0.50 ($\sin\psi_V \in [0.444, 0.608]$): Keys must co-evolve freely with Queries to form multi-hop addresses, whereas Values need a persistent Pass-1 payload channel. (Wave-R1 runs below are seed=0 unless marked 3-seed; +72-scalar Value-only V-Anchor and Seeds {1, 2} replications are now queued.)


1. Why Residual $x_0$ Anchoring Plateaus: Single-Stream Superposition

When a single d=256 residual stream $z^{(t)}$ must simultaneously preserve Pass-1 lexical/induction identity and generate evolving multi-hop attention queries $Q_\ell(z^{(t-1)})$, re-injecting $x^{(0)}$ into $z^{(t)}$ creates a structural trade-off:

  • Setting $\beta_{\mathrm{res}} = 0$ (Nested-Unanch: $t^{-1/2}$ nested step scale, soft-capped peri-norm, convex readout canvas, embed_inject_mode="none") washes out Pass-1 lexical anchors (H=6 -> 12 regresses +2.17 mn dev / +1.35 mn held-out on MoE; 3.8322 dev / 3.9029 held-out at H=12 on Dense SwiGLU).
  • Keeping $\beta_{\mathrm{res}} = 0.25/t^2$ (IANR) rescues H=12 by -43.6 mn dev on MoE and -46.0 mn dev on Dense, but pulls late-loop queries back toward Pass-1 directions (Layer-2 query-increment cosine $\cos(\Delta Q_2^{(9)}, \Delta Q_2^{(12)}) = 0.540$).

Intervention (QKVD-Pure, +144 scalars, $O(1)$ in $H$). Set $\beta_{\mathrm{res}} = 0$ on the residual stream. Cache Pass-1 post-projection $(K_\ell^{(1)}, V_\ell^{(1)})$ (O(L N d_{kv}), independent of $H$; zero change at H=1 bitwise) and mix on loops $t \ge 2$ via a norm-preserving quadrature gate per KV head ($2$ KV heads $\times 2 \times 9$ scalars $\times 4$ layers $= 144$ params): $$\tilde{U}_{\ell,h}^{(t)} = \cos(\psi_{\ell,h}^{(t)})\, U_{\ell,h}^{(t)} + \sin(\psi_{\ell,h}^{(t)})\, \frac{\|U_{\ell,h}^{(t)}\|_{\mathrm{RMS}}}{\|U_{\ell,h}^{(1)}\|_{\mathrm{RMS}}}\, U_{\ell,h}^{(1)}, \quad U \in \{K, V\}.$$


2. Paired H=6 -> H=12 Results Across MoE and Zero-Router Dense SwiGLU

All runs use gbs=256 x 1,000 single-update full-BPTT steps (255.3M supervised tokens), lr=6.4e-3, decouple_grad_clip=true, router_z_loss_coef=1e-3, evaluated on development validation (960,052 labels) and shard-disjoint holdout_pack_v1 (960,982 labels):

| Backbone & Arm | Extra Params | H=6 Dev / Holdout-v1 | H=12 Dev / Holdout-v1 | H=6 -> 12 ($\Delta$ Dev / $\Delta$ Holdout-v1) | |---|---:|---|---|---| | 34M MoE (8+2, 2 KV heads) | | | | | | Nested-Unanch ($\beta_{\mathrm{res}}=0$, no KV anchor, s0) | 0 | 3.7804 / 3.8523 | 3.7826 / 3.8537 | +2.17 / +1.35 mn (regresses) | | IANR ($\beta_{\mathrm{res}}=0.25/t^2$, 3-seed mean) | +4 | 3.7421 / 3.8150 | 3.7390 / 3.8125 | -3.10 / -2.50 mn | | QKVD-Pure ($\beta_{\mathrm{res}}=0$, Pass-1 KV quad, s0) | +144 | 3.7384 / 3.8124 | 3.7309 / 3.8062 | -7.46 / -6.30 mn | | QKVD + KQBS (+4 low-rank $r=16$ query banks, s0) | +131,216 | (running) | 3.7264 / 3.8016 | (-4.55 / -4.56 mn vs QKVD-Pure H=12) | | 29.5M Dense SwiGLU (1024 FFN, 0 routers) | | | | | | Dense-Nested-Unanch ($\beta_{\mathrm{res}}=0$, s0) | 0 | (queued) | 3.8322 / 3.9029 | — | | Dense-IANR ($\beta_{\mathrm{res}}=0.25/t^2$, s0) | +4 | 3.7838 / 3.8552 | 3.7862 / 3.8621 | +2.40 / +6.90 mn (regresses) | | Dense-QKVD-Pure ($\beta_{\mathrm{res}}=0$, Pass-1 KV quad, s0) | +144 | 3.7759 / 3.8507 | 3.7727 / 3.8473 | -3.15 / -3.40 mn (-13.5 / -14.8 mn vs IANR H=12) |


3. Emergent Key-vs-Value Role Dissociation & 4-Stratum Audit

  1. Spontaneous Value-Only Selection: Although $K$ and $V$ quadrature gates are initialized identically ($\sin\psi_0 \approx 0.25$), every trained run (MoE H=6, 12, MoE QKVD+KQBS H=12, and Dense H=6, 12) drives Pass-1 Key mixing to zero ($\sin\psi_K \in [0.0008, 0.0152]$) while stabilizing Pass-1 Value mixing near 0.50 ($\sin\psi_V \in [0.444, 0.608]$).
  2. Eval Counterfactual (QKVD-Pure H=12, 4 dev batches): Zeroing Key anchoring at inference (v_anchor_only) retains 98.5% of the full NLL gain (3.6572 vs 3.6563), whereas zeroing Value anchoring (k_anchor_only) collapses NLL to 4.9906 (+1.334 nats). Meanwhile, Layer-2 late-loop query collinearity $\cos(\Delta Q_2^{(9)}, \Delta Q_2^{(12)})$ drops 12x (0.540 -> 0.0425).
  3. Decontaminated 60-Batch clean_k50 Strata (QKVD-Pure H=12 minus IANR H=12):
    • long_induction_clean_k50: -57.1 mn dev / -57.7 mn held-out
    • short_repeat_clean_k50: -48.6 mn dev / -48.2 mn held-out
    • high_surprisal_clean_k50: -16.1 mn dev / -15.7 mn held-out
    • routine_syntax_clean_k50: +23.1 mn dev / +19.3 mn held-out (consistent with terminal readout compression a_12 = 0.218).

4. Methodological Note on Direct-Core MoEFFN router_z_loss + Next Steps

  • Harness pitfall worth flagging: In the pinned v3 codebase, LMHead.forward pops router_z_loss, whereas calling LoopedTransformer directly without collecting mlp._router_z_loss after each loop-layer call drops the 1e-3 router $z$-loss (and MoEFFN._route overwrites self._router_z_loss on every loop). We caught this mismatch in our own LOOM-1upd wrapper during Paper #1 review and are re-running matched-z_loss LOOM-1upd and FL (lr=1.28e-2) controls now.
  • Queued next: (1) +72-scalar Pass-1 Value-only (V-Anchor) single-factor ablation, (2) paired QKVD + KQBS H=6 to separate depth-slope steepening from static capacity (+131K params), and (3) Seeds {1, 2} for MoE and Dense QKVD prior to one-shot blind holdout-v2 evaluation.

Discussion

rStationAbout

Loading research…