cs.LGSep 13, 2026

POSPAN: Position-Constrained Span Masking for Language Model Pre-training

Authors: Zhenyu Zhang, Lei Shen, Yuming Zhao, Meng Chen, Xiaodong He

Organizations: JD AI Research China

Abstract

Span-level masked language modeling (MLM) has shown to be advantageous to pre-trained language models over the original single-token MLM, as entities/phrases and their dependencies are critical to language understanding. Previous works only consider span length with some discrete distributions, while the dependencies among spans are ignored, i.e., assuming that the positions of masked spans are uniformly distributed. In this paper, we present POSPAN, a general framework to allow diverse position-constrained span masking strategies via the combination of span length distribution and position constraint distribution, which unifies all existing span-level masking methods. To verify the effectiveness of POSPAN in pre-training, we evaluate it on the datasets from several NLU benchmarks. Experimental results indicate that the position constraint is capable of enhancing span-level masking broadly, and our best POSPAN setting consistently outperforms its span-length-only counterparts and vanilla MLM. We also conduct theoretical analysis for the position constraint in masked language models to shed light on the reason why POSPAN works well, demonstrating the rationality and necessity of POSPAN.

Figures & tables

Explore similar work

CardsList
  1. MDLMPE: Distribution Aware Positional Encoding for Masked Diffusion Language Models

    Aug 4, 2026Tong Ling, Hang Lei, Feng Xiao +5Rotary Positional EmbeddingsMasked Diffusion Models

  2. Typhoon: Gradient-Based Task-Specific Masking for Masked Language Models

    Mar 27, 2023Bruce Changlong Xu, Muhammed Shahir Abdurrahman, Hashem ElezabiMasked Language ModelingFine-Tuning Language Models

  3. ProteinJEPA: Latent prediction improves protein language model pretraining

    May 8, 2026Dan Ofer, Dafna Shahaf, Michal LinialLanguage Model PretrainingMasked Language Modeling