NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transfer Learning for Text Diffusion Models

Kehang Han, Kathleen Kenealy, Aditya Barua, Noah Fiedel, Noah ConstantarXiv 2024 · DOI

Introduction

The current landscape of Large Language Models (LLMs) is dominated by autoregressive (AR) architectures. While highly effective, these models generate text sequentially, token by token, which leads to significant latency during long-form generation. Text diffusion models offer a promising alternative by refining entire sequences in parallel, yet they typically require training from scratch with specialized objectives—a costly endeavor that ignores the massive existing investment in AR models.

Researchers from Google DeepMind address this gap with AR2Diff, a lightweight adaptation procedure that converts pretrained AR models into high-performance text diffusion models. This approach allows developers to leverage the rich linguistic representations of existing LLMs while gaining the inference speed advantages of non-autoregressive generation.

Methodology: The AR2Diff Pipeline

The core of the proposed approach is a three-stage transfer learning process designed to transition a model from sequential prediction to iterative denoising.

The AR2Diff transfer learning pipeline consists of three stages: initial AR pretraining, adaptation to bidirectional attention with diffusion loss, and task-specific fine-tuning.
  1. AR Pretraining: The process begins with a standard decoder-only model trained on a massive corpus using causal attention.
  2. AR2Diff Adaptation: The model's attention mechanism is switched from causal to bidirectional, allowing it to observe the entire sequence context simultaneously. It is then trained for a relatively small number of steps using a discrete diffusion loss.
  3. Fine-Tuning: Finally, the adapted model is fine-tuned on downstream tasks, such as code synthesis or question answering, using the same diffusion objective.

Through extensive architectural search, the authors found that decoder-only architectures with a Prefix LM objective provided the most effective scaffold for diffusion, aligning well with the structure of modern state-of-the-art LLMs.

Evaluation and Results

The models were evaluated across several benchmarks including WMT14 (translation), SQuAD (extractive QA), and MBPP (code synthesis).

Inference Speed

The most striking result is the efficiency gain in long-form generation. Because diffusion models can generate or refine an entire sequence in a fixed number of steps, their inference time scales much more favorably than the linear scaling of AR models.

Inference time comparison showing that diffusion models are significantly faster than autoregressive models for long sequences, achieving up to a 30x speedup at 4,000 tokens.

As shown in the figure above, for sequences of 4,000 tokens, diffusion decoding is approximately 30x faster than AR decoding. Even at moderate lengths of 500 tokens, a 10x speed advantage is maintained.

Task Performance

Beyond speed, the adapted diffusion models demonstrated superior quality in specific domains:

  • Extractive QA (SQuAD): At the Base scale, the diffusion model achieved a 77.4 F1 score, significantly outperforming the 68.1 F1 of the AR baseline.
  • Code Synthesis (MBPP): The largest diffusion model (XL) reached an 18.8% Pass@80, surpassing the AR model's 15.5%.
  • Machine Translation: AR models still lead in translation tasks, likely because the rigid, word-for-word nature of translation benefits from the strict ordering of sequential generation.

Discussion and Future Work

The success of AR2Diff suggests that AR pretraining provides a "warm start" for diffusion, creating internal representations that are more robust than those learned from diffusion training alone. However, limitations remain. For very short sequences, the overhead of multiple diffusion steps makes AR the faster choice. Future research will likely focus on reducing per-step latency and exploring whether the "draft-and-revise" nature of diffusion can provide a cognitive edge in complex reasoning tasks.

Summary updated

BibTeX
@misc{han2024transfer,
  author = {Kehang Han and Kathleen Kenealy and Aditya Barua and Noah Fiedel and Noah Constant},
  title = {{Transfer Learning for Text Diffusion Models}},
  year = {2024},
  eprint = {2401.17181},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.17181},
}
Figure