Diffusion-NAT
BART-based discrete diffusion model for non-autoregressive text-to-text generation.
Language · 659 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 179.2M
- Operations
- 659
- Framework
- PyTorch
- Recurrent
- No
- Published
- EACL 2024
- Cited by
- 14 (as of 29 October 2026)
- Authors
- Kun Zhou, Yifan Li, Wayne Xin Zhao, Ji-Rong Wen
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m16139
- Graph hash
- d6a95f79145a858518fcb23e023115011df0b390e8124f237861b68a57f3ce12
- Skeleton hash
- 14951577b53147aed841eee7617785654ec47afe4396a495e77ac5e8eacfb6d9
- Architecture hash
- d81e511307ace1a41d8f57c8de63fea8505754f674618d2bb10bf7b0a7b50c32
- Diagram SHA-256
- 78d90c50adcf82c611b994a367cb689754a38c0e91ee5a730ae14c0614199267
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Diffusion-NAT is a non-autoregressive (NAR) text-to-text generation model that brings discrete diffusion models (DDM) into this setting and integrates the pre-trained language model BART. The paper starts from a problem with continuous diffusion models: the discrete nature of text makes it harder for them to generate coherent and fluent texts and makes them incompatible with pre-trained language models.
The central step is to revise the decoding process of BART and the typical settings of DDM so that BART's inference and the diffusion model's denoising become the same NAR task of recovering masked tokens. The diffusion model can then rely on BART to perform denoising, drawing on both BART's pre-learned knowledge and the iterative refining of DDM. The authors also propose an iterative self-prompting strategy to further improve generation quality.
The paper reports results on 7 datasets where the approach outperformed competitive NAR methods and surpassed autoregressive methods. The repository notes that DDIM can be used for fast inference, so the number of diffusion steps can be set to balance inference latency and performance. Its README states that Diffusion-NAT received the Evaluation and Model Insight Award in EACL 2024.
Key idea. Diffusion-NAT unifies BART's inference and the denoising of a discrete diffusion model into one non-autoregressive masked-token recovery task, so BART performs the denoising.
- Diffusion-NAT
- DiffusionNAT
- discrete diffusion
- non-autoregressive text generation
- text-to-text generation
- self-prompting
- masked token recovery
- NAR generation
- diffusion language model
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhou2023diffusionnatselfpromptingdiscretediffusion,
title={Diffusion-NAT: Self-Prompting Discrete Diffusion for Non-Autoregressive Text Generation},
author={Kun Zhou and Yifan Li and Wayne Xin Zhao and Ji-Rong Wen},
year={2023},
eprint={2305.04044},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2305.04044},
}