模型知道哪些token重要:通过噪声门实现的自动token选择
The Model Knows Which Tokens Matter: Automatic Token Selection via Noise Gating
AI总结:
AutoSelect通过噪声门实现自动token选择,提升视觉语言模型的推理效率与准确性。
摘要:
在视觉-语言模型(VLMs)中,视觉token主导了推理成本,但许多token携带冗余信息。现有剪枝方法缓解了这一问题,但通常依赖于注意力大小或相似度分数。我们重新将视觉token剪枝视为容量受限的通信:给定一个固定预算K,模型必须在有限的带宽内最大限度地保留视觉信息。我们提出了AutoSelect,它将一个轻量级的Scorer和Denoiser附加到冻结的VLM上,并仅使用标准的下一个token预测损失进行训练,而无需辅助目标或额外注释。在训练过程中,一个保持方差的噪声门会根据每个token预测的重要性调节每个token的信息流,使得梯度通过所有token传播;然后,一个对角注意力Denoiser会恢复扰动的表示。在推理时,仅剩下Scorer和一个硬top-K选择,添加了可忽略的延迟。在十个VLM基准测试中,AutoSelect在保留96.5%的完整模型准确性的同时,通过仅0.69毫秒的开销将LLM预填加速了2.85倍,并且能够转移到不同的VLM backbone而无需架构特定的调优。代码可在https://github.com/MedHK23/AutoSelect上获得。
英文摘要:
Visual tokens dominate inference cost in vision-language models (VLMs), yet many carry redundant information. Existing pruning methods alleviate this but typically rely on attention magnitude or similarity scores. We reformulate visual token pruning as capacity constrained communication: given a fixed budget K, the model must allocate limited bandwidth to maximally preserve visual information. We propose AutoSelect, which attaches a lightweight Scorer and Denoiser to a frozen VLM and trains with only the standard next token prediction loss, without auxiliary objectives or extra annotations. During training, a variance preserving noise gate modulates each token's information flow according to its predicted importance so that gradients propagate through all tokens; a diagonal attention Denoiser then recovers the perturbed representations. At inference, only the Scorer and a hard top-K selection remain, adding negligible latency. On ten VLM benchmarks, AutoSelect retains 96.5% of full model accuracy while accelerating LLM prefill by 2.85x with only 0.69 ms overhead, and transfers to different VLM backbones without architecture-specific tuning. Code is available at https://github.com/MedHK23/AutoSelect.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。