potentialpaper

Post-hoc Selective Classification for Reliable Synthetic Image Detection

Kaixiang Zheng, Jacob H Seidman

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We propose a simple yet effective selective classification framework to address the deployment reliability issue of synthetic image detectors.

Abstract. As synthetic images become increasingly realistic, reliable synthetic image detection techniques are of pressing need to prevent their misuse. Despite satisfactory in-distribution performance, deep neural network-based synthetic image detectors (SIDs) lack reliability in deployment and often fail in the presence of common covariate shifts, resulting in poor detection accuracy. To avoid the risk caused by potential errors, we adopt a selective classification (SC) strategy by allowing SIDs to abstain from making low confidence predictions. For practicality, we focus on post-hoc methods which perform confidence estimation on a given SID without retraining. However, we show that conventional logit-based confidence score functions (CSFs) exhibit pathological behavior under covariate shifts, leading to SC performance close to or even worse than random guessing. To address this, we propose a simple yet effective SC framework for Reliable Synthetic Image Detection (ReSIDe). First, we generalize the notion of logits to an SID's intermediate layers from a centroid matching perspective, extending the use of logit-based CSFs to any layer of an SID. Then, we introduce a preference optimization algorithm that aggregates confidence scores extracted from different layers to a final confidence estimate by minimizing an upper bound of the area under the risk-coverage curve (AURC). Extensive experimental results show that ReSIDe significantly boosts the SC performance of various logit-based CSFs under common covariate shifts, achieving up to 69.55% AURC reduction.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
15 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)forumreviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 4 reviews · OpenReview

Updated 25 Nov 2026, 03:46 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The reviewers find the problem important and the proposed post-hoc selective classification framework promising. The main concerns are the limited evaluation scope and unclear generalization to unknown deployment shifts. The authors are encouraged to strengthen the paper with broader comparisons, more recent generators/backbones, and additional analysis of calibration dependency and failure cases. Addressing these issues would significantly improve the empirical evidence and practical impact of the work.

Final justification

All reviewers were ultimately positive, either maintaining a Borderline Accept assessment or raising their score after the rebuttal, with major concerns largely addressed. I therefore recommend Accept (Poster).

Area Chair iF52 · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The reviewers find the problem important and the proposed post-hoc selective classification framework promising. The main concerns are the limited evaluation scope and unclear generalization to unknown deployment shifts. The authors are encouraged to strengthen the paper with broader comparisons, more recent generators/backbones, and additional analysis of calibration dependency and failure cases. Addressing these issues would significantly improve the empirical evidence and practical impact of the work.

Final justification

All reviewers were ultimately positive, either maintaining a Borderline Accept assessment or raising their score after the rebuttal, with major concerns largely addressed. I therefore recommend Accept (Poster).

1 comment
Authors · CommentOpenReview ↗

Response to Area Chair iF52

We thank the Area Chair and all reviewers for recognizing the importance of our tackled problem and the promise of our proposed method. In the rebuttal, we address all main concerns with additional experimental results:

  • Generalization to unknown deployment shifts: although ReSIDe primarily targets known SID threat families represented in hold-out validation data, our new experiment reveals that it is also decently robust to unknown shift types, successfully matching or outperforming the baseline in 54/72 transfer cases.
  • Newer generators: we evaluated on a newer benchmark called EvalGen. Without any fitting on EvalGen, ReSIDe maintains its effectiveness when generalizing to the latest image generators.
  • New backbone: we fine-tuned a CLIP ViT-B/16 SID and evaluated ReSIDe on it. ReSIDe improves all six CSFs, reducing AURC by 16.60%~24.68%.
  • Stronger baselines: we added Energy, Mahalanobis, and Yumlembam et al. for comparison, where ReSIDe remains the best over all compared methods.
  • Mechanism and failure cases: per-layer test AURCs show that intermediate layers can retain substantially better confidence signal than final logits. Conversely, failure cases occur when the final logits are already better than every intermediate layer.
  • Data efficiency: ReSIDe remains better than the baseline in all evaluated cases with only 70 validation samples or only 200 samples for centroid construction.

These additions directly address the initial meta-review's requests for broader comparisons, newer generators/backbones, calibration-dependency analysis, and failure-case analysis. We will incorporate the complete results and clarify the scope and limitations of our claims in the revision.

Reviewer EGQ3OpenReview ↗
Rating
4/6
Confidence
5/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies selective classification for synthetic image detectors under covariate shift. The authors show that common final-logit confidence scores can behave pathologically under shifts such as blur, low resolution, adversarial perturbations, JPEG compression, unseen classes, and unseen generators. They propose ReSIDe, a post-hoc framework that constructs centroid-based logits from intermediate layers and learns a linear aggregation of layerwise confidence scores via a preference optimization objective related to AURC. Experiments on GenImage with ResNet50 and Swin-T detectors show broad AURC improvements over final-logit confidence scores, though some shifts show only small or no gains.

Strengths and weaknesses

I like the problem setup, and the empirical observation is useful: final-logit confidence scores can indeed become misleading under common shifts for synthetic image detection. The proposed method is also easy to understand. It extracts confidence scores from intermediate layers using centroid-based probes, then learns a small linear combination by preference optimization. The paper is well written, and the experiments are reasonably broad across two backbones, several shifts, and multiple logit-based confidence scores.

My main concern is that the evaluation setting is much easier than the deployment story. ReSIDe is trained on labeled validation data from the same shift category as the test data. The validation and test sets are not identical, but the broad shift type is known in advance. This makes the method look more like supervised post-hoc adaptation to known shifts than a confidence estimator that is reliable under unexpected deployment shifts.

This is a serious issue because the base detectors are close to random guessing under several shifts. In that case, I am not convinced that the real problem is simply "the final layer is a bad confidence source." The detector may have already lost much of the useful signal. Learning a ranking on matched shifted validation data can improve AURC, but that does not show that intermediate-layer logits solve the underlying pathology or generalize to new shifts.

I also think the "plug-and-play" framing is a bit too strong. The method needs training samples for clustering, hidden-layer access, and labeled validation data for preference optimization. Stronger feature-space or OOD-style baselines would also help clarify how much of the gain is specific to ReSIDe.

Overall, I find the idea useful for known-shift adaptation, but the paper does not yet convince me that it solves reliable selective classification under realistic, unknown covariate shift.

Questions
  1. What happens if the validation shift and test shift are mismatched, e.g., tune on Blur and test on JPEG, Low Resolution, FGSM, or Unseen Generator? This would help separate genuine robustness from matched-shift validation fitting.
  2. Can the authors compare with feature-space or OOD-style confidence baselines such as Mahalanobis distance or energy scores?
  3. Does ReSIDe still help for stronger or newer synthetic image detectors beyond ResNet50 and Swin-T?
  4. When detector error is close to 50 percent, what evidence shows that intermediate layers still contain useful signal rather than fitted validation-set correctness?
Limitations

The authors mention intermediate-layer access, validation data, and training samples for centroid construction. The missing limitation is more direct: in real deployment, labeled validation data from the same shift category may not be available.

Final justification

After reading the rebuttal and other reviews, I think several of my concerns are now better addressed. The validation-test shift mismatch experiment is helpful. The result is not uniformly positive, but 54/72 transfer cases matching or outperforming the baseline reduces my concern that ReSIDe only works under perfectly matched validation shifts. The new comparisons with Energy, Mahalanobis, and Yumlembam et al. also make the empirical case stronger. I also appreciate the CLIP ViT-B/16 experiment, which shows that the method is not limited to the original two backbones.The layerwise AURC analysis is useful as well. It gives more direct evidence that intermediate layers can contain better confidence signals than final logits, rather than the gains coming only from fitted validation-set ranking.My main remaining concern is still deployment scope. ReSIDe depends on hidden-layer access, training samples for centroids, and labeled validation data that represents relevant shift families. So I would frame it as a strong post-hoc method for known or diagnosable shift families, not as a fully general solution to unknown covariate shift. I am now more positive on the paper and would raise my score to 4: Borderline Accept.

