Weighted State Souping for Efficient Long-Context Retrieval
Not on the map. Why?
Abstract (arXiv)
State space models (SSMs) combine fast inference and fixed state size with competitive language-modeling performance. Recently, state souping has been proposed as a procedure whereby an SSM independently encodes chunks of tokens like documents, tool definitions, or memory records. The resulting state encodings may be cached and recombined to cheaply construct a context for downstream queries. However, both state souping and vanilla SSMs deteriorate on long, crowded contexts, limiting their utility for long-horizon domains. To address this issue, we propose weighted state souping, a simple method that learns query-dependent weights for composing cached states. The resulting models improve long-context performance substantially across both single- and multi-hop document question answering, needle-in-a-haystack retrieval, variable tracking, and tool use. Our method can be further adapted into an efficient sparse variant, yielding near-constant encoding cost with respect to context length while preserving (and sometimes improving) performance. We also present simple theoretical arguments that illustrate why souping works and when it may fail, and discuss informally the advantages of weighted souping. Weighted state souping thus combines reusable context representations with selective retrieval, offering an efficient approach to language modeling over large collections of documents, tools, and other forms of structured context that increasingly dominate modern agentic workloads.
Key facts. No citing papers in the map yet (data through 29 Nov 2026). Builds on 51 of its 56 references that are in the map. Submitted 19 Oct 2026.
Builds on
51 of 56 references.
References · 51
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,882
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,739
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,170
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 5,127
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,487
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,281
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 4,000
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,183
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,142
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,667
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,567
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,507
38 more
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,493
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 1,018
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 884
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 784
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 585
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 564
- 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 499
- 2023LaMP: When Large Language Models Meet Personalizationcited by 495
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 420
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 248
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 241
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 234
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 232
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 225
- 2024An Empirical Study of Mamba-based Language Modelscited by 209
- 2024Nemotron-CC: Transforming Common Crawl into a Refined Long-Horizon Pretraining Datasetcited by 178
- 2025NVIDIA Nemotron Nano 2: An Accurate and Efficient Hybrid Mamba-Transformer Reasoning Modelcited by 128
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 103
- 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 94
- 2024Transformers, parallel computation, and logarithmic depthcited by 93
- 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 60
- 2024Marconi: Prefix Caching for the Era of Hybrid LLMscited by 48
- 2025Long-Context Generalization with Sparse Attentioncited by 26
- 2026Memory Caching: RNNs with Growing Memorycited by 19
- 2024Selective Attention: Enhancing Transformer through Principled Context Controlcited by 18
- 2024Stuffed Mamba: Oversized States Lead to the Inability to Forgetcited by 15
- 2024Parameter-Efficient Fine-Tuning of State Space Modelscited by 15
- 2024MambaPEFT: Exploring Parameter-Efficient Fine-Tuning for Mambacited by 12
- 2026Sparse Prefix Caching for Hybrid and Recurrent LLM Servingcited by 10
- 2025Understanding Input Selectivity in Mamba: Impact on Approximation Power, Memorization, and Associative Recall Capacitycited by 9
- 2026Cartridges at Scale: Training Modular KV Caches over Large Document Collectionscited by 7
- 2025PICASO: Permutation-Invariant Context Composition with State Space Modelscited by 6
- 2025To Infinity and Beyond: Tool-Use Unlocks Length Generalization in State Space Modelscited by 6
- 2024State Soup: In-Context Skill Learning, Retrieval and Mixingcited by 5
- 2024Attamba: Attending To Multi-Token Statescited by 5
- 2025State-offset Tuning: State-based Parameter-Efficient Fine-Tuning for State Space Modelscited by 4
- 2026Structured Memory for Edge Language Models: Persistent Context and Corpus Retrieval via O(1) SSM State Injectioncited by 2
- 2025State Tuning: State-based Test-Time Scaling on RWKV-7cited by 1
50 most cited of 51 All 51 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Studying the Soupability of Documents in State Space Models
- 2026EmbeddingRWKV: State-Centric Retrieval with Reusable States
- 2026S2LMR: Supervised Sequential Long-Context Multi-Step Retriever
- 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanism
- 2024LongEmbed: Extending Embedding Models for Long Context Retrieval
- 2024State Space Models are Strong Text Rerankers
- 2026State Space Attention: Learning Context-Dependent Memory Retention
- 2024Benchmarking and Building Long-Context Retrieval Models with LoCo and M2-BERT