Apple proposes weighted state souping to improve long-context retrieval in state space models
A new method from Apple’s ML Research combines cached state encodings with query-dependent weighting to reduce long-context degradation in state space models, with a sparse variant offering near-constant encoding cost.
1 source · cross-referenced
- Apple’s ML Research proposes weighted state souping, a method that learns query-dependent weights to compose cached state encodings in state space models (SSMs).
- The approach improves long-context performance across tasks like multi-hop document QA, needle-in-a-haystack retrieval, variable tracking, and tool use.
- A sparse variant of the method achieves near-constant encoding cost with respect to context length while preserving or improving performance.
- The paper was accepted at the Workshop on Personalized, Aligned, Long-term Memory for AI Systems (PALM) at NeurIPS 2026.
Apple’s Machine Learning Research team proposes weighted state souping, a method designed to address the degradation of state space models (SSMs) in long, crowded contexts. Unlike vanilla SSMs, which encode tokens sequentially with a fixed state size, state souping independently encodes chunks of tokens—such as documents, tool definitions, or memory records—and caches the resulting state encodings for reuse. These cached states can then be recombined to construct a context for downstream queries.
The team identifies a key limitation: both state souping and vanilla SSMs deteriorate as context length grows, which constrains their utility for long-horizon domains. To mitigate this, they introduce weighted state souping, a technique that learns query-dependent weights for composing cached states. This approach substantially improves long-context performance across several tasks, including single- and multi-hop document question answering, needle-in-a-haystack retrieval, variable tracking, and tool use.
The researchers also propose a sparse variant of weighted state souping, which achieves near-constant encoding cost with respect to context length while preserving or even improving performance. This adaptation is particularly relevant for agentic workloads that demand efficient processing of large collections of documents, tools, and structured context.
In addition to empirical results, the team provides theoretical arguments explaining why state souping works and when it may fail. They also discuss the advantages of weighted souping informally, emphasizing its potential to combine reusable context representations with selective retrieval—a combination that could be valuable for modern AI systems operating over long contexts.
- Dec 4, 2026 · Apple — Machine Learning Research
Apple study finds LLM judges vary widely in personalized writing evaluations
Trust79 - Dec 4, 2026 · arXiv cs.AI
Paper proposes cost-sensitive memory filtering for LLM agents to mitigate query-critical false-drop risks
Trust79 - Dec 4, 2026 · arXiv cs.AI
AI-generated math proofs show 20x higher compression debt than human work, study finds
Trust79