English

Context-level Language Modeling by Learning Predictive Context Embeddings

Computation and Language 2026-02-12 v3 Artificial Intelligence

Abstract

We propose ContextLM, a framework that implicitly learns multi-token prediction by augmenting standard pretraining with an intrinsic next-context prediction objective. ContextLM builds a language model on top of context embeddings that span multiple tokens, enabling better next-token prediction by predicting the next context. Our model is fully compatible with standard autoregressive, token-by-token evaluation paradigms (e.g., perplexity). Extensive experiments with GPT-2 and Pythia backbones (up to 1.5B parameters and 300B training tokens) reveal that ContextLM shifts the Pareto frontier of scaling laws, exhibiting superior efficiency in parameters, training tokens, and FLOPs. Our results show that ContextLM could already achieve the baseline perplexity using 39\% fewer parameters and demonstrates robust generalization improvements on extensive downstream tasks under equivalent parameter counts.

Keywords

Cite

@article{arxiv.2510.20280,
  title  = {Context-level Language Modeling by Learning Predictive Context Embeddings},
  author = {Beiya Dai and Yuliang Liu and Daozheng Xue and Yunchong Song and Qipeng Guo and Kai Chen and Xinbing Wang and Bowen Zhou and Zhouhan Lin},
  journal= {arXiv preprint arXiv:2510.20280},
  year   = {2026}
}

Comments

19pages,6 figures, 13 Tables

R2 v1 2026-07-01T07:01:31.272Z