Mask-Pattern Position Augmentation: Training-Free Long-Context Extrapolation for Diffusion LLMs
Gaurav Sarkar, Syed Affan Daimi
Abstract
Diffusion large language models (dLLMs) generate by iteratively unmasking tokens with bidirectional attention, but rotary position embeddings (RoPE) still confine them to a fixed pretraining window. Existing training-free extrapolation, notably LongLLaDA, copies NTK-based RoPE scaling from autoregressive (AR) models and applies one static, length-only transform at every position and denoising step. That transplant ignores a signal unique to dLLMs: the evolving mask pattern of the partially decoded sequence. We propose Mask-Pattern Position Augmentation (MPPA). MPPA linearly interpolates indices into the pretrained window, then adds a per-position, per-step offset from cumulative mask density. The offset restores rotary phase resolution that interpolation collapses, and it shrinks as tokens are committed, so late steps see near-clean interpolated geometry. On LLaDA-8B-Instruct at twice its 4096-token window, MPPA reduces perplexity from 19.51 under standard decoding to 3.12 at 8192 tokens, below the in-window figure, with 100% passkey retrieval and unchanged needle-in-a-haystack accuracy. These preliminary 2× results motivate mask-conditioned position engineering as a diffusion-native path to long-context generation.
Create a lesson
Related papers
Auditing and Adapting kNNGuard for Long-Context Prompts
Shared title terminology · Niccolò Ronchetti
DTS: Delta-Based Tile Scoring for Efficient Long-Context Sparse Attention
Shared title terminology · Emre Uğur, Jiawen Qi, Qinyu Chen
Dynamic Memory-enhanced Pattern Relevance Prediction for Long-tailed Graph Classification
Shared title terminology · Jiawei Chen, Wenjun Wang, Wei Yu et al.
Learning from Context: Leave-One-Out Prediction in Jump Diffusions
Shared title terminology · Christian Wald
Schedule-Calibrated Commitment Order in Blockwise Masked Diffusion Language Models
Shared title terminology · Gaurav Sarkar, Umang Pandey, Pratik Prabhanjan Brahma et al.
PRISM: Validation-Free Online Batch Selection for LLM Fine-Tuning via Preconditioned Conic Ghost Matching
Shared title terminology · Lin Tang, Wei Zhang, Jing Li et al.