Case Study

Calculating Model Training Loss

A model is being trained for a token classification task. For a given four-token input sequence, the correct tags have been identified. The model has produced a probability for the correct tag at each of the four positions. Your task is to calculate the average negative log-likelihood loss for this entire sequence based on the data provided below. Use the natural logarithm (ln) for your calculations and show the main steps.

0

1

Updated 2025-09-28

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science