Fast-dVLM: 通过直接转换自回归VLM实现高效的块扩散VLM
Fast-dVLM: Efficient Block-Diffusion VLM via Direct Conversion from Autoregressive VLM
AI总结:
本文提出Fast-dVLM,通过直接转换自回归VLM实现高效的块扩散VLM,采用KV-cache兼容并行解码和推测块解码,提升推理效率。实验表明其生成质量与自回归模型相当,且通过SGLang和FP8量化实现6倍以上的推理加速。
摘要:
视觉语言模型(VLMs)主要依赖自回归解码,逐个生成标记,从根本上限制了推理吞吐量。这一限制在物理AI场景如机器人和自动驾驶中尤为突出,其中VLMs在边缘设备上以单批大小部署,使AR解码成为内存带宽受限的,并留下硬件并行性未被充分利用。尽管块状离散扩散在并行文本生成中显示出潜力,但将其扩展到VLMs仍然具有挑战性,因为需要同时处理连续视觉表示和离散文本标记,同时保持预训练的多模态能力。我们提出了Fast-dVLM,一种基于块扩散的VLM,能够实现与KV-cache兼容的并行解码和推测块解码,以加速推理。我们系统地比较了两种AR到扩散转换策略:一种是两阶段方法,首先用文本-only扩散微调LLM骨干,然后再进行多模态训练;另一种是直接方法,将完整的AR VLM在单阶段内转换。在可比的训练预算下,直接转换证明了显著的效率,因为它利用了已经多模态对齐的VLM;因此,我们采用它作为我们的推荐配方。我们引入了一套多模态扩散适应,块大小退火,因果上下文注意,自动截断掩码,以及视觉高效连接,这些共同使VLM设置中的有效块扩散成为可能。在11个多模态基准测试中,广泛实验表明Fast-dVLM在生成质量上与自回归模型相当。通过SGLang集成和FP8量化,Fast-dVLM在AR基线上的端到端推理速度提升超过6倍。
英文摘要:
Vision-language models (VLMs) predominantly rely on autoregressive decoding, which generates tokens one at a time and fundamentally limits inference throughput. This limitation is especially acute in physical AI scenarios such as robotics and autonomous driving, where VLMs are deployed on edge devices at batch size one, making AR decoding memory-bandwidth-bound and leaving hardware parallelism underutilized. While block-wise discrete diffusion has shown promise for parallel text generation, extending it to VLMs remains challenging due to the need to jointly handle continuous visual representations and discrete text tokens while preserving pretrained multimodal capabilities. We present Fast-dVLM, a block-diffusion-based VLM that enables KV-cache-compatible parallel decoding and speculative block decoding for inference acceleration. We systematically compare two AR-to-diffusion conversion strategies: a two-stage approach that first adapts the LLM backbone with text-only diffusion fine-tuning before multimodal training, and a direct approach that converts the full AR VLM in one stage. Under comparable training budgets, direct conversion proves substantially more efficient by leveraging the already multimodally aligned VLM; we therefore adopt it as our recommended recipe. We introduce a suite of multimodal diffusion adaptations, block size annealing, causal context attention, auto-truncation masking, and vision efficient concatenation, that collectively enable effective block diffusion in the VLM setting. Extensive experiments across 11 multimodal benchmarks show Fast-dVLM matches its autoregressive counterpart in generation quality. With SGLang integration and FP8 quantization, Fast-dVLM achieves over 6x end-to-end inference speedup over the AR baseline.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。