mlsanityData to 7 Oct 2026

Trellis: Learning to Compress Key-Value Memory in Attention Models

arXiv 2512.23852 ↗First posted 29 Dec 2025cs.LG cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

Transformers, while powerful, suffer from quadratic computational complexity and the ever-growing Key-Value (KV) cache of the attention mechanism. This paper introduces Trellis, a novel Transformer architecture with bounded memory that learns how to compress its key-value memory dynamically at test time. Trellis replaces the standard KV cache with a fixed-size memory and train a two-pass recurrent compression mechanism to store new keys and values into memory. To achieve this, it leverages an online gradient descent procedure with a forget gate, enabling the compressed memory to be updated recursively while learning to retain important contextual information from incoming tokens at test time. Extensive experiments on language modeling, common-sense reasoning, recall-intensive tasks, and time series show that the proposed architecture outperforms strong baselines. Notably, its performance gains increase as the sequence length grows, highlighting its potential for long-context applications.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 62 of its 74 references that are in the map. First posted on arXiv 29 Dec 2025.

Builds on

62 of 74 references.

References · 62

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  6. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  7. 2020Longformer: The Long-Document Transformercited by 3,362
  8. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  9. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  10. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  11. 2020Reformer: The Efficient Transformercited by 1,658
  12. 2021ViViT: A Video Vision Transformercited by 1,610
38 more
  1. 2020Rethinking Attention with Performerscited by 1,584
  2. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  3. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  4. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  5. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  6. 2020Efficient Transformers: A Surveycited by 784
  7. 2022Simplified State Space Layers for Sequence Modelingcited by 776
  8. 2018Image Transformercited by 770
  9. 2020A Generalization of Transformer Networks to Graphscited by 653
  10. 2016Learning to learn by gradient descent by gradient descentcited by 616
  11. 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 607
  12. 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 600
  13. 2019Graph Transformer Networkscited by 520
  14. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
  15. 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
  16. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  17. 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
  18. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  19. 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 397
  20. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
  21. 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
  22. 2021Random Feature Attentioncited by 350
  23. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
  24. 2024xLSTM: Extended Long Short-Term Memorycited by 320
  25. 2024Titans: Learning to Memorize at Test Timecited by 303
  26. 2022Long Range Language Modeling via Gated State Spacescited by 265
  27. 2020Sparse Sinkhorn Attentioncited by 250
  28. 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
  29. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
  30. 2022Transformer Quality in Linear Timecited by 189
  31. 2019Blockwise Self-Attention for Long Document Understandingcited by 158
  32. 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 135
  33. 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
  34. 2021CKConv: Continuous Kernel Convolution For Sequential Datacited by 117
  35. 2022BOME! Bilevel Optimization Made Easy: A Simple First-Order Approachcited by 103
  36. 2021Finetuning Pretrained Transformers into RNNscited by 94
  37. 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 87
  38. 2022What Makes Convolutional Models Great on Long Sequence Modeling?cited by 86

50 most cited of 62 All 62 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Key-Value Means: Transformers with Expandable Block-Recurrent Compressed Memory
  2. 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention
  3. 2025Forgetting Transformer: Softmax Attention with a Forget Gate
  4. 2025SCOUT: Toward Sub-Quadratic Attention via Segment Compression for Optimized Utility in Transformers
  5. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention
  6. 2026Keyless Attention: Value-Space Routing and Value-Only Caching for Efficient Transformers
  7. 2025End-to-End Transformer Acceleration Through Processing-in-Memory Architectures
  8. 2023Context Compression for Auto-regressive Transformers with Sentinel Tokens