MemOnce utilizes a dual-design approach to manage long-horizon interactions. It features a memory encoder-decoder that caches a small subset of final-layer hidden states as compact representations, which are then dynamically decoded back into KV caches. Additionally, a memory sparse attention mechanism adaptively retrieves relevant memory representations using indices computed once across layers.
This architecture offers significant performance gains for developers working with long contexts:
- Reduces memory state cache by 1313x and prefill latency by 6.9x at 1M context length when applied to Qwen3.5-4B.
- Achieves linear-time complexity instead of quadratic complexity.
- Increases throughput by 3.5x and improves overall memory performance.
- Enables efficient on-the-fly memory loading while maintaining competitive results in zero-shot downstream tasks.
Podsumowanie angular.love. Pełne informacje znajdziesz w oryginalnym źródle.