MMFlash:面向视觉语言模型的更快投机解码
MMFlash: Faster Speculative Decoding for Vision-Language Models
Sicheng Feng, Zigeng Chen, Song Wang, Gongfan Fang, Xinchao Wang
AI 速读 基于摘要
作者提出 MMFlash,通过自适应加权视觉依赖 token 并对长视频采用稀疏注意力,提升视觉语言模型投机解码的草稿质量与速度。
cs.CV
查看原文摘要
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.58\times$, outperforming EAGLE-3 and DFlash by up to 195.4% and 17.1%, respectively.