NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Context-level Language Modeling by Learning Predictive Context Embeddings

beiya dai, Yuliang Liu, Yunchong Song, Daozheng Xue, Qipeng Guo, Kai Chen, Xinbing Wang, Bowen Zhou, Zhouhan LinICML 2026

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.
BibTeX
@inproceedings{dai2026context,
  author = {beiya dai and Yuliang Liu and Yunchong Song and Daozheng Xue and Qipeng Guo and Kai Chen and Xinbing Wang and Bowen Zhou and Zhouhan Lin},
  title = {{Context-level Language Modeling by Learning Predictive Context Embeddings}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ARA2xneUDG},
}

Loading related content...

Figure