Controllably Efficient Language Models
Not on the map. Why?
Abstract (arXiv)
The substantial inference costs of attention in transformers motivated the development of efficient sequence mixers: namely sparse and sliding window attention, convolutions and linear attention. Although these approaches result in impressive reductions in inference costs, they often trade-off with quality, specifically in-context recall. Apriori fixing this quality-cost tradeoff at training time means being suboptimal from the get-go: some downstream applications might fundamentally require more memory for in-context recall, while other tasks may require lower latency and memory. We propose a conceptually simple meta-sequence mixer with inference-cost controllability: the Compress & Attend Transformer (CAT). CAT decodes chunks of tokens by attending to compressed chunks of the sequence so far. Both compression and decoding can use any existing sequence mixer. Decoding from the compressed sequence yields compute and memory savings, with chunk size setting the operating point on the quality-cost trade-off. Importantly, training CAT across multiple chunk sizes at once unlocks test-time control of this trade-off without any retraining, all in a single model. Instantiated with the most basic choice, dense attention as the mixer, CAT surprisingly suffices to match 10 popular and diverse efficient models (linear, hybrids, sparse) on real-world long-context recall at comparable inference costs, all from a single trained model. CAT further performs competitively on long-context understanding benchmarks while providing 1.4-3.7x higher generation throughput than a dense transformer. Code is at: https://github.com/rajesh-lab/cat-transformer
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 57 of its 70 references that are in the map. First posted on arXiv 7 Nov 2025.
Builds on
57 of 70 references.
References · 57
- 2017Attention Is All You Needcited by 59,932
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
38 more
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 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
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Modelscited by 834
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 372
- 2023Adapting Language Models to Compress Contextscited by 350
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2024Repeat After Me: Transformers are Better than State Space Models at Copyingcited by 208
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
- 2023Zoology: Measuring and Improving Recall in Efficient Language Modelscited by 188
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 180
- 2024An Empirical Study of Mamba-based Language Modelscited by 177
- 2023MEGABYTE: Predicting Million-byte Sequences with Multiscale Transformerscited by 164
- 2022FlexiViT: One Model for All Patch Sizescited by 151
- 2024Byte Latent Transformer: Patches Scale Better Than Tokenscited by 137
- 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 110
- 2023Language Models Enable Simple Systems for Generating Structured Views of Heterogeneous Data Lakescited by 101
- 2021Hierarchical Transformers Are More Efficient Language Modelscited by 99
- 2024Transformers need glasses! Information over-squashing in language taskscited by 87
- 2022Same Pre-training Loss, Better Downstream: Implicit Bias Matters for Language Modelscited by 84
- 2023MatFormer: Nested Transformer for Elastic Inferencecited by 79
- 2022Efficient Transformers with Dynamic Token Poolingcited by 75
- 2024What is Wrong with Perplexity for Long-context Language Modeling?cited by 68
- 2024RNNs are not Transformers (Yet): The Key Bottleneck on In-context Retrievalcited by 62
- 2024Just read twice: closing the recall gap for recurrent language modelscited by 55
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2026: 2.
2 papers.