稀疏性强制:强化多模态大语言模型的token稀疏性
Sparsity Forcing: Reinforcing Token Sparsity of MLLMs
AI总结:
本文提出Sparsity Forcing方法,通过强化学习框架在多模态大语言模型中提升token稀疏性,实现75%的token减少与极小的精度损失。
摘要:
稀疏注意力机制旨在通过选择性处理显著token来减少计算开销,同时保持最小的精度损失。尽管其有效性,大多数方法仅利用模型固有的稀疏性,因此在中等预算(约50%的token减少)处停滞,几乎没有余地在不损害精度的情况下进一步降低预算。其他方法尝试通过可训练的稀疏注意力或诱导尖锐性的正则化器来强制稀疏性,但这些方法要么固定了忽视输入和层动态的刚性模式,要么优化了代理目标而没有直接控制token预算。在本文中,我们通过一个名为Sparsity Forcing的简单基于强化学习的后训练框架,显式地在well-posed的多模态大语言模型(MLLMs)中强化token稀疏性。我们的方法通过运行具有不同token预算的多个rollouts来探索效率-精度权衡,其中效率(token减少比例)和性能(答案正确性)均被 formulation 为联合奖励。通过对比每个组内的rollouts,更高效且正确的答案被奖励,而效率较低或错误的答案则被惩罚,从而将token节省转化为一个端到端、推理一致的优化目标。在十三个图像和视频基准测试中,Sparsity Forcing将Qwen2-VL/Qwen2.5-VL的token减少比例从20%提升到75%,同时精度下降极小,显著减少了长上下文推理内存,最多减少3倍,同时将解码速度提升了3.3倍。
英文摘要:
Sparse attention mechanisms aim to reduce computational overhead with minimal accuracy loss by selectively processing salient tokens. Despite their effectiveness, most methods merely exploit a model's inherent sparsity and thus plateau at moderate budgets (about 50\% token reduction), with little headroom to push budget lower without hurting accuracy. Other approaches attempt to enforce sparsity through trainable sparse attention or sharpness-inducing regularizers, but these either fix rigid patterns that ignore input and layer dynamics, or optimize proxy objectives without direct control over token budgets. In this paper, we explicitly reinforce token sparsity in well-posed multimodal large language models (MLLMs) through a simple RL-based post-training framework named \textit{Sparsity Forcing}. Our method explores the efficiency-accuracy trade-off by running multiple rollouts with different token budgets, where both efficiency (token reduction ratio) and performance (answer correctness) are formulated as joint rewards. By contrasting rollouts within each group, the more efficient and correct answer is rewarded while less efficient or incorrect ones are penalized, thereby turning token saving into an end-to-end, inference-consistent optimization objective. Across thirteen image and video benchmarks, Sparsity Forcing raises token reduction ratio on Qwen2-VL/Qwen2.5-VL from 20\% to 75\% with minimal accuracy decline, significantly reducing long-context inference memory by up to 3$\times$ while speeding up decoding by up to 3.3$\times$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。