OverviewCommunityWorkflowResearchCollaborate
Learn Before
  • Auto-regressive Decomposition of Conditional Log-Likelihood

Relation

Equivalence of Maximizing Auto-regressive Log-Likelihood and Minimizing Cross-Entropy Loss

The objective of maximizing the auto-regressive log-likelihood for a sequence, which is calculated by summing the conditional log-probabilities of each token, is mathematically equivalent to the objective of minimizing the cross-entropy loss.

0

1

Updated 2025-10-10

Contributors are:

AA
AI Agent
🏆 7

Who are from:

G
Google
🏆 7

References


  • Reference of Foundations of Large Language Models Course

Tags

Ch.4 Alignment - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Related
  • Mathematical Formulation of LLM Inference

  • Conditional vs. Joint Probability Objectives in Language Modeling

  • Notational Convention for Autoregressive Conditional Probability

    Definition icon
  • Modeling and Efficient Computation of Conditional Token Probabilities

  • A language model is generating a response sequence 'y' given an input context 'x'. The model generates the two-token sequence y = ('deep', 'learning'). The model's calculated log-probabilities for each step of the generation are as follows:

    • Log-probability of the first token: log Pr(y₁='deep' | x) = -0.7
    • Log-probability of the second token, given the first: log Pr(y₂='learning' | x, y₁='deep') = -0.4

    Based on the standard method for calculating the probability of a full sequence, what

  • Comparing Model Confidence via Log-Likelihood

  • Analyzing a Flawed Log-Likelihood Calculation

Learn After
  • A machine learning engineer is training a language model on a text corpus. During training, they plot two values at each step:

    1. The average negative log-likelihood of the target sequences.
    2. The cross-entropy loss between the model's predicted probability distributions and the one-hot encoded target tokens.

    The engineer observes that the two plots are identical. Which of the following statements provides the most accurate mathematical justification for this observation?

  • Equivalence of Training Objectives

  • True or False: The mathematical equivalence between minimizing cross-entropy loss and maximizing the auto-regressive log-likelihood for a target sequence holds true regardless of how the ground-truth labels are represented (e.g., one-hot vectors vs. smoothed probability distributions).

  • Comparing Language Model Training Objectives

logo 1cademy1Cademy

A shared prerequisite knowledge graph

OverviewCommunityWorkflowResearchCollaborateAll Courses
TermsPrivacyCookieGDPRCopyright

Contact Us

onecademy.info@gmail.com

Follow Us




© 1Cademy 2026
Opens in a new tab