mlsanityData to 29 Nov 2026

Weighted State Souping for Efficient Long-Context Retrieval

arXiv 2610.25621 ↗Submitted 19 Oct 2026cs.LG cs.AIcited by 0

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

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,882
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,739
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,170
  4. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 5,127
  5. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,487
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,281
  7. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 4,000
  8. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,183
  9. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,142
  10. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,667
  11. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,567
  12. 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,507
38 more
  1. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,493
  2. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 1,018
  3. 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 884
  4. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 784
  5. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 585
  6. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 564
  7. 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 499
  8. 2023LaMP: When Large Language Models Meet Personalizationcited by 495
  9. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 420
  10. 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 248
  11. 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 241
  12. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 234
  13. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 232
  14. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 225
  15. 2024An Empirical Study of Mamba-based Language Modelscited by 209
  16. 2024Nemotron-CC: Transforming Common Crawl into a Refined Long-Horizon Pretraining Datasetcited by 178
  17. 2025NVIDIA Nemotron Nano 2: An Accurate and Efficient Hybrid Mamba-Transformer Reasoning Modelcited by 128
  18. 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 103
  19. 2024Transformers Can Achieve Length Generalization But Not Robustlycited by 94
  20. 2024Transformers, parallel computation, and logarithmic depthcited by 93
  21. 2024Softmax is not Enough (for Sharp Size Generalisation)cited by 60
  22. 2024Marconi: Prefix Caching for the Era of Hybrid LLMscited by 48
  23. 2025Long-Context Generalization with Sparse Attentioncited by 26
  24. 2026Memory Caching: RNNs with Growing Memorycited by 19
  25. 2024Selective Attention: Enhancing Transformer through Principled Context Controlcited by 18
  26. 2024Stuffed Mamba: Oversized States Lead to the Inability to Forgetcited by 15
  27. 2024Parameter-Efficient Fine-Tuning of State Space Modelscited by 15
  28. 2024MambaPEFT: Exploring Parameter-Efficient Fine-Tuning for Mambacited by 12
  29. 2026Sparse Prefix Caching for Hybrid and Recurrent LLM Servingcited by 10
  30. 2025Understanding Input Selectivity in Mamba: Impact on Approximation Power, Memorization, and Associative Recall Capacitycited by 9
  31. 2026Cartridges at Scale: Training Modular KV Caches over Large Document Collectionscited by 7
  32. 2025PICASO: Permutation-Invariant Context Composition with State Space Modelscited by 6
  33. 2025To Infinity and Beyond: Tool-Use Unlocks Length Generalization in State Space Modelscited by 6
  34. 2024State Soup: In-Context Skill Learning, Retrieval and Mixingcited by 5
  35. 2024Attamba: Attending To Multi-Token Statescited by 5
  36. 2025State-offset Tuning: State-based Parameter-Efficient Fine-Tuning for State Space Modelscited by 4
  37. 2026Structured Memory for Edge Language Models: Persistent Context and Corpus Retrieval via O(1) SSM State Injectioncited by 2
  38. 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

  1. 2025Studying the Soupability of Documents in State Space Models
  2. 2026EmbeddingRWKV: State-Centric Retrieval with Reusable States
  3. 2026S2LMR: Supervised Sequential Long-Context Multi-Step Retriever
  4. 2025Understanding the Skill Gap in Recurrent Language Models: The Role of the Gather-and-Aggregate Mechanism
  5. 2024LongEmbed: Extending Embedding Models for Long Context Retrieval
  6. 2024State Space Models are Strong Text Rerankers
  7. 2026State Space Attention: Learning Context-Dependent Memory Retention
  8. 2024Benchmarking and Building Long-Context Retrieval Models with LoCo and M2-BERT