Pith. sign in

A Law of Next-Token Prediction in Large Language Models

1 Pith paper cite this work. Polarity classification is still indexing.

1 Pith paper citing it
abstract

Large language models (LLMs) have been widely employed across various application domains, yet their black-box nature poses significant challenges to understanding how these models process input data internally to make predictions. In this paper, we introduce a precise and quantitative law that governs the learning of contextualized token embeddings through intermediate layers in pre-trained LLMs for next-token prediction. Our findings reveal that each layer contributes equally to enhancing prediction accuracy, from the lowest to the highest layer -- a universal phenomenon observed across a diverse array of open-source LLMs, irrespective of their architectures or pre-training data. We demonstrate that this law offers new perspectives and actionable insights to inform and guide practices in LLM development and applications, including model scaling, pre-training tasks, and interpretation.

fields

cs.CL 1

years

2025 1

verdicts

CONDITIONAL 1

representative citing papers

Reasoning Bias of Next Token Prediction Training

cs.CL · 2025-02-04 · conditional · novelty 5.0

Training on all tokens (next token prediction) beats training only on answer tokens (critical token prediction) on small-scale reasoning benchmarks, an effect the authors attribute to noise-induced regularization.

citing papers explorer

Showing 1 of 1 citing paper.

  • Reasoning Bias of Next Token Prediction Training cs.CL · 2025-02-04 · conditional · none · ref 15 · internal anchor

    Training on all tokens (next token prediction) beats training only on answer tokens (critical token prediction) on small-scale reasoning benchmarks, an effect the authors attribute to noise-induced regularization.