liveBook · Manning

Loss function

As explained in Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI

A loss function is a function that quantifies the discrepancy between a model's prediction and its target, providing a value to minimize during training.

A loss function scores the discrepancy between a predicted label distribution and the target distribution. Minimizing that score can estimate annotation confidence or guide a downstream model during training. section 9.2.1 section 9.8.3

For estimating confidence from annotations, possible distance measures include:

Uncertain labels can also change the training target. Instead of treating “Cyclist” as certainly correct, a model can target 0.7; with confidence of 0.7 ± 0.1, predictions from 0.6 to 0.8 may be treated as acceptable. More finely calibrated uncertainty can soften the loss according to how close a prediction is to the confidence estimate. section 9.8.3

Animal

Cyclist

Pedestrian

Sign

0

0.7 (±0.1)

0.3 (±0.1)

0

The table shows uncertain label values for a Cyclist annotation, including a confidence interval. section 9.8.3

How Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI covers it

How deep it goes
Explains distance measures and confidence-aware targets, tolerances, and softened penalties without prescribing one implementation.
Examples
Uses pedestrian, sign, cyclist, and animal labels, including a Cyclist target of 0.7 with uncertainty of ±0.1.
What you can do after
Apply confidence-aware targets or tolerances when training models on uncertain annotations.
How it connects
Links loss functions to annotation confidence, annotator accuracy, ground-truth performance, and label uncertainty.

Also explained in

Compare how 2 books explain loss function →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI. The section links point to the parts of the book it draws on.