{
 "slug": "Next-token_prediction",
 "title": "Next-token prediction",
 "type": "concept",
 "short_desc": "The objective of predicting each token from all preceding ones, the training signal behind GPT-style language models and the foundation of autoregressive generation.",
 "categories": [
  "Concepts",
  "Training methods"
 ],
 "infobox": {
  "Introduced": "Shannon's next-character prediction (1951); neural form, Bengio et al., 2003; GPT line from 2018",
  "Field": "Machine learning, training objectives",
  "Used in": "GPT and virtually all decoder-only LLMs",
  "Key papers": "arXiv:2005.14165, arXiv:2001.08361, arXiv:2203.15556"
 },
 "infobox_links": {
  "Used in": [
   "GPT_(model_family)",
   "Large_language_model"
  ]
 },
 "aliases": [
  "Autoregressive language modeling"
 ],
 "family": "",
 "org": "",
 "registry_status": "stub",
 "words": 1441,
 "references": 10,
 "outbound": [
  "BERT",
  "Backpropagation",
  "Chinchilla",
  "Cross-entropy_loss",
  "DeepSeek-V3",
  "Diffusion_language_model",
  "Direct_preference_optimization",
  "GPT-3",
  "GPT_(model_family)",
  "In-context_learning",
  "Large_language_model",
  "Masked_language_modeling",
  "Pretraining",
  "Reinforcement_learning_from_human_feedback",
  "Scaling_laws",
  "Self-attention",
  "Seq2seq",
  "Softmax",
  "Teacher_forcing",
  "Transformer_(architecture)"
 ],
 "inbound": [
  "Andrej_Karpathy",
  "Compositional_generalization",
  "Cross-entropy_loss",
  "Embedding_(machine_learning)",
  "François_Chollet",
  "GLM_(model_family)",
  "GPT-2",
  "GPT-3",
  "Ilya_Sutskever",
  "Instruction_tuning",
  "Large_language_model",
  "Logit_lens",
  "Masked_language_modeling",
  "Pretraining",
  "Richard_Sutton",
  "Seq2seq",
  "Simulators_(essay)",
  "Softmax",
  "Supervised_fine-tuning",
  "Teacher_forcing",
  "The_Bitter_Lesson",
  "The_Unreasonable_Effectiveness_of_Recurrent_Neural_Networks",
  "Tokenization",
  "Transformer_(architecture)",
  "Yann_LeCun",
  "Yoshua_Bengio"
 ],
 "url": "wiki/Next-token_prediction.html",
 "built": "2026-07-24"
}
