NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HRR: Hierarchical Retrospection Refinement for Generated Image Detection

Peipei Yuan, Zijing Xie, Shuo Ye, Hong Chen, Yulong Wang · DOI

Abstract

Generative artificial intelligence holds significant potential for abuse, making generative image detection a critical research focus. Existing methods often struggle with cross-generator generalization and sensitivity to image alterations like resizing. We propose a diffusion model-based framework termed Hierarchical Retrospection Refinement (HRR). HRR introduces a multi-scale style retrospection module to alleviate learning biases from dataset styles and generative models by generating realistic multi-scale representations. Furthermore, a feature refinement module based on the correntropy sparse additive machine is designed to reduce redundant feature impact and capture intrinsic data patterns. Extensive experiments demonstrate that HRR consistently delivers significant performance improvements, outperforming state-of-the-art methods in generated image detection tasks.

Introduction

As generative models like GANs and Diffusion models become more sophisticated, distinguishing real images from fakes has become a critical security and trust issue. Current deep learning-based detectors face two major roadblocks:

  1. Poor Cross-Generator Generalization: Detectors trained on GAN artifacts often fail on Diffusion-generated images because the underlying generation processes leave different mathematical traces.
  2. Scale Sensitivity: Simple alterations like resizing or re-compression (often called "washing") destroy high-frequency artifacts. Downscaling a fake image often causes detectors to misclassify it as real.

HRR aims to build a robust, scale-invariant detector that identifies the fundamental structural differences between reality and synthetic generation.

Methodology

The HRR framework consists of two core modules designed to strip away stylistic biases and focus on intrinsic structural patterns.

The HRR framework architecture, illustrating the Multi-scale Style Retrospection and Additive Feature Refinement modules.

Multi-scale Style Retrospection (MSR)

Instead of allowing the model to overfit to the "style" of a specific dataset or generator, MSR uses a Latent Diffusion Model (LDM) to normalize the image's style, leaving only the structural "content." To ensure scale-invariant features, MSR generates multi-scale representations. It employs a line-enhancement (edge detection) technique to maintain structural continuity across scales, preventing compression artifacts from confusing the network.

Additive Feature Refinement (AFR)

Extracted features are passed to the AFR module, based on a "correntropy sparse additive machine." AFR acts as a dynamic feature selector. By applying a mathematical sparsity penalty ($\ell_{q,1}$-norm), it filters out redundant or noisy features, forcing the model to base its classification on the most robust, intrinsic structural patterns.

Experimental Evaluation

HRR was evaluated on three benchmark datasets: DIRE (diffusion-based fakes), ForenSynths (GAN and CNN-based fakes), and cocoFake (Stable Diffusion fakes from COCO prompts).

Key Results

  • Cross-Generator Dominance: HRR shows massive improvements in cross-model testing. When trained on StyleGAN and tested on iDDPM, HRR achieved 62.84% accuracy, a 26.39% improvement over the baseline CNNDet.
  • State-of-the-Art Performance: On the ForenSynths dataset, HRR outperformed CNNDet by 11.75% on the CRN subset. On cocoFake, HRR achieved a peak accuracy of 96.53%.
  • Multi-Scale Robustness: When test images were downscaled from 512x512 to 64x64, HRR maintained 82.21% accuracy, while baseline models like CNNDet collapsed to near-random performance.
Example of multi-scale detection where the model evaluates the image at different resolutions to ensure consistency.

Key Insights

  • Style Normalization: By using an LDM to normalize style, the model is forced to examine the actual structural anatomy of the image rather than dataset-specific artifacts.
  • Contour Preservation: While pixel-level noise disappears during resizing, physical contours remain. Training on multi-scale representations guided by edge maps makes HRR highly resistant to "washing."
  • Sparse Additive Models: Applying sparse additive machines to large-scale image features effectively prunes redundant data, preventing the network from relying on spurious correlations.

Conclusion

HRR represents a significant step forward in robust generative image detection. By combining multi-scale retrospection with sparse feature refinement, it overcomes common pitfalls like style bias and resolution sensitivity. While the computational complexity of the AFR module (relying on ADMM optimization) is a current limitation, future work will focus on optimizing these models for even larger, multimodal datasets.

Summary updated

BibTeX
@misc{yuan2025hrr,
  author = {Peipei Yuan and Zijing Xie and Shuo Ye and Hong Chen and Yulong Wang},
  title = {{HRR: Hierarchical Retrospection Refinement for Generated Image Detection}},
  year = {2025},
  eprint = {2502.17862},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.17862},
}
Figure