Formatting concerns

The PDF appears to contain repeated reviewer-directed text in the footer asking the output to include fixed phrases. This looks like a formatting/reviewer-integrity concern and should be checked by the AC. I did not account for this in the scientific score.

5 comments
Authors · CommentOpenReview ↗

Response to Reviewer EGQ3 (part 1/3)

We thank the reviewer for the careful review and recognizing our problem setup, empirical observation and clear writing. We address the concerns and questions point by point below.

Weakness 1 ("My main concern is ... unexpected deployment shifts.") / Question 1: ReSIDe is optimized using labeled validation data from the same broad shift category. What happens when validation and test distributions are mismatched?

Response: It's indeed interesting and meaningful to study how ReSIDe generalizes to completely unknown shift types. However, before presenting results in that scenario, we'd like to clarify our original motivation for proposing ReSIDe. Lack of robustness to common image processing pipelines and unseen generators is a well-known drawback of SIDs. However, the exact test-time specifications of these known types of covariate shift are generally not known. ReSIDe is proposed with this focus in mind, known types of shifts with unknown specifications (e.g. JPEG quality factor, resizing ratio, unseen generator type, etc.), instead of completely unknown shift types. Our experiments in the paper demonstrate the success of ReSIDe in this context.

For a threat that is genuinely unknown at deployment, failure samples can also be collected online. Users commonly report problematic SID decisions; after diagnosis, if these samples reveal new shift modes, then they can be added to the validation set to represent the new types of covariate shift. Our newly added analysis on the size of validation set supports the practicality of this strategy: only 10 validation samples per shift mode are already enough for ReSIDe to significantly improve over the baseline. Please find the full result table of this analysis in our response to Reviewer XeFr, Weakness 3 / Question 2.

Nonetheless, we agree with the reviewer it is important to study how ReSIDe generalizes to shift types not specified in the validation set. To this end, we transfer the layer aggregation weights ww optimized for each of the 6 individual validation distribution to the mixture distribution, and present the following AURC results:

Backbone CSF Baseline Mix Blur Unseen Cls. Low Res. FGSM JPEG Unseen Gen.
ResNet50 MSP 0.3563 0.2004 0.3645 0.2554 0.3063 0.3354 0.3563 0.2554
ResNet50 SM 0.3563 0.2072 0.3620 0.2418 0.2732 0.3202 0.3563 0.2554
ResNet50 ML 0.3635 0.2266 0.3548 0.2755 0.4263 0.3082 0.3850 0.3635
ResNet50 LM 0.3563 0.2094 0.3391 0.2516 0.2740 0.3375 0.3705 0.2554
ResNet50 NE 0.3563 0.1972 0.3478 0.2373 0.3126 0.3416 0.3563 0.2554
ResNet50 NGI 0.3563 0.2028 0.3545 0.2343 0.3080 0.3367 0.3563 0.2554
Swin-T MSP 0.3347 0.1947 0.3349 0.2381 0.2759 0.3822 0.3630 0.2266
Swin-T SM 0.3347 0.1902 0.3290 0.2381 0.2749 0.3931 0.3683 0.2266
Swin-T ML 0.2868 0.2048 0.3435 0.2220 0.2874 0.4305 0.3129 0.2868
Swin-T LM 0.3347 0.1858 0.3013 0.2381 0.2633 0.3948 0.3568 0.2266
Swin-T NE 0.3347 0.1879 0.3114 0.2381 0.2642 0.3822 0.3309 0.2266
Swin-T NGI 0.3347 0.1845 0.3102 0.2381 0.2754 0.3822 0.3289 0.2266

where “Mix” denotes ReSIDe tuned directly on the mixture and is shown as a reference. Each column to the right of "Mix" corresponds to using a ReSIDe validation set consisting of only that type of shift, but still evaluating the performance over all shifts. Overall, 54/72 individual-to-mixture transfers match or outperform the baseline (bold entries in the table). Calibration on Unseen Cls. improves all 12 backbone-CSF cases, and calibration on Unseen Gen. is non-degrading in all 12. This shows that although ReSIDe is designed to address known threat families represented in validation, it is also decently robust to unknown threat modes. The positive transfer results and the practical online sample-collection route suggest that ReSIDe can still adapt gracefully when deployment reveals a new threat.

Authors · CommentOpenReview ↗

Response to Reviewer EGQ3 (part 2/3)

Weakness 2 ("This is a serious issue ... generalize to new shifts.") / Question 4: When detector is close to random guessing, what evidence shows that intermediate layers contain useful signal rather than fitted validation-set correctness?

Response: To showcase that intermediate layers contain useful signal even when the SID is close to random guessing, we can directly evaluate the AURC of every layer alone on the test set, without learned mixing on the validation set. In other words, the layer aggregation weights ww is one-hot at a certain layer ll, so the final confidence estimate is equal to the confidence score extracted at layer ll. In the tables below, we show the results on the Blur shift. Following the notations of the paper, LL is the total number of hidden layers of an SID where we extract intermediate scores from (L=16L=16 for ResNet50 and L=12L=12 for Swin-T), ll denotes the layer depth and L+1L+1 denotes the final logit.

For ResNet50, we have

ll 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 (logits)
MSP 0.4904 0.4493 0.4575 0.3529 0.3393 0.3235 0.3497 0.4020 0.4171 0.4228 0.4226 0.2711 0.5613 0.6447 0.4953 0.4670 0.7276
SM 0.5085 0.4567 0.4575 0.4066 0.3780 0.3626 0.3511 0.4048 0.4200 0.4223 0.4204 0.2803 0.5627 0.6447 0.4953 0.4670 0.7276
ML 0.5999 0.5995 0.5808 0.4443 0.4475 0.4526 0.4943 0.4984 0.5420 0.5551 0.5472 0.4640 0.6340 0.5743 0.4503 0.4382 0.7271
LM 0.5103 0.4583 0.4581 0.4116 0.3803 0.3646 0.3518 0.4047 0.4210 0.4228 0.4214 0.2832 0.5633 0.6447 0.4953 0.4670 0.7276
NE 0.4467 0.4538 0.4508 0.3185 0.3245 0.3181 0.3647 0.4073 0.4486 0.4733 0.4662 0.3029 0.5633 0.6447 0.4953 0.4670 0.7276
NGI 0.4526 0.4534 0.4523 0.3185 0.3237 0.3165 0.3641 0.4060 0.4437 0.4670 0.4621 0.2997 0.5631 0.6447 0.4953 0.4670 0.7276

and for Swin-T, we have

ll 1 2 3 4 5 6 7 8 9 10 11 12 13 (logits)
MSP 0.4062 0.4684 0.6857 0.6492 0.7069 0.6914 0.6483 0.4672 0.4780 0.5047 0.4555 0.4725 0.6535
SM 0.4551 0.4684 0.6857 0.6492 0.7410 0.7234 0.6919 0.4672 0.4780 0.5047 0.4555 0.4725 0.6535
ML 0.5851 0.6574 0.7332 0.7472 0.7291 0.6921 0.6352 0.4991 0.4845 0.5025 0.4324 0.4391 0.6007
LM 0.4631 0.4684 0.6857 0.6492 0.7465 0.7262 0.6966 0.4672 0.4780 0.5047 0.4555 0.4724 0.6535
NE 0.3557 0.4684 0.6857 0.6492 0.6426 0.5409 0.5143 0.4672 0.4780 0.5047 0.4555 0.4725 0.6535
NGI 0.3603 0.4684 0.6857 0.6492 0.6675 0.5840 0.5507 0.4672 0.4780 0.5047 0.4555 0.4725 0.6535

