Research
ShellElastic: Scalable Elastic Pretraining with Simultaneous Maximal Updates and Hyperparameter Transfer
Overview Research area: Machine learning — specifically large-scale (foundation model) pretraining, elastic / slimmable neural networks, and hyperparameter transfer theory (maximal update parameteriza

- arXiv
- 2610.15124
- Published
- 2026-10-10
- Authors
- Can Jin, Yan Kang, Yifan Gong, Chongjian Ge, Mingze Xu, Yuanjun Xiong, Dimitris N. Metaxas, Hongwu Peng
AI summary
Overview
Research area: Machine learning — specifically large-scale (foundation model) pretraining, elastic / slimmable neural networks, and hyperparameter transfer theory (maximal update parameterization, μP).
Technical level: Advanced. The paper combines an architectural contribution with parameterization-theory proofs (scaling exponents, Θ-notation guarantees), and assumes familiarity with transformers, μP, and AdamW.
Scope (one sentence): The paper introduces ShellElastic, an elastic transformer whose single full-width forward pass contains the exact hidden states of every nested sub-network, plus μ-Elastic, a parameterization that keeps all sub-networks maximally updated at once and lets hyperparameters tuned on a small non-elastic proxy transfer to elastic families and to larger supernets.
What This Paper Is About
Foundation models need to run at several inference budgets, and elastic training tries to serve all of them from one weight-shared supernet instead of training a separate model per budget. Existing elastic recipes suffer from three problems: per-step workloads that change with the sampled sub-network (which hampers distributed scaling), hyperparameters that do not transfer across model sizes, and no guarantee that all sub-networks are maximally updated at the same time. The paper's goal is an architecture and a parameterization that remove all three obstacles at once, so that one elastic pretraining run costs about as much per step as training the widest sub-network alone while still producing well-trained sub-networks at every supported width.
Key Contributions
-
A scalable elastic architecture (ShellElastic). Hidden dimensions are split into a dense core followed by ordered shells (each a multiple of a base width
g), and every hidden matrix is block lower triangular, so a shell reads the core, earlier shells and itself but never a later shell. Proposition 1 proves that one full-width forward pass contains the exact hidden states of every sub-network as prefixes, which gives every training step a fixed computation graph and workload. -
A parameterization for elastic models (μ-Elastic). It extends μP with two factors: a μ-Transfer factor
m = g/d₀(from a non-elastic proxy of widthd₀to base widthg) and a μ-Internal factors, combined asq(s) = m·s = sg/d₀. Initialization, learning rate, weight decay and forward multipliers are set from each weight's active input width, with special handling for the FFN down projection (√einitialization,1/emultiplier) and per-sub-network readouts. -
Theoretical guarantees. Theorem 1 (μ-Internal) shows that under the proposed rule every group's pre-activations are Θ(1) at initialization and move by Θ(η₀) after one AdamW step, in every sub-network containing that group, with constants independent of
s,t,Mandm. Proposition 2 shows a shared rule across groups cannot do this in general (groups differ by Θ(√(s′/s)) in pre-activation size and Θ(s′/s) in update size). Corollary 1 (μ-Transfer) extends the guarantee to widening the supernet or adding shells, and the rules are carried over to MatFormer, fully elastic models and StairFormer. -
Empirical validation and ablations. Comparisons against MatFormer, a fully elastic model, StairFormer, standalone models and sampled standalone models at three scales, plus an architecture search at equal parameters and width count and ablations of sub-network selection, loss weights, normalization scope, readout design, in-place distillation, sub-network ensembles and stage-residual gradient scaling.
Main Findings
-
ShellElastic beats other one-run elastic methods at every scale. At 119M–285M parameters the mean validation loss is 3.309 versus 3.347 for MatFormer and 3.336 for the fully elastic model, with mean 5-shot accuracy of 36.5% versus 35.6% and 35.6%. At 375M–906M the mean loss is 2.978 versus 2.996 and 2.983 (accuracy 41.9% versus 40.6% and 41.4%). At 675M–1.69B it is 2.845 versus 2.862 and 2.870 (accuracy 44.0% versus 43.4% and 43.6%).
-
Sizeable margins over the best elastic baseline. ShellElastic's mean validation loss is 0.028, 0.005 and 0.018 nats below the best baseline at the three scales, and it is best or tied-best at 12 of the 15 tiers in validation loss and 14 of the 15 tiers in 5-shot accuracy.
-
The advantage grows with model size. The per-tier lead goes from at most 0.016 nats at the Low tier to 0.023–0.050 nats at Max; the authors attribute this to Max-only parameters in the elastic baselines receiving a gradient on only about one step in five, whereas every ShellElastic parameter receives one at every step.
-
It approaches separately trained models with a fifth of the steps. Against the Standalone baseline (five separate models taking 5× the steps), ShellElastic is within 0.039, 0.045 and 0.014 nats in mean validation loss and within 0.8 points in mean 5-shot accuracy.
-
Weight sharing helps at a fixed step budget. The fully elastic model beats its unshared counterpart, sampled standalone, by 0.11 to 0.25 nats on average.
-
Hyperparameters transfer from a small proxy. The proxy's optimum (η₀ = 2×10⁻³, σ₀ = 3.3×10⁻³) transfers to all three elastic models at both levels of μ-Transfer; the base values are within 0.003 nats of the best point of every μ-Elastic sweep and within 0.005 nats for every sub-network. At 119M–285M both values are optimal or adjacent to the optimum; at 375M–906M, where
m,Mor both grow and batch size and steps double, the same holds and σ₀ becomes exact for MatFormer too. -
Standard parameterization does not transfer and trails. Under SP the optimum departs from the proxy's and shifts with scale, and at the base values SP is 0.03–0.11 nats worse. Across the models in Table 3, adding μ-Elastic lowers mean validation loss for MatFormer, the fully elastic model and ShellElastic at both reported scales.
-
Weight decay transfers too. Under μ-Elastic the mean loss of ShellElastic is flat (within 0.003 nats) over λ₀ from 10⁻³ to 10⁻¹, the same range as the proxy's, whereas SP is higher at every swept value.
-
Cost structure. Joint training costs
C_trunk(M) + Σ C_out(s)versusΣ [C_trunk(s) + C_out(s)]for separate training, so the joint cost stays comparable to training the widest sub-network alone, and memory matches the widest model because all readout gradients combine in one trunk backward pass. Training all sub-networks at every step works best (Appendix J), and inference extracts a standalone transformer of widthsgthat reproduces its supernet logits exactly. -
Not covered in the provided text: the detailed StairFormer comparison, the full ablation results, and per-task numbers (Appendix G) are truncated in the supplied content; the paper states these exist but the truncated text does not report their values.
Methodology in Plain English
The authors reorganize a transformer's hidden dimensions into a "core" block and a sequence of "shells." Because each shell only ever reads the core, earlier shells, and itself (never a later shell), the computation for a narrow model is literally the first part of the computation for a wide model. Normalization is performed within each group rather than over cumulative prefixes, attention heads are aligned to group boundaries, and each supported width gets its own readout head. This means a single wide forward pass already computes every narrow model's exact internal states, so you can train all widths simultaneously with only one trunk pass.
They then work out how to scale initialization, learning rate, weight decay, and output multipliers so that every width in the shared network gets "maximal" updates — neither vanishing nor exploding — despite the shared weights. The key idea is that a block of weights always sees the same number of input coordinates in every sub-network that contains it, so a single scaling based on that fan-in works for all of them at once. They prove this, prove that a single shared rule cannot achieve it for all groups, and prove the rule survives widening the model or adding shells — which is what makes hyperparameters tuned on a small, non-elastic model reusable.
Experimentally they pretrain 32-layer gated-attention SwiGLU transformers on DCLM-Baseline with the GPT-NeoX-20B tokenizer at sequence length 2,048, using 25,000 steps of 128 sequences (6.55B tokens) at the smallest scale, and 50,000 and 100,000 steps of 256 sequences at the two larger scales. They monitor validation loss on held-out C4, probe 5-shot accuracy on ARC-Easy, PIQA and HellaSwag during training, and evaluate final sub-networks on 13 datasets. Baselines are matched to within 3% parameter count, and main results at the two smaller scales are averaged over three runs with the same seed (the largest scale is one run due to compute limits).
Why This Matters
For research, the paper reframes elastic training from a sampling heuristic into something with a scaling theory: it gives a proof-level account of when all nested sub-networks are simultaneously well-scaled and shows that hyperparameter transfer (previously established only for independently trained models) survives parameter sharing and widening. This matters for anyone who wants to study width-scaling laws without paying for a separate sweep at every width.
Real-world applications:
- On-device and edge deployment, where a phone, laptop or browser needs a model sized to its memory and latency budget, drawn from one shared checkpoint.
- Inference-time budget switching, where the same model serves a fast tier for autocomplete and a larger tier for harder requests without maintaining separate model families.
- Serving many customer tiers from one pretraining run, letting a provider offer Small/Medium/Large endpoints whose weights are literally nested rather than independently trained.
- Cost-capped research and ablation studies, where a single run yields a whole family of models for downstream fine-tuning experiments.
Industry relevance: pretraining is the dominant cost in the foundation-model pipeline, and the paper's claim that one run approaches five separately trained models with a fifth of the optimizer steps directly targets that cost. The fixed per-step workload is also the property large-scale distributed training infrastructure needs, since variable graphs complicate activation memory, recomputation and scheduling under parameter sharding.
Future Directions
- Depth and other elastic axes. The paper treats width as the only elastic axis because all sub-networks share depth
L, minibatches and step count; extending the guarantees to simultaneously elastic depth would require combining the width rules with existing depth-scaling rules. - Extending the evaluation to the truncated sections. The StairFormer comparison, the full 13-dataset per-task results and the ablations (sub-network selection, loss weights, normalization scope, readout design, in-place distillation, ensembles, stage-residual gradient scaling) are described but not visible in the supplied text, so their conclusions remain to be examined.
- Relaxing the boundary constraint. Sub-networks can only be extracted at the chosen supported boundaries in
S, and cuts within a group change the retained outputs; finding ways to support arbitrary widths, or to chooseSautomatically, is an open design question. - Scaling the largest tested regime. The 675M–1.69B scale was limited to a single run by compute, so multi-seed confirmation at that scale, and scaling beyond it, is the natural next test of whether the reported lead keeps growing with size.
Target Audience
Researchers and engineers working on foundation-model pretraining, model compression and elastic/slimmable networks; practitioners who maintain multiple model sizes and want one training run to serve them all; and theoretically inclined readers interested in μP-style hyperparameter transfer under parameter sharing. Readers should be comfortable with transformer internals, AdamW, and the vocabulary of asymptotic scaling arguments; the architectural idea is accessible, but the guarantees are not beginner material.
Authors’ abstract
Foundation models need to support diverse inference budgets, yet training a separate model for each budget duplicates pretraining effort. Elastic models train several nested sub-networks inside one weight-shared supernet, but existing recipes face three obstacles: variable per-step workloads that hinder distributed scaling, limited hyperparameter (HP) transfer across model sizes, and no guarantee that all sub-networks are maximally updated at once. We present \Ours, an elastic transformer that organizes hidden dimensions into a dense core and successive shells, so that every hidden matrix is block lower triangular. One full-width forward pass contains every sub-network's exact hidden states as prefixes, so joint training keeps a fixed computation graph and costs about as much per step as training the widest sub-network alone. We further introduce \muE, an extension of maximal update parameterization (\mup) to \Ours and other elastic architectures. Its scaling rules provably keep all sub-networks of a supernet maximally updated simultaneously (\muI), and keep doing so when the supernet is widened or given more shells; sweeps confirm that HPs tuned on a small non-elastic proxy stay near-optimal for elastic families and larger supernets (\mbox{\muT}). A single \Ours run produces sub-networks that outperform MatFormer and fully elastic baselines at matched parameter counts, and approach separately trained models that together take several times the steps.