Rainbow Padding: Mitigating Early Termination in Instruction-Tuned Diffusion LLMs
Not on the map. Why?
Abstract (arXiv)
Diffusion large language models (dLLMs) have emerged as a promising alternative to autoregressive models, offering flexible generation orders and strong performance on complex reasoning tasks. However, instruction-tuned dLLMs exhibit a critical vulnerability we term texttt<eos> overflow: as allocated sequence length increases, responses paradoxically become shorter, collapsing into early termination or degenerating into streams of texttt<eos> tokens. Although noticed in practice, this issue has not been systematically analyzed. We trace its root cause to the dual role of texttt<eos> as both termination and padding, which concentrates probability mass on texttt<eos> at later positions and propagates backward to trigger early termination. To address this, we introduce Rainbow Padding, a simple remedy that replaces repeated texttt<eos> placeholders with a repeating cycle of distinct padding tokens, distributing probability mass and breaking texttt<eos> dominance. Experiments show that Rainbow Padding substantially improves length robustness and output quality, with as few as seven padding tokens sufficient to prevent early termination. Moreover, the method integrates efficiently into existing instruction-tuned models: LoRA fine-tuning for a single epoch on minimal data yields significant improvements, making this solution highly practical. The code is publicly available at https://github.com/quasar529/rainbow-padding.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 41 of its 45 references that are in the map. First posted on arXiv 4 Oct 2025.
Builds on
41 of 45 references.
References · 41
- 2017Attention Is All You Needcited by 60,361
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,058
- 2022Scalable Diffusion Models with Transformerscited by 6,054
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,719
29 more
- 2022MaskGIT: Masked Generative Image Transformercited by 1,099
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2025Large Language Diffusion Modelscited by 912
- 2024Simple and Effective Masked Diffusion Language Modelscited by 848
- 2023Discrete Diffusion Modeling by Estimating the Ratios of the Data Distributioncited by 745
- 2024Simplified and Generalized Masked Diffusion for Discrete Datacited by 626
- 2023Instruction Tuning for Large Language Models: A Surveycited by 623
- 2025Dream 7B: Diffusion Large Language Modelscited by 544
- 2024Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Datacited by 381
- 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 335
- 2024Discrete Flow Matchingcited by 317
- 2024Generative Flows on Discrete State-Spaces: Enabling Multimodal Flows with Applications to Protein Co-Designcited by 305
- 2025LLaDA 1.5: Variance-Reduced Preference Optimization for Large Language Diffusion Modelscited by 285
- 2024Scaling Diffusion Language Models via Adaptation from Autoregressive Modelscited by 274
- 2025Mercury: Ultra-Fast Language Models Based on Diffusioncited by 235
- 2025Train for the Worst, Plan for the Best: Understanding Token Ordering in Masked Diffusionscited by 214
- 2024Masked Diffusion Models are Secretly Time-Agnostic Masked Models and Exploit Inaccurate Categorical Samplingcited by 208
- 2024Scaling up Masked Diffusion Models on Textcited by 199
- 2025DiffuCoder: Understanding and Improving Masked Diffusion Models for Code Generationcited by 187
- 2025Seed Diffusion: A Large-Scale Diffusion Language Model with High-Speed Inferencecited by 178
- 2024Beyond Autoregression: Discrete Diffusion for Complex Reasoning and Planningcited by 135
- 2025Accelerated Sampling from Masked Diffusion Models via Entropy Bounded Unmaskingcited by 131
- 2025Dream-Coder 7B: An Open Diffusion Language Model for Codecited by 81
- 2025Discrete Diffusion in Large Language and Multimodal Models: A Surveycited by 61
- 2025Any-Order Flexible Length Masked Diffusioncited by 51
- 2025Learning-Order Autoregressive Models with Application to Molecular Graph Generationcited by 29
- 2025Thinking Inside the Mask: In-Place Prompting in Diffusion LLMscited by 13
- 2025Flexible-length Text Infilling for Discrete Diffusion Modelscited by 12
- 2025Reinforced Context Order Recovery for Adaptive Reasoning and Planningcited by 4
Built on by
Citing papers per year: 2025: 1; 2026: 9.
10 papers.
- 2026DAPD: Dependency-Aware Parallel Decoding via Attention for Diffusion LLMscited by 14
- 2026Early Decisions Matter: Proximity Bias and Initial Trajectory Shaping in Non-Autoregressive Diffusion Language Modelscited by 4
- 2026Answer First, Reason Later: When Commitment Order Costs Accuracy in Diffusion Language Modelscited by 3
- 2026Diffusion LMs Can Approximate Optimal Infilling Lengths Implicitlycited by 2
- 2026Insertion Based Sequence Generation with Learnable Order Dynamicscited by 1
- 2026The Confidence Shortcut: A Reasoning Failure Mode of Masked Diffusion Modelscited by 1
- 2026VoidPadding: Let [VOID] Handle Padding in Masked Diffusion Language Models so that [EOS] Can Focus on Semantic Terminationcited by 1
- 2025STaRR: Spatial-Temporal Token-Dynamics-Aware Responsive Remasking for Diffusion Language Modelscited by 0
- 2026When Confidence Misleads: Suffix Anchoring and Anchor-Proximity Confidence Modulation for Diffusion Language Modelscited by 0
- 2026Optimizing Denoising Trajectories in dLLMs: A Lightweight Evolutionary Heuristic Approachcited by 0
- 2026Answer First, Reason Later: When Commitment Order Costs Accuracy in Diffusion Language Models6 Aug 2026
- 2026Optimizing Denoising Trajectories in dLLMs: A Lightweight Evolutionary Heuristic Approach15 Jul 2026
- 2026VoidPadding: Let [VOID] Handle Padding in Masked Diffusion Language Models so that [EOS] Can Focus on Semantic Termination16 Jun 2026
- 2026The Confidence Shortcut: A Reasoning Failure Mode of Masked Diffusion Models27 May 2026
- 2026When Confidence Misleads: Suffix Anchoring and Anchor-Proximity Confidence Modulation for Diffusion Language Models27 May 2026
- 2026Early Decisions Matter: Proximity Bias and Initial Trajectory Shaping in Non-Autoregressive Diffusion Language Models12 Apr 2026
- 2026DAPD: Dependency-Aware Parallel Decoding via Attention for Diffusion LLMs13 Mar 2026
- 2026Insertion Based Sequence Generation with Learnable Order Dynamics21 Feb 2026
- 2026Diffusion LMs Can Approximate Optimal Infilling Lengths Implicitly31 Jan 2026
- 2025STaRR: Spatial-Temporal Token-Dynamics-Aware Responsive Remasking for Diffusion Language Models7 Dec 2025