Introduction
Diffusion models have seen remarkable success in continuous domains like image and audio synthesis. However, applying them to natural language processing (NLP) remains challenging due to the discrete nature of text. While recent models like DiffusionLM and DiffuSeq have bridged this gap by operating in the word embedding space, they often rely on inefficient encoder-only architectures. These models redundantly re-encode static input text at every denoising step and typically use uniform noise schedules that ignore the varying predictive difficulty of different tokens.
SeqDiffuSeq: Architecture and Methodology
To address these limitations, this paper introduces SeqDiffuSeq, a continuous text diffusion model specifically designed for sequence-to-sequence (seq2seq) generation. The model incorporates three primary innovations: an encoder-decoder framework, self-conditioning, and a token-level adaptive noise schedule.
Encoder-Decoder Framework
Unlike previous encoder-only diffusion models, SeqDiffuSeq utilizes a standard Transformer encoder-decoder. The encoder processes the source sequence $w_x$ just once to produce hidden representations. The decoder then iteratively denoises the target sequence $z_t$ over $T$ steps, leveraging cross-attention to the static encoder output. This decoupling significantly reduces the computational overhead during the thousands of reverse diffusion steps.
Self-Conditioning and Adaptive Noise
The model employs self-conditioning, where the prediction of the clean sequence from the previous denoising step is used as additional context for the current step. This allows for iterative refinement of the generated text.
Furthermore, the authors propose a token-level adaptive noise schedule. Standard diffusion models apply a fixed global noise schedule. SeqDiffuSeq instead learns a dynamic schedule that adjusts the noise level based on the training loss at each token position. This ensures that the difficulty of predicting a token increases linearly with the diffusion time step, effectively balancing the learning process across the sequence.
Key Insights
Emergent Left-to-Right Generation
A notable finding is that the adaptive noise schedule leads to an emergent left-to-right generation pattern. The model learns to apply flatter noise schedules to earlier token positions, meaning information for the beginning of a sentence is recovered sooner. This suggests that even in a non-autoregressive diffusion process, the model naturally prioritizes the structural dependencies common in human language.
Efficiency Gains
By avoiding the repeated encoding of source text, SeqDiffuSeq achieves a 3.56x inference speedup compared to encoder-only baselines like DiffuSeq. In practical terms, generating a batch of 50 samples was reduced from 317 seconds to just 89 seconds on a V100 GPU.
Experimental Results
SeqDiffuSeq was evaluated across diverse tasks, including paraphrase generation (QQP), text simplification (Wiki-Auto), and machine translation (WMT14).
Quality vs. Diversity
The inclusion of self-conditioning and adaptive noise significantly boosts text quality. On the QQP dataset, SeqDiffuSeq reached a BLEU score of 23.28, a substantial improvement over DiffuSeq's 18.47. However, this increase in quality comes with a trade-off in diversity. As shown in the experimental results, while SeqDiffuSeq (SDS) maintains high SacreBLEU scores even with fewer candidates, its diversity (Div.4) is lower than the vanilla diffusion baseline. This trade-off is often acceptable in practice as it reduces the need for expensive Minimum Bayes Risk (MBR) decoding.
Ablation Studies
Ablation tests confirmed the importance of the proposed components. Removing the adaptive noise schedule resulted in an average drop of 2.29 BLEU points, while removing self-conditioning led to a 1.34-point decrease. Removing both features simultaneously caused a severe performance degradation of 5.71 points.
Conclusion and Future Work
SeqDiffuSeq demonstrates that architectural optimizations and smarter noise scheduling can drastically improve the efficiency and quality of text diffusion models. While they remain slower than standard autoregressive models due to the iterative denoising process, the 3.5x speedup is a significant step toward practical deployment. Future research will likely focus on reducing the number of required sampling steps and finding ways to maintain high generation diversity alongside superior text quality.
Summary updated