BYOD:构建你自己的 DLM - 高效的自回归到扩散语言模型转换
研究论文 · 2026/11/03
BYOD 提出了一种仅使用 LoRA 的通用方法,可将自回归语言模型转换为扩散语言模型,无需架构特定调优或全模型微调。在 Gemma 2 9B、Llama 3.1 8B、Qwen2.5 7B 和 Ministral 8B 上成功实现转换(首次报道 Mistral 模型的 AR-to-DLM 转换),适配器仅占最终参数的 4.1-5.8%,基础模型参数全部冻结。每次转换最多需 1.024 亿 token,在单块 Google Colab GPU 上耗时 3.1-4.0 小时。四个模型均能从全掩码序列生成,在受控注意力测试中使用双向上下文,并保留大量父模型知识。在九项任务评估中,BYOD-Gemma 平均准确率达 50.6%,接近 LLaDA 8B Instruct 的 51.9%。主要局限在于低 NFE 预算下的开放生成质量:生成 128 token(64 步)时,BYOD 困惑度为 8.3-11.1,而 LLaDA 为 4.1,AR 父模型为 2.2-3.0。作者提供了独立训练评估实现和交互演示。
BYOD 提供了一种低成本、通用的方法,将现有自回归语言模型转换为扩散语言模型,仅需训练少量 LoRA 适配器,即可在多个主流模型家族上实现扩散生成,并保留父模型知识。该方法降低了扩散语言模型的入门门槛,为研究者提供了实用的转换工具和开源实现,同时明确了当前转换方法在生成质量上的不足,指明了未来改进方向。
Unlike autoregressive (AR) models, diffusion language models (DLMs) permit parallel token updates, flexible generation, and bidirectional attention, but leading systems rely on costly pretraining or full-model fine-tuning. We present Build Your Own DLM (BYOD), a generalizable LoRA-only recipe for parameter-efficient AR-to-DLM conversion. Without architecture-specific tuning, BYOD induces diffusion generation in Gemma 2 9B, Llama 3.1 8B, Qwen2.5 7B, and Ministral 8B; to our knowledge, this is the first reported AR-to-DLM conversion of a Mistral model. The adapters comprise 4.1-5.8% of final parameters while every base-model parameter remains frozen; each 25,000-iteration conversion needs at most 102.4M tokens, processed in 3.1-4.0 hours on one Google Colab GPU. All four models generate from fully masked sequences, use bidirectional context in a controlled attention test, and retain substantial parent-model knowledge. BYOD-Gemma is the strongest BYOD conversion on our nine-task evaluation, reaching 50.6% average accuracy compared with 51.9% for LLaDA 8B Instruct in the same harness. Open-generation quality at low network function evaluation (NFE) budgets remains the principal limitation: BYOD perplexity is 8.3-11.1 versus 4.1 for LLaDA and 2.2-3.0 for the AR parents when generating 128 tokens in 64 steps. To enable further experimentation and inspection, we provide a standalone training and evaluation implementation and interactive demos for all four conversions. BYOD thus provides a practical route for extending diffusion generation to other existing model families while identifying the gap that efficient conversion must next close.