SuPER-Mamba: Surprisal Prioritization for Extended-Context Routing in Mamba
Organizations: School of Information Technology and Electrical Engineering The University of Queensland
Abstract
State space models provide efficient linear-complexity processing for long sequences, but their performance frequently degrades as context length grows. We propose SuPER-Mamba, a training-free framework that uses Surprisal as a model-intrinsic signal for long-range state routing in pretrained Mamba models. SuPER-Mamba computes position-wise Surprisal from next-token predictions, aggregates neighboring responses through Local Pooling, and uses the resulting scores to prioritize Global-Channel updates without query-dependent scoring or additional training. We evaluate SuPER-Mamba on three state-space models across the LongBench-E benchmark. The results show that SuPER-Mamba improves the average score from 8.06 to 15.69, corresponding to a 94.7% relative gain over the Base Models and a 13.1% improvement over the state-of-the-art prior baseline. Ablation and length-wise analyses further support the effectiveness of the proposed routing framework.
Figures & tables
| Category | Dataset | Base Mamba2 | LongMamba | LAMB | SuPER-Mamba (Ours) |
|---|---|---|---|---|---|
| Single-doc QA | Qasper | 1.76 | 4.75 | 5.63 | 5.00 |
| MultiFieldQA-en | 5.03 | 11.12 | 14.76 | 13.81 | |
| Multi-doc QA | HotpotQA | 2.89 | 5.45 | 7.71 | 6.43 |
| 2WikiMQA | 2.31 | 5.19 | 8.01 | 10.09 | |
| Summarization | GovReport | 7.66 | 14.67 | 16.38 | 13.70 |
| MultiNews | 11.31 | 14.72 | 17.49 | 14.45 |
| Category | Kernel | Pooling | |
|---|---|---|---|
| Single-doc QA | 1024 | 18 | Max |
| Multi-doc QA | 1024 | 10 | Mean |
| Summarization | 2048 | 18 | Mean |
| Few-shot | 1024 | 18 | Max |
| Synthetic | 256 | 18 | Mean |
| Code | 1024 | 12 | Mean |
| Architecture | Base Model | LAMB | SuPER-Mamba |
|---|---|---|---|
| Mamba1-1.4B | 8.52 | 12.98 | 17.93 |
| Mamba2-1.3B | 8.09 | 21.30 | 21.56 |
| Zamba2-1.2B | 7.57 | 7.32 | 7.59 |
| Average | 8.06 | 13.87 | 15.69 |
| Variant | Average Score |
|---|---|
| Base Model | 8.09 |
| Random Control | 19.33 |
| Raw Surprisal | 16.33 |
| + Local Pooling | 20.85 |
| Full SuPER-Mamba | 21.56 |
| Method | 0 to 4k | 4 to 8k | 8k+ |
|---|---|---|---|
| Base Model | 14.98 | 5.45 | 3.85 |
| LAMB | 22.41 | 22.32 | 19.15 |
| SuPER-Mamba | 23.64 | 21.18 | 19.85 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Category | Kernel | Pooling | |
|---|---|---|---|---|
| Qasper | Single-doc QA | 1024 | 18 | Max |
| MultiFieldQA-en | Single-doc QA | 1024 | 18 | Max |
| HotpotQA | Multi-doc QA | 1024 | 10 | Mean |
| 2WikiMQA | Multi-doc QA | 1024 | 10 | Mean |
| GovReport | Summarization | 2048 | 18 | Mean |
| MultiNews | Summarization | 2048 | 18 | Mean |
| Category | Kernel | Pooling | |
|---|---|---|---|
| Single-doc QA | 1024 | 18 | Max |
| Multi-doc QA | 1024 | 10 | Mean |
| Summarization | 2048 | 18 | Mean |
| Few-shot | 1024 | 18 | Max |
| Synthetic | 256 | 18 | Mean |
| Code | 1024 | 12 | Mean |
| Dataset | Random Control | Raw Surprisal | + Local Pooling | Full SuPER-Mamba |
|---|---|---|---|---|
| Qasper | 4.12 | 3.36 | 4.85 | 5.00 |
| MultiFieldQA-en | 13.00 | 11.70 | 14.40 | 13.81 |
| HotpotQA | 6.54 | 5.71 | 6.82 | 6.43 |
| 2WikiMQA | 8.83 | 8.39 | 10.00 | 10.09 |
| GovReport | 12.58 | 10.65 | 13.80 | 13.70 |
| MultiNews | 12.89 | 11.85 | 14.31 | 14.45 |
| Variant | 0–4k | 4–8k | 8k+ | Average |
|---|---|---|---|---|
| Random Control | 21.45 | 18.51 | 18.03 | 19.33 |
| Raw Surprisal | 19.17 | 15.87 | 13.94 | 16.33 |
| + Local Pooling | 23.05 | 20.45 | 19.06 | 20.85 |
| Full SuPER-Mamba | 23.64 | 21.18 | 19.85 | 21.56 |
Long-Context Language Model Inference
Long-context language model inference makes processing and generating over lengthy prompts faster and more memory-efficient.
See all 221 papers