TokenGate: learnable token pruning cuts LLM prefill TTFT by up to 11.3x

pmttyji · reddit · 2026-10-21

The TokenGate paper introduces a drop-in module enabling end-to-end learnable token pruning for long-context LLMs via 'token-gated attention', an MoE-inspired reweighting of attention logits that sidesteps the non-differentiable top-K. It achieves 1.4–11.3x faster TTFT and 1.5–3.4x lower peak memory with no accuracy loss, beating prior pruning methods by up to 6.4x, and works on both standard (Qwen3) and hybrid-attention (Qwen3.5) models. Code is open source.

Related event: TokenGate: Learnable Token Pruning Speeds Up LLM Prefill up to 11x(2 posts)→

Original post →

More from Infra

Infra channel →