mlsanityData to 7 Oct 2026

A Law of Next-Token Prediction in Large Language Models

arXiv 2408.13442 ↗First posted 24 Aug 2024cs.LG cs.AI cs.CLcited by 15

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 36 of its 50 references that are in the map. First posted on arXiv 24 Aug 2024.

Builds on

36 of 50 references.

References · 36

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2024The Llama 3 Herd of Modelscited by 14,192
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  7. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  8. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  9. 2020Scaling Laws for Neural Language Modelscited by 6,411
  10. 2016Layer Normalizationcited by 5,579
  11. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  12. 2023Mistral 7Bcited by 3,065
24 more
  1. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  2. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  3. 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
  4. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
  5. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  6. 2019Root Mean Square Layer Normalizationcited by 1,425
  7. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
  8. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  9. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
  10. 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 713
  11. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
  12. 2023Scaling Data-Constrained Language Modelscited by 391
  13. 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
  14. 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 328
  15. 2024Benchmarking Retrieval-Augmented Generation for Medicinecited by 326
  16. 2021Exploring Deep Neural Networks via Layer-Peeled Model: Minority Collapse in Imbalanced Trainingcited by 166
  17. 2020A Monolingual Approach to Contextualized Word Embeddings for Mid-Resource Languagescited by 131
  18. 2021ReduNet: A White-box Deep Network from the Principle of Maximizing Rate Reductioncited by 84
  19. 2022A Law of Data Separation in Deep Learningcited by 36
  20. 2024Linguistic Collapse: Neural Collapse in (Large) Language Modelscited by 36
  21. 2023Understanding Deep Representation Learning via Layerwise Feature Compression and Discriminationcited by 31
  22. 2023White-Box Transformers via Sparse Rate Reduction: Compression Is All There Is?cited by 22
  23. 2023What Should Data Science Education Do with Large Language Models?cited by 13
  24. 2024Spring-block theory of feature learning in deep neural networkscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 9; 2026: 5.

15 papers.

Sort:

By area: