MMFlash:用于视觉语言模型的更快推测解码
MMFlash: Faster Speculative Decoding for Vision-Language Models
AI总结:
针对视觉语言模型多模态推测解码的不足,提出MMFlash框架,通过自适应提升视觉依赖token权重及长视频稀疏注意力,实现最高3.58倍无损解码加速,性能优于EAGLE-3和DFlash。
摘要:
推测解码通过让轻量级草稿模型提出token,供目标模型并行验证来加速生成。DFlash等扩散草稿模型在单次前向传播中提出整个token块,但主要聚焦于纯文本任务,多模态草稿生成的研究不足。为研究该场景,我们首先引入基于有无视觉输入的下一个token分布间KL散度的token级视觉依赖度指标,发现接受率从视觉依赖度最低四分位的46%降至最高四分位的22%,且该差距在多模态训练后仍存在。受此观察启发,我们提出MMFlash,这一简单有效的框架会自适应提升草稿模型预测不佳的视觉依赖token的权重;对于长视频输入,MMFlash还采用稀疏注意力以减少冗余注意力计算并提升草稿生成质量。在各类多模态基准上,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.58\times$, outperforming EAGLE-3 and DFlash by up to 195.4% and 17.1%, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。