TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token Pruning
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.
ProofPaper ↗
Key points
- Expert human readers process large inputs (e.g., code repositories and long documents) by skimming to closely read only what matters.
- 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.3times faster time-to-first token (TTFT) and 1.5-3.4times lower peak memory at no accuracy degradation for prefill in transformers.
- 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.
Sources (2)
- [1]TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token PruningHugging Face Daily Papers · Oct 19, 12:00 AM
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.
Expert human readers process large inputs (e.g., code repositories and long documents) by skimming to closely read only what matters.
- [2]TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token PruningarXiv (AI, ML, NLP, CV, robotics, multi-agent) · Oct 19, 05:15 PM · same content
Extractive summary: sentences quoted from the sources.
Before this
- Oct 17, 2026deepseek-ai/DeepSeek-V4.1-Flash-1017
- Oct 17, 2026Nemotron 3.5 Bolt, Muse Spark Open, and a Fast LFM2.5 24B
- Oct 16, 2026Hugging Face ❤️ TorchTPU: TPUs, Natively
- Oct 16, 2026[Research] 2,788 tokens/s on a single RTX 5090 with a diffusion LLM — Introducing ORL (fully open source)
- Oct 16, 2026Welcome Beam: a 501B open model you can own, customize, and scale
- Oct 16, 2026Towards Looped Models Done Right, Part I: Topology, Input Injection, Recurrent-State Design