All Patches Matter, More Patches Better: Enhance AI-Generated Image Detection via Panoptic Patch Learning

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yang, Zheng, Chen, Ruoxin, Yan, Zhiyuan, Zhang, Ke-Yue, Fu, Xinghe, Wu, Shuang, Shu, Xiujun, Yao, Taiping, Ding, Shouhong, Qin, Zequn, Li, Xi
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911533054820352
author Yang, Zheng
Chen, Ruoxin
Yan, Zhiyuan
Zhang, Ke-Yue
Fu, Xinghe
Wu, Shuang
Shu, Xiujun
Yao, Taiping
Ding, Shouhong
Qin, Zequn
Li, Xi
author_facet Yang, Zheng
Chen, Ruoxin
Yan, Zhiyuan
Zhang, Ke-Yue
Fu, Xinghe
Wu, Shuang
Shu, Xiujun
Yao, Taiping
Ding, Shouhong
Qin, Zequn
Li, Xi
contents The exponential growth of AI-generated images (AIGIs) underscores the urgent need for robust and generalizable detection methods. In this paper, we establish two key principles for AIGI detection through systematic analysis: (1) All Patches Matter: Unlike conventional image classification where discriminative features concentrate on object-centric regions, each patch in AIGIs inherently contains synthetic artifacts due to the uniform generation process, suggesting that every patch serves as an important artifact source for detection. (2) More Patches Better: Leveraging distributed artifacts across more patches improves detection robustness by capturing complementary forensic evidence and reducing over-reliance on specific patches, thereby enhancing robustness and generalization. However, our counterfactual analysis reveals an undesirable phenomenon: naively trained detectors often exhibit a Few-Patch Bias, discriminating between real and synthetic images based on minority patches. We identify Lazy Learner as the root cause: detectors preferentially learn conspicuous artifacts in limited patches while neglecting broader artifact distributions. To address this bias, we propose the Panoptic Patch Learning (PPL) framework, involving: (1) Random Patch Replacement that randomly substitutes synthetic patches with real counterparts to compel models to identify artifacts in underutilized regions, encouraging the broader use of more patches; (2) Patch-wise Contrastive Learning that enforces consistent discriminative capability across all patches, ensuring uniform utilization of all patches. Extensive experiments across two different settings on several benchmarks verify the effectiveness of our approach.
format Preprint
id arxiv_https___arxiv_org_abs_2504_01396
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle All Patches Matter, More Patches Better: Enhance AI-Generated Image Detection via Panoptic Patch Learning
Yang, Zheng
Chen, Ruoxin
Yan, Zhiyuan
Zhang, Ke-Yue
Fu, Xinghe
Wu, Shuang
Shu, Xiujun
Yao, Taiping
Ding, Shouhong
Qin, Zequn
Li, Xi
Computer Vision and Pattern Recognition
The exponential growth of AI-generated images (AIGIs) underscores the urgent need for robust and generalizable detection methods. In this paper, we establish two key principles for AIGI detection through systematic analysis: (1) All Patches Matter: Unlike conventional image classification where discriminative features concentrate on object-centric regions, each patch in AIGIs inherently contains synthetic artifacts due to the uniform generation process, suggesting that every patch serves as an important artifact source for detection. (2) More Patches Better: Leveraging distributed artifacts across more patches improves detection robustness by capturing complementary forensic evidence and reducing over-reliance on specific patches, thereby enhancing robustness and generalization. However, our counterfactual analysis reveals an undesirable phenomenon: naively trained detectors often exhibit a Few-Patch Bias, discriminating between real and synthetic images based on minority patches. We identify Lazy Learner as the root cause: detectors preferentially learn conspicuous artifacts in limited patches while neglecting broader artifact distributions. To address this bias, we propose the Panoptic Patch Learning (PPL) framework, involving: (1) Random Patch Replacement that randomly substitutes synthetic patches with real counterparts to compel models to identify artifacts in underutilized regions, encouraging the broader use of more patches; (2) Patch-wise Contrastive Learning that enforces consistent discriminative capability across all patches, ensuring uniform utilization of all patches. Extensive experiments across two different settings on several benchmarks verify the effectiveness of our approach.
title All Patches Matter, More Patches Better: Enhance AI-Generated Image Detection via Panoptic Patch Learning
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2504.01396