AppleProblem & solution
Weighted State Souping for Efficient Long-Context Retrieval
Summary
State space models (SSMs) offer fast inference and fixed state size, and state souping independently encodes chunks like documents to cache and recombine states for downstream queries. However, both standard SSMs and state souping degrade on long, crowded contexts, limiting their use in long-horizon tasks. Weighted state souping addresses this by learning query-dependent weights for composing cached states, improving performance on single- and multi-hop document question answering, needle-in-a-haystack retrieval, variable tracking, and tool use. The method can be adapted into a sparse variant that achieves near-constant encoding cost relative to context length while preserving or improving performance. Theoretical arguments explain why souping works and when it may fail, and weighted souping combines reusable context representations with selective retrieval for efficient language modeling over large collections.
Context
State space models (SSMs) offer fast inference and fixed state size. State souping independently encodes chunks of tokens (e.g., documents, tool definitions) and caches the state encodings for recombination in downstream queries. However, both standard SSMs and state souping degrade on long, crowded contexts, limiting their use in long-horizon tasks.
Approach / What changed
Weighted state souping learns query-dependent weights for composing cached state encodings. It can be adapted into a sparse variant that achieves near-constant encoding cost relative to context length while preserving or improving performance.
Takeaways
Weighted state souping improves long-context performance on single- and multi-hop document question answering, needle-in-a-haystack retrieval, variable tracking, and tool use.
The method can be adapted into a sparse variant that achieves near-constant encoding cost relative to context length while preserving or improving performance.
Theoretical arguments illustrate why souping works and when it may fail, and weighted souping combines reusable context representations with selective retrieval.
FAQ
How does weighted state souping differ from standard state souping?
Standard state souping independently encodes chunks and caches states for recombination, but deteriorates on long contexts. Weighted state souping learns query-dependent weights for composing cached states, improving performance on long-context tasks.
What tasks does weighted state souping improve?
It improves performance on single- and multi-hop document question answering, needle-in-a-haystack retrieval, variable tracking, and tool use.
Does weighted state souping have a sparse variant?
Yes, it can be adapted into an efficient sparse variant that yields near-constant encoding cost relative to context length while preserving or improving performance.
Source and freshness
- Source
- machinelearning.apple.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.