Skip to main content
QUICK REVIEW

[Paper Review] Detecting Errors and Estimating Accuracy on Unlabeled Data with Self-training Ensembles

Jiefeng Chen, Frederick Liu|arXiv (Cornell University)|Jun 29, 2021
Adversarial Robustness in Machine LearningComputer Science15 citations
TL;DR

This paper proposes a self-training ensemble framework that jointly estimates model accuracy and detects errors on unlabeled test data, using iterative model ensembling and pseudo-labeling to improve detection and estimation. It achieves state-of-the-art performance, reducing estimation error by at least 70% and improving F1 scores by 4.7% on iWildCam compared to prior methods.

ABSTRACT

When a deep learning model is deployed in the wild, it can encounter test data drawn from distributions different from the training data distribution and suffer drop in performance. For safe deployment, it is essential to estimate the accuracy of the pre-trained model on the test data. However, the labels for the test inputs are usually not immediately available in practice, and obtaining them can be expensive. This observation leads to two challenging tasks: (1) unsupervised accuracy estimation, which aims to estimate the accuracy of a pre-trained classifier on a set of unlabeled test inputs; (2) error detection, which aims to identify mis-classified test inputs. In this paper, we propose a principled and practically effective framework that simultaneously addresses the two tasks. The proposed framework iteratively learns an ensemble of models to identify mis-classified data points and performs self-training to improve the ensemble with the identified points. Theoretical analysis demonstrates that our framework enjoys provable guarantees for both accuracy estimation and error detection under mild conditions readily satisfied by practical deep learning models. Along with the framework, we proposed and experimented with two instantiations and achieved state-of-the-art results on 59 tasks. For example, on iWildCam, one instantiation reduces the estimation error for unsupervised accuracy estimation by at least 70% and improves the F1 score for error detection by at least 4.7% compared to existing methods.

Motivation & Objective

  • To address the challenge of estimating model accuracy and detecting misclassified samples on unlabeled test data when ground-truth labels are unavailable.
  • To develop a method that works under distribution shift and without requiring labeled data from diverse distributions.
  • To provide provable guarantees for both accuracy estimation and error detection under mild, practical conditions.
  • To enable cost-effective model deployment by identifying high-risk predictions without full reannotation.

Proposed method

  • The framework uses an ensemble of models to identify misclassified test points based on disagreement with the pre-trained model.
  • It applies self-training by assigning pseudo-labels to identified misclassified points and retraining the ensemble to improve detection.
  • The ensemble is trained using a weighted loss that combines standard cross-entropy on labeled data and a modified loss on pseudo-labeled test data.
  • The method incorporates thresholding to refine prediction confidence and improve error detection.
  • It leverages diverse, well-calibrated models to ensure robustness even when the pre-trained model is poorly calibrated.
  • Theoretical analysis shows provable convergence to accurate accuracy estimates and reliable error detection under mild conditions on ensemble behavior.

Experimental results

Research questions

  • RQ1Can a self-training ensemble framework accurately estimate the accuracy of a pre-trained model on unlabeled test data without access to ground-truth labels?
  • RQ2Can the same framework effectively detect individual misclassified samples in the absence of labels?
  • RQ3Does the framework maintain strong performance under distribution shift or covariate shift?
  • RQ4What are the theoretical guarantees for accuracy estimation and error detection under realistic deep learning assumptions?
  • RQ5How does the method compare to existing approaches like confidence-based estimation, domain-invariant models, or proxy risk methods?

Key findings

  • On iWildCam, the method reduces estimation error by at least 70% compared to existing methods.
  • The F1 score for error detection improves by at least 4.7% on iWildCam relative to prior approaches.
  • The framework achieves state-of-the-art performance across 59 tasks spanning image and text classification.
  • In ablation studies, thresholding does not degrade performance, indicating robustness to hyperparameter choice.
  • Even when the ensemble's accuracy is lower than the base model (e.g., on iWildCam), the method still performs well due to model diversity.
  • The method outperforms a variant of Proxy Risk using ensemble check models, with lower estimation error (0.023 vs. 0.081) and higher F1 (0.881 vs. 0.852).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.