mlsanityData to 7 Oct 2026

How Does Diffusion Influence Pretrained Language Models on Out-of-Distribution Data?

arXiv 2307.13949 ↗First posted 26 Jul 2023cs.CL cs.AIcited by 0

On the map: Diffusion models → Discrete and text diffusion

Abstract (arXiv)

Transformer-based pretrained language models (PLMs) have achieved great success in modern NLP. An important advantage of PLMs is good out-of-distribution (OOD) robustness. Recently, diffusion models have attracted a lot of work to apply diffusion to PLMs. It remains under-explored how diffusion influences PLMs on OOD data. The core of diffusion models is a forward diffusion process which gradually applies Gaussian noise to inputs, and a reverse denoising process which removes noise. The noised input reconstruction is a fundamental ability of diffusion models. We directly analyze OOD robustness by measuring the reconstruction loss, including testing the abilities to reconstruct OOD data, and to detect OOD samples. Experiments are conducted by analyzing different training parameters and data statistical features on eight datasets. It shows that finetuning PLMs with diffusion degrades the reconstruction ability on OOD data. The comparison also shows that diffusion models can effectively detect OOD samples, achieving state-of-the-art performance in most of the datasets with an absolute accuracy improvement up to 18%. These results indicate that diffusion reduces OOD robustness of PLMs.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Discrete and text diffusion, one of 14 directions in Diffusion models. Builds on 25 of its 35 references that are in the map. First posted on arXiv 26 Jul 2023.

Builds on

25 of 35 references.

Closest ancestors · 3

Same direction, newest first

  1. 2022DiffusionBERT: Improving Generative Masked Language Models with Diffusion Models28 Nov
  2. 2022Self-conditioned Embedding Diffusion for Text Generation8 Nov
  3. 2022DiffuSeq: Sequence to Sequence Text Generation with Diffusion Models17 Oct

Other references · 22

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  4. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  5. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
  6. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  7. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  8. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
  9. 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,665
  10. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
  11. 2020Energy-based Out-of-distribution Detectioncited by 1,296
  12. 2022Diffusion-LM Improves Controllable Text Generationcited by 1,006
10 more
  1. 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 293
  2. 2016Multi30K: Multilingual English-German Image Descriptionscited by 250
  3. 2021Accuracy on the Line: On the Strong Correlation Between Out-of-Distribution and In-Distribution Generalizationcited by 248
  4. 2022Denoising diffusion models for out-of-distribution detectioncited by 102
  5. 2021Evaluating the Robustness of Neural Language Models to Input Perturbationscited by 87
  6. 2021Contrastive Out-of-Distribution Detection for Pretrained Transformerscited by 70
  7. 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 67
  8. 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
  9. 2021An Investigation of the (In)effectiveness of Counterfactually Augmented Datacited by 42
  10. 2021Interpreting the Robustness of Neural NLP Models to Textual Perturbationscited by 17

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Your Diffusion Model is Secretly a Noise Classifier and Benefits from Contrastive Training
  2. 2025Diffusion Language Models are Super Data Learners
  3. 2026Support Before Frequency in Discrete Diffusion
  4. 2023A Survey of Diffusion Models in Natural Language Processing
  5. 2024Simple and Effective Masked Diffusion Language Models
  6. 2025Diffusion Beats Autoregressive in Data-Constrained Settings
  7. 2025A Survey on Diffusion Language Models
  8. 2023Likelihood-Based Diffusion Language Models