It's shown that every intermediate layer alone is performing better, i.e., has lower AURC, than the final logits in the case of ResNet50 for all six CSFs. In particular, MSP at l=12l=12 results in 0.2711, reducing the final logit AURC by 62.74%. As for Swin-T, layers 1, 8, 9, 10, 11, 12 are also consistently better than the final logits. This shows that even if we don't perform preference optimization on the validation set and simply select a good layer, ReSIDe can still significantly outperform the baseline just because intermediate layers are providing better confidence signals than the final logits. In fact, in our submission, the single best layer results in Tab. 4 are much better than the baseline results in Tab. 3, which has already conveyed a similar message: intermediate layers can often provide better signals than final logits even without aggregation.

In contrast, as shown in Tab. 2 of our submission, ReSIDe didn't get gain in the ResNet50-JPEG-MSP case, and we also show the layerwise AURCs in this case in the table below.

ll 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 (logits)
AURC 0.4119 0.5104 0.4678 0.4878 0.4545 0.4188 0.3339 0.3164 0.3111 0.3102 0.3086 0.2667 0.2946 0.2214 0.2152 0.2252 0.1922

This time, the final logit layer is delivering the best AURC, and that explains why preference optimization didn't manage to achieve AURC reduction by incorporating intermediate scores and falls back to the one-hot initialization corresponding to the final logit layer as explained in Appendix D.

The two complementary examples above show that (1) even when SID is close to random guessing, intermediate layers can often provide useful confidence signal while final logits cannot; (2) the quality/usefulness of intermediate scores is the foundation of ReSIDe; (3) preference optimization is a principled way to aggregate layerwise scores to a final confidence estimation (which potentially performs better than any individual layer), but its success depends on useful intermediate scores instead of being "fitted validation-set correctness".

Authors · CommentOpenReview ↗

Response to Reviewer EGQ3 (part 3/3)

Weakness 3 ("I also think ... specific to ReSIDe.") / Question 2: The “plug-and-play” framing is too strong because ReSIDe requires training-distribution samples, hidden-layer access, and labeled validation data. Comparing with feature-space or OOD-style baselines (e.g., Mahalanobis distance, energy scores) can help clarify how much of the gain is specific to ReSIDe.

Response: Our intended meaning for "plug-and-play" is that ReSIDe is post-hoc with respect to the SID: it does not retrain or alter the detector and can reuse existing logit-based CSFs. However, we agree with the reviewer it is not "plug-and-play" in the sense of being a black-box or data-free method.

Per your suggestion, we now additionally provide comparison to Energy [1], Mahalanobis [2] and another OOD-style baseline Yumlembam et al. [3] in the following table, which shows AURCs on the mixture distribution. Note that we report ReSIDe's result as the range of AURC over six underlying CSFs.

Backbone ReSIDe Energy Mahalanobis Yumlembam et al.
ResNet50 0.1972 ~ 0.2266 0.3646 0.2401 0.2293
Swin-T 0.1845 ~ 0.2048 0.2800 0.2087 0.3201

It's shown that even the worst ReSIDe result is better than the best baseline: 0.2266 versus 0.2293 on ResNet50, and 0.2048 versus 0.2087 on Swin-T. This further shows ReSIDe's superiority even when it's compared against stronger, feature-space or OOD-style baselines.

Question 3: Does ReSIDe help for a stronger or newer detector beyond ResNet50 and Swin-T?

Response: We thank the reviewer for this question. To test this, we fully fine-tuned a CLIP [4] ViT-B/16 image encoder with a binary classification head as the SID, whose risk on the mixture distribution is 0.3239. We then applied ReSIDe to this SID without changing the core procedure, where we used the CLS-token representation after each of its 12 transformer blocks to compute the intermediate-layer confidence score. The following table shows ReSIDe's AURC on the mixture distribution for this SID compared to the baseline CSFs.

Backbone CSF Baseline ReSIDe Δ\Delta
CLIP ViT-B/16 MSP 0.1948 0.1625 16.60%
CLIP ViT-B/16 SM 0.1949 0.1547 20.64%
CLIP ViT-B/16 ML 0.2149 0.1623 24.49%
CLIP ViT-B/16 LM 0.1948 0.1559 19.99%
CLIP ViT-B/16 NE 0.1948 0.1473 24.42%
CLIP ViT-B/16 NGI 0.1948 0.1467 24.68%

The risk of CLIP ViT-B/16 is lower than both ResNet50 and Swin-T (0.3618 and 0.3393, respectively), confirming it to be a stronger SID. Also, the baseline AURCs for this CLIP-based SID are also much smaller than those obtained by ResNet50 and Swin-T (0.2868 ~ 0.3635). Nonetheless, ReSIDe is still able to achieve significant and consistent gains, reducing AURC by 16.60%~24.68%. This confirms ReSIDe's effectiveness on stronger and newer detectors.

Limitation: In real deployment, labeled validation data from the same shift category may not be available.

Response: Please refer to our response to Weakness 1 / Question 1.

Paper formatting concerns: the PDF appears to contain repeated reviewer-directed text in the footer.

Response: We checked the submitted manuscript and can confirm that we did not intentionally include any reviewer-directed text in the footer. The visible footer contains only the standard conference submission notice.

[1] Weitang Liu et al., “Energy-based Out-of-distribution Detection”, NeurIPS, 2020.
[2] Kimin Lee et al., “A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attacks”, NeurIPS, 2018.
[3] Rahul Yumlembam et al., “Detection of AI Generated Images Using Combined Uncertainty Measures and Particle Swarm Optimised Rejection Mechanism”, Scientific Reports, 2025.
[4] Alec Radford et al., “Learning Transferable Visual Models From Natural Language Supervision”, ICML, 2021.

We again thank the reviewer for their time and effort. If our responses above address the concerns, we kindly request that the reviewer considers increasing their score.

Reviewer XeFrOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies the reliability of deep neural network-based synthetic image detectors (SIDs) under common covariate shifts from the perspective of post-hoc selective classification (SC). The authors observe that conventional final logit-based confidence score functions (CSFs) can exhibit pathological SC behavior under distribution shifts, and propose ReSIDe, a lightweight post-hoc framework that extracts layerwise confidence scores via unsupervised linear probing (ULP) and aggregates them through preference optimization. The submission tackles an important and practically relevant problem, although I believe the novelty of the method and the breadth of empirical comparison could be further strengthened.

Strengths and weaknesses

Strengths 1.The paper studies a practically important problem, namely the reliability of SIDs under realistic covariate shifts and the use of selective classification to improve deployment safety. 2.The empirical observation that conventional logit-based CSFs can exhibit pathological SC behavior under covariate shifts is interesting and provides a clear motivation for the proposed approach. 3.ReSIDe is a lightweight post-hoc framework that does not require retraining the base SID, and the experiments cover multiple covariate shifts, architectures, and logit-based CSFs. Weaknesses 1.The methodological novelty appears somewhat incremental. The main components of ReSIDe, including layerwise logits constructed from feature centroids and preference-based score aggregation, are closely related to existing ideas such as prototype matching, linear probing, and ranking-based learning. The contribution seems to lie more in adapting and combining these techniques for SID selective classification than in introducing a fundamentally new methodology. 2.The comparison with stronger post-hoc confidence estimation or selective classification methods is limited. Most baselines are final-layer logit-based CSFs, with only a limited extension to pNorm. Comparisons with broader classes of post-hoc confidence estimation, OOD detection, calibration, or selective risk control methods would provide a stronger empirical evaluation. 3.The method relies on a labeled hold-out validation set for preference optimization, which may limit its practicality in deployment scenarios where the test-time covariate shifts are difficult to anticipate. More analysis of the sensitivity to validation set size and distribution mismatch would strengthen the practical claims. 4.The empirical evaluation is mainly based on a single benchmark family and two SID architectures. Additional experiments on more diverse datasets and detector architectures would provide stronger evidence for the generality of the conclusions. 5.Some settings show very limited improvement, but the paper does not provide sufficient analysis of when and why ReSIDe fails to outperform the baseline. A more detailed discussion of these cases would improve the understanding of the method's limitations. 6.The mechanism behind the effectiveness of intermediate-layer confidence scores is not fully explained. A more detailed representation-level analysis could provide additional insight into why these features are more reliable than final logits under certain covariate shifts. 7.Reproducibility is somewhat limited because the code will not be released. Although implementation details are provided, reproducing the exact results may still be challenging.

