mlsanityData to 14 Oct 2026

CacheFormer: High Attention-Based Segment Caching

arXiv 2504.13981 ↗First posted 18 Apr 2025cs.LG cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Efficiently handling long contexts in transformer-based language models with low perplexity is an active area of research. Numerous recent approaches like Linformer, Longformer, Performer, and Structured state space models (SSMs)., have not fully resolved this problem. All these models strive to reduce the quadratic time complexity of the attention mechanism while minimizing the loss in quality due to the effective compression of the long context. Inspired by the cache and virtual memory principle in computers, where in case of a cache miss, not only the needed data is retrieved from the memory, but the adjacent data is also obtained, we apply this concept to handling long contexts by dividing it into small segments. In our design, we retrieve the nearby segments in an uncompressed form when high segment-level attention occurs at the compressed level. Our en-hancements for handling long context include aggregating four attention mechanisms consisting of short sliding window attention, long compressed segmented attention, dynamically retrieving top k high attention uncompressed segments, and overlapping segments in long segment attention to avoid segment fragmentation. These enhancements result in an architecture that outperforms ex-isting SOTA architectures with an average perplexity improvement of 8.5% over similar model sizes.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 25 of its 30 references that are in the map. First posted on arXiv 18 Apr 2025.

Builds on

25 of 30 references.

References · 25

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  6. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  7. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  8. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  9. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  10. 2020Reformer: The Efficient Transformercited by 1,668
  11. 2020Rethinking Attention with Performerscited by 1,601
  12. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
13 more
  1. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  2. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
  3. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
  4. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
  5. 2024xLSTM: Extended Long Short-Term Memorycited by 327
  6. 2022Mega: Moving Average Equipped Gated Attentioncited by 179
  7. 2021Long-Short Transformer: Efficient Transformers for Language and Visioncited by 102
  8. 2022General-purpose, long-context autoregressive modeling with Perceiver ARcited by 60
  9. 2021The NLP Cookbook: Modern Recipes for Transformer based Deep Learning Architecturescited by 16
  10. 2024Perceiving Longer Sequences With Bi-Directional Cross-Attention Transformerscited by 11
  11. 2022LaMemo: Language Modeling with Look-Ahead Memorycited by 4
  12. 2024LongVQ: Long Sequence Modeling with Vector Quantization on Structured Memorycited by 4
  13. 2024Long Sequence Modeling with Attention Tensorization: From Sequence to Tensor Learningcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024KV Cache Compression, But What Must We Give in Return? A Comprehensive Benchmark of Long Context Capable Approaches
  2. 2026Kwai Summary Attention Technical Report
  3. 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
  4. 2025CompressKV: Semantic Retrieval Heads Know What Tokens are Not Important Before Generation
  5. 2024Training-Free Exponential Context Extension via Cascading KV Cache
  6. 2025ZSMerge: Zero-Shot KV Cache Compression for Memory-Efficient Long-Context LLMs
  7. 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
  8. 2026Moment-KV: Momentum-Based Decode-Time KV Cache Compression for Long Generation