Manuscript Offprint

arXiv:2610.01172

Learning Rate Transfer for Hybrid Transformer-SSM Architectures

Jimin Seo, Gyubok Lee, Yeonsik Jo, Kiwoong Yoo, Yeongoon Kim, Minhae Oh, Jin Woo Koo, Suhwan Kim, Nakyung Lee, Minsik Seol, Idris Nechnech, Jaehyeon Kim, Giho Lee, Jungwoo Lee

Abstract

We study learning rate (LR) scaling for hybrid architectures combining Transformer and State-Space Model (SSM) blocks, a class adopted by several recent production language models. In particular, we focus on the gap between the theoretical scaling rules derived for SSMs under zero-order-hold (ZOH) discretization at infinite width with growing state size, and the field-standard practical implementations using simplified-ZOH Mamba at fixed state size. Surprisingly, in this practical regime hybrid architectures achieve a near-zero LR transfer gap across widths 256–2048 and depths 4–32 up to billion-parameter scale using only the original μ\muP prescription, even though SSM operations fall outside its Tensor Programs representability conditions and every parameterization we test fails the standard coordinate-check diagnostic of μ\muP correctness. We attribute this to a two-condition decomposition of LR transfer in hybrid architectures: a global update-to-weight invariance, enforced by μ\muP's initialization and LR scaling; and a local per-component balance, provided by AdamW's per-parameter normalization. Our observations show that the optimal LR is invariant to width up to 8×8\times, that this width invariance holds across depth, sequence length, batch size, and Transformer-to-SSM ratio, and that it transfers to Nemotron-H, a production hybrid outside our custom architecture set. We hope these findings fill the gap between theoretical scaling rules and practical hybrid implementations, and stimulate further research toward bridging it.

1 Introduction

Hybrid architectures combining Transformer attention with State-Space Model (SSM) blocks have emerged as a promising direction for large language models, pairing attention's quality on long-range dependencies with SSMs' subquadratic inference cost. Controlled comparisons at 8B parameters show Mamba-2-Hybrid outperforming pure Transformers across benchmarks while running up to 8× faster [Waleffe et al., 2024], and similar trends appear in recent production hybrids [NVIDIA, 2025, Jamba Team, 2025, Zuo et al., 2025]; a fundamental practical problem remains, however: training these models requires expensive per-scale hyperparameter tuning.

The learning rate (LR) must be returned at each model scale because the optimum shifts with architectural choices like width and depth; at production scale this sweep can substantially exceed the single-run training budget [Yang et al., 2021]. Maximal Update Parameterization ( μ\muP) [Yang et al.,

∗^{*}Work done prior to joining SB Intuitions.

†^{\dagger}Corresponding author.

Preprint.

coordinate check

LR transfer

Figure

Figure 1: The coordinate check and LR transfer disagree on hybrids (MMH, d=16). Top: mean absolute activation per block after 10 steps on WIKITEXT-103, relative to w=128; dotted line is width invariance, bold line the median over blocks. Bottom: training loss against learning rate on WIKITEXT-2 (2k steps), each width's optimum dashed and diverged runs open. The diagnostic separates SP from both μ\muP variants, while transfer separates naïve μ\muP, which holds η∗=1.0\eta^* = 1.0 at every width, from the other two.

2021] solves this for pure Transformers by scaling initialization and LR so the optimum LR becomes width-independent. Chennuru Vankadara et al. [2024] showed that SSM operations fall outside the Tensor Programs framework and derived component-specific rules ( μ\muP-SSM), validated on pure SSMs. To our knowledge, no prior work addresses learning rate transfer for hybrid architectures at practical finite widths.

