ReTrace:面向高效多模态大语言模型的视觉回溯技术
ReTrace: Visual Backtracking for Efficient Multimodal Large Language Models
AI总结:
ReTrace 是一种感知回溯的压缩框架,通过引入休眠 token 状态,在 Qwen2.5-VL 和 InternVL3 上实现近 90% 的 FLOPs 与 KV 缓存降低、2.83 倍预填充加速,同时保持性能。
摘要:
多模态大语言模型(Multimodal Large Language Models, MLLMs)将图像编码为密集的视觉 token 序列,这会产生大量的注意力和 KV 缓存开销。现有的视觉 token 压缩方法通过剪枝浅层中低显著性的 token 来降低该成本,但这种做法将临时计算停用与不可逆的信息删除绑定在一起。我们表明,这种绑定会破坏 MLLMs 的固有推理模式。通过逐层注意力分析,我们识别出**视觉回溯(Visual Backtracking)**:视觉枢轴在空间上保持稳定,但在中间层会主动从早期看似不重要的 token 中检索上下文。因此,早期低显著性 token 可以在计算中处于弃权(不执行)状态,同时仍对后续推理有用。基于这一发现,我们提出了**ReTrace**,一种感知回溯的压缩框架,它引入了休眠 token 状态。ReTrace 将非枢轴 token 缓存在昂贵的逐层计算之外,在回溯窗口期间恢复它们,并仅在其信息被吸收后才进行剪枝。在 Qwen2.5-VL 和 InternVL3 上的实验表明,该方法可将 FLOPs 和 KV 缓存降低近 90%,预填充速度提升 2.83 倍,且在复杂的视觉-语言基准测试中保持了强劲的性能。
英文摘要:
Multimodal Large Language Models (MLLMs) encode images into dense visual token sequences, creating substantial attention and KV-cache overhead. Existing visual token compression methods reduce this cost by pruning low-saliency tokens in shallow layers, but this practice couples temporary computational deactivation with irreversible information deletion. We show that this coupling breaks an intrinsic inference pattern in MLLMs. Through layer-wise attention analysis, we identify \textbf{Visual Backtracking}: visual pivots remain spatially stable, yet in middle layers they actively retrieve context from tokens that appeared unimportant earlier. Thus, early low-saliency tokens can be inactive for computation while still being useful for later reasoning. Motivated by this finding, we propose \textbf{ReTrace}, a backtracking-aware compression framework that introduces a dormant token state. ReTrace caches non-pivot tokens outside expensive layer-wise computation, restores them during the backtracking window, and prunes only after their information has been absorbed. Experiments on Qwen2.5-VL and InternVL3 demonstrate nearly 90\% reductions in FLOPs and KV cache, a 2.83$\times$ prefilling speedup, and strong performance retention across complex vision-language benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。