Abstract
Diffusion models have shown immense promise in generative tasks but face significant efficiency hurdles in natural language processing due to the discrete nature of text. DiffuSeq-v2 addresses these challenges by introducing a "soft absorbing state" that bridges the gap between discrete tokens and continuous embeddings. By combining this hybrid noise strategy with advanced ODE solvers, DiffuSeq-v2 achieves an 800x speedup in sampling and 4x faster training convergence compared to previous state-of-the-art diffusion models, while simultaneously improving generation quality on sequence-to-sequence tasks.
1. Introduction
While diffusion models have become the standard for high-fidelity image synthesis, their application to sequence-to-sequence (Seq2Seq) text generation remains non-trivial. Unlike continuous image pixels, text is inherently discrete. Current text diffusion models typically map tokens into a continuous embedding space and apply Gaussian noise. However, this approach often suffers from a "rounding" mismatch between training and inference, necessitating computationally expensive techniques like Minimum Bayes Risk (MBR) decoding to maintain quality. DiffuSeq-v2 is designed to eliminate these bottlenecks, providing a highly efficient framework for text diffusion.
2. Methodology
The core innovation of DiffuSeq-v2 lies in its dual-pronged approach to noise modeling and sampling acceleration.
2.1 The Soft Absorbing State
In traditional continuous diffusion, Gaussian noise is added to word embeddings. DiffuSeq-v2 introduces a "soft absorbing state" ($m$), a learnable vector that acts as a continuous-space analogue to the [MASK] token used in discrete models like BERT. During the forward noising process, tokens are not only perturbed by Gaussian noise but are also randomly replaced by this absorbing state. This hybrid strategy forces the model to learn reconstruction from both discrete-style mutations and continuous noise, effectively bridging the mathematical gap between the two spaces.
2.2 Accelerated Sampling with DPM-solver++
The alignment provided by the soft absorbing state allows the model to leverage advanced Ordinary Differential Equation (ODE) solvers. The authors integrate DPM-solver++, a state-of-the-art solver originally designed for fast image generation. While previous text diffusion models required hundreds or thousands of steps to produce coherent text, DiffuSeq-v2 can generate high-quality outputs in as few as 2 to 10 steps.
3. Experimental Evaluation
The model was evaluated on the Quora Question Pairs (QQP) dataset, a standard benchmark for paraphrase generation. The objective is to generate semantically equivalent sentences with varied syntax and vocabulary.
3.1 Performance and Efficiency
The results demonstrate a significant leap in both speed and quality:
- Sampling Speed: By removing the need for MBR decoding and utilizing DPM-solver++, DiffuSeq-v2 achieves a throughput of 406.5 iterations per second, compared to 0.51 in the original DiffuSeq—an approximate 800x speedup.
- Training Efficiency: The use of FP16 acceleration and the more stable training objective reduced total training time by 4x, bringing it down to approximately 7-11 hours in the experimental setup.
- Generation Quality: DiffuSeq-v2 achieved a 12.3% relative improvement in BLEU score over the baseline DiffuSeq (with MBR=1), proving that speed does not come at the cost of performance.
4. Discussion and Limitations
DiffuSeq-v2 demonstrates that the efficiency gap between diffusion models and autoregressive models (like GPT) can be significantly narrowed. By treating text diffusion as a bridge between discrete and continuous states, the model avoids the "diffusion tax" of slow sampling and the reliance on expensive decoding heuristics.
However, several areas remain for future exploration. The current evaluation is limited to the QQP dataset; the model's performance on more complex Seq2Seq tasks like machine translation or long-form summarization is yet to be determined. Additionally, the model lacks an explicit length prediction mechanism, relying on padding tokens which may impact memory efficiency. Finally, the scalability of this approach to large-scale language models (LLMs) with billions of parameters remains an open question.
5. Conclusion
DiffuSeq-v2 represents a significant step forward for non-autoregressive text generation. By harmonizing discrete and continuous noise processes and adopting sophisticated sampling mathematics from the computer vision domain, it provides a viable, high-speed alternative to traditional Seq2Seq models.
Summary updated