Elastic Spectral State Space Models for Train-Once Budgeted Inference

Dachuan Song, Junyu Yin, Zechen Hu, Xuan WangNeurIPS 2026

TL;DR

Deploying sequence models across everything from massive cloud clusters to tiny edge devices usually means training or distilling a separate model for every compute budget. Elastic Spectral State Space Models (ES-SSM) let you train one full-capacity model once, and then cleanly slice off physically smaller, ready-to-deploy models on demand—like dialing down the resolution of an image rather than hacking off parts of a canvas. It matches independently trained Transformers and SSMs across scale while drastically cutting multi-budget training time.

What Problem Does This Paper Address?

Modern AI has a Goldilocks problem: a single application often needs to run on beefy cloud GPUs, mid-tier laptops, and battery-sipping edge hardware. Usually, we solve this by training a whole family of models from scratch or distilling a massive teacher into smaller students—paying a steep training tax for every target size.

"Elastic" or nested architectures (like MatFormer or MatMamba) try to bypass this by training one supernet and slicing architectural dimensions like layer depth, hidden width, or feed-forward network (FFN) size. However, hacking away structural width or depth only indirectly maps to how the model actually mixes tokens across time, often leading to steep performance cliffs at tiny budgets unless carefully calibrated.

The authors ask a fresh question: instead of shrinking the building blocks of the network, what if we directly dial down the mathematical resolution of the sequence-mixing operator itself?

Methods

ES-SSM builds on State Space Models (SSMs)—linear recurrent alternatives to Attention that view sequence processing as a dynamical system, expressible as a long causal convolution. Specifically, it uses Hankel spectral filtering, a standard mathematical technique that approximates any long-range SSM convolution kernel using a fixed, ordered set of basis filters ("spectral channels") derived from a Hankel matrix.

In theory, keeping just the first $K$ spectral channels gives a clean, lower-resolution approximation of the sequence operator. In practice, if you train a model with all $\overline{K}$ channels active, it spreads vital information everywhere and relies on cancellations between early and late channels—meaning naive truncation breaks the model. ES-SSM fixes this with two novel, coupled mechanisms:

ES-SSM architecture overview showing pre-norm residual blocks and gated prefix channel banks.
  1. Input-Adaptive Channel-Wise Gates: Alongside learned channel projections, a lightweight tokenwise MLP generates sigmoid gates for each spectral channel (scaled by $1/\sqrt{K}$ to keep variance stable across budgets). This lets the model dynamically suppress noisy channels and selectively fire up useful refinements.
  2. Budget Dropout: During training, each optimization step randomly samples a prefix budget $K_{\text{train}} \le \overline{K}$ on a log-scale (putting extra pressure on tiny budgets where every channel counts), anchored by a full-budget step every 8 updates. Only the first $K_{\text{train}}$ channels compute outputs and receive gradients.

At deployment, exporting a compact model requires zero retraining or search: you just slice off the tail channels $k > K$ and their associated weights.

Datasets

No new datasets are introduced; the authors evaluate across four existing benchmarks spanning distinct modalities:

  • SlimPajama-627B: Byte-level language modeling (30B tokens for the main 1.3B-parameter run; 10B tokens for a 330M sanity check).
  • Long Range Arena (LRA): Six long-context classification tasks (ListOps, Text, Retrieval, sCIFAR, Pathfinder, and Path-X).
  • Speech Commands V2: Audio keyword classification.
  • D4RL MuJoCo: Offline reinforcement learning across 9 continuous control datasets.

Key Insights and Ideas

  • Elasticity as Operator Resolution: Treating model compression like truncating a Fourier series gives elasticity a clean physical meaning. Early Hankel channels learn to carry standalone, coarse-grained predictive power, while higher-index channels act strictly as optional refinements.
  • Why Naive Spectral Slicing Fails (and How Budget Dropout Saves It): Eigenvalue ordering tells you how good a mathematical basis is, not where gradient descent will hide task-critical features. Budget dropout forces gradient allocation into a strict hierarchy: channel 1 is trained on nearly every step, while channel 32 only updates occasionally.
Figure 2: Budget dropout sampler and prefix-truncation behavior. Left: ES-SSM samples a log-scale target Ktarget and snaps it to the nearest element of the runtime-budget set K, placing more training pressure on small-K prefixes while preserving coverage of larger budgets. Right: budget dropout trains the exported prefixes directly, yielding stable validation bits-per-byte (BPB) across runtime budgets; without budget dropout, a model trained only at K degrades sharply under direct prefix truncation.
  • Faster Training via Elasticity: Because smaller prefixes execute fewer operations during forward and backward passes, budget dropout isn't just a deployment trick—it actually makes training cheaper than standard fixed-capacity training.

