MMFlash:面向视觉语言模型的更快投机解码

·

研究论文 · 2026/11/16

MMFlash 是一个用于视觉语言模型(VLM)的推测解码框架。研究发现,基于扩散的草稿模型(如 DFlash)在多模态场景下,token 的接受率随视觉依赖程度升高而显著下降(从最低四分位的 46% 降至最高四分位的 22%),且多模态训练后该差距依然存在。为此,MMFlash 自适应地提高草稿模型预测较差的视觉依赖 token 的权重,并对长视频输入采用稀疏注意力以减少冗余计算并提升草稿质量。在多模态基准上,MMFlash 实现无损解码加速最高达 3.58 倍,分别比 EAGLE-3 和 DFlash 高出最多 195.4% 和 17.1%。

该工作首次系统研究了视觉语言模型中的扩散式推测解码,揭示了视觉依赖对接受率的影响,并提出了简单有效的改进方法,在多个多模态基准上取得了显著的无损加速,对多模态推理效率提升有重要参考价值。

Speculative decoding accelerates generation by letting a lightweight drafter propose tokens for parallel verification by a target model. Diffusion drafters such as DFlash propose an entire token block in a single forward pass, but mainly focus on text-only tasks, leaving multimodal drafting underexplored. To study this setting, we first introduce a metric of token-level visual dependence based on the KL divergence between next-token distributions with and without visual input. We find that acceptance rates decrease from 46% in the lowest visual-dependence quartile to 22% in the highest, with this disparity persisting after multimodal training. Motivated by this observation, we propose MMFlash, a simple and effective framework that adaptively upweights visually dependent tokens that the drafter predicts poorly. For long video inputs, MMFlash further employs sparse attention to reduce redundant attention computation and improve drafting quality. Across various multimodal benchmarks, MMFlash achieves lossless decoding speedups of up to 3.58times, outperforming EAGLE-3 and DFlash by up to 195.4% and 17.1%, respectively.

阅读原文

参与讨论