arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.41574cs.CLcs.LG
收藏

BYOD:构建你自己的DLM——高效的自回归模型到扩散语言模型的转换

BYOD: Build Your Own DLM - Efficient Autoregressive-to-Diffusion Language Model Conversion

Ruurd J. A. Kuiper, Robert A. Bagheri

AI总结:

提出仅用LoRA的BYOD方案,将Gemma 2等四款AR模型高效转为DLM,在九任务评估中表现优异,为扩展扩散生成至其他模型家族提供了实用途径。

摘要:

与自回归(AR)模型不同,扩散语言模型(DLM)允许并行令牌更新、灵活生成以及双向注意力,但主流系统依赖于成本高昂的预训练或全模型微调。我们提出了Build Your Own DLM(BYOD),一种仅使用LoRA的可泛化参数高效的AR-to-DLM转换方案。无需针对特定架构的调优,BYOD可在Gemma 2 9B、Llama 3.1 8B、Qwen2.5 7B和Ministral 8B中诱导扩散生成;据我们所知,这是首次报道的Mistral模型的AR-to-DLM转换。适配器占最终参数的4.1%-5.8%,而所有基础模型参数保持冻结;每次25000次迭代的转换最多需要1.024亿个令牌,在单个Google Colab GPU上处理时间为3.1-4.0小时。所有四个模型均可从完全掩码序列生成,在受控注意力测试中使用双向上下文,并保留了大量父模型知识。在我们的九任务评估中,BYOD-Gemma是最强的BYOD转换,平均准确率达到50.6%,而在同一测试框架中,LLaDA 8B Instruct的平均准确率为51.9%。低网络函数评估(NFE)预算下的开放生成质量仍是主要限制:在64步生成128个令牌时,BYOD的困惑度为8.3-11.1,而LLaDA的困惑度为4.1,AR父模型的困惑度为2.2-3.0。为了支持进一步的实验和检查,我们提供了独立的训练与评估实现,以及所有四个转换的交互式演示。因此,BYOD为将扩散生成扩展到其他现有模型家族提供了实用途径,同时明确了高效转换下一步必须缩小的差距。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

相关深度报道

↑