ESLM: Risk-Averse Selective Language Modeling for Efficient Pretraining

Melis Ilayda Bal, Volkan Cevher, Michael Muehlebach
5/26/2025
cs.LGcs.CL

No confident code implementation found for this paper.

Abstract

Large language model pretraining is compute-intensive, yet many tokens contribute marginally to learning, resulting in inefficiency. We introduce Efficient Selective Language Modeling (ESLM), a risk-aware algorithm that improves training efficiency and distributional robustness by performing online token-level batch selection.

Show full abstract

ESLM leverages per-token statistics (e.g., entropy or loss) and applies value-at-risk thresholding to retain only the most informative tokens per batch. This data-centric mechanism reshapes the training loss, prioritizing high-risk tokens and eliminating redundant gradient computation. We frame ESLM as a bilevel game: the model competes with a masking adversary that selects worst-case token subsets under a constrained thresholding rule. In the loss-based setting, ESLM recovers conditional value-at-risk loss minimization, providing a principled connection to distributionally robust optimization. We extend our approach to Ada-ESLM, which adaptively tunes the selection confidence during training. Experiments on GPT-2 pretraining show that ESLM significantly reduces training FLOPs while maintaining or improving both perplexity and downstream performance compared to baselines. Our approach also scales across model sizes, pretraining corpora, and integrates naturally with knowledge distillation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bal2025eslm,
  title  = {ESLM: Risk-Averse Selective Language Modeling for Efficient Pretraining},
  author = {Melis Ilayda Bal and Volkan Cevher and Michael Muehlebach},
  year   = {2025},
  eprint = {2505.19893},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.19893v2}
}

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

Discussion