TokenGate: Adapting LLMs for Fast and Memory-Efficient Prefill with Learned Token Pruning
The authors report 1.4–11.3× faster time to first token and 1.5–3.4× lower peak memory, with no accuracy loss across the tasks tested.
TokenGate adds a small component to trained models that learns which input tokens to prune during prefill. Its token-gated attention uses importance scores to reweight attention logits, enabling end-to-end learning despite the non-differentiable pruning step. Against the best-performing prior token-pruning methods, the paper reports up to 6.4× faster prefill and 2× lower peak memory. It supports standard transformers and hybrid-attention models through lightweight adaptation comparable to parameter-efficient fine-tuning.
ArXiv · AI/CL/LG's note
TokenGate adds a small component to trained models that learns which input tokens to prune during prefill. Its token-gated attention uses importance scores to reweight attention logits, enabling end-to-end learning despite the non-differentiable pruning step. Against the best-performing prior token-pruning methods, the paper reports up to 6.4× faster prefill and 2× lower peak memory. It supports standard transformers and hybrid-attention models through lightweight adaptation comparable to parameter-efficient fine-tuning.
ArXiv · AI/CL/LG's note
score 5