OpenMix: Exploring Outlier Samples for Misclassification Detection

Fei Zhu, Zhen Cheng, Xu-Yao Zhang, Cheng-Lin Liu · DOI

Introduction

Deep Neural Networks (DNNs) often exhibit "overconfidence," assigning high probabilities to predictions even when they are incorrect. This behavior poses a significant risk in safety-critical applications like autonomous driving or medical diagnosis. While significant research has focused on Out-of-Distribution (OOD) detection—identifying samples from classes the model has never seen—Misclassification Detection (MisD) is a more difficult task. In MisD, the model must distinguish between its own correct and incorrect predictions on data from the same classes it was trained on.

Surprisingly, popular OOD detection techniques like "Outlier Exposure" can actually degrade MisD performance. These methods often compress the model's internal feature space so tightly to separate "known" from "unknown" that they lose the nuance needed to identify potential errors within the known classes.

An illustration of the classification challenge: distinguishing between known classes (adult/suit vs. child/casual), identifying counterexamples (dog/suit), and detecting misclassifications (child/suit labeled as adult).

Methodology: The OpenMix Framework

The authors propose OpenMix, a training framework designed to teach models to "know what they don't know" by leveraging unlabeled outlier images. The method rests on two pillars:

  1. Learning with a Reject Class: Unlike standard methods that force outliers to have a flat probability across all known classes, OpenMix adds an explicit $(k+1)$-th "reject" class. This teaches the model to explicitly categorize outliers rather than simply being confused by them.
  2. Outlier Transformation via Mixup: To bridge the gap between random outliers and training data, OpenMix uses a modified "Mixup" technique. By linearly interpolating an in-distribution image with an outlier image, the framework creates "pseudo-samples" that populate the low-density regions of the feature space—the ambiguous areas near decision boundaries where errors typically occur.

By training the model to assign these hybrid images to the reject class, OpenMix encourages the model to be less certain in these error-prone zones, effectively providing "counterexamples" that sharpen the model's decision boundaries.

Experimental Results

The researchers evaluated OpenMix using standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet, using the 300K Random Images dataset as auxiliary outliers.

  • Error Reduction: On CIFAR-10, OpenMix reduced the FPR95 (the probability of mistaking a misclassified sample for a correct one) from 30.15% to 22.08%.
  • Robustness: Under heavy image corruption (CIFAR-10-C), the method improved the AUROC for separating correct vs. incorrect predictions from 79.92% to 84.98%.
  • Scalability: The method scaled effectively to ImageNet, showing consistent gains in confidence reliability as the number of classes increased.

Conclusion

OpenMix addresses the overconfidence problem by increasing Feature Space Uniformity (FSU). By spreading out feature representations rather than over-compressing them, the framework makes the boundary between "correct" and "incorrect" much clearer. While it relies on diverse auxiliary outlier data, OpenMix represents a significant step toward a unified framework for both OOD and failure detection in deep learning.

Summary updated

BibTeX
@inproceedings{zhu2023openmix,
  author = {Fei Zhu and Zhen Cheng and Xu-Yao Zhang and Cheng-Lin Liu},
  title = {{OpenMix: Exploring Outlier Samples for Misclassification Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.01162},
}
Figure