Mask-Pattern Position Augmentation: Training-Free Long-Context Extrapolation for Diffusion LLMs

Gaurav Sarkar, Syed Affan Daimi
11/11/2026
cs.LG
diffusion-flow

No confident code implementation found for this paper.

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.

Show full abstract

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\times$ results motivate mask-conditioned position engineering as a diffusion-native path to long-context generation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sarkar2026maskpattern,
  title  = {Mask-Pattern Position Augmentation: Training-Free Long-Context Extrapolation for Diffusion LLMs},
  author = {Gaurav Sarkar and Syed Affan Daimi},
  year   = {2026},
  eprint = {2611.15029},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.15029v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.15029.svg)](https://codeofpaper.com/paper/2611.15029)

Discussion