RAT: Boosting Misclassification Detection Ability without Extra Data

Ge Yan, Tsui-Wei WengarXiv 2025 · DOI

Abstract

Deep neural networks are notoriously overconfident, often assigning high probability to their own mistakes. This paper introduces Radius Aware Training (RAT), a method that uses the "robust radius"—the distance to the nearest decision boundary—as a superior confidence metric. By training models to specifically push correct examples away from the boundary while pulling misclassified ones closer, the authors achieve state-of-the-art error detection performance without requiring any extra outlier data.

Introduction

In safety-critical applications like autonomous driving or medical diagnosis, a model must know when it is likely wrong. This task, known as Misclassification Detection (MisD), is traditionally handled using the maximum softmax probability (MSP). However, modern neural networks suffer from significant overconfidence, providing high-probability predictions even for incorrect outputs.

While recent research has proposed improved scoring methods like ODIN or DOCTOR, these often require significant hyperparameter tuning on separate validation sets or massive amounts of extra "outlier" data to train the model to recognize its own limits. RAT seeks to boost a model's "self-awareness" of its errors using only the original training set and a more theoretically grounded geometric metric.

Methodology

Robust Radius as a Metric

Instead of relying on probability scores, RAT looks at the input-space margin. The robust radius is defined as the minimum perturbation ($\delta$) required to change a model's prediction. Intuitively, if an image is very close to the decision boundary (small radius), the model should have low confidence in its classification. Conversely, samples far from the boundary (large radius) represent high-confidence correct classifications.

Radius Aware Training (RAT)

RAT introduces a novel training objective inspired by adversarial training. It applies a "push-pull" logic to amplify the geometric differences between correct and incorrect predictions:

  • Pushing Correct Samples: If a sample is correctly classified, the model is trained to maximize the loss of perturbed versions, effectively pushing the sample further from the decision boundary.
  • Pulling Misclassified Samples: If a sample is misclassified, the model is trained to minimize the loss of perturbed versions, pulling the error closer to the boundary.
The RAT training process uses a push-pull mechanism to increase the radius gap between correct and misclassified samples.

This process increases the "radius gap," making correct and incorrect predictions significantly easier to distinguish at inference time.

Efficient Estimation

Calculating the exact robust radius is computationally expensive. The authors propose two efficient alternatives:

  1. RR-BS: A binary search approach based on the Fast Gradient Sign Method (FGSM).
  2. RR-Fast: A lightning-fast approximation using linear Taylor expansion that requires only one backward pass and two forward passes, making it suitable for real-time deployment.

Experimental Results

The authors evaluated RAT on standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet, as well as the corrupted CIFAR-10-C dataset to test distribution shifts.

At inference, the robust radius score clearly separates correct predictions (high radius) from misclassified ones (low radius).

Key Performance Metrics

  • Error Reduction: RAT achieved up to a 29.3% reduction in AURC (Area Under the Risk-Coverage Curve) and a 21.62% reduction in FPR@95TPR compared to previous methods.
  • Computational Speed: The RR-Fast algorithm achieved a 46.5x speedup over the FAB-attack method while maintaining competitive detection accuracy.
  • Generalization: The method proved robust against input corruptions (CIFAR-10-C), consistently outperforming baselines across various noise types like Gaussian noise, motion blur, and JPEG compression.

Discussion and Insights

  • The Radius Gap: The fundamental insight is that misclassified examples naturally reside closer to the decision boundary. RAT amplifies this existing geometric property rather than trying to fix softmax calibration directly.
  • Adversarial Training (AT) vs. RAT: Standard AT increases the robust radius for all samples. While this improves robustness, it does not help with detection because the overlap between correct and incorrect samples remains. RAT specifically targets the gap between these groups.
  • Hyperparameter Stability: Unlike methods like ODIN, which are sensitive to temperature scaling, the robust radius metric is remarkably stable, simplifying practical deployment.
  • Data Efficiency: While SOTA methods like OpenMix require up to 300,000 extra outlier images, RAT achieves comparable or better results using zero extra data.

Conclusion

RAT provides a powerful, data-efficient framework for misclassification detection by leveraging the geometric properties of neural network decision boundaries. While it requires retraining the model, the significant gains in detection accuracy and the efficiency of the RR-Fast inference metric make it a compelling choice for safety-critical AI systems. Future work may extend this geometric approach to other domains such as Natural Language Processing or regression tasks.

Summary updated

BibTeX
@misc{yan2025rat,
  author = {Ge Yan and Tsui-Wei Weng},
  title = {{RAT: Boosting Misclassification Detection Ability without Extra Data}},
  year = {2025},
  eprint = {2503.14783},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.14783},
}
Figure