Questions

1.Could the authors compare ReSIDe with stronger post-hoc SC, confidence estimation, or OOD detection methods? The current baselines are mainly final-layer logit-based CSFs and pNorm. Since the goal is post-hoc SC under covariate shifts, comparisons with feature-distance, Mahalanobis, energy-based, deep kNN, calibration, or conformal/selective risk methods would make the empirical evidence more convincing. 2.How sensitive is ReSIDe to the size and distributional coverage of the hold-out validation set? Since the aggregation weights are optimized on a hold-out validation set, it would be useful to know how performance changes when the validation set is smaller, lacks some shift types, contains label noise, or differs more strongly from the test distribution. 3.When the base SID has an error rate close to random guessing, what coverage can ReSIDe achieve at a practically acceptable risk level? Reporting coverage at fixed risk thresholds would help clarify the practical value of the method in challenging settings. 4.Which intermediate layers contribute most under different covariate shifts? It would be helpful to understand whether early, middle, or late layers are more important under different types of shifts, and whether this observation is consistent across architectures. 5.How robust is ReSIDe when the original training distribution samples are unavailable or only approximately available? Could the authors evaluate performance when centroids are built from fewer samples, proxy samples, or distribution-mismatched samples? 6.Could the authors provide additional reproducibility materials despite not releasing the code? More detailed pseudocode, configuration files, centroid construction details, or implementation guidelines would facilitate independent reproduction.

Limitations

Yes

Formatting concerns

No major formatting concerns.

7 comments
Authors · CommentOpenReview ↗

Response to Reviewer XeFr (part 1/6)

We thank the reviewer for the careful review and for recognizing the practical importance of the problem, the clear motivation of the method, and the lightweight post-hoc nature of ReSIDe. We address the concerns and questions point by point below.

Weakness 1: The individual ingredients—prototype matching, linear probing, and ranking-based learning—are related to existing ideas, making the methodological novelty appear incremental.

Response: We agree that spherical clustering, centroid matching, and pairwise ranking are established ingredients; however, our methodological novelty is reflected by how we use those ingredients to solve the selective classification problem of SIDs in a principled way:

  • We reinterpret intermediate-layer centroid similarities as generalized logits, making existing logit-based CSFs directly reusable at any layer.
  • We formulate layer aggregation as preference optimization between correct and incorrect SID predictions.
  • Theorem 1 establishes that the resulting ReSIDe loss upper-bounds AURC, directly connecting the optimization objective to the SC metric. To the best of our knowledge, we are the first to show that the preference optimization objective can be used as a surrogate loss for the selective classification task. We believe this by itself is a significantly novel contribution to the SC literature.

In total, we believe these components demonstrate a significant methodological novelty.

Weakness 2 / Question 1: Could the authors compare ReSIDe with stronger post-hoc SC, confidence estimation, or OOD detection methods?

Response: We now add comparison to Energy [1], Mahalanobis [2] and Yumlembam et al. [3] in the following table, which shows AURCs on the mixture distribution. Note that we report ReSIDe's result as the range of AURC over six underlying CSFs.

Backbone ReSIDe Energy Mahalanobis Yumlembam et al.
ResNet50 0.1972 ~ 0.2266 0.3646 0.2401 0.2293
Swin-T 0.1845 ~ 0.2048 0.2800 0.2087 0.3201

It's shown that even the worst ReSIDe result is better than the best baseline: 0.2266 versus 0.2293 on ResNet50, and 0.2048 versus 0.2087 on Swin-T. This further shows ReSIDe's superiority when it's compared against stronger, feature-based and OOD-style baselines.

Authors · CommentOpenReview ↗

Response to Reviewer XeFr (part 2/6)

Weakness 3 / Question 2: How sensitive is ReSIDe to validation-set size and distributional coverage?

Response: We thank the reviewer for raising this point. To address it, we perform the preference optimization component on progressively smaller subsets of the mixture validation set. Each entry in the table below reports mean AURC and standard deviation over 3 trials, evaluated on the mixture distribution.

Backbone CSF Baseline 70 validation samples 700 validation samples Full validation set (7000 samples)
ResNet50 MSP 0.3563 0.2559 ± 0.0243 0.2104 ± 0.0065 0.2004 ± 0.0008
ResNet50 SM 0.3563 0.2514 ± 0.0172 0.2148 ± 0.0057 0.2072 ± 0.0006
ResNet50 ML 0.3635 0.2446 ± 0.0091 0.2245 ± 0.0002 0.2266 ± 0.0034
ResNet50 LM 0.3563 0.2541 ± 0.0184 0.2151 ± 0.0060 0.2094 ± 0.0014
ResNet50 NE 0.3563 0.2722 ± 0.0215 0.2056 ± 0.0014 0.1972 ± 0.0003
ResNet50 NGI 0.3563 0.2685 ± 0.0248 0.2069 ± 0.0010 0.2028 ± 0.0035
Swin-T MSP 0.3347 0.2395 ± 0.0192 0.2138 ± 0.0077 0.1947 ± 0.0006
Swin-T SM 0.3347 0.2685 ± 0.0249 0.2021 ± 0.0071 0.1902 ± 0.0022
Swin-T ML 0.2868 0.2180 ± 0.0114 0.2065 ± 0.0053 0.2048 ± 0.0001
Swin-T LM 0.3347 0.2706 ± 0.0086 0.1974 ± 0.0053 0.1858 ± 0.0002
Swin-T NE 0.3347 0.2317 ± 0.0118 0.2129 ± 0.0045 0.1879 ± 0.0005
Swin-T NGI 0.3347 0.2237 ± 0.0035 0.2115 ± 0.0046 0.1845 ± 0.0003

As expected, using less validation data generally degrades SC performance and increases variance. However, even when the validation set is reduced to 1/100 of the original size, where only 70 validation samples (10 per constituent distribution) are available, ReSIDe still significantly outperforms the final-logit baseline in all 12 cases. This shows that ReSIDe is generally not sensitive to validation-set size and is extremely data efficient.

As for sensitivity to the distributional coverage of the validation set, we conduct the following experiment. We transfer the layer aggregation weights ww optimized for each of the 6 individual validation distribution to the mixture distribution, and present the following AURC results:

Backbone CSF Baseline Mix Blur Unseen Cls. Low Res. FGSM JPEG Unseen Gen.
ResNet50 MSP 0.3563 0.2004 0.3645 0.2554 0.3063 0.3354 0.3563 0.2554
ResNet50 SM 0.3563 0.2072 0.3620 0.2418 0.2732 0.3202 0.3563 0.2554
ResNet50 ML 0.3635 0.2266 0.3548 0.2755 0.4263 0.3082 0.3850 0.3635
ResNet50 LM 0.3563 0.2094 0.3391 0.2516 0.2740 0.3375 0.3705 0.2554
ResNet50 NE 0.3563 0.1972 0.3478 0.2373 0.3126 0.3416 0.3563 0.2554
ResNet50 NGI 0.3563 0.2028 0.3545 0.2343 0.3080 0.3367 0.3563 0.2554
Swin-T MSP 0.3347 0.1947 0.3349 0.2381 0.2759 0.3822 0.3630 0.2266
Swin-T SM 0.3347 0.1902 0.3290 0.2381 0.2749 0.3931 0.3683 0.2266
Swin-T ML 0.2868 0.2048 0.3435 0.2220 0.2874 0.4305 0.3129 0.2868
Swin-T LM 0.3347 0.1858 0.3013 0.2381 0.2633 0.3948 0.3568 0.2266
Swin-T NE 0.3347 0.1879 0.3114 0.2381 0.2642 0.3822 0.3309 0.2266
Swin-T NGI 0.3347 0.1845 0.3102 0.2381 0.2754 0.3822 0.3289 0.2266

