A Mesoscopic View of Transformer Weights Through Row and Column Scale Fields
Abstract
Pooled statistics of Transformer weights obscure how magnitude is distributed across functional channels, while individual weights are too numerous to compare directly. We study the mesoscopic level between them: row and column scale fields, the median-centred log-RMS profiles of a weight matrix over its channels, which together with a global scale and a full balanced core represent the matrix exactly. Across public Pythia checkpoints at four sizes and controlled runs from three initialization families, balancing reveals similar measured core magnitude profiles. A mixture bridge, with its form fixed before the analysis and its coefficients fitted, predicts the pooled-shape departure from field width on held-out runs and data arms of the controlled grid. The indexed fields retain further structure: they align across projections that share a functional channel, and query/key profiles follow reassigned RoPE frequencies rather than fixed matrix coordinates. Training trajectories show early field formation followed by component-dependent broadening or recession. Extending the channel-based analysis to AdamW's second moment reveals related functional organization in its log-space row and column factors. Finally, edits of a frozen checkpoint separate reciprocal scale balance, which preserves the forward computation, from relative channel gain: flattening the gain increases in-distribution loss while preserving matrix norms and the balanced core. Row and column scale fields thus connect pooled magnitude statistics to channel organization and provide coordinates for tracking and testing trained weight structure.
Figures & tables
| projection | functional identity | matrix side | normalization removing most of the departure |
|---|---|---|---|
| , | logit coordinate, RoPE frequency | rows | row |
| head/value output; input-side channel profile | rows and columns | two-sided | |
| head/value input | columns | column | |
| gate, up | FFN hidden output | rows | row |
| down | FFN hidden input | columns | column |
| , , | residual-stream input channel | columns | none (column fields widest in ; column normalization leaves nearly unchanged) |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| symbol | meaning | defined in |
| Matrix and decomposition | ||
| one projection matrix; rows index output channels, columns input channels | Section 3.1 | |
| exact re-parameterization: global scale, row and column balancing factors, core | eq. ( 2 ) | |
| global scale, fitting-free | eq. ( 2 ) | |
| ; | positive diagonal balancing factors; convertible to and from the scale fields given and | eqs. ( 2 ), ( 13 ) |
| two-sided RMS-balanced core, unit RMS in every row and column | eq. ( 3 ) | |
| source | role | model | runs | steps / ckpts | protocol-specific details |
|---|---|---|---|---|---|
| Controlled data grid | one-axis bridge; short trajectories | LLaMA 70M | 4 arms 3 seeds | 5,000 / 4 | shuffling repetition : D1 , D2 , D3 , D4 ; sequential single pass; stopped at 5,000 steps of the 30,000-step schedule. |
| Paired RoPE reassignment | frequency-to-row identity (paired intervention) | LLaMA 70M | 3 seed pairs | 30,000 / 9; 3 shared (pairs 2–3) | base run against a run whose RoPE inverse-frequency table is permuted by a fixed at initialization; frequency set unchanged; base arms in the text. |
| Initialization families | core convergence; long-term field evolution | LLaMA 70M | 3 families 3 seeds | 30,000 / 7 (0, 800, 3,200, 10k, 20k, 25k, 30k) | Gaussian, Laplace, uniform at equal initial RMS; windows sampled with replacement from the untransformed -token stream. |
| Optimizer-state records | row–column structure of (descriptive) | LLaMA 70M | 2 | 10,000 / 5 dumps; 30,000 / 150 logged windows | a dump run (batch 24) and a separate logger run (batch 16); see text. |
| No-position control | RoPE-versus-head organization (boundary) | LLaMA 70M | 1 | 30,000 / 9 (6 shared with the base run) | base run with the rotary rotation removed ( , ); single-seed boundary. |
| Checkpoint field edits | function carried by the paired gain (screen) | LLaMA 70M | base run at 30k | no training | edits of the stored weights scored by mean loss on two disjoint slices of 48 sequences 512 tokens from the training stream; 63 edits and 54 displacement-controlled edits (Appendix B.6 ). |
| kind | / | row/col/both | identity side (Table 1 ) | ||||
|---|---|---|---|---|---|---|---|
| 1.192 | 1.208 | 1.195 | 1.211 | 0.16 / 0.06 | 0.978 / 0.623 / 0.978 | rows | |
| 1.188 | 1.207 | 1.192 | 1.210 | 0.17 / 0.08 | 0.977 / 0.657 / 0.977 | rows | |
| 1.194 | 1.200 | 1.197 | 1.205 | 0.13 / 0.11 | 0.932 / 0.942 / 0.964 | both | |
| 1.191 | 1.195 | 1.199 | 1.206 | 0.12 / 0.16 | 0.799 / 0.925 / 0.927 | columns | |
| gate | 1.187 | 1.203 | 1.188 | 1.205 | 0.19 / 0.07 | 0.906 / 0.627 / 0.915 | rows |
| up | 1.191 | 1.203 | 1.192 | 1.206 | 0.18 / 0.08 | 0.890 / 0.726 / 0.893 | rows |
| up/down | |||||||||
| edit | size | slice 1 | slice 2 | size | slice 1 | slice 2 | size | slice 1 | slice 2 |
| flatten (reference) | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 |
| log-gain doubled ( ) | 1.23 | 3.64 | 3.48 | 1.20 | 1.48 | 1.16 | 0.99 | 1.59 | 0.64 |
| log-gain ( ) | 0.29 | 1.30 | 1.31 | 0.30 | 0.38 | 0.28 | 0.25 | 0.45 | 0.10 |
| shuffle, size-matched (5 draws) | 0.98 | 0.64 | 0.66 | 1.00 | 0.87 | 0.85 | 1.00 | 0.65 | 0.69 |
| Gaussian direction (5 draws) | 0.94 | 0.29 | 0.29 | 0.87 | 0.62 | 0.54 | 1.01 | 0.50 | 0.33 |
Transformer
Transformers are neural architectures that use attention to model relationships among sequence elements in language, vision, and scientific data.
See all 540 papers