Counterfactual Gradients-based Quantification of Prediction Trust in Neural Networks

Mohit Prabhushankar, Ghassan AlRegib
5/22/2024
cs.CVcs.AIcs.LG

Official code: olivesgatech/GradTrust (1 star, MIT, last commit 2024-06-01).

Abstract

The widespread adoption of deep neural networks in machine learning calls for an objective quantification of esoteric trust. In this paper we propose GradTrust, a classification trust measure for large-scale neural networks at inference. The proposed method utilizes variance of counterfactual gradients, i.e. the required changes in the network parameters if the label were different. We show that GradTrust is superior to existing techniques for detecting misprediction rates on $50000$ images from ImageNet validation dataset. Depending on the network, GradTrust detects images where either the ground truth is incorrect or ambiguous, or the classes are co-occurring. We extend GradTrust to Video Action Recognition on Kinetics-400 dataset. We showcase results on $14$ architectures pretrained on ImageNet and $5$ architectures pretrained on Kinetics-400. We observe the following: (i) simple methodologies like negative log likelihood and margin classifiers outperform state-of-the-art uncertainty and out-of-distribution detection techniques for misprediction rates, and (ii) the proposed GradTrust is in the Top-2 performing methods on $37$ of the considered $38$ experimental modalities. The code is available at: https://github.com/olivesgatech/GradTrust

View on arXivView PDF

Code Implementations(1)

MIT

[MIPR 2024 Invited] Code for the paper: Counterfactual Gradients-based Quantification of Prediction Trust in Neural Networks

10PythonMay 21, 20242 years agoMIT
trustworthy-aitrustworthy-machine-learninguncertainty-neural-networksuncertainty-quantification

Similar Papers

Cite this paper

@article{prabhushankar2024counterfactual,
  title  = {Counterfactual Gradients-based Quantification of Prediction Trust in Neural Networks},
  author = {Mohit Prabhushankar and Ghassan AlRegib},
  year   = {2024},
  eprint = {2405.13758},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.13758v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.13758.svg)](https://codeofpaper.com/paper/2405.13758)

Discussion