where “Mix” denotes ReSIDe tuned directly on the mixture and is shown as a reference. Each column to the right of "Mix" corresponds to using a ReSIDe validation set consisting of only that type of shift, but still evaluating the performance over all shifts. Overall, 54/72 individual-to-mixture transfers match or outperform the baseline (bold entries in the table). Calibration on Unseen Cls. improves all 12 backbone-CSF cases, and calibration on Unseen Gen. is non-degrading in all 12. This shows that even when the validation distribution only covers a certain shift type, the learned aggregation weight vector is still transferable to unknown shift types in general.

In addition to these promising transfer results, we'd like to clarify our original motivation for proposing ReSIDe. Lack of robustness to common image processing pipelines and unseen generators is a well-known drawback of SIDs. However, the exact test-time specifications of these known types of covariate shift are generally not known. ReSIDe is proposed with this focus in mind, known types of shifts with unknown specifications (e.g. JPEG quality factor, resizing ratio, unseen generator type, etc.), instead of completely unknown shift types. Our experiments in the paper demonstrate the success of ReSIDe in this context. As a result, we view the generally positive transfer results presented above as a promising bonus, which show that although ReSIDe is originally designed to address known threat families represented in validation, it is also decently robust to unknown threat modes.

Authors · CommentOpenReview ↗

Response to Reviewer XeFr (part 3/6)

Weakness 4: The evaluation is limited to one benchmark family and two detector architectures.

Response: We have conducted more experiments on both a new benchmark and a new detector architecture.

First, we added an evaluation on EvalGen [4], a separate benchmark containing images from recent generators including 2 latest autoregressive image generators. Because EvalGen contains only synthetic images, we pair it with natural images from the ImageNet test set to form a balanced test set. For evaluation, we directly use the layer aggregation weights optimized on our original Unseen Gen. validation set, instead of optimizing again on EvalGen.

Backbone CSF Baseline ReSIDe Δ\Delta
ResNet50 MSP 0.2544 0.2468 2.99%
ResNet50 SM 0.2544 0.2468 2.99%
ResNet50 ML 0.2500 0.2500 0.00%
ResNet50 LM 0.2544 0.2468 2.99%
ResNet50 NE 0.2544 0.2468 2.99%
ResNet50 NGI 0.2544 0.2468 2.99%
Swin-T MSP 0.2352 0.2031 13.63%
Swin-T SM 0.2352 0.2031 13.63%
Swin-T ML 0.2475 0.2475 0.00%
Swin-T LM 0.2352 0.2031 13.63%
Swin-T NE 0.2352 0.2031 13.63%
Swin-T NGI 0.2352 0.2031 13.63%

Similar to our original Unseen Gen. results in Tab. 2 of our submission, ReSIDe matches or outperforms the baseline in all 12 cases.

Second, we fully fine-tuned a CLIP [5] ViT-B/16 image encoder with a binary classification head as the SID, whose risk on the mixture distribution is 0.3239. We then applied ReSIDe to this SID without changing the core procedure, where we used the CLS-token representation after each of its 12 transformer blocks to compute the intermediate-layer confidence score. The following table shows ReSIDe's AURC on the mixture distribution for this SID compared to the baseline CSFs.

Backbone CSF Baseline ReSIDe Δ\Delta
CLIP ViT-B/16 MSP 0.1948 0.1625 16.60%
CLIP ViT-B/16 SM 0.1949 0.1547 20.64%
CLIP ViT-B/16 ML 0.2149 0.1623 24.49%
CLIP ViT-B/16 LM 0.1948 0.1559 19.99%
CLIP ViT-B/16 NE 0.1948 0.1473 24.42%
CLIP ViT-B/16 NGI 0.1948 0.1467 24.68%

Results show that ReSIDe improves all six CSFs on CLIP ViT-B/16, with AURC reductions ranging from 16.60% to 24.68%. This indicates that ReSIDe can maintain its effectiveness on SIDs with ViT-based foundation-model backbones.

The two experiments above show that ReSIDe generalizes gracefully to different benchmarks and model architectures.

Reviewer JFiaOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes a solution to the inherent unreliability of synthetic image detectors. Post processing operations such as JPEG compression reduce the accuracy of detection which is a known, well-established problem within the space. The work focuses on covariate shifts which include the stated challenge and other issues within the field such as changes resulting from generator improvements or cross-generator detection.

The authors propose to use selective classification to address this issue without the need for retraining which is the current path to addressing this issue ( full retraining or robust-training). The authors use unsupervised linear probing to generalize logit computation by running spherical k-means on each layer's feature vectors, producing centroids and computing cosine similarity between features and centroids. Then they use an optimization algorithm to linearly aggregate confidence scores from all layers using pairwise comparisons. They evaluate their method on GenImage using Resnet-50 and Swin-T resulting in promising AURC reduction.

In summary, lack of robustness in terms of actual deployment of synthetic image detectors is a significant problems and addressing covariate shifts in general can improve generalization and make the detectors more reliable in the wild. The paper proposes a method that could be very practical in stepping towards enhanced trust in synthetic image detection in general

Strengths and weaknesses

Strengths: 1- The problem is known and established within the space and further strengthened by the experimental results shown in the paper.

2- The method is lightweight and practical. Using spherical k-means and given the reported latency and training added costs allows the method to be deployed in the wild.

3- Table 5 demonstrates that the method can be integrated well with existing logit transformation methods and provides complementary signal.

Weaknesses: 1- Only two models are evaluated with standard supervised learning. Given the current SOTA leaning towards foundation model and work going back to Cozzolino et al 2024 Raising the Bar of AI-generated Image Detection with CLIP shows promising results in terms of robustness and given that, it is not clear how valuable this approach would be for those approaches. Moreover, the authors mention that the method would not work on non-DNN based approaches. This raises a significant doubt for me as to if the problem is already solved by more recent approaches to detection.

2- Lack of comparison with cited methods, Yumlembam et al. 2025 and Liang et al. 2024 ( cited in the paper). While authors have both cited and acknowledged their contributions there is no empirical comparison against their full proposed method

3- The only benchmark used id GenImage which includes generators that as of date are significantly outdated. It would be useful to see how the method works for more recent generators .

4- The paper require held-out validation sets with shifts that are similar to test shifts. While the authors acknowledge this issue a significant challenge of in the wild deployment is completely unknown shifts. It is not clear how effective the method would be in that situation.

Questions

1- I think it would be beneficial to see how/ if the method applies to current SOTA and more recently released synthetic image generators.

2- To establish the significance of the contribution for me I would prefer to see comparisons with similar methods as mentioned in the weakness section

