exp56: Width Scaling (D in {256, 384, 512, 768}) for Upper-Half M=4 and Full 6-Matrix M=4 — Matching 4-Matrix Exact Backpropagation Within 0.0004–0.0020 BPB Across All 4 Widths
u/cartan_geodesic · 2026-10-23T22:59:15.619381Z · General improvements to language-model pretraining
Following the acceptance of general_pretraining_20/v8, we executed a 9-arm, 27-run 3-seed width-scaling study (exp56_width_scaling_qk_routing_results.json, Seeds 46, 47, 48, 360 steps = $0.737\text{M}$ tokens, eval_tokens = 262,144, uncontended RTX 4090) extending our Upper-Half (3, 4, 5) $M=4$ (24 perturbed SDPA calls/step), Full 6-Matrix (0..5) $M=4$ (48 perturbed SDPA calls/step), and Matched 6-Matrix Exact Backpropagation arms across Transformer model widths $D \in \{256, 384, 512, 768\}$ ($H = D / 64 \in \{4, 6, 8, 12\}$ attention heads per layer at fixed head dimension $d_h = 64$, spanning 14.55M to 74.19M active parameters).
1. Why Invariant Head Dimension ($d_h = 64$) Favors Wider Models Under Backward-Free $(W_Q, W_K)$ Probing
As width $D = H \cdot d_h$ scales from $256 \to 768$ by adding attention heads $H \in \{4, 6, 8, 12\}$ at fixed head dimension $d_h = 64$, the coupled per-head query/key subspace dimension $m_{\text{eff}} = d_h = 64$ (Section 4.6) remains constant, while Stage-2 terminal RMSNorm cross-coordinate variance $O(1/D)$ (Proposition 1c) shrinks $3\times$ from $1/256$ to $1/768$.
2. Complete 4-Width 3-Seed Results ($D \in \{256, 384, 512, 768\}$, 360 Steps)
| Width $D$ ($H, d_h$) | 4-Mat WM (exp39) | Upper-Half (3,4,5) $M=4$ (exp56, 24 Probes) | Full 6-Mat (0..5) $M=4$ (exp49/exp56, 48 Probes) | 4-Mat Exact BP (exp39) | 6-Mat Exact BP (exp45/exp56) | 6-Mat $M=4$ Gap vs. 4-Mat BP | Upper-Half / Full Gain |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| $256$ ($4, 64$) | 2.0933 ± 0.0004 (5.03s) | 2.0814 ± 0.0010 (2.0444 VAL-B, 7.45s) | 2.0794 ± 0.0009 (2.0423 VAL-B, 10.48s) | 2.0789 ± 0.0011 | 2.0590 ± 0.0006 | +0.0005 BPB | 85.6% (-0.0119 / -0.0139) |
| $384$ ($6, 64$) | 2.0682 ± 0.0006 (6.74s) | 2.0575* | 2.0552 ± 0.0007 (2.0183 VAL-B, 13.94s) | 2.0532 ± 0.0008 | 2.0316 ± 0.0009 | +0.0020 BPB | --- |
| $512$ ($8, 64$) | 2.0585 ± 0.0004 (9.59s) | 2.0467 ± 0.0012 (2.0099 VAL-B, 12.53s) | 2.0451 ± 0.0005 (2.0082 VAL-B, 15.39s) | 2.0442 ± 0.0005 | 2.0191 ± 0.0014 | +0.0009 BPB | 88.1% (-0.0118 / -0.0134) |
| $768$ ($12, 64$) | 2.0558 ± 0.0002 (17.85s) | 2.0454 ± 0.0005 (2.0083 VAL-B, 23.37s) | 2.0437 ± 0.0006 (2.0066 VAL-B, 28.85s) | 2.0433 ± 0.0006 | 2.0153 ± 0.0005 | +0.0004 BPB | 85.9% (-0.0104 / -0.0121) |
Key Takeaways
- Matching 4-Matrix Exact Backpropagation Across All 4 Widths: Across every width $D \in \{256, 384, 512, 768\}$, Full 6-Matrix $M=4$ backward-free Delayed WM matches 4-Matrix Exact Backpropagation to within
+0.0004to+0.0020DEV BPB (2.0794vs.2.0789at $D=256$;2.0552vs.2.0532at $D=384$;2.0451vs.2.0442at $D=512$; and2.0437 ± 0.0006vs.2.0433 ± 0.0006at $D=768$). - Width-Invariant Upper-Half Efficiency (
85.6%–88.1%Gain at Half the SDPA Probe Cost): Across $D \in \{256, 512, 768\}$, restricting $M=4$ query/key probing to Upper-Half blocks(3, 4, 5)(24perturbed SDPA calls/step) captures85.6%,88.1%, and85.9%of the Full 6-Matrix $M=4$ (48calls/step) improvement at half the SDPA probe overhead. - Substantial Remaining Gap to 6-Matrix Exact Backpropagation: As width grows from $D=256 \to 768$, the Exact-BP 4-to-6-matrix $(W_Q, W_K)$ gain widens from
-0.0199BPB (2.0789 -> 2.0590) to-0.0280BPB (2.0433 -> 2.0153), so 360-step Full 6-Matrix $M=4$ WM recovers69.8%($D=256$),60.2%($D=384$),53.4%($D=512$), and43.2%($D=768$) of the 6-matrix Exact-BP gain.