Explore the research collection
3 entries · Follow this search
- Post
From Parameter Symmetry to Effective Learning Rate
Jianlin Su (kexue.fm, Oct 27 2026) dismantles and then rebuilds the theoretical foundation shared by Hyperball, HyperTransfer and the Effective Learning Rate (ELR) literature. The shared assumption - that the loss is scale-invariant in each parameter, l(w) = l(cw), supposedly courtesy of normalization layers - is, for mainstream 'In-Norm' Transformers (every sublayer of the form f(Norm(X)), whether with plain residuals, mHC or attention residuals), 'almost completely false', not even approximately: a Norm removes the effect of the INPUT's scale, not of the layer's own parameter scale, so almost no parameter in a modern Transformer has the property. The sporadic exceptions are conditional: W_q and W_k under QK-Norm, and jointly rescaling the embedding together with all layers' output matrices (through the final RMSNorm). Yet Hyperball and ELR demonstrably work - 'the result is right, but the process is problematic' - so Su looks for the symmetry that DOES hold: a JOINT symmetry, l(w1, w2) = l(c*w1, c^-1*w2), for specific parameter pairs - (W_q, W_k) and (W_v, W_o) in attention; (W_up, W_down) in GLU, with (W_gate, .) pairs exact for ReLU gates and approximate under Swish; and, most importantly, the input-matrix GROUPS paired with their layer's RMSNorm gain gamma - (W_q, W_k, W_v) as a whole against gamma, (W_up, W_gate) against gamma, and the LM head's gamma against the head matrix. Joint symmetry partially rescues the Hyperball prescription (fix the matrix norms, keep gamma's norm trainable), but with a hole Su is explicit about: Hyperball fixes each matrix's norm SEPARATELY, while the gamma symmetry only licenses fixing the W_q/W_k/W_v group jointly and does not involve W_o at all - so Hyperball does lose expressiveness in theory, and its practical success says more about models' fault tolerance than about the symmetry. Likewise, recovering the ELR argument from joint symmetry requires decomposing a whole-vector perpendicularity into per-parameter perpendicularity, an assumption chain Su himself concedes (in the post's comments) has 'not much strict reason'. The cleaner foundation he proposes is optimizer COVARIANCE: an ideal update rule should give forward-equivalent parameterizations identical training trajectories, which requires phi(c1*w, c2*g) = c1*phi(w, g) for any positive c1, c2; the general solution is phi(w, g) = |w| * F(w/|w|, g/|g|), and its simplest instance, w - eta*|w|*u/|u|, makes eta exactly the ELR. On this view ELR is not a consequence of scale invariance at all - it is the price of demanding covariance, and aligning ELR across optimizers is implementing covariance. Su also notes the form is not new: classical convergence-bound analysis already yields an optimal LR proportional to a parameter-norm quantity over a gradient-norm quantity. Finally, a reference ELR schedule for Adam: proportional to (1 - t/T) / sqrt(1 - c0*e^(-c1*t)) - higher at the start, faster early decay, near-linear later - matching the shapes reported in 'From LR to ELR' and 'Training nGPT' (Ilya Loshchilov noted in the comments its closeness to nGPT's log-annealing), and plausibly extendable to Muon. Flags, as entered: a theory blog post, in Chinese, with derivations but no new experiments; the local-perpendicularity step is flagged as heuristic by the author himself. Cross-references: a direct foundation-check on ID 1653 (ELR) and on the Hyperball optimizer stack in the Marin 535B-A23B recipe; the joint-symmetry pair (LM-head gamma, head matrix) also explains Marin's observation that pinning the head's norm does not pin the logit scale - the pre-head RMSNorm gain is precisely the free partner in that symmetry, the same logit-growth channel as ID 1766. Su is also the source of the quantile-balancing method Marin adopted.
- Paper
Attention Residuals
Replaces standard PreNorm residual accumulation (fixed unit weights over all layer outputs, which causes uncontrolled hidden-state growth with depth and dilutes each layer's contribution) with Attention Residuals (AttnRes): each layer selectively aggregates earlier representations via learned, input-dependent softmax attention over preceding layer outputs. Block AttnRes makes this practical at scale: partitions layers into blocks and attends over block-level representations, cutting memory from O(Ld) to O(Nd) while preserving most gains; cache-based pipeline communication and a two-phase computation strategy make it a drop-in replacement for standard residuals with minimal overhead. Scaling-law experiments show consistent improvement across sizes; ablations validate content-dependent depth-wise selection. Integrated into the Kimi Linear architecture (48B total / 3B activated) pre-trained on 1.4T tokens, AttnRes yields more uniform output magnitudes and gradient distribution across depth and improves downstream performance on all evaluated tasks (reasoning, math, coding).
- Paper
MoBA: Mixture of Block Attention for Long-Context LLMs
Proposes Mixture of Block Attention (MoBA), which applies mixture-of-experts principles to the attention mechanism: the model learns where to attend across blocks rather than using predefined sparse patterns like sink or window attention. It claims superior long-context performance with seamless switching between full and sparse attention, and has been deployed for Kimi's long-context serving.