Elastic Selective Spectral Hybrids for Train-Once, Export-Many Budgeted Inference
Organizations: George Mason University · George Washington University
Abstract
Deploying a language model under different computing and latency budgets calls for compact models with different quality-cost trade-offs. Towards this end, elastic spectral state space models provide ordered and temporally decomposed channels that can be truncated, but they are associated with linear time-invariant filters that cannot selectively preserve relevant past information or forget irrelevant information as the context evolves. To address this, we introduce the Elastic Selective Spectral Hybrid (ESSH), which realizes each Hankel spectral channel as an independent recurrent unit using fitted damped rotation modes. It also features an input-dependent decay and write/read gates that make temporal retention and state update input-dependent while preserving channel-wise truncation and a structured recurrence for efficient execution. ESSH combines these selective spectral mixers with sliding-window attention and jointly trains multiple capacities by reducing spectral-channel count and feed-forward width at different rates through a two-rate capacity map with full-model distillation. The resulting models support chunked parallel training and fused recurrent decoding while avoiding computation for discarded channels. At full capacity, ESSH achieves language-modeling quality comparable to similarly sized independently trained models, while smaller exports exhibit a smooth quality-cost trade-off. We validate the effectiveness of the proposed framework using language understanding, retrieval, cross-domain text, and DNA experiments, by assessing quality retention and the trade-off against independently trained and elastic baselines. At the 1.53B model configuration, fused batch-one decoding takes 1.37 ms per token on a B300, providing a 2.14-2.80x speedup over the tested Mamba-2 and Mamba-3 implementations and 3.03x over Transformer++ at matched parameter counts.
Figures & tables
| (a) Model | Params (B) | PPL | LAMB | HellaS | PIQA | ARC-e | ARC-c | Wino | OBQA | Mean |
|---|---|---|---|---|---|---|---|---|---|---|
| ESSH | 1.53 | 10.11 | 46.8 | 60.6 | 72.9 | 73.7 | 40.7 | 58.3 | 32.2 | 55.0 |
| Transformer++ † | 10.51 | 50.3 | 60.6 | 73.8 | 74.0 | 40.4 | 58.7 | 29.6 | 55.4 | |
| Gated DeltaNet † | 10.45 | 49.2 | 61.3 | 74.3 | 75.3 | 41.2 | 58.0 | 31.6 | 55.8 | |
| Mamba-2 † | 10.47 | 47.8 | 61.4 | 73.6 | 75.3 | 41.8 | 57.5 | 32.6 | 55.7 | |
| Mamba-3 SISO † | 1.49 | 10.35 | 49.4 | 61.9 | 73.6 | 75.9 | 42.7 | 59.4 | 32.0 | 56.4 |
| Mamba-3 MIMO † | 1.50 | 10.24 | 51.7 | 62.3 | 75.3 | 76.5 | 44.5 | 60.6 | 32.6 | 57.6 |
Appendix figures & tables68 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Meaning |
|---|---|
| , , | sequence length, target and source positions, and lag |
| , , | input, latent state, and output of a generic state-space model |
| state transition, input, readout, and direct input–output matrices | |
| , | LTI state dimension and eigenvalue index |
| input and output dimensions of the generic SSM | |
| , | rank- Hankel projection and spectral residue matrix |
| Symbol | Meaning |
|---|---|
| mixer input after RMSNorm | |
| , | residual width and full FFN hidden width |
| , | full spectral-channel count and channel count retained by tier , with in the default recipe |
| , , | modes per channel, mode index, and channel value width; default language models use and |
| mode state in | |
| , | projected channel value before and after the channel-local normalization blend |
| Component | Parameters | 1.5B ( , ) | 370M ( , ) |
|---|---|---|---|
| value in / out projections | 8,388,608 | 1,605,632 | |
| write, read gates | 1,049,088 | 459,264 | |
| clock | 524,544 | 229,632 | |
| spectral tables | 1,024 | 1,024 | |
| zero-lag coefficient , value blend | 288 | 288 | |
| SwiGLU feed-forward ( Shazeer, 2020 ) | 34,603,008 | 12,386,304 |
| Block | projection MACs + scan cost | decode cost per token | persistent state |
|---|---|---|---|
| Spectral mixer | |||
| Window attention | |||
| SwiGLU feed-forward | |||
| Mamba-2 block | |||
| Full attention |
| tier | , 1.5B | , 370M | params, 1.5B (B) | params, 370M (M) | modes | |
|---|---|---|---|---|---|---|
| 8 | 576 | 448 | 0.474 | 92.1 | 64 | |
| 11 | 1024 | 832 | 0.575 | 118.9 | 88 | |
| 15 | 1664 | 1344 | 0.716 | 154.7 | 120 | |
| 18 | 2176 | 1792 | 0.828 | 185.3 | 144 | |
| 20 | 2688 | 2240 | 0.931 | 214.5 | 160 | |
| 23 | 3392 | 2752 | 1.076 | 248.8 | 184 |
| 370M | 1.5B | |
|---|---|---|
| blocks / width / feed-forward width | 22 / 896 / 4608 | 28 / 2048 / 5632 |
| channels / modes / value width | 32 / 8 / 28 | 32 / 8 / 64 |
| sliding-window layers (zero-based; window 2048, RoPE ( Su et al., 2024 ) , head dim. 64) | blocks 12, 17, 21 | blocks 15, 22, 27 |
| tokenizer / embedding | GPT-2, tied | Llama-3.1, tied |
| parameters at full capacity | 370.9M | 1.531B |
| pretraining tokens | 7.4B main / 3.7B ablations | 100B |
| Model | Used in | Matching rule |
|---|---|---|
| Transformer++, Gated DeltaNet, Mamba-2, Mamba-3 (SISO, MIMO), 1.5B, published † | Section 5.1 , Appendix F | published source configurations and source-evaluation metrics; same corpus, tokenizer, context, and token budget where reported |
| Transformer++, own, 370M | Section 5.2 , Appendices F , J | same depth, data, token budget, and schedule; parameter count within |
| Gated DeltaNet + SWA, own, 370M | same | parameter count within ; its own depth, width, and SWA configuration |
| Mamba-3 + SWA ⋆ , own, 370M | same | dedicated full-capacity training; parameter count within , with its own backbone configuration |
| MatFormer, own, 370M | Section 5.2 , Appendix N | Transformer++ backbone with nested FFN widths and four sampled training capacities |
| MatMamba, own, 370M | same | Mamba-2 backbone with head-prefix nesting and four sampled capacities |
| Model | Params (M) | Layers | Width | FFN | Attention blocks | Pretrain KL |
|---|---|---|---|---|---|---|
| ESSH | 370.9 | 22 | 896 | 4608 | 12, 17, 21 | 0.5 |
| Mamba-3 + SWA | 377.1 | 24 | 1024 | 2304 | 10, 22 | – |
| Gated DeltaNet + SWA | 378.1 | 24 | 1024 | 2432 | 10, 22 | – |
| Transformer++ | 365.6 | 22 | 896 | 4224 | All 22 | – |
| MatFormer | 365.6 | 22 | 896 | 4224 | All 22 | 0 |
| MatMamba | 369.9 | 48 | 1024 | – | None | 0 |
| Model / tier | Params (M) | PPL | NLL | 7-task | Full key | ms/token | |
|---|---|---|---|---|---|---|---|
| ESSH, | 92.1 | 0.248 | 23.61 | 0.473 | 0.376 | 0.241 | 0.91 |
| ESSH, | 118.9 | 0.321 | 20.04 | 0.309 | 0.388 | 0.342 | 0.94 |
| ESSH, | 154.7 | 0.417 | 18.45 | 0.227 | 0.402 | 0.355 | 1.01 |
| ESSH, | 185.3 | 0.500 | 17.68 | 0.184 | 0.405 | 0.370 | 1.04 |
| ESSH, | 214.5 | 0.578 | 16.98 | 0.144 | 0.413 | 0.366 | 1.10 |
| ESSH, | 248.8 | 0.671 | 16.25 | 0.100 | 0.417 | 0.362 | 1.11 |
| PPL | 7-task | ||||
|---|---|---|---|---|---|
| Tier | M params | Shared | Independent | Shared | Independent |
| 92.1 | 23.61 | 19.79 | 0.376 | 0.385 | |
| 185.3 | 17.68 | 16.25 | 0.405 | 0.412 | |
| 274.3 | 15.91 | 15.10 | 0.420 | 0.424 | |
| 370.9 | 14.71 | 14.44 | 0.428 | 0.425 | |
| Tier | Params (B) | FW-Edu PPL | LAMB PPL | LAMB acc. | 7-task |
|---|---|---|---|---|---|
| ESSH | |||||
| 1.53 | 10.11 | 12.96 | 46.8 | 55.0 | |
| 1.17 | 10.97 | 15.39 | 44.9 | 53.0 | |
| 0.83 | 12.26 | 18.27 | 42.1 | 50.7 | |
| 0.47 | 16.49 | 36.87 | 34.0 | 43.8 | |
| Model / tier | Params (B) | LAMB | HellaS | PIQA | ARC-e | ARC-c | Wino | OBQA |
|---|---|---|---|---|---|---|---|---|
| ESSH, | 1.53 | 46.8 | 60.6 | 72.9 | 73.7 | 40.7 | 58.3 | 32.2 |
| ESSH, | 1.17 | 44.9 | 56.6 | 71.9 | 70.6 | 38.1 | 58.4 | 30.6 |
| ESSH, | 0.83 | 42.1 | 51.9 | 69.4 | 67.5 | 35.1 | 58.6 | 30.4 |
| ESSH, | 0.47 | 34.0 | 39.6 | 66.5 | 59.8 | 29.5 | 52.7 | 24.6 |
| tier | params (B) | PPL | 7-task | Full key | prefill ktok/s | decode ms/token | memory MB |
|---|---|---|---|---|---|---|---|
| 0.474 | 16.49 | 0.438 | 0.370 | 75.0 | 1.13 | 51.15 | |
| 0.575 | 14.08 | 0.462 | 0.384 | 79.8 | 1.12 | 51.46 | |
| 0.716 | 12.87 | 0.486 | 0.367 | 77.9 | 1.13 | 51.87 | |
| 0.828 | 12.26 | 0.507 | 0.379 | 81.4 | 1.20 | 52.17 | |
| 0.931 | 11.78 | 0.515 | 0.371 | 74.6 | 1.18 | 52.38 | |
| 1.076 | 11.23 | 0.526 | 0.323 | 76.1 | 1.28 | 52.69 |
| accuracy | |||||||||
| Model | params (M) | LAMB acc | HellaS | PIQA | ARC-e | ARC-c | Wino | OBQA | mean |
| ESSH, | 92.1 | 0.230 | 0.308 | 0.626 | 0.508 | 0.242 | 0.535 | 0.180 | 0.376 |
| ESSH, | 118.9 | 0.253 | 0.322 | 0.644 | 0.540 | 0.259 | 0.515 | 0.186 | 0.388 |
| ESSH, | 154.7 | 0.269 | 0.344 | 0.656 | 0.561 | 0.275 | 0.516 | 0.190 | 0.402 |
| ESSH, | 185.3 | 0.275 | 0.355 | 0.660 | 0.555 | 0.275 | 0.512 | 0.200 | 0.405 |
| ESSH, | 214.5 | 0.293 | 0.365 | 0.653 | 0.574 | 0.282 | 0.513 | 0.210 | 0.413 |
| Model / tier | Params (B) | BoolQ | SIQA | SciQ | COPA | RACE | LogiQA | Mean |
|---|---|---|---|---|---|---|---|---|
| ESSH, | 1.531 | 0.613 | 0.419 | 0.911 | 0.790 | 0.344 | 0.214 | 0.549 |
| ESSH, | 1.168 | 0.594 | 0.422 | 0.904 | 0.810 | 0.344 | 0.209 | 0.547 |
| ESSH, | 0.828 | 0.596 | 0.400 | 0.890 | 0.740 | 0.344 | 0.198 | 0.528 |
| ESSH, | 0.474 | 0.617 | 0.395 | 0.870 | 0.710 | 0.297 | 0.220 | 0.518 |
| Model | tier | params (M) | margin win | first token | full key | 95% half-width |
|---|---|---|---|---|---|---|
| ESSH | 1531.1 | 0.826 | 0.332 | 0.330 | 0.039 | |
| ESSH | 1168.3 | 0.831 | 0.341 | 0.339 | 0.039 | |
| ESSH | 827.6 | 0.857 | 0.380 | 0.379 | 0.040 | |
| ESSH | 474.5 | 0.845 | 0.372 | 0.370 | 0.038 | |
| ESSH 370M | 370.9 | 0.826 | 0.389 | 0.389 | 0.036 | |
| ESSH 370M | 274.3 | 0.824 | 0.366 | 0.366 | 0.034 |
| Depth at 2048 tokens | Sequence length (tokens) | |||||||
|---|---|---|---|---|---|---|---|---|
| Tier | 0.1 | 0.3 | 0.5 | 0.7 | 0.9 | 512 | 1024 | 2048 |
| ESSH | ||||||||
| 0.004 | 0.242 | 0.355 | 0.496 | 0.754 | 0.742 | 0.582 | 0.355 | |
| 0.051 | 0.270 | 0.352 | 0.500 | 0.723 | 0.711 | 0.582 | 0.352 | |
| 0.027 | 0.246 | 0.324 | 0.457 | 0.641 | 0.668 | 0.547 | 0.324 | |
| 0.035 | 0.227 | 0.309 | 0.445 | 0.633 | 0.664 | 0.512 | 0.309 | |
| validation PPL by window length | |||||
| Model | params (M) | 2048 | 4096 | 8192 | 16384 |
| ESSH, | 370.9 | 14.91 | 14.97 | 14.76 | 15.05 |
| ESSH, | 274.3 | 16.03 | 16.13 | 15.92 | 16.23 |
| ESSH, | 185.3 | 17.76 | 17.83 | 17.62 | 17.95 |
| ESSH, | 92.1 | 23.37 | 23.42 | 23.22 | 23.70 |
| Mamba-3 + SWA 370M ⋆ (reference hybrid) | 377.1 | 14.34 | 14.41 | 14.19 | 14.46 |
| contains-match accuracy | ||||||||
| Model | Params (M) | SWDE | FDA | SQuAD | TriviaQA | NQ | DROP | mean |
| 1.5B ESSH | ||||||||
| ESSH, | 1531.1 | 0.491 | 0.358 | 0.446 | 0.629 | 0.189 | 0.251 | 0.394 |
| ESSH, | 1168.3 | 0.452 | 0.282 | 0.446 | 0.618 | 0.173 | 0.251 | 0.371 |
| ESSH, | 827.6 | 0.411 | 0.297 | 0.453 | 0.578 | 0.151 | 0.259 | 0.358 |
| ESSH, | 474.5 | 0.365 | 0.216 | 0.394 | 0.515 | 0.111 | 0.208 | 0.302 |
| Sequence length , scaled accuracy | ||||||
|---|---|---|---|---|---|---|
| Model | Capacity | Params (M) | 8 pairs | 16 pairs | 32 pairs | 64 pairs |
| ESSH | 1.81 | 0.999 | 0.998 | 0.999 | 1.000 | |
| ESSH | 1.43 | 0.998 | 0.998 | 0.998 | 1.000 | |
| ESSH | 1.24 | 0.998 | 0.999 | 0.999 | 1.000 | |
| ESSH (mixer only) | 2.04 | 0.124 | 0.063 | 0.024 | 0.004 | |
| ESSH (mixer only) | 1.53 | 0.128 | 0.062 | 0.023 | 0.003 | |
| Model / tier | |||
|---|---|---|---|
| 32 key–value pairs | |||
| ESSH | 0.937 [0.818, 0.999] | 0.668 [0.019, 0.994] | 0.917 [0.811, 0.988] |
| ESSH | 0.846 [0.549, 0.998] | 0.664 [0.014, 0.993] | 0.854 [0.659, 0.980] |
| ESSH | 0.792 [0.632, 0.999] | 0.661 [0.012, 0.991] | 0.867 [0.728, 0.966] |
| Mixer only | 0.024 [0.022, 0.025] | 0.005 [0.002, 0.009] | 0.005 [0.002, 0.010] |
| Mixer only | 0.022 [0.017, 0.024] | 0.002 [0.002, 0.003] | 0.003 [0.002, 0.004] |
| Model | Capacity | Params (M) | |||
|---|---|---|---|---|---|
| Hybrid | 0.765 | 1.000 | 1.000 | 1.000 | |
| Hybrid | 0.389 | 1.000 | 1.000 | 0.997 | |
| Hybrid | 0.198 | 0.999 | 0.996 | 0.974 | |
| Mixer only | 0.996 | 0.892 | 0.428 | 0.120 | |
| Mixer only | 0.491 | 0.088 | 0.111 | 0.040 | |
| Mixer only | 0.207 | 0.147 | 0.105 | 0.044 |
| Model | Params (M) | PG-19 | arXiv | GitHub | CC-News | Proof-Pile | WikiText |
|---|---|---|---|---|---|---|---|
| 1.5B ESSH; Llama-3.1 tokenizer | |||||||
| ESSH, | 1531.1 | 27.59 | 28.35 | 43.65 | 13.89 | 36.00 | 13.57 |
| ESSH, | 1168.3 | 30.11 | 31.16 | 50.63 | 14.93 | 39.21 | 14.88 |
| ESSH, | 827.6 | 33.30 | 34.36 | 58.86 | 16.70 | 43.92 | 16.71 |
| ESSH, | 474.5 | 48.40 | 48.61 | 97.24 | 22.79 | 63.94 | 23.35 |
| 370M models; GPT-2 tokenizer | |||||||
| Params (M) | 0.135 | 0.240 | 0.362 | 0.534 |
|---|---|---|---|---|
| Bits per base | 1.775 | 1.732 | 1.729 | 1.662 |
| Model / tier | Params (M) | Mouse enh. | Coding | Human/ worm | Cohn | Ensembl enh. | Regul. | OCR | Non- TATA |
|---|---|---|---|---|---|---|---|---|---|
| 0.135 | 0.759 | 0.905 | 0.962 | 0.729 | 0.834 | 0.879 | 0.765 | 0.887 | |
| 0.240 | 0.774 | 0.906 | 0.960 | 0.721 | 0.836 | 0.885 | 0.761 | 0.913 | |
| 0.362 | 0.775 | 0.906 | 0.960 | 0.725 | 0.846 | 0.884 | 0.766 | 0.925 | |
| 0.534 | 0.760 | 0.923 | 0.961 | 0.726 | 0.869 | 0.879 | 0.773 | 0.942 | |
| No pretraining | 0.534 | 0.716 | 0.871 | 0.949 | 0.682 | 0.773 | 0.745 | 0.683 | 0.808 |
| CNN † | 0.264 | 0.715 | 0.892 | 0.942 | 0.702 | 0.744 | 0.872 | 0.698 | 0.861 |
| validation PPL | needle first-token acc. | 7-task | params | |||||
|---|---|---|---|---|---|---|---|---|
| Arm | (M) | |||||||
| ESSH (control) | 25.32 | 19.15 | 17.38 | 16.46 | 0.259 | 0.336 | 0.408 | 370.9 |
| ESSH (no selective clock) | 25.69 | 19.47 | 17.70 | 16.80 | 0.139 | 0.266 | 0.410 | 370.9 |
| ESSH (neutral gates) | 26.04 | 19.79 | 17.99 | 17.09 | 0.102 | 0.140 | 0.406 | 370.9 |
| ESSH (non-oscillatory init., no fit) | 26.18 | 19.92 | 18.01 | 17.00 | 0.140 | 0.180 | 0.405 | 370.9 |
| ESSH (random damped modes) | 26.00 | 19.64 | 17.68 | 16.69 | 0.234 | 0.280 | 0.406 | 370.9 |
| relative 2-norm error | ||||||
|---|---|---|---|---|---|---|
| Fit | median ( ) | |||||
| rotations, (initialization) | 0.59 | 0.04 | 0.75 | 0.81 | ||
| rotations, | 0.56 | |||||
| real poles, | 0.76 | 0.06 | 0.70 | 0.95 | 1.00 | |
| real poles, | 0.30 | 0.06 | 0.54 | 0.95 | ||
| real poles, | 0.11 | |||||
| Initialization | Seed | PPL | PPL | PPL | Full-key acc. |
|---|---|---|---|---|---|
| Hankel control | 197 | 16.46 | 19.59 | 26.19 | 0.249 |
| Hankel control | 313 | 16.55 | 19.67 | 26.28 | 0.030 |
| Hankel control | 511 | 16.52 | 19.64 | 26.18 | 0.134 |
| Random damped modes | 197 | 16.68 | 20.11 | 26.91 | 0.253 |
| Random damped modes | 313 | 16.84 | 20.26 | 27.14 | 0.177 |
| Shuffled slots | 197 | 16.51 | 19.73 | 26.49 | 0.129 |
| Arm | Change | PPL | PPL |
|---|---|---|---|
| ESSH (control) | – | 0 | 0 |
| ESSH (non-oscillatory init.) | identical real-decay modes, zero readout, no fit | ||
| ESSH (random damped modes) | fitted channel structure removed | ||
| ESSH (shuffled slots) | fitted channels placed in random slots | ||
| ESSH (reversed slots) | fitted channels placed in reverse order | ||
| ESSH (all decays ) | uniform initial decay across modes |
| Negative Spearman | first-8 share | |||
|---|---|---|---|---|
| Model | energy | knock-out | energy | knock-out |
| initialization (Hankel, untrained) | 0.86 | – | 0.92 | – |
| ESSH (control, seed 197) | 0.66 | 0.82 | 0.46 | 0.64 |
| ESSH (control, seed 313) | 0.84 | 0.75 | 0.74 | 0.64 |
| ESSH (alternative map) | 0.74 | 0.70 | 0.51 | 0.57 |
| ESSH (mixer-only nesting) | 0.80 | 0.89 | 0.57 | 0.77 |
| validation PPL | full-key acc. | params, full | |||||
|---|---|---|---|---|---|---|---|
| Arm | NIAH | (M) | |||||
| ESSH ( ) | 28 | 25.32 | 19.15 | 17.38 | 16.46 | 0.334 | 370.9 |
| ESSH ( ) | 56 | – | 18.95 | 17.35 | 16.49 | 0.316 | 364.3 |
| ESSH ( ) | 14 | 23.46 | 19.16 | 17.78 | 16.60 | 0.312 | 384.0 |
| ESSH ( , dense control) | 56 | – | – | – | 16.09 | 0.304 | 364.3 |
| ESSH ( , dense control) | 28 | – | – | – | 15.98 | 0.181 | 370.9 |
| validation PPL | ||||||
|---|---|---|---|---|---|---|
| Arm | exponents (channel, FFN) | at | ||||
| ESSH (control) | 0.248 | 25.32 | 19.15 | 17.38 | 16.46 | |
| ESSH (alternative map) | 0.257 | 25.54 | 19.50 | 17.50 | 16.46 | |
| ESSH (steeper channels) | 0.237 | 26.34 | 19.40 | 17.50 | 16.50 | |
| ESSH (flatter channels) | 0.263 | 24.41 | 19.02 | 17.35 | 16.53 | |
| ESSH (flattest channels) | 0.278 | 23.74 | 18.76 | 17.26 | 16.47 | |
| Reduced-capacity objective | PPL | PPL | PPL | PPL |
|---|---|---|---|---|
| 27.61 | 20.08 | 18.03 | 16.48 | |
| 26.76 | 19.90 | 18.01 | 16.58 | |
| 26.19 | 19.59 | 17.83 | 16.46 |
| validation PPL | needle first-token acc. | 7-task | ||||
|---|---|---|---|---|---|---|
| Arm | ||||||
| ESSH (control) | 25.32 | 19.15 | 17.38 | 16.46 | 0.259 | 0.408 |
| ESSH ( ) | 23.50 | 18.67 | 17.44 | 17.01 | 0.216 | 0.407 |
| ESSH ( ) | 27.56 | 19.92 | 17.53 | 16.26 | 0.199 | 0.410 |
| ESSH ( ) | 26.25 | 19.59 | 17.59 | 16.52 | 0.135 | 0.410 |
| ESSH ( ) | 25.72 | 19.31 | 17.48 | 16.50 | 0.162 | 0.413 |
| Schedule | |||||
|---|---|---|---|---|---|
| ESSH (fixed share , control) | 0 | 0 | 0 | 0 | 0 |
| ESSH (fixed share ) | |||||
| ESSH (adaptive share, 0.5 to 0.9) | |||||
| ESSH (sampled capacities = the ten tiers) | |||||
| ESSH (sampled capacities = five tiers ) | |||||
| ESSH (progressive capacity reduction, four stages) |
| Model (370M scale) | tokens (B) | PPL | seed range |
|---|---|---|---|
| ESSH | 3.7 | 16.46 | 0.09 |
| ESSH (dense control, no capacity mixing) | 3.7 | 15.98 | 0.06 |
| PPL gap (elastic dense) | 3.7 | – | |
| ESSH | 7.4 | 14.85 | 0.05 |
| ESSH (dense control, no capacity mixing) | 7.4 | 14.44 | 0.05 |
| PPL gap (elastic dense) | 7.4 | – |
| params (M) | PPL | PPL | PPL | PPL | needle first-token acc. | |
|---|---|---|---|---|---|---|
| 3072 | 84.6 / 280.0 | 26.44 | 20.26 | 18.29 | 17.12 | 0.191 |
| 4608 (ESSH) | 92.1 / 370.9 | 25.32 | 19.15 | 17.38 | 16.46 | 0.259 |
| 6144 | 103.5 / 461.7 | 24.18 | 18.59 | 16.91 | 16.09 | 0.319 |
| Tier | Params (M) | PPL | NLL | 7-task | ms/token | |
|---|---|---|---|---|---|---|
| 146.0 | 0.400 | 19.37 | 0.142 | 0.390 | 3.14 | |
| 168.7 | 0.462 | 18.48 | 0.095 | 0.396 | 3.21 | |
| 191.5 | 0.524 | 17.82 | 0.058 | 0.401 | 3.29 | |
| 214.2 | 0.586 | 17.50 | 0.041 | 0.404 | 3.27 | |
| 248.2 | 0.679 | 17.02 | 0.012 | 0.408 | 3.34 | |
| 270.9 | 0.741 | 16.98 | 0.011 | 0.410 | 3.37 |
| Tier | Params (M) | PPL | NLL | 7-task | ms/token | |
|---|---|---|---|---|---|---|
| 102.4 | 0.277 | 22.06 | 0.262 | 0.371 | 3.21 | |
| 131.1 | 0.354 | 20.53 | 0.190 | 0.379 | 3.03 | |
| 159.7 | 0.432 | 19.10 | 0.118 | 0.386 | 3.19 | |
| 188.4 | 0.509 | 18.47 | 0.084 | 0.390 | 3.18 | |
| 226.6 | 0.613 | 17.47 | 0.028 | 0.398 | 3.24 | |
| 255.3 | 0.690 | 17.38 | 0.023 | 0.400 | 3.36 |
| Params (M) | PPL | 7-task | ||||
|---|---|---|---|---|---|---|
| Target | ESSH | TF++ | ESSH | TF++ | ESSH | TF++ |
| 92.1 | 92.7 | 23.61 | 20.36 | 37.56 | 38.41 | |
| 185.3 | 186.3 | 17.68 | 17.76 | 40.45 | 39.84 | |
| 274.3 | 273.6 | 15.91 | 16.69 | 42.00 | 40.79 | |
| 370.9 | 365.6 | 14.71 | 15.88 | 42.84 | 41.38 | |
| Family | Seed | PPL | PPL | PPL | PPL |
|---|---|---|---|---|---|
| ESSH | 197 | 23.61 | 17.68 | 15.91 | 14.71 |
| ESSH | 511 | 23.77 | 17.76 | 15.96 | 14.73 |
| MatFormer | 197 | 5844.15 | 17.82 | 16.98 | 16.80 |
| MatFormer | 313 | 106.56 | 18.08 | 17.30 | 17.14 |
| MatFormer | 511 | 112.01 | 18.05 | 17.25 | 17.10 |
| MatMamba | 197 | 3029.37 | 19.10 | 17.38 | 16.98 |
| Additional training | , 185.3M | , 274.3M | ||||||
|---|---|---|---|---|---|---|---|---|
| Method | Tokens (B) | Steps | PPL | 7-task | Full key | PPL | 7-task | Full key |
| 3.7B pretraining tokens | ||||||||
| ESSH | 0.27 | 2060 | 19.15 | 0.394 | 0.258 | 17.38 | 0.401 | 0.256 |
| Dense control, truncated and recovered | 0.27 | 2060 | 23.75 | 0.376 | 0.131 | 18.63 | 0.397 | 0.116 |
| Dense control, label-only recovery | 0.54 | 4120 | 20.07 | 0.386 | 0.146 | 17.22 | 0.407 | 0.114 |
| 7.4B pretraining tokens | ||||||||
| Configuration | tokens (B) | params (M) | 7-task mean | Full-key acc. |
|---|---|---|---|---|
| parent, dense Mamba-3 + SWA ⋆ | 7.4 | 377.1 | 0.445 | 0.230 |
| mask, after elastification | 7.9 | 377.1 | 0.438 | 0.248 |
| mask targeting | 7.9 | 185.0 | 0.397 | 0.034 |
| ESSH, | 7.67 | 185.3 | 0.405 | 0.370 |
| mask targeting | 7.9 | 273.8 | 0.425 | 0.147 |
| ESSH, | 7.67 | 274.3 | 0.420 | 0.366 |
| Model / target | Params (M) | First token | Full key | 7-task |
|---|---|---|---|---|
| Mamba-3 + SWA parent | 377.1 | 0.241 | 0.230 | 0.445 |
| Original mask, target | 185.0 | 0.036 | 0.034 | 0.397 |
| Preserve attention, target | 185.3 | 0.025 | 0.023 | 0.395 |
| ESSH, | 185.3 | 0.370 | 0.370 | 0.405 |
| Original mask, target | 273.8 | 0.152 | 0.147 | 0.425 |
| Preserve attention, target | 276.5 | 0.154 | 0.148 | 0.426 |
| Configuration | tokens (B) | params (M) | PPL | 7-task mean | Full-key acc. |
|---|---|---|---|---|---|
| parent: ESSH (dense control, 3.7B) | 3.7 | 370.9 | 15.98 | 0.414 | 0.181 |
| mask, after elastification | 4.2 | 370.9 | 16.15 | 0.417 | 0.113 |
| Post-hoc | 4.2 | 185.3 | 19.64 | 0.394 | 0.154 |
| ESSH (3.7B), | 3.97 | 185.3 | 19.15 | 0.394 | 0.258 |
| ESSH (dense control, reduced), | 3.97 | 185.3 | 23.75 | 0.376 | 0.131 |
| Post-hoc | 4.2 | 274.3 | 17.35 | 0.404 | 0.107 |
| Stage | Tokens (B) | ktok/s | A100-h |
| Shared pretraining | 7.4 | 41.9 | 49.1 |
| Shared refinement | 0.27 | – | 4.81 |
| Independent | 7.4 | 90.2 | 22.8 |
| Independent | 7.4 | 62.1 | 33.1 |
| Independent | 7.4 | 50.2 | 40.9 |
| Independent | 7.4 | 40.66 | 50.6 |
| Transformer++ target / total | Rate (ktok/s) | A100-hours |
|---|---|---|
| 141.32 | 14.55 | |
| 91.98 | 22.35 | |
| 70.85 | 29.01 | |
| 57.87 | 35.52 | |
| Four independent Transformer++ runs | – | 101.43 |
| One shared ESSH run | – | 53.90 |
| Check | Error metric | Maximum |
|---|---|---|
| CPU recurrence, chunk boundaries and zero-lag identities | absolute | |
| CPU recurrence gradients versus centered finite differences | absolute | |
| CPU toy export versus same-tier shared model | absolute | |
| GPU fused decoder versus chunked forward | relative | |
| GPU fused decoder versus reference stepper | relative |
| Device | Model | Params (M) | ktok/s | ||
| 370M-scale full models | |||||
| A100 | ESSH 370M | 370.9 | 8 | 16 | 41.7 |
| A100 | Mamba-3 + SWA 377M | 377.1 | 8 | 16 | 34.1 |
| H200 | ESSH 370M | 370.9 | 8 | 16 | 75.5 |
| H200 | Mamba-3 + SWA 377M | 377.1 | 8 | 16 | 88.6 |
| B300 | ESSH 370M | 370.9 | 8 | 16 | 82.3 |
| prefill ktok/s | ||||||
| Model | Params (B) | 2K | 8K | 32K | 128K | Prefill ms (2K) |
| ESSH, | 0.474 | 44.4 | 46.7 | 48.5 | 49.1 | 46.1 |
| ESSH, | 0.828 | 36.4 | 39.3 | 41.1 | 41.6 | 56.3 |
| ESSH, | 1.168 | 32.1 | 35.1 | 36.2 | 36.5 | 63.8 |
| ESSH, | 1.531 | 28.3 | 32.0 | 33.5 | 34.0 | 72.3 |
| Mamba-2 + FFN | 1.526 | 47.5 | 53.6 | 55.0 | 54.7 | 43.1 |
| Model | Params (B) | 16 | 128 | 512 | Eager | |
|---|---|---|---|---|---|---|
| ESSH, | 0.474 | 1.46 | 2.60 | 7.53 | 23.76 | 3.98 |
| ESSH, | 0.575 | 1.67 | 2.66 | 7.35 | 24.89 | 4.07 |
| ESSH, | 0.716 | 1.95 | 2.96 | 7.75 | 25.91 | 4.20 |
| ESSH, | 0.828 | 2.12 | 3.02 | 8.29 | 27.31 | 4.27 |
| ESSH, | 0.931 | 2.22 | 3.13 | 8.40 | 27.73 | 4.25 |
| ESSH, | 1.076 | 2.41 | 3.28 | 8.66 | 28.82 | 4.28 |
| (MB) | total | prefill peak (GB) | |||||||
| Model | Params (B) | state | KV | total | (GB) | 2K | 8K | 32K | 128K |
| ESSH, | 0.474 | 0.82 | 50.33 | 51.15 | 6.55 | 1.5 | 3.1 | 9.6 | 35.7 |
| ESSH, | 0.828 | 1.84 | 50.33 | 52.17 | 6.68 | 2.2 | 3.8 | 10.3 | 36.4 |
| ESSH, | 1.168 | 2.56 | 50.33 | 52.89 | 6.77 | 3.0 | 4.6 | 11.1 | 37.1 |
| ESSH, | 1.531 | 3.28 | 50.33 | 53.61 | 6.86 | 3.6 | 5.2 | 11.7 | 37.8 |
| Mamba-2 + FFN | 1.526 | 30.33 | 0.00 | 30.33 | 3.88 | 3.6 | 5.3 | 11.8 | 37.8 |
| Model | Params (M) | Gap (%) | FFN width | SWA layers |
|---|---|---|---|---|
| ESSH | 1531.1 | +0.00 | 5632 | 3 |
| Mamba-2 + FFN | 1526.0 | -0.33 | 3136 | 0 |
| Mamba-3 SISO + FFN | 1534.9 | +0.25 | 3136 | 0 |
| Mamba-3 MIMO + FFN | 1526.7 | -0.29 | 2816 | 0 |
| Transformer++ | 1536.3 | +0.34 | 4672 | 0 |
| Constant | 370M | 1.5B | fixed by |
|---|---|---|---|
| , | 32, 8 | 32, 8 | divisibility, Appendices L.5 , L.4 |
| window layers, window | 3 late, 2048 | 3 late, 2048 | Appendix E.2 |
| channel / feed-forward exponents | 0.5 / 0.8 | same | Appendix M.1 |
| full share , slice scale | 0.75, 0.5 | 0.75, 0.5 | Appendix M.2 |
| distillation objectives and coefficients | KL at 0.5 (pretraining), TV at 5 (final stage) | same | Appendix M.2 |
| pretraining capacities | , , , , , , , , , | same | design |
| Stage | Devices | GPU-hours |
|---|---|---|
| 1.5B main training | A100, H100, H200, H800, B200 | 1808 |
| 1.5B final stage, export and evaluation | H200, H800, RTX 5090/3090 | 47 |
| 370M shared recipe, 7.4B | A100, H100, RTX 5090/3090 | 104 |
| 370M comparisons, 7.4B | A100, H200, RTX 5090/3090 | 772 |
| 370M ablations, 3.7B | A100, RTX 5090/3090 | 1633 |
| Synthetic tasks and DNA | A100, RTX 5090/3090 | 129 |
| Model | Params (B) | 16 | 128 | 512 | Eager | |
|---|---|---|---|---|---|---|
| Parameter-matched full models | ||||||
| ESSH, | 1.531 | 1.67 | 2.15 | 5.35 | 17.63 | 3.44 |
| Mamba-2 + FFN | 1.526 | 2.91 | 3.93 | 7.81 | 22.05 | 15.97 |
| Mamba-3 SISO + FFN | 1.535 | 3.52 | 4.78 | 8.85 | 24.12 | 27.65 |
| Mamba-3 MIMO + FFN | 1.527 | 3.85 | 5.30 | 9.87 | 26.46 | 28.71 |
| Transformer++ | 1.536 | 4.15 | 7.32 | 30.03 | OOM | 12.54 |
| Prefill ktok/s | ms | Peak GB | ||||||
| Model | Params (B) | 2K | 8K | 32K | 128K | 2K | 2K | 128K |
| Parameter-matched full models | ||||||||
| ESSH, | 1.531 | 54.9 | 58.9 | 60.6 | 60.7 | 37.3 | 3.64 | 37.79 |
| Mamba-2 + FFN | 1.526 | 73.8 | 126.0 | 127.4 | 125.4 | 27.8 | 3.65 | 37.80 |
| Mamba-3 SISO + FFN | 1.535 | 71.8 | 81.1 | 83.8 | 83.9 | 28.5 | 3.65 | 37.80 |
| Mamba-3 MIMO + FFN | 1.527 | 39.6 | 42.1 | 42.6 | 42.2 | 51.7 | 3.64 | 37.79 |
| Model | Params (B) | 16 | 128 | 512 | Eager | |
|---|---|---|---|---|---|---|
| ESSH, | 0.474 | 1.13 | 1.35 | 3.30 | 10.25 | 3.43 |
| ESSH, | 0.575 | 1.12 | 1.33 | 3.53 | 10.62 | 3.41 |
| ESSH, | 0.716 | 1.13 | 1.36 | 3.55 | 10.91 | 3.46 |
| ESSH, | 0.828 | 1.20 | 1.42 | 3.63 | 11.18 | 3.49 |
| ESSH, | 0.931 | 1.18 | 1.42 | 3.61 | 11.13 | 3.49 |
| ESSH, | 1.076 | 1.28 | 1.49 | 3.83 | 11.62 | 3.46 |
| Prefill ktok/s | ms | Peak GB | ||||||
| Model | Params (B) | 2K | 8K | 32K | 128K | 2K | 2K | 128K |
| ESSH, | 0.474 | 75.0 | 108.5 | 110.4 | 109.7 | 27.3 | 1.51 | 35.67 |
| ESSH, | 0.575 | 79.8 | 106.0 | 107.6 | 107.6 | 25.7 | 1.70 | 35.86 |
| ESSH, | 0.716 | 77.9 | 101.9 | 103.2 | 103.4 | 26.3 | 1.99 | 36.15 |
| ESSH, | 0.828 | 81.4 | 99.1 | 101.0 | 100.9 | 25.2 | 2.21 | 36.36 |
| ESSH, | 0.931 | 74.6 | 96.8 | 98.4 | 98.5 | 27.5 | 2.42 | 36.57 |
| (a) Tier sweeps on A100 and B300 | ||||||
|---|---|---|---|---|---|---|
| Family | Tier | Params (M) | Graph ms | Eager ms | ||
| A100 | B300 | A100 | B300 | |||
| ESSH | 92.1 | 0.91 | 0.60 | 3.21 | 2.27 | |
| ESSH | 118.9 | 0.94 | 0.65 | 3.30 | 2.32 | |
| ESSH | 154.7 | 1.01 | 0.68 | 3.40 | 2.43 | |
| ESSH | 185.3 | 1.04 | 0.69 | 3.49 | 2.42 | |
| Measurement / model | Params (M) | A100 | H200 | B300 |
|---|---|---|---|---|
| Full models near 370M: graph decode, batch one (ms ) | ||||
| ESSH | 370.9 | 1.307 | 0.910 | 0.735 |
| MatFormer | 365.6 | 3.464 | 2.819 | 2.443 |
| MatMamba | 369.9 | 3.416 | 2.334 | 2.562 |
| Full models near 1.53B: graph decode, batch 1 (ms ) | ||||
| ESSH, | 1531.1 | 3.06 | 1.67 | 1.37 |
Selective SSMs
Selective state-space models (SSMs) use input-dependent recurrent dynamics to filter sequence information with linear-time scans.
See all 70 papers