Trust, but Verify: Using Self-supervised Probing to Improve Trustworthiness

Ailin Deng, Shen Li, Miao Xiong, Zhirui Chen, Bryan Hooi

Introduction

Modern deep neural networks often suffer from overconfidence, assigning high probability scores to incorrect predictions or Out-of-Distribution (OOD) data. In safety-critical domains like autonomous driving or medical diagnosis, this lack of reliability is a significant liability. Existing solutions frequently require retraining models or adopting complex architectures that can degrade raw accuracy. This paper introduces Self-Supervised Probing (SSProbing), a post-hoc, "plug-and-play" framework designed to verify a model's primary predictions using auxiliary self-supervised tasks without requiring retraining of the core architecture.

Methodology

The SSProbing framework operates on the principle that a model's ability to solve simple, semantically relevant "side quests" is a strong indicator of its primary task reliability. The method involves attaching simple linear layers, or "probes," to a fixed, pre-trained backbone.

Overview of the SSProbing inference framework.

The Probing Process

  1. Self-Supervised Tasks: The authors utilize tasks such as Rotation (predicting if an image is rotated 0°, 90°, 180°, or 270°) and Translation (predicting horizontal or vertical shifts).
  2. Training: While the backbone remains frozen, a small probing classifier is trained to solve these tasks using the features extracted by the backbone.
  3. Inference and Integration: At test time, the "probing confidence"—the softmax probability of the probe's prediction—is calculated. If the probe is confident about the geometric transformation of an image, it suggests the backbone has successfully captured the image's semantic structure. This confidence is then combined with the original model's score to improve misclassification detection, OOD detection, and calibration via a novel Input-Dependent Temperature Scaling method.

Key Insights and Ideas

The central discovery of this work is the strong positive correlation between probing confidence and classification accuracy. As illustrated in the experimental results, if a model cannot determine the orientation of an image, it is significantly more likely to misclassify the object within it.

Correlation between probing confidence and classification performance.

Semantic Relevance

The choice of probing task is critical. The authors found that tasks must be semantically relevant to the primary classification. For instance, while Rotation and Translation performed well, Jigsaw puzzles (predicting the permutation of shuffled image patches) were less effective. Shuffling patches destroys global semantics, making the probing task too disconnected from the original classification goal. Furthermore, combining multiple perspectives (e.g., Rotation + Translation) provides a more robust verification of the model's understanding.

Experimental Results

The SSProbing framework was evaluated on CIFAR-10, CINIC-10, and STL-10 benchmarks, consistently outperforming baselines like Maximum Softmax Probability and Trust Score.

  • Misclassification Detection: On CIFAR-10 with a ResNet-18 backbone, SSProbing reduced the False Positive Rate (FPR@95) from 47.01% to 45.30%.
  • OOD Detection: The method boosted AUROC scores across various datasets. For example, detecting LSUN data using a VGG16 model trained on CIFAR-10 improved from 88.98% to 90.39%.
  • Calibration: Input-dependent scaling significantly reduced the Expected Calibration Error (ECE). On CINIC-10 (VGG16), ECE dropped from 9.68% to 0.53%.

Limitations and Future Work

The success of SSProbing depends heavily on task selection; overly complex tasks or those that destroy image semantics can introduce noise. Additionally, on very small datasets like STL-10, high-complexity probes may lead to overfitting. Future research may explore more sophisticated probing tasks and extend the framework to domains like continual learning or open-world settings where identifying unknown data is paramount.

Summary updated

BibTeX
@inproceedings{deng2022trust,
  author = {Ailin Deng and Shen Li and Miao Xiong and Zhirui Chen and Bryan Hooi},
  title = {{Trust, but Verify: Using Self-supervised Probing to Improve Trustworthiness}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19778-9\_21},
}
Figure