Trellis: Learning to Compress Key-Value Memory in Attention Models
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2021ViViT: A Video Vision Transformercited by 1,610
38 more
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2020Efficient Transformers: A Surveycited by 784
- 2022Simplified State Space Layers for Sequence Modelingcited by 776
- 2018Image Transformercited by 770
- 2020A Generalization of Transformer Networks to Graphscited by 653
- 2016Learning to learn by gradient descent by gradient descentcited by 616
- 2021Combining Recurrent, Convolutional, and Continuous-time Models with Linear State-Space Layerscited by 607
- 2020HiPPO: Recurrent Memory with Optimal Polynomial Projectionscited by 600
- 2019Graph Transformer Networkscited by 520
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 490
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 471
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 397
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 373
- 2021Random Feature Attentioncited by 350
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
- 2024xLSTM: Extended Long Short-Term Memorycited by 320
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2022Long Range Language Modeling via Gated State Spacescited by 265
- 2020Sparse Sinkhorn Attentioncited by 250
- 2024Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Modelscited by 232
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
- 2022Transformer Quality in Linear Timecited by 189
- 2019Blockwise Self-Attention for Long Document Understandingcited by 158
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 135
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 128
- 2021CKConv: Continuous Kernel Convolution For Sequential Datacited by 117
- 2022BOME! Bilevel Optimization Made Easy: A Simple First-Order Approachcited by 103
- 2021Finetuning Pretrained Transformers into RNNscited by 94
- 2024Loki: Low-rank Keys for Efficient Sparse Attentioncited by 87
- 2022What Makes Convolutional Models Great on Long Sequence Modeling?cited by 86
50 most cited of 62 All 62 (JSON)
Built on by
Citing papers per year: 2026: 3.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Key-Value Means: Transformers with Expandable Block-Recurrent Compressed Memory
- 2026Learning how to Forget: Fine-tuning for Long-Context Sparse Attention
- 2025Forgetting Transformer: Softmax Attention with a Forget Gate
- 2025SCOUT: Toward Sub-Quadratic Attention via Segment Compression for Optimized Utility in Transformers
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention
- 2026Keyless Attention: Value-Space Routing and Value-Only Caching for Efficient Transformers
- 2025End-to-End Transformer Acceleration Through Processing-in-Memory Architectures
- 2023Context Compression for Auto-regressive Transformers with Sentinel Tokens