Without any SSM-specific extension, the original μ\muP prescription (which we refer to as naïve μ\muP) under AdamW [Loshchilov and Hutter, 2019] achieves near-zero learning rate transfer gap across all tested hybrid architectures, up to 8×8\times width (256 to 2048) and 8×8\times depth (4 to 32). 3^{3} Strikingly, the standard coordinate-check diagnostic does not predict LR transfer in this regime (Figure 1): every parameterization we test fails the coordinate check on hybrids, yet naïve μ\muP transfers cleanly while μ\muP-SSM [Chennuru Vankadara et al., 2024] (designed for pure SSMs at infinite width under SGD with true-ZOH and growing NxN_x) does not. Specifically, μ\muP-SSM's η∗\eta^* drifts with width on every SSM-bearing architecture (Table 1), and at fixed η\eta it produces a 5–8% higher convergence loss than naïve μ\muP on WIKITEXT-103. Section 5 interprets this observation in a two-condition decomposition: naïve μ\muP delivers a global update-to-weight invariance, and AdamW's per-parameter normalization g/vg/\sqrt{v} delivers the local per-component balance directly across the SSM boundary, while μ\muP-SSM's explicit per-component LR rules do not deliver this balance in our regime (an optimizer ablation at a fixed parameterization supports this attribution).

Our contributions are threefold:

  1. We empirically establish that naïve μ\muP with AdamW achieves near-zero LR transfer gap across hybrid architectures, widths 256–2048 (8×), and depths 4–32 up to billion-parameter scale (Section 4; Appendix C.3).

  2. We propose a two-condition decomposition of LR transfer (global update-to-weight invariance, from μ\muP; local per-component balance, which Adam satisfies automatically), grounded by a per-component scaling test showing Vankadara's prescription works at initialization for B and C but fails for Alog⁡A_{\log} under the field-standard simplified-ZOH Mamba implementation (Section 5, Appendix E.2).

  3. We validate generalization to a production hybrid model [NVIDIA, 2025], which transfers at 0.0% gap without architecture-specific tuning (Section 4.3).

3^{3}Measured on the 7-point grid η∈{0.003,0.01,0.03,0.1,0.3,1.0,3.0}\eta \in \{0.003, 0.01, 0.03, 0.1, 0.3, 1.0, 3.0\} where η∗=1\eta^* = 1 at every cell; a finer sweep (Appendix C) adds intermediate points {0.5,0.7,1.5,2.0}\{0.5, 0.7, 1.5, 2.0\} and shows the basin between η=0.5\eta = 0.5 and η=1.5\eta = 1.5.

References (100)

  • GQA: Training generalized multi-query Transformer models from multi-head checkpoints
  • Dissecting Adam: The sign, magnitude and variance of stochastic gradients
  • Pythia: A suite for analyzing large language models across training and scaling
  • PIQA: Reasoning about physical commonsense in natural language
  • On feature learning in structured state space models
  • Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
  • Expressivity-efficiency tradeoffs for hybrid sequence models
  • Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality
  • Sparse maximal update parameterization: A holistic approach to sparse training dynamics
  • Hymba: A hybrid-head architecture for small language models
  • Scaling exponents across parameterizations and optimizers
  • Mamba: Linear-time sequence modeling with selective state spaces
  • HiPPO: Recurrent memory with optimal polynomial projections
  • Efficiently modeling long sequences with structured state spaces
  • $\mu P^{2}$: Effective sharpness aware minimization requires layerwise perturbation scaling
  • On the surprising effectiveness of large learning rates under standard width scaling
  • An empirical analysis of compute-optimal large language model training
  • Muon: An optimizer for hidden layers in neural networks, 2024
  • Adam: A method for stochastic optimization
  • Weight decay may matter more than $\mu$P for learning rate transfer in practice
  • Mamba-3: Improved sequence modeling using state space principles
  • Lucas Lingle. An empirical study of $\mu$P learning rate transfer. arXiv preprint arXiv:2404.05728, 2024. (opens arXiv in a new tab)
  • Sophia: A scalable stochastic second-order optimizer for language model pre-training
  • Decoupled weight decay regularization
  • $\mu$-parametrization for mixture-of-experts
  • Pointer sentinel mixture models
  • Completed hyperparameter transfer across modules, width, depth, batch & duration
  • Super consistency of neural network landscapes and learning rate transfer
  • NVIDIA. Nemotron-H: A family of accurate and efficient hybrid Mamba-Transformer models. arXiv preprint arXiv:2504.03624, 2025. (opens arXiv in a new tab)
  • The LAMBADA dataset: Word prediction requiring a broad discourse context
  • The FineWeb datasets: Decanting the web for the finest text data at scale
  • Hyperparameter transfer enables consistent gains of matrix-preconditioned optimizers across scales
  • WinoGrande: an adversarial Winograd schema challenge at scale
  • GLU Variants Improve Transformer
  • RoFormer: Enhanced transformer with rotary position embedding
  • Gradient heterogeneity complements Hessian heterogeneity in Transformer optimization
  • Llama 2: Open Foundation and Fine-Tuned Chat Models
  • Attention is all you need
  • An empirical study of Mamba-based language models (opens arXiv in a new tab)
  • Tensor Programs IVb: Adaptive optimization in the infinite-width limit (opens arXiv in a new tab)
  • Tensor Programs V: Tuning large neural networks via zero-shot hyperparameter transfer
  • Gated linear attention Transformers with hardware-efficient training
  • HellaSwag: Can a machine really finish your sentence? In Annual Meeting of the Association for Computational Linguistics (ACL), pages 4791–4800, 2019
  • Why Transformers need Adam: A Hessian perspective
  • Scaling diffusion Transformers efficiently via $\mu$P
  • Jingwei Zuo, Maksim Velikanov, Ilyas Chahed, Younes Belkada, Dhia Eddine Rhayem, Guillaume Kunsch, Hakim Hacid, Hamza Yous, Brahim Farhat, Ibrahim Khadraoui, et al. Falcon-H1: A family of hybrid-head language models redefining efficiency and performance. arXiv preprint arXiv:2507.22448, 2025. (opens arXiv in a new tab)
  • naïve / approx. / faithful
  • Times rise superlinearly because the SSM scan and attention costs are non-quadratic in width; the proxy-to-target ratio is $5.5\times$ at 2k steps and $\sim 12\times$ at 20k
  • The right two columns express the step budget as a fraction (or multiple) of one full epoch
  • These asymptotic scalings must be anchored at a reference width where $\eta_{\mathrm{base}}$ is tuned; an anchored implementation at $N_u^{\mathrm{ref}} = 512$ is reported in Appendix A.4
  • Our work uses a different setting along three axes simultaneously: hybrid Transformer-SSM architectures, AdamW, and a fixed $N_{x} = 16$ as $N_{u}$ grows with width
  • At target widths, $\eta_A$ grows linearly with $N_u$ while $\eta_B$ and $\eta_C$ shrink as $1/\sqrt{N_u}$
  • Final training loss
  • At the highest LR ($\eta = 100$), the rule diverges at $w = 128$ (loss $\rightarrow$ 5706 at step 942) while naïve $\mu \mathrm{P}$ completes all 20k steps; at $w = 1024$ both converge to similar loss
  • Final training loss; relative gap is $(\mathcal{L}_{\mathrm{block-wise}} - \mathcal{L}_{\mathrm{naïve}}) / \mathcal{L}_{\mathrm{naïve}}$
  • block-wise $\mu$P (approximated)
  • LR grid: $\{0.001, 0.003, 0.01, 0.03, 0.1, 0.3, 1.0\}$; an entry of 1.0 indicates stability at the grid maximum (the true max stable LR may be higher)
  • (a) Loss vs. depth at each scheme’s optimal LR for MHMH and HHHH. (b) Loss vs. depth for MHMH with the optimal LR labeled at each point
  • At the proxy horizon, loss at $\eta=1.0$ is not monotonic in depth or width across the grid (Figure 3)
  • Best: MHMH (w=1024, d=32) at 4.096
  • Gap = relative loss penalty of using the proxy-transferred LR ($\eta=1$) instead of each row's best-of-grid value, $(\mathcal{L}(\eta=1) - \mathcal{L}^*) / \mathcal{L}^*$
  • SP's optimal LR shifts $3 \times (0.003 \rightarrow 0.001)$; transferring the proxy optimal LR incurs $1.1 - 8.7\%$ penalty (largest on MHMH and MTMT, smallest on HHHH)
  • >Arch</td><td rowspan=
  • Smooth convergence from 5.45 (step 500) to 2.96; $\eta = 1.0$ transferred from proxy ($w = 256$, 65M params) without retuning
  • Naïve $\mu$P's optimal LR at the 2k-step horizon is $\eta = 1.5$ for both architectures, consistent with smaller widths (Table 19); at convergence (20k, WIKITEXT-103) the optimum shifts back to $\eta = 1.0$ (MHMH, Table 17)
  • The 2k sweep above uses one seed
  • Table 17 repeats the sweep with seeds 42, 123, and 456 at 20k steps (164M tokens) and at 60k steps (492M tokens) on WIKITEXT-103
  • validation loss at 20k and 60k steps
  • >η</td><td colspan=
  • $\eta^{*}$ is the best of $\{0.3, 0.5, 0.7, 1.0, 1.5, 2.0, 3.0\}$; $\Delta$ is the loss of $\eta = 1.0$ above it
  • The curves superimpose across widths for both MMHH and HHHH. At this 2k-step horizon the optimum is $\eta = 1.5$ at every width, and $\eta = 1.0$ costs at most $0.6\%$ (Table 19)
  • Gap = $(\mathcal{L}(\eta = 1) - \mathcal{L}^{*}) / \mathcal{L}^{*}$ in %, the relative penalty of using the proxy-transferred LR ($\eta = 1$) instead of the row's best-of-grid value
  • Naïve $\mu$P sweeps the high-LR basin ($\eta\in[0.5, 5.0]$), Table 20); SP sweeps the low-LR basin ($\eta\in[0.0003, 0.03]$), Table 21)
  • Every GLA weight is a real-valued, fan-in-scaled projection, so naïve $\mu$P applies to it as to the Transformer blocks
  • Bold marks the argmin of each row
  • For reproducibility, we record the block-type letters our implementation uses and the layer-pattern they produce
  • Both variants achieve clean LR transfer; absolute losses and the optimum LR are not comparable across the two horizons
  • Figure 5 shows a mid-training transient (steps 3k–14k for width 256, shorter for wider architectures) where $\eta=0.3$ briefly leads, which is self-correcting
  • Optimal LR is $\eta=1.0$ at all 9 (arch, width) conditions
  • >Arch</td><td colspan=
  • At $w=256$, $\eta=0.3$ briefly leads during mid-training (steps 3k–14k) before $\eta=1.0$ recovers
  • 2 archs × 2 widths × 3 LRs × 3 seeds)
  • $\eta=1.0$ (blue) is optimal in all 12 per-seed conditions
  • Gap: loss at w=256 optimal LR applied to w=1024 vs. best at w=1024
  • Batch size adjusted to keep tokens/step constant at 8192
  • Final loss at each (arch, $w$, seq_len)
  • ><tr><td>Arch</td><td>Width</td><td>seq=128</td><td>seq=256</td><td>seq=512</td><td>seq=1024</td></tr><tr><td rowspan=
  • 252 configs total: 6 patterns × 3 widths × 2 schemes × 7 LRs
  • Naïve $\mu$P: $0.0\%$ gap for all 6 configurations
  • This suggests more SSM capacity in late layers is architecturally beneficial
  • We sweep six fixed-depth ($d=16$) ratios spanning the full T–M spectrum: TT (0% M), M1T3 (MTTTMTTTMTTTMTTT, 25% M), MTMT (50% M), M3T1 (MMMTMMMTMMMTMMMT, 75% M), Jamba (MMMMMMTMMMMMMMT, 87.5% M), and MM (100% M)
  • At $w = 1024$, $\eta = 3.0$ diverges on each of them, so the optimum falls to $\eta = 1.0$; at smaller widths it is $\eta = 3.0$ (Jamba and MM at $w \leq 512$, M1T3, MTMT, and M3T1 at $w = 512$)
  • Penalty is the fractional loss increase incurred by transferring the proxy optimum $\eta = 1.0$ instead of using each row's per-cell optimum at $w = 1024$
  • We sweep grad_clip $\in \{\text{off}, 0.5, 1.0, 5.0\}$ on MHMH at $w \in \{256, 1024\}$ and $\eta \in \{0.5, 1.0, 1.5\}$ for 2k steps on WIKITEXT-103 (24 configs)
  • This subsection documents four boundary conditions where the transfer property weakens or does not apply
  • Adding component-specific scaling on top does not help at the widths and budgets we test
  • Under correct $\mu$P, lines should overlap; under SP, they diverge
  • Row 1: naïve μP, hidden activations vary with width (median block width-spread 2.78×, Table 31; violates textbook μP)
  • Same pattern as HHHH. Each row has its own y-axis
  • A value of 1 means width-invariant

Couldn't load all references. Reload the page to try again.