NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Typicalness-Aware Learning for Failure Detection

Yijun Liu, Jiequan Cui, Zhuotao Tian, Senqiao Yang, Qingdong He, wangxiaoling, Jingyong Su

Introduction

Deep neural networks (DNNs) have achieved remarkable performance across various domains, yet they remain notoriously overconfident. In many cases, these models assign near-100% certainty to incorrect predictions, a phenomenon that poses significant risks in high-stakes applications like autonomous driving or medical diagnosis. This paper introduces Typicalness-Aware Learning (TAL), a novel training strategy designed to help models recognize when they are guessing by identifying "atypical" samples and adjusting the learning process accordingly.

The Problem: Overconfidence and Atypicality

The root of model overconfidence often lies in the standard Cross-Entropy (CE) loss. CE training encourages models to maximize the magnitude of output logits, pushing confidence scores toward 1.0 even for ambiguous data. While some previous methods attempted to fix this by enforcing constant logit magnitudes, they failed to distinguish between "typical" and "atypical" samples.

Typical samples are clear, standard examples of a class. Atypical samples, however, are ambiguous or rare—such as a picture of a human wearing a horse mask. Forcing a model to be 100% certain about such atypical data leads to overfitting and unreliable confidence scores.

As shown in the figure above, a standard DNN might predict "Horse" with 0.95 confidence for an atypical sample. The goal of TAL is to ensure that the feature vector's direction ($f_1$) aligns with human perception, rather than just maximizing magnitude in a potentially wrong direction ($f_2$).

Methodology: Typicalness-Aware Learning (TAL)

TAL addresses these issues through three integrated components:

  1. Historical Features Queue (HFQ): The model maintains a rolling queue of statistical "fingerprints" (mean and variance) from correctly classified samples. This serves as a dynamic reference for what constitutes a "typical" sample.
  2. Typicalness Measure ($\tau$): For each new input, the model calculates its deviation from the HFQ. A high $\tau$ indicates a standard sample, while a low $\tau$ identifies an outlier or atypical case.
  3. Dynamic Logit Scaling: This is the core innovation. TAL applies a dynamic magnitude $T(\tau)$ to the logits:
  4. Typical samples receive a smaller magnitude, forcing the model to prioritize aligning the direction of its prediction with the ground truth label.
  5. Atypical samples receive a larger magnitude, which relaxes optimization pressure and prevents the model from over-fitting to ambiguous features.

At inference, TAL uses the Cosine similarity of the logit direction as a confidence score, providing a more robust indicator of truth than standard softmax probabilities.

Experimental Results

The researchers evaluated TAL on benchmarks including CIFAR-10/100 and ImageNet, as well as Out-of-Distribution (OOD) datasets like SVHN and WILDS. Key findings include:

  • Improved Failure Detection: On CIFAR-100, TAL achieved a 5% improvement in the Area Under the Risk-Coverage Curve (AURC).
  • Scalability: On ImageNet, TAL consistently reduced AURC by 3.7 to 11.6 points.
  • Robustness: The method proved effective in the "New FD" setting, which accounts for covariate shifts (e.g., grayscale vs. color images).

Conclusion

Typicalness-Aware Learning shifts the focus of DNN training from maximizing output magnitude to preserving the integrity of feature direction. By treating atypical samples as ambiguous rather than "hard" cases to be conquered, TAL produces models that are more honest about their uncertainty, significantly advancing the state-of-the-art in failure detection.

Summary updated

BibTeX
@inproceedings{liu2024typicalness,
  author = {Yijun Liu and Jiequan Cui and Zhuotao Tian and Senqiao Yang and Qingdong He and wangxiaoling and Jingyong Su},
  title = {{Typicalness-Aware Learning for Failure Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=SDWeIGPAh9},
}
Figure