Gumbel Distillation for Parallel Text Generation
Organizations: Department of Computer Science The University of Texas at Austin
Abstract
The slow, sequential nature of autoregressive (AR) language models has driven the adoption of parallel decoding methods. However, these non-AR models often sacrifice generation quality as they struggle to model the complex joint distribution of token sequences. To narrow this performance gap, we introduce Gumbel Distillation, a novel distillation technique that enables parallel decoders to learn this distribution effectively. Our method leverages the Gumbel-Max trick to create a deterministic mapping from a latent Gumbel noise space to the output tokens of a high-performing AR teacher. As a model-agnostic technique, Gumbel Distillation seamlessly integrates with diverse parallel decoding architectures, including MDLM and BD3-LM. Experiments on LM1B and OpenWebText show that Gumbel Distillation substantially improves the generation quality of parallel language models, achieving a 30.0% improvement in MAUVE score and 10.5% in generative perplexity over MDLM trained on OpenWebText dataset. Code available at https://github.com/hxixixh/gumbel-distill.
Figures & tables
| LM1B | OpenWebText | |||
| MAUVE | GenPPL | MAUVE | GenPPL | |
| AR (student-size) | 0.465 | 36.42 | 0.691 | 14.10 |
| MDLM | 0.179 | 78.74 | 0.217 | 38.34 |
| MDLM + Gumbel Distillation | 0.264 | 67.64 | 0.282 | 34.33 |
| BD3-LM ( ) | 0.193 | 56.98 | 0.251 | 26.40 |
| BD3-LM ( ) + Gumbel Distillation | 0.291 | 46.06 | 0.304 | 24.37 |
| Model | Clarity | Grammaticality | Factuality | Style | Creativity | |||||
| MDLM | 2.44 | 2.22 | 2.70 | 2.32 | 2.22 | |||||
| MDLM + Gumbel Distillation | 2.86 | (+17.2%) | 2.57 | (+15.8%) | 3.31 | (+22.6%) | 2.57 | (+10.8%) | 2.36 | (+6.3%) |
| BD3-LM | 2.89 | 2.95 | 3.21 | 3.34 | 2.75 | |||||
| BD3-LM + Gumbel Distillation | 3.41 | (+18.0%) | 3.22 | (+9.2%) | 3.78 | (+17.7%) | 3.35 | (+0.2%) | 2.68 | (-2.5%) |
| Baseline | + Gumbel Distillation | ||
| GPT-2-Small backbone (OpenWebText) | |||
| Head 0 (NTP) | 1.000 | 1.000 | - |
| Head 1 | 0.445 | 0.465 | (+4.5%) |
| Head 2 | 0.310 | 0.344 | (+11.0%) |
| Head 3 | 0.264 | 0.322 | (+22.0%) |
| Accepted Length | 1.609 | 1.691 | (+5.1%) |
| Method | MAUVE | GenPPL |
| MDLM | 0.179 | 78.74 |
| + Token-level KD | 0.166 | 95.88 |
| + Sequence-level KD | 0.169 | 99.48 |
| + APD | 0.203 | 57.61 |
| + Gumbel Distillation | 0.264 | 67.64 |
| + Gumbel Distillation + APD | 0.255 | 49.28 |
| Parallel Gumbel Extraction | Sequential Gumbel Extraction | Gumbel Noise | Gaussian Noise | Uniform Noise | MAUVE Score( ) | Gen. PPL ( ) |
| ✓ | ✓ | 0.264 | 67.64 | |||
| ✓ | ✓ | 0.189 | 86.38 | |||
| ✓ | ✓ | 0.242 | 81.43 | |||
| ✓ | ✓ | 0.097 | - |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Model scale | Layers | Hidden | Vocab | Added params | Overhead |
| GPT-2 Small | 12 | 768 | 50,257 | 38.6M | 33.0% |
| GPT-2 Large | 36 | 1,280 | 50,257 | 64.3M | 8.3% |
| LLaMA-7B | 32 | 4,096 | 32,000 | 131.1M | 1.9% |
| LLaMA-13B | 40 | 5,120 | 32,000 | 163.8M | 1.3% |
| Qwen-7B | 32 | 4,096 | 152,000 | 622.6M | 8.9% |
| NFE | =1 | =2 | =4 | =8 | =16 | |||||
| MDLM | 53.0 | 64.0 | 69.0 | 81.0 | 94.0 | |||||
| MDLM + Gumbel Distillation | 82.0 | 86.0 | 97.0 | 99.0 | 98.0 | |||||
| PTB | Wikitext | LM1B | Lambada | AG News | Pubmed | Arxiv | |
| MDLM | 92.54 | 34.52 | 66.10 | 48.63 | 65.32 | 43.67 | 37.47 |
| MDLM + Gumbel Distillation | 35.12 | 15.57 | 26.01 | 15.56 | 20.03 | 20.81 | 16.85 |
| Block Diffusion | 96.27 | 30.82 | 61.14 | 49.51 | 63.09 | 42.59 | 39.39 |
| Block Diffusion + Gumbel Distillation | 37.54 | 13.86 | 22.69 | 15.78 | 18.19 | 19.78 | 17.02 |
| Model | GenPPL |
| MDLM | 55.1 |
| MDLM + Gumbel Distillation | 47.8 |
| Method | MAUVE | GenPPL |
| MDLM (Small) | 0.179 | 78.74 |
| MDLM (Small) + Gumbel Distillation | 0.264 | 67.64 |
| MDLM (Medium, partial) | 0.186 | 74.22 |
| MDLM (Medium, partial) + Gumbel Distillation | 0.253 | 61.34 |
Non-Autoregressive Text Generation
Non-autoregressive text generation produces multiple tokens in parallel to reduce decoding time while maintaining coherent, useful outputs.
See all 31 papers