Dimple: Discrete Diffusion Multimodal Large Language Model with Parallel Decoding
本文提出了Dimple,第一个离散扩散多模态大语言模型(DMLLM),通过结合自回归和扩散训练,实现了与自回归模型相当的性能,同时提高了推理效率和可控性。
更新于 2025-05-23。作者:Runpeng Yu、Xinyin Ma、Xinchao Wang。
中文摘要
在这项工作中,我们提出了Dimple,这是第一个离散扩散多模态大型语言模型(DMLLM)。我们观察到,仅使用纯离散扩散方法进行训练会导致显著的训练不稳定、性能次优以及严重的长度偏差问题。为了解决这些挑战,我们设计了一种新颖的训练范式,该范式结合了初始的自回归阶段和随后的扩散阶段。这种方法产生了Dimple-7B模型,它使用与LLaVA-NEXT相同的训练数据集和类似的训练流程。Dimple-7B在性能上最终超越了LLaVA-NEXT,提高了3.9%,证明了DMLLM可以实现与自回归模型相当的性能。为了提高推理效率,我们提出了一种称为自信解码的解码策略,该策略动态调整每步生成的标记数量,显著减少了生成迭代次数。在自回归模型中,生成过程中的前向迭代次数等于响应长度。然而,在自信解码中,Dimple所需的迭代次数甚至只有文本{响应长度}{3}。我们还重新实现了自回归模型中的预填充技术,并证明它在大多数基准评估中不会对性能产生显著影响,同时提供了1.5倍到7倍的速度提升。此外,我们探索了Dimple使用结构先验精确控制其响应的能力。这些先验以不同于基于指令或思维链提示的方式实现结构化响应,并允许对响应格式和长度进行精细控制,这在自回归模型中难以实现。总的来说,这项工作验证了DMLLM的可行性和优势,并提高了其推理效率和可控性。代码和模型可在https://github.com/yu-rp/Dimple获取。
英文摘要
In this work, we propose Dimple, the first Discrete Diffusion Multimodal Large Language Model (DMLLM). We observe that training with a purely discrete diffusion approach leads to significant training instability, suboptimal performance, and severe length bias issues. To address these challenges, we design a novel training paradigm that combines an initial autoregressive phase with a subsequent diffusion phase. This approach yields the Dimple-7B model, trained on the same dataset and using a similar training pipeline as LLaVA-NEXT. Dimple-7B ultimately surpasses LLaVA-NEXT in performance by 3.9%, demonstrating that DMLLM can achieve performance comparable to that of autoregressive models. To improve inference efficiency, we propose a decoding strategy termed confident decoding, which dynamically adjusts the number of tokens generated at each step, significantly reducing the number of generation iterations. In autoregressive models, the number of forward iterations during generation equals the response length. With confident decoding, however, the number of iterations needed by Dimple is even only text{response length}{3}. We also re-implement the prefilling technique in autoregressive models and demonstrate that it does not significantly impact performance on most benchmark evaluations, while offering a speedup of 1.5x to 7x. Additionally, we explore Dimple's capability to precisely control its response using structure priors. These priors enable structured responses in a manner distinct from instruction-based or chain-of-thought prompting, and allow fine-grained control over response format and length, which is difficult to achieve in autoregressive models. Overall, this work validates the feasibility and advantages of DMLLM and enhances its inference efficiency and controllability. Code and models are available at https://github.com/yu-rp/Dimple.
解读
一句话总结
本文提出了Dimple,第一个离散扩散多模态大语言模型(DMLLM),通过结合自回归和扩散训练,实现了与自回归模型相当的性能,同时提高了推理效率和可控性。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:现有的多模态大语言模型(MLLMs)主要依赖于自回归生成机制,存在训练不稳定、性能不佳和长度偏差等问题。
- 现有方案不足:自回归模型在训练和推理过程中存在效率低下、可控性差和难以处理长度偏差等问题。
- 研究目标:设计并实现一个高效的DMLLM,通过结合自回归和扩散训练,解决现有MLLMs的局限性。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种结合自回归和扩散训练的混合训练范式,有效地解决了离散扩散训练的稳定性、监督效率和长度偏差问题。
- 方法改进:提出了一种名为“自信解码”的解码策略,动态调整每个步骤生成的标记数量,显著减少了生成迭代的次数。
- 优势:DMLLM在性能上与自回归模型相当,同时提高了推理效率和可控性。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在多个多模态语言模型基准测试中进行了实验,Dimple在性能上超过了LLaVA-NEXT等基线模型。
- 性能提升:Dimple在性能上超过了LLaVA-NEXT等基线模型,平均性能提升了3.9%。
- 对比结果:Dimple在大多数基准测试中取得了最佳性能。
问题4:这个研究的实际应用价值是什么?
- 应用场景:DMLLM可以应用于需要高效和可控的多模态生成的场景,如问答系统、图像描述和文本生成等。
- 实施建议:建议在实际部署中使用DMLLM进行多模态生成任务,并利用其高效的推理和可控性优势。
- 局限与展望:DMLLM的训练数据量较小,未来可以探索使用更大规模的数据进行训练以提高性能。此外,还可以进一步优化推理算法以提高效率。
来源
机器可读索引:llms.txt