SeqDiffuSeq
A text diffusion model for sequence-to-sequence generation with an encoder-decoder transformer denoiser.
Language · 716 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
- 48.1M
- Operations
- 716
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2022
- Cited by
- 84 (as of 15 November 2026)
- Authors
- Hongyi Yuan, Zheng Yuan, Chuanqi Tan and others
- 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
- m20352
- Graph hash
- 09c885b09811fe0b5ff9c3ed85b505cd09d2d2432b4deb84a0c4a1283ba69899
- Skeleton hash
- 639c6ff0454c5190c961f054ad48911af0817855c2ef03884455abd529afe295
- Architecture hash
- 2392f7db8301258aac139ea9223ba014b0f4f7efb43ae11c534aadb398a116f2
- Diagram SHA-256
- 0428f59671c23b526050a59cae09c0a49cabd2bcb69f881c773d00073af16d18
- 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
SeqDiffuSeq is a text diffusion model for sequence-to-sequence generation, the setting in which one text is produced from another. The paper notes that diffusion models have had success in image, audio and video generation, but that text is discrete, so extending continuous diffusion models to natural language is not trivial.
The denoising function is modeled with an encoder-decoder Transformers architecture. To improve generation quality, the model combines the self-conditioning technique with a newly proposed adaptive noise schedule. That schedule spreads the difficulty of denoising evenly across time steps and uses separate noise schedules for tokens at different positions.
In the authors' code, training saves the noise schedule as a file next to the model weights, and inference takes both. Parts of that code are modified from the DiffusionLM and minimaldiffusion repositories, and its worked example is IWSLT14 English-German translation.
Key idea. SeqDiffuSeq applies diffusion to sequence-to-sequence text generation with an encoder-decoder Transformers denoiser, self-conditioning and a newly proposed adaptive noise schedule.
- seqdiffuseq
- text diffusion
- sequence-to-sequence text generation
- seq2seq diffusion
- encoder-decoder transformers
- self-conditioning
- adaptive noise schedule
- diffusion language model
- machine translation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yuan2023seqdiffuseqtextdiffusionencoderdecoder,
title={SeqDiffuSeq: Text Diffusion with Encoder-Decoder Transformers},
author={Hongyi Yuan and Zheng Yuan and Chuanqi Tan and Fei Huang and Songfang Huang},
year={2023},
eprint={2212.10325},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2212.10325},
}