# Stanford and UC Berkeley researchers introduce TokenGate for faster long-context prefill

> Original title: Researchers from Stanford and UC Berkeley Introduce TokenGate: Token-Gated Attention Makes Long-Context Prefill Up to 11.3x Faster

- Source: MarkTechPost
- Published: 2026-10-25T12:12:18.000Z
- Bad Influence: https://badinfluence.news/items/tqr0cbsyzey6vkoitbzazeoq0
- Original: https://www.marktechpost.com/2026/10/25/stanford-berkeley-tokengate-learned-token-pruning-llm-prefill/

## Summary

Stanford and UC Berkeley researchers release TokenGate, a learned token-pruning module that lets an existing LLM process only the input tokens that matter. The team reports 1.4x to 11.3x faster time-to-first-token and 1.5x to 3.4x lower peak prefill memory, with no accuracy loss on the tested tasks. Code and checkpoints are on GitHub under Apache-2.0, with the gate tested on Qwen3-1.7B and Qwen3.5-2B.
