New Cache Architecture Improves Long-Range Associative Recall.

Siddharth Pal, Viktoria Rojkova· July 14, 2026 View original

Summary

This research introduces a sparse, learnable Dirichlet-Process cache that allows sequence models to remember distinct items rather than every token, bridging the gap between fixed-state models and attention. It achieves full-attention recall with significantly lower memory by tracking the number of novel inputs.

Sequence models face a trade-off in memory and recall: fixed-state models compress the past into a bounded state, limiting associative recall, while attention mechanisms store every token, leading to quadratic compute and memory growth. This paper proposes a middle ground: a sparse cache that allocates memory slots only for novel inputs, effectively tracking distinct items rather than all tokens. The core of this innovation is a Dirichlet-Process (DP) cache, which uses a DP-means clustering rule as its key-value memory operator. This cache comes in static and surprise-adaptive variants, with the latter adjusting its concentration based on the recent novelty rate. The system is designed to be learnable end-to-end, with a two-parameter novelty-threshold gate trained on task loss alone. On controlled associative-recall benchmarks, the DP cache demonstrated recall performance comparable to full attention while requiring memory proportional only to the number of distinct items. It also outperformed fixed-budget eviction caches on the recall-versus-size frontier and achieved the lowest memory footprint for both recall and long-range aggregation tasks when integrated with a state-space backbone. The research highlights that the inductive bias of the DP-means rule is the operative ingredient, not just increased capacity.

Why it matters

For professionals building large-scale sequence models, especially in domains like recommendation systems, log analysis, or clinical event processing, this cache offers a way to achieve long-range memory and associative recall with significantly reduced computational and memory overhead, making models more efficient and scalable.

How to implement this in your domain

  1. 1Evaluate existing sequence models for memory bottlenecks and limitations in long-range associative recall.
  2. 2Explore integrating a Dirichlet-Process cache into your state-space or recurrent neural network architectures.
  3. 3Implement the learnable novelty-threshold gate to dynamically manage cache allocation based on task loss.
  4. 4Benchmark the DP cache against full attention and fixed-budget eviction caches on relevant datasets for memory and recall performance.
  5. 5Consider applying this sparse caching mechanism to applications requiring efficient processing of long, redundant sequences.

Who benefits

AI DevelopmentE-commerceCybersecurityHealthcare

Key takeaways

  • Traditional sequence models struggle with efficient long-range memory and recall.
  • A Dirichlet-Process cache remembers distinct items, not every token, reducing memory overhead.
  • It achieves full-attention-level recall with significantly lower memory usage.
  • The cache is learnable end-to-end, leveraging inductive bias for efficient allocation.

Original post by Siddharth Pal, Viktoria Rojkova

"arXiv:2607.09889v1 Announce Type: new Abstract: Fixed-state sequence models compress an unbounded past into a bounded state, which caps their associative recall at roughly the state dimension; attention escapes the cap by keeping a key-value entry for every token, at quadratic co…"

View on X

Originally posted by Siddharth Pal, Viktoria Rojkova on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses