# Post-hoc Selective Classification for Reliable Synthetic Image Detection

*Kaixiang Zheng, Jacob Seidman*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151954) · [OpenReview](https://openreview.net/forum?id=WYncw2up3x) · [alphaXiv](https://www.alphaxiv.org/abs/2605.08574) · [Open on the map](../papers.html#p151954)

Category: [Graphs, OOD Detection & Medical Imaging](../pcat/7.md) › [Out-Distribution Detection Methods](../pgroup/118.md) · Type: new method · Keywords: synthetic image detection, selective classification, confidence estimation, covariate shift, post-hoc

Areas: [Safety & Security](../areas/safety.md) › Adversarial Security › Out-of-Distribution Detection

## Summary
ReSIDe is a post-hoc selective classification framework that aggregates confidence scores from multiple layers of synthetic image detectors to improve reliability under covariate shifts.

## Explained to a 5-year-old
Computers can draw pictures that look just like real photos. We need a way to tell if a picture is real or made by a computer. A detector is a program that looks at pictures and says if they are real or fake. Sometimes the detector makes mistakes, especially when the pictures look different. The new idea lets the detector look at many parts of its brain and combine them to be more sure. This helps the detector say "I don't know" more often, making it safer.

## Explained to a 5-year-old, longer
Computers can draw pictures that look just like real photos. We need a way to tell if a picture is real or made by a computer. A detector is a program that looks at pictures and says if they are real or fake. Sometimes the detector makes mistakes, especially when the pictures look different from what it saw before. To avoid making dangerous mistakes, we can let the detector say "I don't know" when it is not sure. The usual way to know how sure the detector is uses a single number from the final step. But that number can be wrong when the picture looks different. The new idea looks at many steps inside the detector, not just the final step. It takes the information from different parts of the detector and combines them. This combination helps the detector get a better idea of how confident it is. By being more confident when it is sure and less confident when it is not, the detector can avoid mistakes. This makes the detector safer for real-world uses where wrong decisions can be harmful.

## For a technical reader
The paper addresses the unreliability of synthetic image detectors when the input images differ from the training distribution. It proposes a post-hoc selective classification scheme that extracts confidence scores from multiple layers of the detector and aggregates them using a preference optimization algorithm. This aggregation reduces an upper bound on the area under the risk-coverage curve, leading to better trade-offs between detection accuracy and the ability to abstain. Experiments on several covariate shifts show up to a 69.55% improvement in the risk-coverage metric compared to existing confidence scoring methods. The approach requires no retraining of the detector, making it practical for deployment in existing systems.

## Problem
Deep neural network-based synthetic image detectors often become unreliable under covariate shifts, leading to poor detection accuracy and risky deployments. Existing confidence score functions for selective classification perform poorly under these shifts, sometimes worse than random guessing.

## Method
The approach generalizes logits to intermediate layers of a synthetic image detector using centroid matching, extracts confidence scores from multiple layers, and aggregates them via a preference optimization algorithm that minimizes an upper bound on the area under the risk-coverage curve.

## Results
The approach significantly improves selective classification performance under covariate shifts, achieving up to a 69.55% reduction in the area under the risk-coverage curve compared to conventional confidence score functions.

## Contributions
It introduces a layer-wise confidence aggregation scheme and a preference optimization algorithm that together boost reliability of synthetic image detectors under distribution shifts, and provides extensive empirical validation.

## Practical relevance
Enables safer deployment of synthetic image detectors by allowing them to abstain from uncertain predictions, reducing the risk of misclassification in real-world applications.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151954)
