L$^2$M: Mutual Information Scaling Law for Long-Context Language Modeling

Zhuo Chen, Oriol Mayné i Comas, Zhuotao Jin, Di Luo, Marin Soljačić
3/6/2025
cs.CLcs.AIcs.IT

No official code found. Best implementation: LSquaredM/mutual_info_scaling_law (13 stars, last commit 2025-11-09).

Abstract

We present a universal theoretical framework for understanding long-context language modeling based on a bipartite mutual information scaling law that we rigorously verify in natural language. We demonstrate that bipartite mutual information captures multi-token interactions distinct from and scaling independently of conventional two-point mutual information, and show that this provides a more complete characterization of the dependencies needed for accurately modeling long sequences. Leveraging this scaling law, we formulate the Long-context Language Modeling (L$^2$M) condition, which lower bounds the necessary scaling of a model's history state -- the latent variables responsible for storing past information -- for effective long-context modeling. We validate the framework and its predictions on transformer and state-space models. Our work provides a principled foundation to understand long-context modeling and to design more efficient architectures with stronger long-context capabilities, with potential applications beyond natural language.

View on arXivView PDF

Code Implementations(1)

(NeurIPS 2025) Official Code for L²M: Mutual Information Scaling Law for Long-Context Language Modeling

130PythonMar 4, 202511 months agoNOASSERTION
information-theorylarge-language-modelsllmmutual-informationscaling-law

Similar Papers

Cite this paper

@article{chen2025lm,
  title  = {L$^2$M: Mutual Information Scaling Law for Long-Context Language Modeling},
  author = {Zhuo Chen and Oriol Mayné i Comas and Zhuotao Jin and Di Luo and Marin Soljačić},
  year   = {2025},
  eprint = {2503.04725},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.04725v2}
}

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/2503.04725.svg)](https://codeofpaper.com/paper/2503.04725)

Discussion