Confident Learning: Estimating Uncertainty in Dataset Labels
Paper · 2021 · Curtis G. Northcutt, Lu Jiang and Isaac L. Chuang
Summary
A classification dataset can contain clear examples with the wrong label, ambiguous examples with a defensible label, and categories whose definitions overlap. All of these can produce the same signal: a classifier gives a low score to the label recorded in the data. Northcutt, Jiang and Chuang ask how much can be learned from that signal when the recorded labels are the only annotations available. Their method, confident learning, estimates how frequently each recorded class occurs with each underlying class. It also identifies examples worth inspecting and tests whether removing suspect examples helps a classifier learn.
Confident learning starts with predictions for examples held out of the training that produced those predictions. It learns a separate confidence threshold for each class, using the average score that examples carrying that label receive for it. An example can then qualify for a class whose scores are usually modest, even if another class has a higher raw score. The method counts confident assignments by pairing each example’s recorded class with its estimated underlying class. Counts away from the diagonal of this matrix reveal the direction and size of suspected labeling problems. The paper gives conditions under which these assignments recover the actual mislabeled examples, including a setting where individual scores can be wrong but preserve the relevant threshold decisions.
On CIFAR-10, the authors introduce artificial label errors so they can test both whether the method finds the changed examples and whether training on the filtered set improves test accuracy. At 20% training-label noise and sparsity 0.6, the direct confident-joint method reaches 91.3% accuracy on the unaltered test set, compared with 89.2% for INCV and 78.2% for ordinary training on the noisy labels. On the original ImageNet training set, the method estimated that 645 images labeled projectile belonged to the more specific missile class. Reviewers found a mixture of errors, overlapping categories and images with multiple valid labels among the ImageNet candidates. Cleaning the training set gave modest gains in overall validation accuracy, with larger gains for some categories.
The same procedure exposed clear mistakes in the original MNIST training labels and surfaced issues in WebVision using a classifier already trained on ImageNet. On Amazon Reviews, the authors used logistic regression and found that filtering improved held-out rating prediction in training subsets deliberately enriched with naturally occurring suspect labels. These experiments illustrate two uses of the same count matrix. It can guide a training-data filter, and it can show where a dataset’s categories or labeling rules deserve a closer look. The authors released their implementation as the cleanlab Python package.
Deep dive: Confident Learning: Estimating Uncertainty in Dataset Labels
Confident Learning estimates which dataset labels may be wrong, counts how classes are confused, and tests whether removing suspect examples improves training. · about 41 minutes to read
The problem and its context
The label is part of the measurement
A supervised classification example pairs an input with a recorded category. In machine learning, the training procedure takes those pairs as evidence about which distinctions to learn. An error in the category can therefore matter even when the input is perfectly usable. A clear image assigned to the wrong class teaches the learner a misleading association. If the same kind of error occurs repeatedly, the dataset can teach a systematic distinction different from the one its designers intended.
From the predictions alone, a surprising example is difficult to interpret. A classifier may give little support to the recorded category because the category is wrong, because the input is hard to classify, or because the classifier has learned the distinction poorly. The authors frame the estimation problem around these different sources of uncertainty. Uncertainty in the prediction concerns how accurately the classifier has learned to score an example. Uncertainty in the label concerns the process that put a category into the dataset. Treating every disagreement as an annotation mistake turns limitations of the classifier into apparent properties of the data.
The setting is deliberately spare. The authors assume access to an input and its recorded label for each example. Individual annotator decisions, repeated judgments and a separate list of verified labels are unavailable. Earlier studies reviewed by the authors can use information about who assigned a label or how annotators disagree. Confident learning instead works with a single recorded category and an independently generated score for each possible category. The latent label is the category the example would have under the intended labeling rule. In the paper’s formal setup, every example has one such label.
The distinction between prediction error and labeling error also separates the two questions the paper asks about performance. A cleaning procedure can be assessed by whether it recovers actual mistakes. A training procedure can be assessed by how accurately it classifies held-out inputs after using the filtered data. The first assessment requires some basis for knowing which labels were wrong. The second can be made on an evaluation split, where the accuracy still depends on the quality of that split’s labels. The paper uses deliberately corrupted data to make the questions separately measurable, then examines original datasets where the underlying labels are generally unavailable.
Errors have directions
The authors adopt a class-conditional account of label noise. Once the true class is fixed, each potential recorded class has a corresponding probability. Under this assumption, the probabilities are shared across examples of the same true class. For instance, the probability that a missile is recorded as a projectile is a property of the missile class in the formal setup. The paper motivates the assumption with distinctions from the ImageNet Large Scale Visual Recognition Challenge. Some substitutions are plausible because the categories describe related things. Most possible substitutions have little reason to occur.
The direction of a substitution matters. A specific category can often be recorded under a broader one, while examples in the broader category may qualify for the specific label only in some cases. The paper represents each direction in a separate cell. This is more informative than reporting a single error rate for a class. A dataset curator can inspect which neighboring categories account for suspected errors, and a training procedure can use those counts to decide how many examples to remove for each suspected substitution.
The paper uses sparsity to describe how concentrated the possible substitutions are. It defines sparsity as the fraction of off-diagonal entries in the joint distribution that are zero. A sparse pattern can still contain many errors if a few substitutions occur frequently. Conversely, errors can be spread thinly over many class pairs. The amount of noise and its sparsity are therefore distinct experimental controls. A procedure that does well when every class can be confused with many others may behave differently when a few alternatives attract most of the wrong labels.
Another distinction is between a noise rate and the number of affected examples. A class-conditional rate answers how frequently a true class is recorded under a particular name. The amount of data involved also depends on how common that true class is. The joint distribution includes both pieces of information. Its entries describe the share of the dataset belonging to each recorded and true class pair. From those entries the authors can recover class frequencies, estimate noise rates and obtain counts for inspection.
What earlier approaches estimated or changed
The paper traces its counting approach to work by Elkan and Forman on estimating errors in binary classification. In that setting, counts can help infer how often positives or negatives were assigned incorrectly even when a classifier makes mistakes of its own. Thresholding work by Elkan and Noto addressed unreliable scores and unequal class frequencies in a setting with known clean positives. Northcutt and colleagues carry these ideas into multiclass data with potentially noisy labels in every class. They use comparisons within each class’s score distribution to decide which examples to count.
A second line of research changes the learning rule to cope with noisy targets. Some methods reweight losses using known or estimated noise rates. Others add a component to represent the noise process or change the loss to reduce the influence of unreliable labels. A Loss Correction Approach and Meta-Weight-Net appear in the paper’s discussion of correction and sample weighting. These approaches address the effect of unreliable supervision during training. The question confident learning foregrounds is which examples and class pairs account for that supervision.
The closest comparison in the paper is iterative noisy cross-validation, or INCV. It uses cross-validation to look for examples whose most likely predicted class differs from their recorded label. It then repeats selection and training. Confident learning also relies on held-out predictions, but estimates the distribution of suspected errors from a single collection of those predictions. Its main count uses a separate threshold for each class. The authors retain the ordinary highest-score rule as a baseline so they can examine what the thresholds contribute with the inputs otherwise held fixed.
The paper also distinguishes its aim from ranking examples by their scores alone. A ranking tells a reader which item looks more suspicious than another. It leaves open how far down the ranking to go and how much of each class to inspect. The joint estimate provides a data-based size for that search. The ranking then decides which examples best fit the estimated pattern. This distinction between counting and ranking is central to the method and to the way the authors evaluate it.
The method, step by step
From held-out predictions to a count of suspected errors
Imagine inspecting a training image recorded as a projectile. The first thing confident learning needs is a set of scores for that image from a classifier that did not train on it. The method asks how strongly the classifier supports missile in comparison with the scores ordinarily assigned to images recorded as missiles. It makes the same comparison for projectile and the other classes. The recorded label fixes a row in a matrix. If a class qualifies as the estimated underlying label, that choice fixes a column.
Once this process is repeated across the data, the projectile row can contain several kinds of entries. A diagonal count records examples that confidently stayed in their recorded class. An entry in the missile column counts the examples recorded as projectile that confidently resemble the missile class. Some examples are too uncertain to count anywhere. The method uses the known size of each recorded class to scale the counts in its row before turning them into probabilities. For some cleaning variants, those probabilities give the size of the removal lists, and individual scores determine which examples appear on the lists.
From observed labels to a filtered training set
The steps in order.
The inputs and the hidden quantities
Write the dataset as a collection of inputs and their recorded labels. The inputs are treated as observed and error-free for the purposes of this analysis. The class set has size m, and the dataset contains n examples. An example with index k has input xₖ, recorded label ỹₖ and an unknown underlying label y*ₖ. All labels refer to the same set of classes. The paper uses a tilde for the noisy label, a star for the underlying label and a hat for quantities obtained from predictions or estimates.
P̂[k,i] = p̂(ỹ = i; xₖ, θ)
P̂ is the matrix of held-out scores. Its row index k identifies the input xₖ, and its column index i identifies a class. The right-hand side is the predicted probability, denoted p̂, that the recorded label variable ỹ would take class i for this input. θ denotes the fitted parameters used to obtain that prediction. In cross-validation, the fitted parameters used for a given row come from the folds that exclude that row. The recorded label supplied alongside row k is still the original ỹₖ.
Held-out scoring matters because a classifier trained on the same example has already seen the label being investigated. Cross-validation allows the rest of the dataset to supply the evidence about the held-out item. The authors normally use four folds in the image experiments that require cross-validation. A classifier trained on independent data can also serve as the source of scores, as the WebVision experiment demonstrates. The counting stage receives the resulting scores and labels. It has no need to know which loss function produced the scores or which classifier will be trained at the end.
p(ỹ = i | y* = j; x) = p(ỹ = i | y* = j)
Here p denotes a probability in the assumed labeling process. The vertical bar introduces the condition that the underlying label y* is class j. The event being measured is that the recorded label ỹ is class i. The left side also refers to input x, and the equality states that knowing x adds no information about the label transition once j is known. This is the class-conditional assumption. It concerns the labeling process. The predicted scores used by the method can vary from one input to another.
Q[i,j] = p(ỹ = i, y* = j)
Q abbreviates the paper’s joint distribution of the recorded and underlying labels. Row i denotes the recorded class, and column j denotes the underlying class. The probability on the right is for both events to hold for the same example. In a diagonal cell, the classes agree. An off-diagonal cell represents one particular direction of mislabeling. The task is to estimate this matrix and, where possible, identify the examples occupying its cells.
N[i,j] = p(ỹ = i | y* = j)
N is shorthand for the paper’s noise transition matrix. Its entry at row i, column j is the chance that a member of underlying class j is recorded as class i. Each column is a distribution over recorded labels for a fixed underlying label. The diagonal entry is the class’s label-retention probability. The joint matrix and the transition matrix have the same row and column meanings, but the joint measures the share of the entire dataset, while the transition conditions on membership in one underlying class.
Calculate one threshold per class
The first statistic extracted from the score matrix is self-confidence. For an example carrying class j, its self-confidence is the score in column j. It can be read directly from the score matrix and recorded label without estimating the underlying label. The threshold for j is the mean of those scores across examples recorded as j.
tⱼ = (Σₓ∈Xⱼ p̂(ỹ = j; x, θ)) / |Xⱼ|
tⱼ is the threshold for class j. Xⱼ is the subset of examples whose recorded label is j, and |Xⱼ| is its size. Σ adds the predicted probabilities p̂ for class j over inputs x in that subset. θ denotes the fitted parameters used for each held-out prediction. Division by the subset size makes this the average self-confidence among examples recorded in that class. An observed class needs examples for this average to be defined. The theoretical analysis assumes that every class is represented.
Class-specific thresholds address a problem with raw score comparisons. Suppose a classifier systematically awards high scores to one class and modest scores to another. Its top prediction can favor the first class even on examples with unusually strong evidence for the second. Averaging the recorded examples’ class scores gives the first class a higher hurdle and the second class a lower one. The resulting comparison asks whether a score is high for its own class. The recorded labels used in the average can include mistakes, which is why the paper analyzes what those mistakes do to the threshold.
Assign examples to the confident joint
For each input, confident learning first identifies the classes whose scores reach their respective thresholds. The set can be empty. An example in that situation contributes no raw count. When one class qualifies, it provides the column. When several classes qualify, the paper calls this a collision. The formal definition chooses the qualifying class with the highest score.
A(x) = {ℓ ∈ [m] | p̂(ỹ = ℓ; x, θ) ≥ tℓ}
A(x) is the set of eligible classes for input x. The index ℓ ranges over [m], the set of m classes. The vertical bar inside the set means that a class is included when it satisfies the condition that follows. The classifier’s held-out score p̂ for recorded label ỹ taking value ℓ is compared with the threshold tℓ for that class. θ again stands for the parameters used to score the input.
X̂ᵢⱼ = {x ∈ Xᵢ | j ∈ A(x) and j = arg maxℓ∈A(x) p̂(ỹ = ℓ; x, θ)}
X̂ᵢⱼ is the estimated set of examples recorded as class i and inferred to belong to class j. Xᵢ is the observed class-i subset. The condition after the vertical bar requires class j to be eligible and to be the class selected by arg max, which returns the index with the highest predicted score across eligible classes ℓ. An input x with empty A(x) satisfies no such assignment. The value of p̂ for an eligible class comes from the held-out prediction with parameters θ.
C[i,j] = |X̂ᵢⱼ|
C is the confident joint, a matrix of counts. Row i refers to the recorded class and column j to the inferred class. The vertical bars give the number of members in X̂ᵢⱼ. This matrix retains enough information to support two distinct operations. Its cell sizes can be used to estimate class-pair frequencies, and the examples that contributed to a cell can be kept as a list for inspection.
The formal rule and the appendix pseudocode describe the collision choice slightly differently. The formula takes the highest score among qualifying classes. The pseudocode specifies the highest score over the full score vector when several classes qualify. That difference can matter if the overall highest-scoring class fails its own threshold. The paper’s result for imperfect scores assumes there are no collisions, so that distinction does not enter that result.
The ordinary confusion-matrix baseline uses the same held-out scores and observed labels. It always takes the highest-scoring class as the inferred label and therefore counts every example. A disagreement between the highest-scoring class and the recorded one is enough to flag an item. This baseline makes the confident joint’s two changes visible. Thresholds let low-scoring classes qualify relative to their own usual scores, and a lack of qualifying scores lets the counting procedure abstain. The authors note that the latter property can help when an example produces low, nearly uniform scores across the available classes.
Calibrate the counts and recover noise rates
Because the confident joint can leave some examples uncounted, a row total need not equal the number of examples carrying that row’s observed label. The paper first rescales each row to the correct observed count. This preserves the class proportions within the row and restores the known overall prevalence of the row’s label. The second operation normalizes the whole matrix into a probability distribution.
B[i,j] = (C[i,j] / Σₗ∈[m] C[i,ℓ]) × |Xᵢ|
B denotes the rescaled counts. The numerator C[i,j] is the confident-joint count for recorded class i and inferred class j. The sum in the denominator runs over all inferred classes ℓ in [m], so the fraction is the cell’s share of its counted row. Multiplying by |Xᵢ|, the number of examples recorded as class i, sets the rescaled row total to the observed count. The calculation needs a non-zero counted total for that row. It scales the evidence already in the row and does not assign an individual underlying label to any example the confident joint skipped.
Q̂[i,j] = B[i,j] / Σₐ∈[m],ᵦ∈[m] B[a,b]
Q̂ is the estimated joint distribution. Its cell i,j uses the corresponding entry of B, and the denominator adds all of B over row indices a and column indices b. Both indices range over the class set [m]. The resulting entries sum to one. The row totals match the observed proportions of the recorded labels. The column totals estimate how common the underlying labels are.
π̂ⱼ = Σᵢ∈[m] Q̂[i,j]
π̂ⱼ is the estimated prior probability of underlying class j. The sum runs over all recorded classes i in [m]. It counts estimated members of the underlying class wherever they appear in the recorded labels. This is how the method estimates class frequencies that would otherwise require a cleaned dataset.
N̂[i,j] = Q̂[i,j] / π̂ⱼ
N̂[i,j] estimates the probability that a true member of class j is recorded as class i. The numerator is the joint estimate, and the denominator π̂ⱼ is the estimated frequency of underlying class j. Conditioning on that class requires its estimated frequency to be positive.
M̂[j,i] = Q̂[i,j] / (|Xᵢ| / n)
M̂[j,i] estimates the reverse conditional probability, that an example belongs to underlying class j given that it is recorded as class i. Q̂[i,j] is the same joint estimate as before. The denominator is the observed size |Xᵢ| of class i divided by the dataset size n. This direction answers a curator’s question about what might be in a collection already filed under a given category. The forward transition estimate answers how the labeling process disperses examples from an underlying class.
These operations explain the authors’ emphasis on counting. The scores have numerical influence when setting thresholds and resolving collisions. Once the assignments have been made, the probability estimates come from counts. For example, two qualifying scores of different sizes can contribute equally to the same cell. An imperfect score can thus leave the joint estimate unchanged if it leaves the eligibility decision and resulting assignment unchanged. The paper gives the storage and arithmetic cost of constructing the confident joint once the predictions have already been obtained.
O(m² + nm)
O expresses the order of growth in the cost. m² is the size of the class-by-class matrix, and nm is the number of scores for n examples across m classes. This cost describes the counting procedure given the scores. Producing held-out predictions and training again after pruning have their own costs.
Turn estimated counts into a removal list
The authors evaluate several ways to select examples. The direct confident-joint method flags the examples assigned to off-diagonal cells. The ordinary confusion-matrix baseline flags every example whose top prediction disagrees with its recorded class. Both can produce a list without choosing an additional cutoff for how many examples to remove. The difference is the rule that puts an example in a cell.
The other methods treat the calibrated joint as an estimate of the number of examples in each partition. This lets counting and selection use different criteria. A row can suggest that a given recorded class has many errors, while a ranking determines which examples from that row look most suspect. For pruning by class, or PBC, the paper adds the off-diagonal mass within each recorded class and uses it as a removal budget.
bᵢ = n × Σⱼ∈[m],ⱼ≠ᵢ Q̂[i,j]
bᵢ is the estimated number to remove from recorded class i. n is the full dataset size. The sum runs over the underlying classes j in [m] that differ from i. Q̂[i,j] is the estimated share of the complete dataset in each such pair. Within the recorded class, the examples are ranked by self-confidence, and those with the lowest support for their recorded label are selected first.
Pruning by noise rate, or PBNR, keeps a separate budget for each direction of mislabeling. It asks which examples are most plausible members of a specific alternative class. An example in a given row can have low self-confidence because it is generally hard to score. It rises in a particular alternative class’s list when that alternative also receives strong support.
bᵢⱼ = n × Q̂[i,j]
bᵢⱼ is the estimated removal budget for the pair recorded as i and inferred as j, for distinct classes. It is the dataset size n times the estimated joint probability Q̂[i,j]. The budget comes from the calibrated joint. The ordering within the recorded class uses the score margin for that alternative.
dᵢⱼ(x) = p̂(ỹ = j; x, θ) − p̂(ỹ = i; x, θ)
dᵢⱼ(x) is the difference between the held-out predicted probability for alternative class j and that for recorded class i, for input x. Both scores, denoted p̂, come from predictions with parameters θ. Larger values rank earlier for removal in that pair. The combined method, C+NR, removes an example when both pruning by class and pruning by noise rate nominate it. This intersection can retain examples that only one ranking considers suspect.
The paper also uses a margin to order problems for display or inspection once a list has been selected. In this ordering, the comparator is the strongest alternative, regardless of which class it is. The sign is reversed from the pair-specific removal margin, so the most suspect examples have the smallest values.
sᵢ(x) = p̂(ỹ = i; x, θ) − maxⱼ∈[m],ⱼ≠ᵢ p̂(ỹ = j; x, θ)
sᵢ(x) is the margin for input x recorded as class i. The first term is its self-confidence. The maximum ranges over alternative classes j in [m] and returns the largest alternative score. p̂, ỹ and θ refer to the held-out probability estimate, the recorded-label variable and the fitted parameters. A strongly negative margin means the best alternative has substantially more support than the recorded class. For some figures the authors instead order candidates by self-confidence alone, where the alternative score plays no role in the ordering.
Train on the retained examples
Removing examples changes the representation of each class during training. The authors’ class weighting compensates for the estimated fraction of that class lost through labeling errors. They divide the estimated underlying frequency of a class by the estimated share of the dataset that both belongs to the class and carries its correct label.
wᵢ = π̂ᵢ / Q̂[i,i]
wᵢ is the weight applied to the training loss for class i. π̂ᵢ estimates the prevalence of that underlying class, and Q̂[i,i] estimates the prevalence of its correctly recorded examples. Their ratio is the reciprocal of the estimated probability that a member of class i keeps its correct label. It requires a positive diagonal estimate. The surviving examples keep their recorded labels, and the weight adjusts their contribution to the loss. The paper’s examples of data cleaning generally remove suspect input–label pairs and retrain on the rest.
The scorer and the final learner can use different architectures. This modularity matters for interpreting the experiments. A good final accuracy can reflect several things at once, including score quality, how the pruning list was chosen and how the retained data were used. The theory addresses a narrower operation: when the direct confident joint can recover the underlying partition. The authors favor that direct method by default, while keeping the ranked variants for empirical comparison.
Why imperfect scores can still give correct assignments
The starting case in the theory is an ideal classifier whose predicted probability for each recorded class is exactly the transition probability for the example’s underlying class. All examples in the same underlying class then have the same ideal score vector. Such a vector may still put some probability on a wrong recorded class because the target for these predictions is the recorded label.
p*(ỹ = i; x) = p(ỹ = i | y* = j) for x with y* = j
p* denotes the ideal score, x the input, i a possible recorded label and j the input’s underlying class. The right-hand side is the class-conditional transition probability. It is the ideal score the theory uses for comparison with the fitted score p̂.
At these ideal scores, a class’s threshold is a weighted average over the possible true classes inside its observed group. An observed class can contain both genuinely matching examples and examples that arrived by mislabeling. The threshold averages the appropriate transition rate for each of those components.
tᵢ* = Σⱼ∈[m] p(ỹ = i | y* = j) × p(y* = j | ỹ = i)
tᵢ* denotes the ideal threshold for recorded class i. The sum runs over possible underlying classes j in [m]. The first probability is the chance of arriving in recorded class i from underlying class j. The second is the share of recorded class i that actually belongs to j. The diagonal term corresponds to correct labels. The other terms account for contamination of the recorded group when calculating its average score.
The ideal-case theorem assumes that each diagonal entry of the transition matrix is largest in its row and column. Row dominance means that a particular recorded label is at least as likely to arise from its own underlying class as from any other underlying class when the corresponding transition rates are compared. Its correctly labeled examples’ ideal score therefore reaches the weighted average in the threshold. Column dominance means that within an example’s ideal score vector, its own class gives the maximum. This supports the collision decision when more than one class passes. With correct partitions, the counts themselves recover the empirical joint. The theory discusses the finite resolution that results when those integer counts are used to estimate probabilities.
The authors next consider shifts and rescalings shared across the scores for a class. The threshold is transformed along with the scores. A shared offset cancels in the comparison. An order-preserving rescaling changes the size of the difference while keeping its sign. The robustness argument uses this cancellation and assumes the eligible classes do not collide. By comparison, a rule that takes the highest raw score across classes has no corresponding threshold shift to absorb a change in one class’s score scale.
p̂ⱼ(x) = aⱼ × p*ⱼ(x) + cⱼ
p̂ⱼ(x) is the fitted score for class j at input x, and p*ⱼ(x) is its ideal counterpart. aⱼ denotes a class-specific scale and cⱼ a class-specific offset. Both are shared across examples for the class in this setting. The threshold argument preserves the direction of the comparison when the scale preserves order. The paper calls this type of perturbation per-class diffraction.
The example-level result allows an additional degree of variation. Scores may be perturbed differently at different inputs. The paper bounds the errors by the distance from the ideal score to its ideal threshold, with a shift that accounts for the class’s mean error. The essential condition in the proof is that the perturbation keeps each score on the same side of its corresponding threshold.
p̂ⱼ(x) = p*ⱼ(x) + εₓⱼ
p̂ⱼ(x) and p*ⱼ(x) are the fitted and ideal scores for class j at input x. εₓⱼ is an additive error that can vary with both the example x and the class j. The paper’s sufficient condition uses a uniform distribution for that error. Its interval is centered on the mean error for the class and has a width governed by the ideal distance to the threshold.
εₓⱼ ∼ U(εⱼ − (p*ⱼ(x) − tⱼ*), εⱼ + (p*ⱼ(x) − tⱼ*)] if p*ⱼ(x) ≥ tⱼ*
U denotes a uniform distribution, and ∼ means that the error εₓⱼ is drawn from it. εⱼ is the class-level mean error. p*ⱼ(x) is the ideal score and tⱼ* is the ideal threshold for class j. This is the case where the ideal score passes the threshold. The parentheses and bracket indicate which endpoint is excluded and which is included. In the proof, the two bounds limit the departure from the mean according to how far above threshold the ideal score is.
εₓⱼ ∼ U[εⱼ − (tⱼ* − p*ⱼ(x)), εⱼ + (tⱼ* − p*ⱼ(x))) if p*ⱼ(x) < tⱼ*
The symbols have the same meanings in the case where the ideal score falls below threshold. The distance controlling the interval is now the threshold minus the ideal score. The upper endpoint is open, so the allowed error keeps the adjusted score strictly below the shifted threshold. The appendix explains the argument through the corresponding inequalities and allows bounded symmetric errors with the required centering as a more general case.
p̂ⱼ(x) ≥ tⱼ* + εⱼ ⇔ p*ⱼ(x) ≥ tⱼ*
On the left, the fitted class score is compared with the ideal threshold plus the class mean error. On the right, the ideal score is compared with the ideal threshold itself. ⇔ means the threshold decisions are equivalent under the stated perturbation conditions. The proof relates the threshold calculated from the fitted scores to this shifted threshold by averaging the errors among examples recorded in the class. The authors explain that the required average is a limiting argument. Their result also requires row dominance and absence of collisions in this case.
The paper illustrates the threshold comparison with a dog recorded as a fox. The ideal dog score is 0.9 against a dog threshold of 0.8. The ideal fox score is 0.2 against a fox threshold of 0.6. The two distances are different, so the scores can tolerate different perturbations. The classification needed by the count is simply that dog remains eligible and fox remains ineligible. This is the sense in which the theory permits inaccurate scores while retaining an accurate count. Its assumptions constrain the decisions that matter for partitioning the data.
Experiments and results
CIFAR-10 with controlled label corruption
The authors begin with CIFAR-10 because they can change its training labels and keep a record of every change. They start from the original labels as the reference, then sample replacements according to generated transition matrices. The matrices allow some wrong substitutions more readily than others. The experiments vary overall noise and sparsity across separate conditions. All methods in a given condition see exactly the same noisy training labels, and test accuracy is measured on the original, unaltered test split.
The paper asks three questions of this experiment. It measures the error in the estimated joint distribution, the detection quality on individual changed labels and test accuracy after training. A joint estimate can be close even when some wrong examples are selected, since replacements within the same class pair can preserve the count. A good detector can also have a different effect on final accuracy depending on what it removes. The experiment supplies a separate metric for each outcome.
The robust-training comparisons include INCV and Mixup. INCV iteratively selects clean-looking data using cross-validation. Mixup trains with interpolations of inputs and their labels. SCE-loss adds a reverse cross-entropy term to its training loss. MentorNet uses a curriculum to select what to learn from. Co-Teaching trains classifiers together so that each can influence which examples the other learns from. S-Model uses an added layer to represent label noise, and Reed’s approach reweights the training loss. The plain baseline trains on the noisy training labels as they stand.
The comparison generally uses ResNet-50. For the shared training schedule, the learning rate is 0.1 for epochs [0,150), 0.01 for [150,250) and 0.001 for [250,350). The reported momentum is 0.9 and weight decay is 0.0001. The authors use official implementations for INCV, SCE-loss and Co-Teaching, and report results from hyper-parameter searches for Mixup and MentorNet. Confident learning uses the same number of cross-validation folds across noise settings. Its reported accuracies are means over ten trials with different random seeds and initial weights.
CIFAR-10 test accuracy at 20% training-label noise and 0.6 sparsity
Confident-joint pruning gives the highest test accuracy among these methods on the same corrupted training labels.
The numbers
| System or setting | accuracy % |
|---|---|
| Ordinary training | 78.2 |
| Co-Teaching | 80.6 |
| SCE-loss | 84.4 |
| Mixup | 84.3 |
| INCV | 89.2 |
| Highest-score disagreement | 89.9 |
| Prune by class | 90.7 |
| Prune by noise rate | 90.9 |
| Confident joint (this paper) | 91.3 |
At the noise and sparsity setting in the chart, even simple disagreement-based removal is competitive with the iterative comparison. The direct confident joint improves on disagreement-based removal, and the variants that estimate removal budgets also perform well. At 40% training-label noise and sparsity 0.6, the direct confident joint gives 86.9% CIFAR-10 test accuracy. Pruning by noise rate and the intersection reach 87.2% in that condition. At 70% noise and sparsity 0.2, the direct joint and pruning by noise rate each reach 41.8% test accuracy. INCV reaches 25.3% in that condition. The much lower scores across the severe-noise regime are important context for the relative advantage. A leading method in that comparison still has difficulty learning the task.
The reported variation for the confident-learning runs is small relative to many of the gaps between those runs and the training baselines. At 20% noise and sparsity 0.6, the standard deviation for the direct confident-joint method is 0.11 in percentage units. At 70% noise and the same sparsity, it is 1.63 in percentage units. The paper reports these deviations for its own variants and discusses reproducibility difficulties for some comparison methods. Its evidence for differences across methods is the reported benchmark, with more information about run-to-run variation on the confident-learning side.
How accurate were the counts and the selected examples?
For joint estimation, the authors compare the estimated matrix to the known joint for the artificial corruption. They use root mean square error, or RMSE, to summarize discrepancies across the entries. This metric increases when estimates depart from their target probabilities, with larger cell errors receiving more weight through squaring. The baseline uses the ordinary highest-score confusion counts followed by the same normalization. It therefore provides a comparison of the assignment rules rather than of different row calibration procedures.
Across sparsities in the 20% and 40% noise settings, the reported average RMSE is .004 for the confident joint and .006 for the baseline. The paper visualizes one case at 40% noise and 60% sparsity. More than half of the noise in that case is concentrated in six transition rates. The confident joint estimates over 80% of the joint entries with an absolute error within .005. The appendix includes the more difficult 70% conditions, where the errors grow and the two estimators sometimes have the same reported RMSE. The aggregate comparison and the individual cells together show the regime in which low matrix error was achieved.
Recovering the changed examples requires a different comparison. Here a positive result means that the method flags a training example whose label was deliberately changed. Precision measures the share of flagged items that were changed, and recall measures the share of changed items that the method flags. F1 combines precision and recall. The authors also report the accuracy of the binary decision over examples, including those whose labels were left alone.
CIFAR-10 label-error detection F1 at 20% training-label noise and 0.6 sparsity
The noise-rate ranking has the highest F1, while the direct confident joint also improves on highest-score disagreement.
The numbers
| System or setting | F1 % |
|---|---|
| Highest-score disagreement | 72 |
| Prune by class | 76 |
| Confident joint | 78 |
| Class and noise-rate intersection | 78 |
| Prune by noise rate (this paper) | 79 |
In this CIFAR-10 setting, simple disagreement achieves 97% recall at 58% precision. The direct confident joint gives 88% recall at 70% precision, while pruning by noise rate gives 94% recall at 68% precision. The ordinary disagreement rule catches many changed labels and also casts a wide net over examples that kept their labels. The threshold rule reduces those false alarms and misses some changes in the process. At 40% noise and sparsity 0.0, pruning by noise rate reaches 85% F1 for detecting changed labels. The direct joint and the highest-score baseline each reach 84% there. The comparison shows why the authors report more than one detection metric. A ranking intended to produce a manageable review list can be judged differently from a rule intended to catch as many mistakes as possible.
The authors also time the workflow against INCV on the same machine. They report an INCV benchmark taking 20.420 hours at 40% noise and sparsity 0.4. For confident learning the reported comparison takes less than three hours, including cross-validation and retraining, with the actual selection step taking less than a minute. The appendix documents failures and restarts for the INCV implementation. The timing describes how the implementations behaved on that benchmark. It also illustrates where the cost lies when confident learning is used with a classifier that has to be trained to generate the held-out scores.
ImageNet with its original labels
The ImageNet experiment uses the original training annotations. Its first result concerns category structure. The authors sort the off-diagonal counts to find the largest suspected flows between classes. The largest listed count is 645 for images recorded as projectile and inferred to be missile. In the other direction the count is 433. The highest-score baseline counts 494 in the projectile-to-missile direction. The asymmetry gives a way to inspect how a broad category and a more specific category are used, even if both names can be defended for a given item.
The list also includes 539 examples recorded as tub and inferred as bathtub. It flags two entries named maillot with distinct category identifiers, with a count of 417 from one to the other. Other pairs, such as corn and ear, illustrate the problems that words with multiple meanings can create for a classification vocabulary. The count is a lead for dataset curation. An auditor can inspect the images and the category definitions to decide whether the issue is an erroneous label, a duplicate category or a sensible description that competes with another sensible description.
The authors review a random sample of 500 ImageNet training candidates selected by pruning by noise rate. They judge 58% to be clear errors, images with multiple relevant labels, or category-definition issues taken together. This is a check of the flagged set against a broad notion of a label issue. It covers more than single-label mistakes. The sample also gives a more informative assessment of the candidate set than the examples displayed at the top of a ranking, which are chosen because their margins are unusually strong.
The training comparison asks whether targeted filtering makes better use of a reduced training set. The authors progressively remove 20%, 40%, and eventually 100% of the issues identified by confident learning, training ResNet-18 from scratch for each condition. They compare with uniformly random removal at comparable sizes and with training on the full dataset. The main curves show the best-performing confident-learning variant at each point. Each ResNet-18 point is averaged over 5 trials with varying seeds and initialization.
One plot measures top-1 accuracy on the full ILSVRC validation set. Another uses the 20 classes with the smallest diagonal counts in the confident joint. The remaining plots examine foxhound and maillot. For the individual classes the metric is the rate at which the correct class is recovered as the top prediction, so the smaller sets produce more variable curves. The authors report that targeted filtering usually beats random removal and improves on full-data training on average in the full and selected-class ResNet-18 comparisons. They also obtain a similar targeted-removal advantage over random removal in a single-trial ResNet-50 replication. Their interpretation is that the training set can be reduced by 10% with a modest gain in overall validation accuracy in these experiments. Maillot shows larger gains, consistent with a concentrated problem in that category.
Amazon Reviews with logistic regression
The Amazon Reviews experiment tests whether the filtering procedure can also help with text classification using a simpler learner. The initial corpus is the 5-core version of Amazon Reviews. The authors keep nonempty reviews with more helpful votes in favor than against. They remove 2-star and 4-star ratings because of possible overlap with their adjacent extreme categories. In the resulting corpus, the recorded-label distribution is 9% for 1-star, 12% for 3-star and 79% for 5-star reviews. This gives the paper a naturally imbalanced labeling problem.
The classifier uses a mean of pretrained word embeddings from fastText. The paper uses multinomial logistic regression, the fastText stochastic gradient optimizer, an initial learning rate of 0.1, embedding dimension 100 and an n-gram setting of 3. It generates held-out scores using 5-fold cross-validation. In the candidate list, there are positive-sounding reviews with low accompanying ratings and other cases in which the score-based diagnosis seems plausible on inspection. Sarcasm sometimes produces a misleading flag, which exposes a weakness of representing the review using features averaged over its words.
For the learning experiment, the authors enrich a training subset with naturally occurring examples flagged by the confident-learning variants, drawing the rest at random from the remaining training data. They report an estimated noise level of 24% in the enriched training set. Labels are left as recorded. The test split is held out before this enrichment and evaluated against its own recorded ratings. The procedure asks whether cleaning helps in a setting where naturally suspect labels are deliberately made common during training.
The paper compares different training-set sizes, ways of taking a held-out split, and training durations. The chart uses the split obtained by holding out every tenth example, a training subset of size 1000K, and 50 epochs. Each accuracy is the mean top-1 test accuracy over five trials. The baseline uses the unfiltered training subset, while the other rows use variants of the filtering stage.
Amazon Reviews test accuracy on the 10th-example split at N = 1000K and 50 epochs
All filtering variants improve test accuracy over ordinary training, with several reaching the highest reported value for this setting.
The numbers
| System or setting | accuracy % |
|---|---|
| Ordinary training | 84.4 |
| Highest-score disagreement | 90.0 |
| Confident joint | 90.1 |
| Class and noise-rate intersection | 90.2 |
| Prune by noise rate | 90.2 |
| Prune by class (this paper) | 90.2 |
The tied entries show why the authors’ broader claim is about the filtering procedure across settings. On this split and duration, the alternatives for choosing a pruning list have close results. The method that only uses the highest-scoring class also performs well after filtering. The evidence for using class thresholds comes more directly from the comparisons of joint estimation and error detection on CIFAR-10.
MNIST and WebVision as inspection cases
In the original MNIST training set, the authors use a 2-layer convolutional classifier, pretrained for 50 epochs, and cross-validation to obtain out-of-sample scores. They apply pruning by noise rate and display the top 24 candidates ordered from lowest self-confidence. The examples include clear digit-label mismatches. The figure identifies the corresponding training indices, so those cases can be checked. The experiment establishes that such errors can be found even in a dataset commonly treated as clean. Its ranked display shows selected candidates.
WebVision uses images retrieved from the web, with the search query supplying the label. The authors score its training examples using a ResNeXt classifier pretrained on ImageNet and previously unexposed to the WebVision training set. They apply the confident joint directly and display candidates ordered by normalized margin. The figure distinguishes clear mismatches from ambiguous examples and mistaken flags. According to the authors, running the procedure on a laptop took three minutes for a dataset of more than one million images across 1,000 classes. The result illustrates the practical savings of using compatible held-out scores from an existing classifier.
What the ablations show
Thresholding changes the decisions that enter the joint
The comparison between the confident joint and the highest-score confusion matrix isolates the assignment rule. Both receive the same score matrix and recorded labels. Both can use the same normalization to produce an estimated joint. The confident joint qualifies scores against class-specific averages and can leave examples uncounted. The confusion rule counts every highest-scoring class. Its lower precision and higher recall in some CIFAR-10 detection comparisons accord with that design. Every disagreement yields a candidate, including examples whose probabilities give weak evidence for any alternative.
The joint RMSE results add a different check. They show that the thresholded assignments can improve estimates of how errors are distributed among pairs of classes, even when the final detection F1 values are close. The analytical results say when a shared shift or a bounded example-level change should leave those assignments intact. The empirical comparison shows that this approach can give more accurate counts on actual predictions trained from the corrupted dataset. The appendix also shows where both estimates deteriorate as noise becomes more severe.
Varying sparsity at fixed noise tests a separate aspect of the method. With the same amount of corruption, the noise may be dispersed across many pairs or concentrated in a smaller set. The confident-learning variants retain competitive test accuracy across those changes at 20% and 40% noise. The 70% case shows that having a sparse pattern alone does not make recovery easy. Which transitions receive the errors and how much reliable supervision remains are consequential even when the comparison reports a single sparsity value.
Counting an error and ranking it serve different goals
The comparison of confident-learning variants changes how examples are marked or removed. The direct method takes the examples that made the off-diagonal counts. The ranking methods use the calibrated counts as budgets and can select different examples from the same observed class. Pruning by class asks which items have the weakest support for their recorded label. Pruning by noise rate asks which items provide the strongest evidence for a particular substitution. The combined variant applies both criteria.
CIFAR-10 gives a case where these choices favor different objectives. At 20% noise and sparsity 0.6, pruning by noise rate has the highest detection F1 in the reported comparison. The direct confident joint gives the highest subsequent test accuracy in that setting. A detection score gives each example a role in measuring whether its label was correctly flagged. Training accuracy depends on what distinctions the retained collection lets a classifier learn. Removal of a difficult example, a common example or one covering an unusual part of the class can have different consequences for those distinctions.
ImageNet asks what happens when the same amount of data is removed
Uniformly random removal controls for the amount of training data discarded. If targeted and random removal led to similar validation results across the curves, the amount removed would be sufficient to explain the comparison. The paper generally finds better results for targeted removals. The full-data baseline addresses a different question: whether the suspected issues are numerous and influential enough that removing them can compensate for training on fewer examples. The gain over full-data training is modest on overall validation accuracy, while the comparisons on selected problem classes can show larger effects.
The progressive removal curves also show how the result depends on the evaluation group. The full validation set spreads the effect of pruning across many categories. The selected-class analysis looks where the confident joint put relatively little mass on the diagonal in count terms. The foxhound and maillot plots ask narrower questions about recovery within a class. The appendix reports separate method curves, which help interpret the main figure’s best-at-each-point presentation. The ResNet-50 runs check whether the broad comparison survives a different architecture, with one run per plotted condition.
Amazon Reviews varies the split, size and training duration
The Amazon Reviews ablation repeats training with a held-out sample formed by taking every 10th example and again by taking every 11th example. The authors report 9% overlap between the resulting test sets. This varies which reviews serve as the accuracy check. They also vary the size of the enriched training subset, with 1000K and 500K settings. Filtering improves over ordinary training on both splits and both reported training sizes, including conditions where it removes nearly half the smaller training subset.
Training duration supplies the clearest behavioral comparison. On the 1000K subset and the 10th-example split, ordinary training reaches 86.3% mean test accuracy at 20 epochs and falls to 84.4% at 50 epochs. Pruning by class reaches 89.7% and then 90.2% on that same split and training size. The direct confident-joint variant also improves with the longer training duration in that setting. The authors interpret the decline for the unfiltered learner as overfitting to noise. The scores measure the effect of training duration on held-out rating prediction under the constructed training distribution.
In the 500K setting, the reported accuracies change little between 5 and 20 epochs. The authors omit the 50-epoch condition there because they observe no further learning after the earlier duration. On the 10th-example split at 20 epochs, the direct confident-joint method gives 87.5% mean test accuracy with 243K examples pruned, compared with 82.8% for ordinary training. This comparison helps distinguish the effect of having more examples from the effect of which examples are kept. Within this experiment, the larger nominal training set available to the baseline includes examples the learner can fit at the expense of generalization.
Limitations
Limits the authors state
The guarantees are conditional. The proofs start from class-conditional label noise and require conditions on the transition rates and the scores. The ideal case needs the diagonal to dominate along the relevant rows and columns. The imperfect-score cases depend on the structure or magnitude of the deviations and, in the statements given, the absence of collisions. The example-level proof uses a limiting step to connect the mean error in the examples recorded under a class with the class’s overall mean error. The authors also discuss the finite resolution of integer counts. Recovery under these conditions is a result about the confident joint. It does not directly establish that every ranking variant returns exactly the same examples or that any given retraining procedure improves accuracy.
The authors treat the input as fixed and place the uncertainty in its category. Their assumptions allow the probability of a labeling error to depend on the true class, but apply a shared transition process within that class. They acknowledge exceptions. For an input whose label depends on something distinctive about that particular example, such as sarcasm in a review, the estimated transition can summarize a class-level pattern while individual threshold decisions remain difficult. The Amazon examples show how a weakness of the scoring classifier can appear among the strongest suspected errors.
The ImageNet discussion explicitly uses label issue as a broader category than label error. In a single-label dataset an image can contain several relevant objects, and one category can legitimately describe an instance of another. The reported human review combines clear errors, overlapping categories and multiple applicable labels. The authors also leave the ImageNet validation annotations in place. They acknowledge that cleaning the train labels through removal could introduce a difference between the training and evaluation distributions. The ResNet-50 experiments have one training trial per point because of computational limits.
The paper uses a mean threshold and leaves other threshold functions for future study. It also calls for validation on more datasets and with other kinds of classifiers, and discusses extensions to benchmark test sets, dynamic cleaning during training and settings outside its main classification experiments. These are directions the authors identify. The experimental record here is strongest for the specific combinations of held-out scorers, class structures and filtering methods they evaluate.
Limits visible in the experimental design
Artificial corruption in CIFAR-10 creates exact knowledge of which labels were changed relative to the original training set. It also creates the type of corruption the method is designed to estimate. The experiment supports recovery under those controlled, asymmetric class transitions. In an application where difficult inputs within the same class get mislabeled much more frequently, test accuracy and error-detection quality can depend on how the score function treats those inputs. The paper has real-data examples of that challenge, with less complete knowledge of the underlying labels than it has in CIFAR-10.
The Amazon Reviews training comparisons give evidence about a deliberately enriched distribution. The authors use their own methods’ flags to choose the suspect portion of the training subset before comparing filtered and unfiltered learners. The flags are evidence of inconsistency, and the stated training-noise level is an estimate. That design helps reveal effects in a corpus the paper describes as otherwise having relatively little label noise. It also ties the evaluation setting to the kind of issue the methods can detect. Accuracy measures agreement with held-out star ratings. It does not independently settle which expression of sentiment or rating is correct for each individual review.
The ImageNet review samples flagged examples. To estimate recall on the original training set, reviewers would also need information about issues outside that list. The displayed MNIST and WebVision examples likewise illustrate the top of a ranking. They verify the existence of clear mistakes and show several kinds of ambiguous cases. They cannot give a dataset-wide error rate from those displays alone. When the paper reports a large off-diagonal count for a pair like projectile and missile, that is an estimate made by the method, with the interpretation informed by the category names and examples.
Finally, pruning can improve generalization without resolving a dataset’s labeling policy. If a class is duplicated or a broader and narrower term overlap, removal changes what the final learner sees. It leaves the definition of the categories to the people curating the dataset. That distinction makes the paper’s two uses of the count matrix important. A training experiment measures how well filtering works for a specified split and metric. An ontology diagnosis asks how examples and categories should be represented in the first place.
What came after
Two Contrasting Data Annotation Paradigms for Subjective NLP Tasks cites confident learning in the context of subjective language annotation. It brings the choice of annotation paradigm into the discussion. Confident learning’s formal setup assigns one underlying class to each item. In a subjective task, the rationale for choosing a labeling rule affects whether disagreements should be interpreted as mistakes, as distinct valid judgments, or as a mixture. This is closely related to the distinction the ImageNet study makes between clear errors and cases where more than one label can be defended.
Annotation Error Detection: Analyzing the Past and Present for a More Coherent Future places the work in the broader subject of finding annotation errors. The connection is the detection task itself. Confident learning produces candidate sets whose precision and recall can be studied separately from the benefit of training on filtered data. These are different evaluation questions, and the paper’s CIFAR-10 and ImageNet experiments show how the available evidence changes when verified error labels give way to human inspection of candidates.
Are LLMs Better than Reported? Detecting Label Errors and Mitigating Their Effect on Model Performance takes up the effect of erroneous labels on reported performance for large language models. The shared concern is that apparent prediction errors can originate in the labels used to judge the predictions. Confident learning’s main training experiments put the emphasis on removing unreliable supervision before training. Its conclusion also identifies benchmark test labels as a subject for further study. The later work brings detection and mitigation together in the setting of reported performance.
Learning on Imbalanced Noisy Data via Debiased Sample Selection and LLM-Driven Annotation addresses the combination of uneven class frequencies and unreliable labels through debiased selection and language-model-driven annotation. It revisits a difficulty that motivates the confident joint’s class-dependent thresholds: a selection rule can treat classes unevenly when their scores or frequencies differ. Its stated scope adds an annotation component to sample selection. That connects to the choice raised by confident learning’s removal lists about what happens after a suspect example is identified.
Cite
Cite as Curtis G. Northcutt, Lu Jiang and Isaac L. Chuang. 2021. Confident Learning: Estimating Uncertainty in Dataset Labels. Journal of Artificial Intelligence Research.
@article{northcutt2021confident,
title = {{Confident Learning: Estimating Uncertainty in Dataset Labels}},
author = {Curtis G. Northcutt, Lu Jiang and Isaac L. Chuang},
journal = {Journal of Artificial Intelligence Research},
year = {2021},
doi = {10.1613/jair.1.12125},
eprint = {1911.00068},
archivePrefix = {arXiv},
url = {https://doi.org/10.1613/jair.1.12125}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/northcutt-2021-confident-learning-estimating-uncertainty-dataset/