Abstract
While diffusion models have achieved remarkable success in continuous domains like image and audio synthesis, applying them to discrete text generation remains challenging. Mapping tokens to a continuous embedding space introduces optimization hurdles, specifically embedding collapse and model degeneration. This paper presents Difformer, a Transformer-based diffusion framework that addresses these issues through two key innovations: Anchor Loss and Noise Rescaling. Anchor Loss prevents embedding anisotropy by regularizing predictions against a fixed target, while Noise Rescaling ensures the denoising task remains non-trivial in high-dimensional spaces. Experimental results across various benchmarks demonstrate that Difformer achieves state-of-the-art performance and significant inference speedups compared to traditional autoregressive models.
Introduction
The success of diffusion models in generative tasks has prompted researchers to explore their application in natural language processing. However, the discrete nature of text necessitates mapping tokens into a continuous embedding space, which creates a "moving target" for the diffusion process. Unlike pixels in an image, embeddings are learnable parameters that can shift during training, leading to instabilities that standard diffusion techniques cannot resolve.
The "Silent Killers" of Text Diffusion
The authors identify two primary failure modes in existing text diffusion models:
- Embedding Collapse: During training, the model may minimize loss by pushing all token embeddings closer together. This results in high anisotropy, where embeddings become indistinguishable, destroying the model's ability to represent distinct linguistic concepts.
- Model Degeneration: In high-dimensional embedding spaces, standard noise levels are often insufficient to obscure the original data. The model can "cheat" by simply identifying the nearest neighbor token to the noisy input, ignoring the broader context. This leads to grammatically correct but contextually irrelevant generation.
The Difformer Framework
To overcome these obstacles, the researchers introduced Difformer, which integrates two stabilizing mechanisms into a Transformer-based architecture.
Anchor Loss
To prevent embedding collapse, Difformer employs Anchor Loss. Traditional methods often regularize only the final discrete token selection. In contrast, Anchor Loss utilizes the model's prediction of the clean data ($\hat{z}_0$) as an input for a classification task. By forcing the model to correctly identify tokens from these noisy predictions, it imposes a strong regularization effect that maintains a well-distributed embedding space.
Noise Rescaling
To address model degeneration, the authors proposed a Degeneration Score (DGS) to quantify how much a model relies on simple geometric nearest-neighbor lookups. They observed that standard linear or cosine noise schedules often result in high DGS, indicating a "too easy" denoising task. Noise Rescaling amplifies the noise level by a factor $F$, ensuring the model must learn deep language semantics rather than relying on trivial spatial proximity.
Experimental Evaluation
Difformer was evaluated on a diverse set of tasks, including machine translation (WMT, IWSLT), text summarization (Gigaword), and paraphrasing (QQP). The impact of the proposed components is evident in the quantitative analysis. As shown in the table below, the inclusion of Anchor Loss (part of the final $\mathcal{L}$ objective) significantly reduces the anisotropy score (ANI), leading to a healthier embedding space and superior BLEU scores.
Key Results
- State-of-the-Art Performance: On the IWSLT14 De-En task, Difformer achieved a BLEU score of 34.48, outperforming previous diffusion-based models like DiffuSeq (28.78).
- Inference Efficiency: Utilizing a parallel decoding strategy, Difformer achieves up to 6x faster inference than standard autoregressive Transformers.
- Robustness: Noise Rescaling was shown to maintain high performance even at low noise levels where original schedules typically fail.
Conclusion
Difformer represents a significant advancement in text diffusion, providing a robust framework that mitigates the inherent instabilities of embedding-space optimization. By addressing embedding collapse and model degeneration, it opens new avenues for efficient and high-quality non-autoregressive text generation. Future work will focus on scaling these techniques to larger models and automating the selection of noise rescaling factors.
Summary updated