Why can validation cross-entropy loss increase while validation accuracy continues to rise?

Quick Overview

Asks why a classifier's validation cross-entropy can rise while its validation accuracy keeps improving. Tests how well you understand what each metric measures, how confidence and calibration affect the loss, and how to choose checkpoints and fixes when the two curves disagree.

Why can validation cross-entropy loss increase while validation accuracy continues to rise?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why can validation cross-entropy loss increase while validation accuracy continues to rise? Assume a classifier trained with cross-entropy, where both metrics are tracked on the same validation set after every epoch. ```hint Compare what each metric reads Accuracy reads one thing from each prediction and cross-entropy reads another. Write down which kinds of change to a predicted distribution move each metric. ``` ```hint Put numbers on it Compute the per-example loss of a wrong prediction made at 99.9% confidence, and compare it with what a correct prediction gains when its probability moves from 0.6 to 0.9. ``` ### What a Strong Answer Covers - What each metric is sensitive to, and why the two can move in opposite directions - How large the cross-entropy penalty on a confident mistake can get, with a number - What the divergence says about the model's calibration and training stage - When the divergence matters for how the model's outputs are used - Practical responses, including checkpoint choice, regularization and recalibration ### Follow-up Questions - Which checkpoint would you ship, and does the answer change if the outputs feed a threshold or an expected-value calculation? - How does temperature scaling improve the loss without changing accuracy? - How would you tell whether the rising loss comes from overconfidence on hard examples or from mislabeled validation examples? - How does label smoothing change what the model learns, and what does it cost?

Overview: Asks why a classifier's validation cross-entropy can rise while its validation accuracy keeps improving. Tests how well you understand what each metric measures, how confidence and calibration affect the loss, and how to choose checkpoints and fixes when the two curves disagree.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why can validation cross-entropy loss increase while validation accuracy continues to rise? Assume a classifier trained with cross-entropy, where both metrics are tracked on the same validation set after every epoch.

What a Strong Answer Covers Guidance

  • What each metric is sensitive to, and why the two can move in opposite directions
  • How large the cross-entropy penalty on a confident mistake can get, with a number
  • What the divergence says about the model's calibration and training stage
  • When the divergence matters for how the model's outputs are used
  • Practical responses, including checkpoint choice, regularization and recalibration

Follow-up Questions Guidance

  • Which checkpoint would you ship, and does the answer change if the outputs feed a threshold or an expected-value calculation?
  • How does temperature scaling improve the loss without changing accuracy?
  • How would you tell whether the rising loss comes from overconfidence on hard examples or from mislabeled validation examples?
  • How does label smoothing change what the model learns, and what does it cost?