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

SeqDiffuSeq: Text Diffusion with Encoder-Decoder Transformers

Hongyi Yuan, Zheng Yuan, Chuanqi Tan, Fei Huang, Songfang HuangarXiv 2022 · DOI

Abstract

Diffusion models have achieved remarkable success in continuous domains like image generation, but their application to discrete natural language processing remains challenging. We present SeqDiffuSeq, a text diffusion model optimized for sequence-to-sequence (seq2seq) tasks. By employing an encoder-decoder Transformer architecture and a novel adaptive noise schedule, SeqDiffuSeq overcomes the computational inefficiencies and rigid noise calibration of prior models. Our approach achieves state-of-the-art performance among diffusion models and competitive results against large-scale autoregressive models while providing a 3.56x inference speedup over previous diffusion baselines.

Introduction

Natural language generation typically relies on autoregressive (AR) models. While effective, AR models can suffer from exposure bias and limited diversity. Diffusion models offer a non-autoregressive alternative but face two primary hurdles in text: the discrete nature of tokens and the high computational cost of iterative denoising. Previous models like DiffuSeq utilized encoder-only architectures, requiring the entire input-output pair to be re-processed at every step. Furthermore, these models often used fixed noise schedules that failed to account for varying prediction difficulties across different parts of a sequence.

Methods

SeqDiffuSeq introduces an encoder-decoder framework to decouple source processing from target generation. The Transformer encoder processes the source text $w_x$ once, while the decoder iteratively denoises the target sequence $z_t$ through a reverse process. This architecture, illustrated in Figure 1, significantly reduces the per-step computational overhead.

Figure 1: The SeqDiffuSeq architecture featuring an encoder-decoder setup with cross-attention and iterative denoising.

Beyond architecture, SeqDiffuSeq employs self-conditioning, allowing the model to leverage its previous predictions to guide the current denoising step. A critical innovation is the Adaptive Noise Schedule. Instead of a static function (like a square root or cosine curve), the model learns a token-level schedule that adjusts noise based on the denoising difficulty at specific positions and time steps. This adaptive approach revealed an emergent "left-to-right" generation pattern, where the model naturally prioritizes fixing earlier tokens in a sequence, mimicking human-like generation without explicit constraints.

Key Results

The model was evaluated across five diverse seq2seq tasks, including paraphrase generation (QQP), text simplification (Wiki-Auto), and machine translation. As shown in Figure 6, SeqDiffuSeq consistently outperforms previous diffusion models and non-autoregressive baselines. Notably, on the Wiki-Auto dataset, SeqDiffuSeq achieves a BLEU score of 37.09, significantly outperforming a fine-tuned GPT-2 Large (26.93).

Figure 6: Performance comparison of SeqDiffuSeq against various baselines on QQP and Wiki-Auto datasets.

The use of Minimum Bayes Risk (MBR) decoding further enhances quality by selecting the best candidate from a generated pool, as seen in the "SeqDiffuSeq w/ MBR=10" results. Ablation studies confirmed the importance of the adaptive noise schedule; removing it caused an average BLEU score drop of 2.29 points. Additionally, the move to an encoder-decoder setup yielded a 3.56x inference speedup compared to the previous state-of-the-art DiffuSeq.

Conclusion and Future Work

SeqDiffuSeq represents a significant step forward for text diffusion, offering a more efficient and effective framework for seq2seq tasks. While it still faces a "speed tax" inherent to iterative diffusion compared to single-pass AR models, its ability to generate high-quality, diverse text makes it a compelling alternative. Future research will explore distillation techniques to further accelerate inference without sacrificing the unique diversity that diffusion models provide.

Summary updated

BibTeX
@misc{yuan2022seqdiffuseq,
  author = {Hongyi Yuan and Zheng Yuan and Chuanqi Tan and Fei Huang and Songfang Huang},
  title = {{SeqDiffuSeq: Text Diffusion with Encoder-Decoder Transformers}},
  year = {2022},
  eprint = {2212.10325},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.10325},
}
Figure