Skip to main content
QUICK REVIEW

[Paper Review] Learning to Predict Trustworthiness with Steep Slope Loss

Yan Luo, Yongkang Wong|arXiv (Cornell University)|Sep 30, 2021
Adversarial Robustness in Machine LearningComputer Science39 references4 citations
TL;DR

This paper proposes a novel steep slope loss function to improve the generalizability of trustworthiness predictors in large-scale vision models like ViT and ResNet on ImageNet. By using opposing slide-like curves to separate features of correct and incorrect predictions, the method achieves a better trade-off between true positive and true negative rates, significantly outperforming cross entropy, focal, and true class probability losses in identifying untrustworthy predictions.

ABSTRACT

Understanding the trustworthiness of a prediction yielded by a classifier is critical for the safe and effective use of AI models. Prior efforts have been proven to be reliable on small-scale datasets. In this work, we study the problem of predicting trustworthiness on real-world large-scale datasets, where the task is more challenging due to high-dimensional features, diverse visual concepts, and large-scale samples. In such a setting, we observe that the trustworthiness predictors trained with prior-art loss functions, i.e., the cross entropy loss, focal loss, and true class probability confidence loss, are prone to view both correct predictions and incorrect predictions to be trustworthy. The reasons are two-fold. Firstly, correct predictions are generally dominant over incorrect predictions. Secondly, due to the data complexity, it is challenging to differentiate the incorrect predictions from the correct ones on real-world large-scale datasets. To improve the generalizability of trustworthiness predictors, we propose a novel steep slope loss to separate the features w.r.t. correct predictions from the ones w.r.t. incorrect predictions by two slide-like curves that oppose each other. The proposed loss is evaluated with two representative deep learning models, i.e., Vision Transformer and ResNet, as trustworthiness predictors. We conduct comprehensive experiments and analyses on ImageNet, which show that the proposed loss effectively improves the generalizability of trustworthiness predictors. The code and pre-trained trustworthiness predictors for reproducibility are available at https://github.com/luoyan407/predict_trustworthiness.

Motivation & Objective

  • To address the challenge of predicting trustworthiness in real-world large-scale datasets like ImageNet, where existing loss functions overfit to correct predictions.
  • To identify why standard losses (cross entropy, focal, TCP confidence) fail to distinguish incorrect predictions as untrustworthy in high-dimensional, complex data.
  • To develop a new loss function that enhances the separability of features between correct and incorrect predictions, improving generalizability of trustworthiness predictors.
  • To enable flexible trade-offs between true positive rate (TPR) and true negative rate (TNR), crucial for safety-critical applications.

Proposed method

  • Proposes a steep slope loss with two opposing, slide-like curves that model the decision boundary between trustworthy and untrustworthy predictions.
  • The loss function uses learnable parameters α⁺ and α⁻ to control the slope and height of the curves, enabling flexible separation of correct and incorrect prediction features.
  • The loss is applied to the output of a linear layer (z = wᵀxₒᵤₜ + b), with experiments comparing normalized (z = (wᵀxₒᵤₜ + b)/||w||) and unnormalized versions.
  • The method is evaluated using ViT and ResNet backbones as trustworthiness predictors on ImageNet, with training and inference using the proposed loss.
  • The loss is designed to push features of correct predictions toward high confidence and incorrect ones toward low confidence, improving distribution separability.
  • A hyperparameter search is conducted to optimize α⁺ and α⁻ for each backbone, achieving the best TPR-TNR balance.

Experimental results

Research questions

  • RQ1Why do standard loss functions fail to identify incorrect predictions as untrustworthy on large-scale datasets like ImageNet?
  • RQ2How can the generalizability of trustworthiness predictors be improved when correct predictions dominate and data complexity obscures distinctions?
  • RQ3Can a loss function that explicitly separates feature distributions of correct and incorrect predictions achieve better performance than standard classification losses?
  • RQ4What hyperparameter configuration of the steep slope loss yields the optimal trade-off between TPR and TNR on real-world datasets?
  • RQ5How does normalization of the decision score z affect the performance and distribution of trustworthiness predictions?

Key findings

  • The steep slope loss achieves a better balance between TPR and TNR than cross entropy, focal, and TCP confidence losses, with α⁻ = 3 and α⁺ = 1 yielding optimal performance on ViT.
  • On ResNet, the optimal hyperparameters are α⁺ = 2 and α⁻ = 5, demonstrating model-specific tuning is effective.
  • The proposed loss outperforms class-balanced loss, indicating that trustworthiness prediction has distinct data imbalance characteristics from standard classification.
  • Using normalized z (z = (wᵀxₒᵤₜ + b)/||w||) leads to more dispersed distributions and better TNR/TPR separation than unnormalized z.
  • The method maintains strong performance on both in-distribution and out-of-distribution images, indicating robust generalizability.
  • The loss enables a flexible trade-off between TPR and TNR, reducing false positives critical in medical and security applications.

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.