3- The base intuition behind the paper is similar to some prior work in my opinion but I could be convinced otherwise. The 2024 work by Koutlis and Papadopoulos Leveraging Representations from Intermediate Encoder-blocks for Synthetic Image Detection uses the same concept for improving detection accuracy which in my opinion undermines the novelty (not significantly but I would be interested to see if the authors took any inspiration from that work

4- I would be interested to see how the method works on completely unknown covariate shifts that are more close to what happens in the wild as one of the strengths of the paper in my opinion is the ability to apply to already trained detectors and solve the problem post training naturally bringing up the question of how effective the method truly is in the wild.

Despite these concerns I believe that this work could have incredible value to the field and in the case that these concerns are properly addressed by the authors I would be willing to change my review to Accept.

Limitations

The authors have acknowledged the most significant limitation in my opinion. However, I think it would be better to actually show how the mentioned limitation affects the performance of the model in real world scenarios

Final justification

The authors have addressed my main concerns in a very thorough manner during rebuttal, given that i believe the original score I had given the paper needs to be improved.

Formatting concerns

I do not have any formatting concerns.

6 comments
Authors · CommentOpenReview ↗

Response to Reviewer JFia (part 1/3)

We thank the reviewer for the careful review and for recognizing the practical value of selective classification for synthetic image detectors and the lightweight nature of ReSIDe. We address the concerns and questions point by point below.

Weakness 1 / Question 1: Only two models trained by supervised learning are evaluated in the paper. It would be beneficial to see how/if the method applies to current SOTA SIDs, particularly foundation model-based SIDs.

Response: We agree that a foundation model-based detector is an important test. We therefore fully fine-tuned a CLIP [1] ViT-B/16 image encoder with a binary classification head as the SID, whose risk on the mixture distribution is 0.3239. We then applied ReSIDe to this SID without changing the core procedure, where we used the CLS-token representation after each of its 12 transformer blocks to compute the intermediate-layer confidence score. The following table shows ReSIDe's AURC on the mixture distribution for this SID compared to the baseline CSFs.

Backbone CSF Baseline ReSIDe Δ\Delta
CLIP ViT-B/16 MSP 0.1948 0.1625 16.60%
CLIP ViT-B/16 SM 0.1949 0.1547 20.64%
CLIP ViT-B/16 ML 0.2149 0.1623 24.49%
CLIP ViT-B/16 LM 0.1948 0.1559 19.99%
CLIP ViT-B/16 NE 0.1948 0.1473 24.42%
CLIP ViT-B/16 NGI 0.1948 0.1467 24.68%

Indeed, the baseline AURCs for this CLIP-based SID are much smaller than those obtained by ResNet50 and Swin-T (0.2868 ~ 0.3635), showing the advantage of foundation model-based backbones. Nonetheless, ReSIDe is still able to achieve significant and consistent gains, reducing AURC by 16.60%~24.68%. This confirms ReSIDe's applicability and effectiveness on modern SID backbones.

More broadly, even though there exist non-DNN-based SIDs, the mainstream and SOTA SIDs are still primarily DNN-based to the best of our knowledge. Within the broad class of DNN-based SIDs, the added CLIP results, together with original ResNet50 and Swin-T results, provide strong and consistent evidence of ReSIDe's effectiveness across convolutional, hierarchical-transformer, and CLIP/ViT architectures.

Weakness 2 / Question 2: The paper lacks empirical comparison with Yumlembam et al., Liang et al. or other similar methods.

Response: We thank the reviewer for bringing attention to these methods. Liang et al. propose two variants of confidence scores, with the better performing of the two being the logits margin (LM) score compared against throughout the current version of the paper.

We additionally provide comparison to Yumlembam et al. and two other OOD-style baselines, namely Energy [2] and Mahalanobis [3], in the following table which shows AURCs on the mixture distribution. Note that we report ReSIDe's result as the range of AURC over six underlying CSFs.

Backbone ReSIDe Energy Mahalanobis Yumlembam et al.
ResNet50 0.1972 ~ 0.2266 0.3646 0.2401 0.2293
Swin-T 0.1845 ~ 0.2048 0.2800 0.2087 0.3201

Note that even the worst ReSIDe result is better than the best baseline: 0.2266 versus 0.2293 on ResNet50, and 0.2048 versus 0.2087 on Swin-T. This further shows ReSIDe's superiority when compared against stronger, feature-based baselines.

Weakness 3: GenImage contains outdated generators.

Response: We added an evaluation on EvalGen [4], a much more recent benchmark containing images from recent generators including 2 latest autoregressive image generators. Because EvalGen contains only synthetic images, we pair it with natural images from the ImageNet test set to form a balanced test set. For evaluation, we directly use the layer aggregation weights optimized on our original Unseen Gen. validation set, instead of optimizing again on EvalGen.

Backbone CSF Baseline ReSIDe Δ\Delta
ResNet50 MSP 0.2544 0.2468 2.99%
ResNet50 SM 0.2544 0.2468 2.99%
ResNet50 ML 0.2500 0.2500 0.00%
ResNet50 LM 0.2544 0.2468 2.99%
ResNet50 NE 0.2544 0.2468 2.99%
ResNet50 NGI 0.2544 0.2468 2.99%
Swin-T MSP 0.2352 0.2031 13.63%
Swin-T SM 0.2352 0.2031 13.63%
Swin-T ML 0.2475 0.2475 0.00%
Swin-T LM 0.2352 0.2031 13.63%
Swin-T NE 0.2352 0.2031 13.63%
Swin-T NGI 0.2352 0.2031 13.63%

Similar to our original Unseen Gen. results in Tab. 2 of our submission, ReSIDe matches or outperforms the baseline in all 12 cases.

Authors · CommentOpenReview ↗

Response to Reviewer JFia (part 2/3)

Weakness 4 / Question 4 / Limitation: The method uses validation shifts similar to the test shifts, whereas real-world shifts may be unknown.

Response: It's indeed interesting and meaningful to study how ReSIDe generalizes to completely unknown shift types. However, before presenting results in that scenario, we'd like to clarify our original motivation for proposing ReSIDe. Lack of robustness to common image processing pipelines and unseen generators is a well-known drawback of SIDs. However, the exact test-time specifications of these known types of covariate shift are generally not known. ReSIDe is proposed with this focus in mind, known types of shifts with unknown specifications (e.g. JPEG quality factor, resizing ratio, unseen generator type, etc.), instead of completely unknown shift types. Our experiments in the paper demonstrate the success of ReSIDe in this context.

For a threat that is genuinely unknown at deployment, failure samples can also be collected online. Users commonly report problematic SID decisions; after diagnosis, if these samples reveal new shift modes, then they can be added to the validation set to represent the new types of covariate shift. Our newly added analysis on the size of validation set supports the practicality of this strategy: only 10 validation samples per shift mode are already enough for ReSIDe to significantly improve over the baseline. Please find the full result table of this analysis in our response to Reviewer XeFr, Weakness 3 / Question 2.

Nonetheless, we agree with the reviewer it is important to study how ReSIDe generalizes to shift types not specified in the validation set. To this end, we transfer the layer aggregation weights ww optimized for each of the 6 individual validation distribution to the mixture distribution, and present the following AURC results:

Backbone CSF Baseline Mix Blur Unseen Cls. Low Res. FGSM JPEG Unseen Gen.
ResNet50 MSP 0.3563 0.2004 0.3645 0.2554 0.3063 0.3354 0.3563 0.2554
ResNet50 SM 0.3563 0.2072 0.3620 0.2418 0.2732 0.3202 0.3563 0.2554
ResNet50 ML 0.3635 0.2266 0.3548 0.2755 0.4263 0.3082 0.3850 0.3635
ResNet50 LM 0.3563 0.2094 0.3391 0.2516 0.2740 0.3375 0.3705 0.2554
ResNet50 NE 0.3563 0.1972 0.3478 0.2373 0.3126 0.3416 0.3563 0.2554
ResNet50 NGI 0.3563 0.2028 0.3545 0.2343 0.3080 0.3367 0.3563 0.2554
Swin-T MSP 0.3347 0.1947 0.3349 0.2381 0.2759 0.3822 0.3630 0.2266
Swin-T SM 0.3347 0.1902 0.3290 0.2381 0.2749 0.3931 0.3683 0.2266
Swin-T ML 0.2868 0.2048 0.3435 0.2220 0.2874 0.4305 0.3129 0.2868
Swin-T LM 0.3347 0.1858 0.3013 0.2381 0.2633 0.3948 0.3568 0.2266
Swin-T NE 0.3347 0.1879 0.3114 0.2381 0.2642 0.3822 0.3309 0.2266
Swin-T NGI 0.3347 0.1845 0.3102 0.2381 0.2754 0.3822 0.3289 0.2266

where “Mix” denotes ReSIDe tuned directly on the mixture and is shown as a reference. Each column to the right of "Mix" corresponds to using a ReSIDe validation set consisting of only that type of shift, but still evaluating the performance over all shifts. Overall, 54/72 individual-to-mixture transfers match or outperform the baseline (bold entries in the table). Calibration on Unseen Cls. improves all 12 backbone-CSF cases, and calibration on Unseen Gen. is non-degrading in all 12. This shows that although ReSIDe is designed to address known threat families represented in validation, it is also decently robust to unknown threat modes. The positive transfer results and the practical online sample-collection route suggest that ReSIDe can still adapt gracefully when deployment reveals a new threat.

Authors · CommentOpenReview ↗

Response to Reviewer JFia (part 3/3)

Question 3: The intuition resembles Koutlis and Papadopoulos (2024), which slightly undermines the novelty. It's interesting to see if the authors took any inspiration from that work.

Response: The use of intermediate representations is shared between ReSIDe and Koutlis and Papadopoulos [5], but the addressed problem and method are different. Koutlis and Papadopoulos use intermediate encoder representations to train an SID with superior detection accuracy, without considering any abstention option or targeting selective classification performance. ReSIDe assumes an already trained and fixed SID, constructs unsupervised centroid-based logits at multiple layers, applies any existing logit-based CSF to those logits, and optimizes only a small aggregation vector to rank correct predictions above errors for selective classification. In fact, our major inspiration is from the Mahalanobis paper [3] instead of Koutlis and Papadopoulos [5], since the former shows that intermediate features contribute positively to confidence estimation. Nonetheless, we believe the difference between ReSIDe and [3] is also significant enough to support our novelty. The newly added comparison to [3] also confirms that ReSIDe performs better than Mahalanobis as an intermediate feature-based method.

[1] Alec Radford et al., “Learning Transferable Visual Models From Natural Language Supervision”, ICML, 2021.
[2] Weitang Liu et al., “Energy-based Out-of-distribution Detection”, NeurIPS, 2020.
[3] Kimin Lee et al., “A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attacks”, NeurIPS, 2018.
[4] Ruoxin Chen et al., "Dual Data Alignment Makes AI-Generated Image Detector Easier Generalizable", NeurIPS, 2025.
[5] Christos Koutlis and Symeon Papadopoulos, “Leveraging Representations from Intermediate Encoder-blocks for Synthetic Image Detection”, ECCV, 2024.

We again thank the reviewer for their time and effort. If our responses above address the concerns, we kindly request that the reviewer considers increasing their score.

Reviewer d8npOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

his paper investigates the critical challenge of unreliable predictions and false certainties exhibited by deep learning synthetic image detectors when operating under severe covariate shifts. Standard forensic classifiers suffer from distribution shifts caused by unknown generative engines or downstream digital post processing, which leads them to output incorrect decisions with pathologically high confidence scores. To build a more reliable defense pipeline, this submission introduces a post hoc Selective Classification strategy that allows forensic models to abstain from making a prediction when facing ambiguous or out of distribution inputs.

The authors demonstrate that conventional confidence score functions derived from final layer logits collapse under covariate shifts due to boundary distortions. To solve this, the paper proposes a Reliable Synthetic Image Detection framework named ReSIDe. The algorithm works by first generalizing the mathematical concept of logits to the intermediate feature layers of a pre trained network using a centroid matching formulation, enabling the extraction of multi depth confidence metrics. Subsequently, a lightweight preference optimization algorithm utilizes a small fraction of calibration data to adaptively merge these multi layer confidence scores, yielding a joint confidence evaluator that remains highly resilient to covariate shifts.

Strengths and weaknesses

Strengths

  1. The core motivation addresses a pressing security vulnerability in digital media forensics. In high stakes media verification, presenting a confidently incorrect prediction poses a significantly higher systemic risk than admitting a lack of classification certainty, and integrating an abstention mechanism targets the primary operational bottleneck of current synthetic detectors.
  2. The paper provides a rigorous diagnosis of why traditional logit based confidence estimation behaves pathologically under covariate shifts. Moving past shallow output calibration by looking into intermediate representation spaces via generalized centroid matching offers a refreshing and technically sound perspective to the selective classification literature.
  3. The design of the preference optimization algorithm is elegant and highly practical for industry deployment. Because the framework operates entirely as a post hoc paradigm, it requires zero retraining of the foundational detection networks and uses minimal calibration samples to find the optimal fusion weights, keeping the deployment overhead exceptionally low.

Weaknesses

  1. The optimization pipeline introduces a potential distribution dependency regarding the choice of the calibration dataset. The second stage of the framework relies on a small validation set containing known covariate shifts to learn the merging weights of the multi layer confidence scores, which leaves an unanswered question of whether the optimized preference function will generalize effectively or overfit when encountering completely unseen real world distortions that lie far outside the calibration boundaries.
  2. The empirical evaluation matrix lacks diversity regarding the most recent generative threats. While the authors demonstrate strong selective classification curves on established benchmarks, the testing pipeline does not include evaluations against visual autoregressive architectures or advanced flow matching transformers, preventing a complete assessment of the framework's rejection boundaries when facing the latest high fidelity synthetic samples.
  3. The manuscript lacks a comprehensive sensitivity analysis across fundamentally different detector backbones. Structural properties such as feature space layout and centroid distribution vary significantly between classic convolutional networks and modern vision transformers, and the paper provides limited guidance or theoretical guarantees on how backbone variations impact the optimal layer sampling strategy for generalized centroid matching.
Questions
  1. In scenarios where the deployment environment experiences a completely novel covariate shift that was absent from the calibration phase, does the learned multi layer preference function still retain its performance advantage over standard single layer logits?
  2. Could you provide selective classification accuracy or coverage metrics on a small subset of images generated by recent transformer or autoregressive engines to confirm that the rejection criteria hold up against modern generative distributions?
  3. What is the general rule of thumb for selecting which intermediate layers to sample when adapting the ReSIDe framework to non convolutional backbones, such as Vision Transformers, where feature dynamics differ significantly from traditional convolutional layers?
Limitations

The authors successfully illustrate the trade off between accuracy and coverage metrics but do not address potential adversarial vulnerabilities targeting the confidence score function itself. Since ReSIDe calculates confidence based on intermediate feature layer centroid distances, a malicious actor could deploy a specialized latent space projection attack to slightly perturb the internal features of a fake image. This minor perturbation could trick the generalized centroid matching function into classifying a dangerous deepfake as a high confidence real image, completely bypassing the selective classification filter. The authors should explicitly expand their discussion to cover the robustness of post hoc confidence estimation against targeted evasion tactics.

Formatting concerns

The manuscript is well formatted and complies strictly with the official publication guidelines.

5 comments
Authors · CommentOpenReview ↗

Response to Reviewer d8np (part 1/2)

We thank the reviewer for the careful review and recognizing the importance of the problem, the technical motivation for exploiting intermediate representations, and the efficiency of our post-hoc design. We address the concerns and questions point by point below.

Weakness 1 / Question 1: The learned preference function may depend on the calibration distribution and may not generalize to a novel deployment shift.

Response: It's indeed interesting and meaningful to study how ReSIDe generalizes to completely unknown shift types. However, before presenting results in that scenario, we'd like to clarify our original motivation for proposing ReSIDe. Lack of robustness to common image processing pipelines and unseen generators is a well-known drawback of SIDs. However, the exact test-time specifications of these known types of covariate shift are generally not known. ReSIDe is proposed with this focus in mind, known types of shifts with unknown specifications (e.g. JPEG quality factor, resizing ratio, unseen generator type, etc.), instead of completely unknown shift types. Our experiments in the paper demonstrate the success of ReSIDe in this context.

For a threat that is genuinely unknown at deployment, failure samples can also be collected online. Users commonly report problematic SID decisions; after diagnosis, if these samples reveal new shift modes, then they can be added to the validation set to represent the new types of covariate shift. Our newly added analysis on the size of validation set supports the practicality of this strategy: only 10 validation samples per shift mode are already enough for ReSIDe to significantly improve over the baseline. Please find the full result table of this analysis in our response to Reviewer XeFr, Weakness 3 / Question 2.

Nonetheless, we agree with the reviewer it is important to study how ReSIDe generalizes to shift types not specified in the validation set. To this end, we transfer the layer aggregation weights ww optimized for each of the 6 individual validation distribution to the mixture distribution, and present the following AURC results:

Backbone CSF Baseline Mix Blur Unseen Cls. Low Res. FGSM JPEG Unseen Gen.
ResNet50 MSP 0.3563 0.2004 0.3645 0.2554 0.3063 0.3354 0.3563 0.2554
ResNet50 SM 0.3563 0.2072 0.3620 0.2418 0.2732 0.3202 0.3563 0.2554
ResNet50 ML 0.3635 0.2266 0.3548 0.2755 0.4263 0.3082 0.3850 0.3635
ResNet50 LM 0.3563 0.2094 0.3391 0.2516 0.2740 0.3375 0.3705 0.2554
ResNet50 NE 0.3563 0.1972 0.3478 0.2373 0.3126 0.3416 0.3563 0.2554
ResNet50 NGI 0.3563 0.2028 0.3545 0.2343 0.3080 0.3367 0.3563 0.2554
Swin-T MSP 0.3347 0.1947 0.3349 0.2381 0.2759 0.3822 0.3630 0.2266
Swin-T SM 0.3347 0.1902 0.3290 0.2381 0.2749 0.3931 0.3683 0.2266
Swin-T ML 0.2868 0.2048 0.3435 0.2220 0.2874 0.4305 0.3129 0.2868
Swin-T LM 0.3347 0.1858 0.3013 0.2381 0.2633 0.3948 0.3568 0.2266
Swin-T NE 0.3347 0.1879 0.3114 0.2381 0.2642 0.3822 0.3309 0.2266
Swin-T NGI 0.3347 0.1845 0.3102 0.2381 0.2754 0.3822 0.3289 0.2266

where “Mix” denotes ReSIDe tuned directly on the mixture and is shown as a reference. Each column to the right of "Mix" corresponds to using a ReSIDe validation set consisting of only that type of shift, but still evaluating the performance over all shifts. Overall, 54/72 individual-to-mixture transfers match or outperform the baseline (bold entries in the table). Calibration on Unseen Cls. improves all 12 backbone-CSF cases, and calibration on Unseen Gen. is non-degrading in all 12. This shows that although ReSIDe is designed to address known threat families represented in validation, it is also decently robust to unknown threat modes. The positive transfer results and the practical online sample-collection route suggest that ReSIDe can still adapt gracefully when deployment reveals a new threat.

Authors · CommentOpenReview ↗

Response to Reviewer d8np (part 2/2)

Weakness 2 / Question 2: The evaluation does not include images from sufficiently recent generators.

Response: We added an evaluation on EvalGen [1], a separate benchmark containing images from recent generators including 2 autoregressive image generators. Because EvalGen contains only synthetic images, we pair it with natural images from the ImageNet test set to form a balanced test set. For evaluation, we directly use the layer aggregation weights optimized on our original Unseen Gen. validation set, instead of optimizing again on EvalGen.

Backbone CSF Baseline ReSIDe Δ\Delta
ResNet50 MSP 0.2544 0.2468 2.99%
ResNet50 SM 0.2544 0.2468 2.99%
ResNet50 ML 0.2500 0.2500 0.00%
ResNet50 LM 0.2544 0.2468 2.99%
ResNet50 NE 0.2544 0.2468 2.99%
ResNet50 NGI 0.2544 0.2468 2.99%
Swin-T MSP 0.2352 0.2031 13.63%
Swin-T SM 0.2352 0.2031 13.63%
Swin-T ML 0.2475 0.2475 0.00%
Swin-T LM 0.2352 0.2031 13.63%
Swin-T NE 0.2352 0.2031 13.63%
Swin-T NGI 0.2352 0.2031 13.63%

Similar to our original Unseen Gen. results in Tab. 2 of our submission, ReSIDe matches or outperforms the baseline in all 12 cases.

Weakness 3 / Question 3: How does ReSIDe behave on different backbones, particularly non-convolutional vision transformer backbones, and how should intermediate layers be selected?

Response: The original submission already evaluates both a CNN (ResNet50) and a transformer-based model (Swin-T). Layer sampling follows the same architecture-agnostic rule for both: we extract the representation after every computational block. This gives 16 sampled residual-block outputs for ResNet50 and 12 sampled transformer-block outputs for Swin-T.

We acknowledge that Swin-T retains some CNN-like inductive biases through its hierarchical architecture and local-window attention. We therefore additionally evaluate a CLIP [2] ViT-B/16 image encoder, equipped with a binary classification head and fully fine-tuned as the SID, whose risk on the mixture distribution is 0.3239. For this model, we extract the CLS-token representation after each of its 12 transformer blocks and construct one intermediate-layer score from each representation. The following table shows ReSIDe's AURC on the mixture distribution for this ViT-based SID.

Backbone CSF Baseline ReSIDe Δ\Delta
CLIP ViT-B/16 MSP 0.1948 0.1625 16.60%
CLIP ViT-B/16 SM 0.1949 0.1547 20.64%
CLIP ViT-B/16 ML 0.2149 0.1623 24.49%
CLIP ViT-B/16 LM 0.1948 0.1559 19.99%
CLIP ViT-B/16 NE 0.1948 0.1473 24.42%
CLIP ViT-B/16 NGI 0.1948 0.1467 24.68%

Results show that ReSIDe improves all six CSFs on CLIP ViT-B/16, with AURC reductions ranging from 16.60% to 24.68%. This supports its applicability across conventional CNN, hierarchical-transformer, and ViT-based foundation-model backbones while using the same block-level layer sampling rule.

Limitation: ReSIDe's intermediate-feature confidence could itself be targeted by an adaptive evasion attack.

Response: We agree. An attacker with knowledge of the complete SC system could optimize against both the SID's intermediate features and the confidence score function. However, we believe this is a general concern for all kinds of confidence estimators, instead of being ReSIDe's own drawback. Since this work primarily focuses on proposing a novel post-hoc SC framework for SIDs rather than studying adversarial robustness of SC systems, we didn't cover this limitation in our submission. We thank the reviewer for this comment and we will explicitly mention this limitation in our revision, while identifying defense/robustness against attacks to the SC system as an important direction for future work.

[1] Ruoxin Chen et al., "Dual Data Alignment Makes AI-Generated Image Detector Easier Generalizable", NeurIPS, 2025.
[2] Alec Radford et al., “Learning Transferable Visual Models From Natural Language Supervision”, ICML, 2021.

We again thank the reviewer for their time and effort. If our responses above address the concerns, we kindly request that the reviewer considers increasing their score.

Authors · CommentOpenReview ↗

Dear Reviewer d8np,

Thank you again for taking the time to review our paper and for your thoughtful feedback. As the author response period is coming to an end, we wanted to check whether our previous response has adequately addressed your concerns. If there are any remaining questions or issues, we would be grateful to hear from you, and we will do our best to address them before the response period closes. If you feel that our rebuttal has satisfactorily resolved your concerns, we kindly ask that you consider updating your score accordingly. In any case, we sincerely appreciate any additional feedback you may have.

Thank you again.

Comments on the paper

1 comment
Area Chair iF52 · CommentOpenReview ↗

Please Review the Authors’ Rebuttal

Dear Reviewer,

The authors have submitted their rebuttal. As we are approaching the discussion deadline, could you please review their response and briefly indicate whether it addresses your concerns—and whether it changes your assessment?

Your input is important for reaching a well-informed decision. Thank you very much for your time and contribution.

Best regards, Area Chair

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…