TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token Pruning
On the map: Efficient LLM inference and serving → Visual token pruning in multimodal models also fits: Prompt and context compression
Abstract (arXiv)
Expert human readers process large inputs (e.g., code repositories and long documents) by skimming to closely read only what matters. On the other hand, language models process all input tokens through each model layer, resulting in significant processing costs for long-context inputs. We introduce TokenGate, a small, drop-in component that extends existing trained models to enable end-to-end learnable token pruning over long-context inputs for fast and memory-efficient prefill. To enable end-to-end learning despite the non-differentiable top-K operator for token pruning, we introduce token-gated attention, a mechanism inspired by Mixture-of-Experts that re-weights attention logits using token importance scores. Across diverse tasks, TokenGate achieves 1.4-11.3× faster time-to-first token (TTFT) and 1.5-3.4× lower peak memory at no accuracy degradation for prefill in transformers. Compared to the best-performing prior methods for token-pruning, TokenGate gives up to 6.4× faster prefill and 2× lower peak memory. TokenGate natively extends both standard transformers (e.g., Qwen3) and hybrid-attention models (e.g., Qwen3.5) with simple lightweight adaptation comparable to standard parameter-efficient fine-tuning. We make our code available at: https://github.com/tokengate-models/TokenGate.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Placed in Visual token pruning in multimodal models, one of 12 directions in Efficient LLM inference and serving. Builds on 51 of its 61 references that are in the map. Submitted 19 Oct 2026.
Builds on
51 of 61 references.
References · 51
- 2017Attention Is All You Needcited by 62,125
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 15,591
- 2025Qwen3 Technical Reportcited by 9,994
- 2017On Calibration of Modern Neural Networkscited by 5,356
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 5,111
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,767
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,272
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,787
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,130
- 2019Root Mean Square Layer Normalizationcited by 1,624
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,557
38 more
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,479
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,392
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 1,003
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 915
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 690
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 578
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 502
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 479
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 469
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 455
- 2019Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Modelcited by 448
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 431
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 415
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 384
- 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 354
- 2022Confident Adaptive Language Modelingcited by 348
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 328
- 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 294
- 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 241
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 232
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 206
- 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 189
- 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inferencecited by 156
- 2021Learned Token Pruning for Transformerscited by 144
- 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 143
- 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 142
- 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstructioncited by 116
- 2023CoLT5: Faster Long-Range Transformers with Conditional Computationcited by 91
- 2024LazyLLM: Dynamic Token Pruning for Efficient Long Context LLM Inferencecited by 80
- 2025Scalable-Softmax Is Superior for Attentioncited by 58
- 2024Discovering the Gems in Early Layers: Accelerating Long-Context LLMs with 1000x Input Token Reductioncited by 49
- 2025FastKV: Decoupling of Context Reduction and KV Cache Compression for Prefill-Decoding Accelerationcited by 18
- 2025SlimInfer: Accelerating Long-Context LLM Inference via Dynamic Token Pruningcited by 16
- 2023BioDEX: Large-Scale Biomedical Adverse Drug Event Extraction for Real-World Pharmacovigilancecited by 13
- 2024Router-Tuning: A Simple and Effective Approach for Enabling Dynamic-Depth in Transformerscited by 12
- 2024Post-Hoc Reversal: Are We Selecting Models Prematurely?cited by 10
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inferencecited by 5
- 2025PromptDistill: Query-based Selective Token Retention in Intermediate Layers for Efficient Large Language Model Inferencecited by 2
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Capturing Token Tendencies for Training-Free Token Pruning in Multimodal Large Language Models
- 2024Focus on the Core: Efficient Attention via Pruned Token Compression for Document Classification
- 2025ZeroTuning: Unlocking the Initial Token's Power to Enhance Large Language Models Without Training
- 2026SpotAttention: Plug-In Block-Sparse Routing for Pretrained Long-Context Transformers
- 2025Saliency-driven Dynamic Token Pruning for Large Language Models
- 2025Token Pruning in Multimodal Large Language Models: Are We Solving the Right Problem?
- 2026FASA: Frequency-aware Sparse Attention
- 2026Unlearning What Matters: Token-Level Attribution for Precise Language Model Unlearning