NeurIPS2024

NeurIPS 2024 · Maxora AI and National Taiwan University

Meta-DiffuB: A Contextualized Sequence-to-Sequence Text Diffusion Model with Meta-Exploration

A noise schedule learned for every sentence.

Yun-Yen Chuang, Hung-Min Hsu, Kevin Lin, Chen-Sheng Gu, Ling-Zhen Li, Ray-I Chang, Hung-yi Lee. Maxora AI, National Taiwan University, University of Washington, Microsoft.

Condition
How do I get better at public speaking?
Generating
Noise level
Step
t = 2000
Illustration: the target sentence emerges as the exploiter removes noise step by step, under a schedule the scheduler picked for this input.

Fixed noise treats every sentence the same.

Text diffusion models such as DiffuSeq add noise on one hand-picked curve, whether the sentence is trivial or tricky.

Seq2Seq tasks don't work that way. Some targets are almost a copy of the input; others need real rewriting. Meta-DiffuB gives each conditional sentence its own noise schedule, and the schedule keeps adapting as training goes on.

What it learned surprised us: it puts less noise on hard sentences and more on easy ones, and that is what improves both quality and diversity.

"What is the capital of France?"easy
"Is it worth leaving a stable job to start a company in your thirties?"hard
step 1991step 2000

The last 10 diffusion steps; darker cells mean more noise. Schematic, after Figure 3 of the paper, which averages Meta-DiffuB's noise over the 200 easiest and 200 hardest sentences.

A scheduler that learns from how well the model learns.

Meta-DiffuB pairs two models. The scheduler reads the input and decides the noise. The exploiter, a standard S2S-Diffusion model, trains under that noise. The scheduler is then rewarded by how much the exploiter improved.

Training loop: the input sentence goes to the scheduler, which emits Meta-Instructions turned into a noise schedule; the exploiter trains with that noise; the BLEU improvement is the Meta-Reward sent back to the scheduler. Input sentence wˣ Scheduler Bψ picks the noise Noise βˣ via "skipping" Exploiter Dθ S2S-Diffusion model Meta-Reward = BLEU(θ′) − BLEU(θ)
  1. Read the input. The scheduler, a small Seq2Seq model, encodes the conditional sentence.
  2. Emit Meta-Instructions. One True/False per diffusion step: step up the noise, or hold it.
  3. Train the exploiter. It learns to denoise under that schedule, exactly like DiffuSeq otherwise.
  4. Reward the scheduler. The BLEU gain becomes a policy-gradient signal, gathered over 32 parallel exploration epochs.

Try the skipping rule

Toggle each Meta-Instruction. True moves to the next value on the fixed sqrt curve; False holds the current one.

Scheduled noise βˣFixed sqrt schedule

Figure 1 of the paper: previous S2S-Diffusion models use one fixed noise schedule for all sentences, while Meta-DiffuB's scheduler model gives each sentence its own schedule and is updated with rewards via policy gradient.
Figure 1 from the paper. Top: one fixed schedule for every sentence. Bottom: the scheduler gives each sentence its own schedule and is updated by policy gradient.

Best mean rank on all four benchmarks.

Compared against DiffuSeq, SeqDiffuSeq, Dinoiser and fine-tuned GPT-2 and LevT, with the same data and training settings as DiffuSeq.

1.00Paraphrase (QQP)
1.60Text simplification (Wiki-Auto)
1.80Question generation (Quasar-T)
1.20Open-domain dialogue (CC)

Mean rank across BLEU, ROUGE-L, BERTScore, Dist-1 and Self-BLEU. Lower is better; 1.00 means first on every metric.

Hard sentences don't break it.

On the 200 hardest Wiki-Auto sentences, other diffusion models lose 12–28% of their BLEU. Meta-DiffuB loses 7%.

Because it gives harder inputs a gentler schedule, the exploiter keeps more of the signal it needs, and the outputs stay diverse too: Self-BLEU on hard sentences is 0.406, against 0.509 for DiffuSeq.

Plug it into a model you already trained.

A scheduler trained on one dataset improves a pre-trained DiffuSeq on another, at inference time, with no fine-tuning.

It also works as a drop-in for other diffusion models. Wrapping SeqDiffuSeq raises its QQP BLEU from 0.243 to 0.263; wrapping Dinoiser, from 0.195 to 0.227.

DiffuSeq on QQP, BLEU

+2.2%parameters
+5%training time
+0.5%inference time

Overhead of adding Meta-DiffuB to DiffuSeq (Table 1).

The team

Built at Maxora AI and National Taiwan University, with collaborators at the University of Washington and Microsoft.

  • Yun-Yen ChuangMaxora AI, National Taiwan University
  • Hung-Min HsuHung-Min HsuUniversity of Washington
  • Kevin LinKevin LinMicrosoft
  • Chen-Sheng GuChen-Sheng GuMaxora AI, National Taiwan University
  • Ling-Zhen LiLing-Zhen LiMaxora AI, National Taiwan University
  • Ray-I ChangRay-I ChangNational Taiwan University
  • Hung-yi LeeHung-yi LeeNational Taiwan University
Maxora AI National Taiwan University University of Washington Microsoft

Cite this work

@inproceedings{chuang2024metadiffub,
  title     = {Meta-DiffuB: A Contextualized Sequence-to-Sequence Text Diffusion Model with Meta-Exploration},
  author    = {Chuang, Yun-Yen and Hsu, Hung-Min and Lin, Kevin and Gu, Chen-Sheng and Li, Ling-Zhen and Chang, Ray-I and Lee, Hung-yi},
  booktitle = {Advances in Neural Information Processing Systems},
  volume    = {37},
  pages     = {79843--79867},
  doi       = {10.52202/079017-2536},
  year      = {2024}
}