Addressing the Training-Inference Discrepancy in Discrete Diffusion for Text Generation

Masaki Asada, Makoto MiwaCOLING 2025

TL;DR

This paper tackles a critical discrepancy in discrete diffusion models for text generation: the difference between how they learn during training and how they generate text during inference. They introduce two novel strategies – a two-step training loss and a gradual scheduling of self-generated text – that significantly improve performance and reduce this discrepancy, making discrete diffusion models more competitive for text generation tasks.

What Problem Does This Paper Address?

Diffusion models have shown great promise in text generation, offering a balance between generation quality and speed. While continuous diffusion models work with token embeddings, discrete diffusion models operate directly on tokens, treating the noise-adding process as replacing tokens with special "[MASK]" tokens. This approach is particularly appealing because it can leverage the power of pre-trained language models (PLMs) that are already adept at filling in masked tokens.

However, a key challenge arises from a discrepancy between the training and inference phases of these discrete diffusion models. During training, the model learns to predict original "gold" tokens from noisy versions where noise is applied to these gold tokens. In contrast, during inference, the model starts with noisy tokens and predicts the next token based on its own previous predictions. This difference can lead to an "inductive bias," where the model's behavior during inference deviates from its training, potentially hindering performance. Existing research has largely overlooked this specific issue in discrete diffusion models.

Methods

The authors propose two main techniques to bridge the training-inference gap:

  1. Two-Step Diffusion Training Loss: Instead of the standard approach where noise is applied to gold tokens up to a single random timestep t during training, this method introduces a "two-step" process. First, the model predicts a noisy version of the target sequence (Yt) from the original gold sequence (Y0). Then, it uses this Yt as input to predict the original sequence (Y0) again. This mimics the inference process more closely by using a noisy version of the sequence as input for prediction. They also explore using Connectionist Temporal Classification (CTC) loss, which is known for its success in non-autoregressive tasks, in conjunction with this two-step loss.
  2. Scheduling for Adoption of Gold or Predicted Sequences: Recognizing that forcing the model to rely solely on its own predictions too early in training can be detrimental, they introduce a scheduling mechanism. This approach probabilistically switches between using the gold sequence and the model's self-predicted sequence as the source for generating the noisy input (Yt) during training. The probability of using self-predicted sequences gradually increases as training progresses. This allows the model to build confidence with gold data before transitioning to self-generated data.

Datasets

The paper evaluates their proposed methods on four widely-used text generation benchmark datasets:

  • XSum: A dataset for extreme summarization.
  • MSNews: Another dataset for text summarization.
  • SQuAD v1.1: A dataset for question generation.
  • MSQG: Another dataset for question generation.

The paper does not introduce new benchmarks but focuses on evaluating their methods on existing ones.

Key Insights and Ideas

  • The training-inference gap is a real problem: The paper empirically demonstrates that this discrepancy exists and negatively impacts discrete diffusion models, as visualized by the increasing ratio of evaluation loss to training loss for traditional models.
  • Mimicking inference during training is beneficial: The two-step loss, by using a noisy version of the sequence derived from previous predictions (or a noisy version of gold tokens), helps the model learn more robustly for inference.
  • Gradual adaptation is key: The scheduling mechanism for using self-generated text is crucial. It prevents the model from struggling too early in training and allows for a smoother learning curve.
  • CTC loss shows promise: Combining the proposed methods with CTC loss yields particularly strong results, suggesting its compatibility with the discrete diffusion framework for text generation.

Key Results

  • The proposed methods (two-step loss and scheduling) significantly improve the performance of discrete diffusion models across the evaluated text generation tasks.
  • On the MSNews dataset, the proposed model achieved the highest performance among all compared models, including AR decoding models.
  • For the MSQG dataset, the proposed method outperformed Diffusion-NAT in all evaluation metrics, achieving the highest ROUGE-L score among all models.
  • An ablation study confirmed that both the two-step loss and the scheduling mechanism contribute to performance improvements. The combination of CTC loss with both proposed components yielded the highest performance in most cases.
  • Analysis of diffusion steps shows that performance generally improves with more steps, but the gains become marginal after a certain point. The authors found that 200 inference steps offer a good balance between performance and speed, achieving comparable performance to BART with lower latency.
  • Latency analysis indicates that the diffusion model maintains a more consistent speed compared to BART as sequence length increases, due to its NAR nature at each diffusion step.

Limitations and Future Work

  • Pre-training on unlabeled text: The proposed learning method has not been applied to pre-training on unlabeled text. The authors suggest exploring effective self-supervised learning methods for diffusion models in this context.
  • Model size: The study used a smaller PLM (BART-base) as the backbone. It would be valuable to investigate whether performance improves with larger model sizes.
  • Ethical Considerations: The authors note that the model was not pre-trained on large-scale unlabeled datasets and was trained on limited benchmark datasets solely for architectural evaluation. Therefore, they believe there is no immediate risk of harmful knowledge dissemination.

Summary updated

BibTeX
@inproceedings{asada2025addressing,
  author = {Masaki Asada and Makoto Miwa},
  title = {{Addressing the Training-Inference Discrepancy in Discrete Diffusion for Text Generation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
}
Figure