﻿# Annotation confidence, class probability and sample weight: preserve three different meanings

Annotation confidence, class probability and sample weight: preserve three different meanings. A practical data-quality guide with failure mechanisms, validation steps, acceptance evidence and primary references.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/dq-annotation-confidence-probability-sample-weight/
Language: en

An export includes a confidence score beside a label. A training adapter treats that score as a class probability, while an evaluation script uses it as a sample weight, creating incompatible interpretations.

## The mechanism that changes the example

A reviewer confidence score is not automatically a calibrated probability or an intended loss multiplier. Similar numeric ranges do not make these quantities interchangeable across training and evaluation.



## Define the comparison boundary

Name score fields by their operational meaning and preserve their origin. A reviewer-selected confidence level, a model's prediction score and an evaluation weight can share a numeric range while referring to different quantities.

For probability targets, check the expected class layout and normalization separately from any sample weighting. For weighted metrics, inspect the library's documented denominator and compare an unweighted control. A large weight changes contribution to the objective; it does not make the associated label more probable by definition.

If confidence is intentionally converted to a weight or probability, treat that conversion as a fitted or governed transformation with its own evaluation. Keep the original score and transformed field distinguishable. Test a change in reviewer population, because identical confidence labels need not imply the same empirical error rate across groups.

## A constructed test case

Give equally labeled examples different reviewer confidence values. Compare a pipeline using confidence only as optional weight with one treating it as a target probability. The release must declare the intended role instead of inferring it from numeric range.

## A reproducible validation procedure

Trace each exported score to its documented origin and consumer field. Test examples where the same label has different confidence but identical target probability. Compare unweighted targets, optional weights and reported metrics separately.

Include an unchanged control and a deliberately invalid case. Verify that the checker distinguishes them before testing the complete release.

Exercise the actual preparation path, including later serialization and reload. Limit retained diagnostic content to the evidence required for this comparison.

## Evidence needed for acceptance

Publish the score definition, calibration assumptions and explicit mapping into model and metric inputs.

## Containment and recovery

Even a calibrated confidence model can drift when reviewer population or task difficulty changes.

Quarantine an invalid release candidate or use an explicit partial-release rule. Preserve the last approved artifact and record corrections without silently rewriting historical inputs.

## Interpretation and references

Implementation references: [scikit-learn log loss and sample weights](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.log_loss.html); [scikit-learn probability calibration](https://scikit-learn.org/stable/modules/calibration.html).

This is a proposed engineering validation, not an executed Retrivium benchmark. Documentation specifies interfaces; dataset acceptance needs its own evidence and must be repeated after relevant dependency changes.

## Related reading

Continue with [Label Studio prediction scores: whole-task confidence does not describe every region](/journal/fg2-label-studio-prediction-score-unit/); [Annotator vote distributions: soft targets need a denominator and class order](/journal/data-guide-annotator-votes-target-distribution/). These guides supply adjacent context; the decision in this article remains the specific example-preservation check above.
