MDLMPE: Distribution Aware Positional Encoding for Masked Diffusion Language Models
On the map: Diffusion models → Discrete and text diffusion
Abstract (arXiv)
Masked diffusion language models (MDLMs) enable parallel generation and bidirectional context modeling, but their positional context differs fundamentally from that of autoregressive (AR) models. Whereas AR decoding exposes a contiguous prefix, MDLM denoising produces dynamic, non-contiguous configurations of revealed and masked tokens. Conventional positional encodings such as RoPE capture sequence order and pairwise displacement but remain insensitive to this evolving token-availability structure. To address this limitation, we propose MDLMPE, a positional encoding designed specifically for masked diffusion. To the best of our knowledge, MDLMPE is the first method to make positional representations explicitly aware of the changing revealed/masked configuration. It represents token availability as a binary sequence, applies distance-aware Gaussian weighting, and projects the resulting pattern through a cosine basis to obtain distribution-aware positional features. These features are added to token embeddings and mapped by a lightweight MLP to angular offsets that modulate the standard RoPE phases. Extensive experiments on LLaDA and DREAM demonstrate that MDLMPE generally outperforms conventional positional encoding methods across supervised fine-tuning, pretraining, zero-shot evaluation, and block-diffusion settings. Further ablations show that the complete combination of availability state, Gaussian locality, spectral basis, and embedding injection yields the strongest result. These results establish the evolving token-availability distribution as a useful positional signal for masked diffusion language models.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Discrete and text diffusion, one of 14 directions in Diffusion models. Builds on 33 of its 47 references that are in the map. First posted on arXiv 4 Aug 2026.
Builds on
33 of 47 references.
Closest ancestors · 9
Same direction, newest first
- 2026DFlash: Block Diffusion for Flash Speculative Decoding5 Feb
- 2025LLaDA2.0: Scaling Up Diffusion Language Models to 100B10 Dec
- 2025Seed Diffusion: A Large-Scale Diffusion Language Model with High-Speed Inference4 Aug
- 2025LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMs17 Jun
- 2024Simplified and Generalized Masked Diffusion for Discrete Data6 Jun
- 2023Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution25 Oct
- 2023TESS: Text-to-Text Self-Conditioned Simplex Diffusion15 May
- 2022DiffusionBERT: Improving Generative Masked Language Models with Diffusion Models28 Nov
- 2022DiffuSeq: Sequence to Sequence Text Generation with Diffusion Models17 Oct
Other references · 24
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2021Improved Denoising Diffusion Probabilistic Modelscited by 3,761
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
12 more
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
- 2021Structured Denoising Diffusion Models in Discrete State-Spacescited by 1,719
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2022Diffusion-LM Improves Controllable Text Generationcited by 1,027
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2021Argmax Flows and Multinomial Diffusion: Learning Categorical Distributionscited by 574
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 313
- 2013One Billion Word Benchmark for Measuring Progress in Statistical Language Modelingcited by 308
- 2019Levenshtein Transformercited by 199
- 2019Insertion Transformer: Flexible Sequence Generation via Insertion Operationscited by 125
- 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 111
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Reconsidering Positional Supervision in Masked Diffusion Language Model Training
- 2026x-Prediction Flow: Efficient Continuous Decoding for Masked Diffusion Language Models
- 2026Beyond Masks: Efficient, Flexible Diffusion Language Models via Deletion-Insertion Processes
- 2026Twist, Don't Tilt: Trajectory-Exact Constrained Decoding for Masked Diffusion Models
- 2025Activation Steering for Masked Diffusion Language Models
- 2026Who Should Lead Decoding Now? Tracking Reliable Trajectories for Ensembling Masked Diffusion Language Models
- 2026Machine Unlearning for Masked Diffusion Language Models
- 2026Representation-based Masked Diffusion Model