Key Results

  • Language Modeling at Scale: One 1.3B ES-SSM ($\overline{K}=32$) exports ten standalone models down to ~335M parameters ($K=2$). On SlimPajama, test bits-per-byte (BPB, lower is better) scales smoothly from 1.41 ($K=2$) to 0.95–0.96 ($K=24, 32$), matching independently trained Transformer++ (0.94) and GLA (0.97) oracles while avoiding the severe low-budget collapse of MatFormer (which degrades to 5.35 BPB at $K=2$).
Figure 3: SlimPajama main-table visualization for the 1.3B-family, 30B-token scaling experiment. [A] Test BPB (lower is better) vs. runtime budget K (log scale). [B] Test BPB vs. inference throughput (kt/s, log scale; sequence length L=2048, batch 1, single B200 GPU). The two panels share the same legend on the right. Solid lines denote methods with elastic capabilities, whereas dashed lines denote non-elastic baselines trained independently at each shown capacity. We note that these dashed non-elastic baselines require significantly more training time and therefore, should not be used for direct comparison with our method. Instead, they are presented as oracle results for reference. Markers are the data points in Appendix G.1, Table 11; for ES-SSM, the ten K values instantiate exported parameter budgets spanning roughly 330 M to around 1.3 B. The light-pink band highlights the high-BPB degradation region (Test BPB > 1.5). Inline values annotate the headline operating points. For readability, both panels use a piecewise-linear y-axis that stretches the competitive band [0.90, 1.10] and compresses the collapse range. Per-family numerical results are reported in Appendix G.1.
  • Training Efficiency: Compared to always-full training, budget dropout hits matched validation quality using 17.3% more steps, but 30.2% less compute and 39.4% less wall-clock time.
  • Cross-Domain Wins: On D4RL, ES-SSM beats independently trained Transformers by +4.97 average normalized return at $K=32$ while cutting total 5-budget training time from 107.84 hours to 23.99 hours (a 4.5$\times$ speedup). On Speech Commands V2, it lands within 0.27% of Conformer, and on LRA Path-X, it retains 98% of full-budget accuracy using just 12 of 32 channels.

Limitations and Future Work

Detailed limitations are deferred to Appendix A (not included in the main text). However, in their conclusion, the authors point toward three clear next steps: scaling ES-SSM to even larger foundation-model regimes, combining operator-level spectral truncation with traditional architectural nesting (like width/FFN slicing) for hybrid elastic architectures, and further optimizing the low-level hardware efficiency of the spectral convolution branch (as seen in Figure 3B, where raw throughput lags behind heavily optimized Transformer/SSM kernels at equivalent parameter counts).

Summary updated

Abstract

Modern sequence models are typically trained at a fixed computational capacity, while real-world applications require deployment across platforms with different resource constraints. Existing approaches either train or distill separate compact models for selected budgets, or use elastic architectures that shrink dimensions such as width, depth, Feed-Forward Network (FFN) size, or SSM state dimension. In this paper, we propose Elastic Spectral State Space Models (ES-SSM), a train-once, export-many sequence modeling framework that gains elasticity through spectral approximation of the SSM sequence operator. ES-SSM builds on Hankel spectral filtering for state space models, where long-range token mixing is represented through fixed Hankel spectral channels that define an operator-level approximation resolution. To make this spectral elasticity reliably deployable, ES-SSM combines input-adaptive channel-wise gates with budget dropout, training the same spectral prefixes that are used by compact models at inference time. This encourages low-index channels to become predictive on their own, while higher-index channels provide refinements for larger budgets. We evaluate ES-SSM across byte-level language modeling, Long Range Arena, Speech Commands V2, and offline reinforcement learning benchmarks. Across these settings, a single trained ES-SSM can be truncated to competitive compact models compared with modern Transformer and SSM baselines at similar parameter scales. Furthermore, by testing under various runtime budgets, we observe smooth and stable quality-cost curves over a wide range of truncation levels.
BibTeX
@inproceedings{song2026elastic,
  author = {Dachuan Song and Junyu Yin and Zechen Hu and Xuan Wang},
  title = {{Elastic Spectral State Space Models for Train-Once Budgeted Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Asn9eGOVdP},
}
Figure