Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Breaking Semantic Artifacts for Generalized AI-generated Image Detection

Patch shuffling helps AI-generated image detectors transfer across unseen scenes

  • Problem Detectors trained on one generator are often tested on other generators, but their accuracy drops when the scene of the images changes. The authors link these drops to semantic artifacts in both real and generated images.
  • Method The authors shuffle image patches before a patch-based classifier sees them. Shuffling breaks the global scene layout, so the detector learns generator traces instead of scene traces.
  • Results Zero padding scored 90.18% accuracy across 18 diffusion variants, compared to 78.35% for NPR.

Why scene changes break detectors

Earlier detection work asked mostly whether a detector trained on one generator still works on other generators. This paper asks a different question: whether a detector keeps its accuracy when the scene of the images changes. The authors report substantial accuracy drops in this setting and link them to semantic artifacts found in both real and generated images.

The authors weight accuracy most heavily, because Average Precision can stay high while accuracy falls. In the pilot, a detector could separate real and fake images by score yet still fail at the usual 50% threshold.

Generator traces and scene traces in the spectrum

The analysis subtracts a denoised copy of each image from the image itself, which gives a noise residual per image. The authors average the power spectra of 1000 images from each source and compare these averages across sources.

GANs show periodic peaks that match checkerboard patterns produced by up-sampling. Some diffusion models, such as DALL·E 2 and Latent Diffusion, show similar periodic patterns, which the authors link to compressing images into a latent space with an auto-encoder. CNN-based generators such as Deepfake and CRN show spectra that differ from those of both GANs and diffusion models.

Real photographs also carry spectral traces, and the authors argue that these come from image content or preprocessing. CelebA and FFHQ share a pattern near the spectrum center, which the authors tie to both containing human faces. FaceForensics also shows faces, but its video cropping and resizing give it a different pattern, so the authors call these traces semantic artifacts.

The authors argue that generated images inherit these scene traces from their training data, so a detector may learn scene traces instead of generator traces.

The pilot that exposes the threshold problem

The pilot pairs LSUN bedroom and LSUN church with images generated by SDXL-Turbo from prompts that name each scene. Each training set has 10000 images, and each test set has 5000 images.

The best threshold lay at 0.01% for Church to Bedroom and at 0.001% for Bedroom to Church. Shifting the threshold therefore cannot fix the problem, because the best value changes with the scene pair.

Patch shuffle raised the Church-trained model to 94.15% on Bedroom images at the 50% threshold, from 50.00% without it. The Bedroom-trained model still scored 51.18% on Church images at 50%, so overfitting remained in that direction.

CAM maps show few active regions for detectors without patch shuffle on cross-scene images. With patch shuffle, the ResNet-50 showed large contiguous active areas, while the patch-based classifier showed discrete, point-like regions.

How the patch-based classifier is built

The pipeline cuts the input image X into square patches of size P×P. The segmentation is written as \( \{p_i\} = \text{Segment}(X, P) \) with \( i = 1, 2, \ldots, M\times M \), and the patches are then shuffled into a random sequence. The shuffle is meant to break the global semantic layout before any network sees the patches.

Same-convolution blocks then apply \( F_n = C_n(F_{n-1}) \) for n from 1 to N, and the main model sets N to 18. After encoding, three basic blocks downsample the feature map.

The patch features are reassembled into a sequence, flattened into one vector v, and passed to a linear classifier L as \( \hat{y} = L(v) \). The whole pipeline is trained end to end with binary cross-entropy, written as \[ \mathrm{BCE}(y, \hat{y}) = -\frac{1}{N}\sum_{i=1}^{N}\left[y_i \log(\hat{y}_i) + (1-y_i)\log(1-\hat{y}_i)\right] \] The leading minus sign means that minimizing this loss pushes the predictions toward the true labels.

The authors argue that feeding one patch at a time keeps the receptive field small, which limits how much global content the detector sees.

Images are zero padded so the shorter edge is 256 pixels, then randomly cropped to 256x256, and flipped horizontally or vertically with probability 50%.

Training data, test scenes and baselines

The main training set uses 48,000 images that Stable Diffusion v1.4 generated from DiffusionDB prompts and 48,000 real images from LAION-5B. The authors restrict training to one generator and one scene, which they treat as standard practice for this kind of test.

The diffusion variants are sampled from six real datasets, including LSUN-bedroom, LSUN-church, CelebA, FFHQ, ImageNet and LAION-5B.

The cross-scene score averages six Latent Diffusion variants on LSUN-Bedroom, LSUN-Church, ImageNet, CelebA, FFHQ and LAION.

The baselines are Durall, CNNDetection, PatchFor, F3Net, Dogoulis, DIRE, Ojha, LGrad and NPR. Most baselines were re-implemented with official code on the training set, and DIRE used its official pre-trained weights. Accuracy is the primary metric, and Average Precision is reported alongside it.

Cross-scene and open-world scores

Averaged over the six Latent Diffusion variants, zero padding scored 92.52% accuracy and 95.58% mAP.

The authors connect this gap to the semantic artifact analysis.

Across 18 diffusion variants, zero padding scored 90.18% accuracy, compared to 78.35% for NPR. Most baselines scored poorly on the unconditional Bedroom and Church scenes. The authors attribute this to a strong scene change between the txt2img training set and the unconditional test scenes.

Most detectors degrade in this group, which the authors expect because these generators differ in architecture from the diffusion training set.

Pre-processing, depth and patch size

The authors tie the gap to resolution, since SITD images exceed 4,000×3,000 and their frequency features change a lot after resizing. They argue that zero padding keeps more low-level features, which benefits generalized detection.

N=0 and N=24 both score lower than the middle depths, which the authors read as underfitting and overfitting, respectively. The best cross-Diffusion value comes at N=21, with 88.91, while the best cross-GAN/CNN value comes at N=6, with 74.27. The authors suggest that a shallow model learns less from the generator artifacts of the training images, which helps cross-generator detection.

The patch-size ablation keeps N=18 and varies P over 16, 32, 48 and 64. The authors read P=16 as underfitting and larger patches as enlarging the receptive field and worsening overfitting.

Limits of the evidence

The pilot uses one ResNet-50 and two LSUN scenes with SDXL-Turbo images. Patch shuffle leaves the Bedroom-to-Church score at 51.18% at the 50% threshold, so the pilot does not show full transfer.

In the cross-Diffusion group, NPR still shows a gap, with 78.35% accuracy and 94.08% mAP. Several baselines keep a wide gap between mAP and accuracy, so the authors use accuracy as the main signal.

Most baseline numbers come from the authors' re-implementation on their own training set, and only DIRE used official weights. The cross-scene score averages six Latent Diffusion variants, and resizing scored higher than zero padding on that average. The main training set uses one generator family, Stable Diffusion v1.4, with LAION-5B real images, and the ForenSynths training set appears only as an appendix ablation.

Paper info

Authors
Zheng, Chende, Lin, Chenhao, Zhao, Zhengyu, Wang, Hang, Guo, Xu, Liu, Shuai, Shen, Chao
Venue
Advances in Neural Information Processing Systems · Published
First published
2024-12-16
Added
2026-11-26
DOI
10.52202/079017-1903
Original paper terms
Check in the original ↗
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Zheng, Chende, Lin, Chenhao, Zhao, Zhengyu, Wang, Hang, Guo, Xu, Liu, Shuai, Shen, Chao (2024). Breaking Semantic Artifacts for Generalized AI-generated Image Detection. Advances in Neural Information Processing Systems. https://doi.org/10.52202/079017-1903

BibTeX
@article{chende2024breaking,
  title = {{Breaking Semantic Artifacts for Generalized AI-generated Image Detection}},
  author = {Zheng, Chende and Lin, Chenhao and Zhao, Zhengyu and Wang, Hang and Guo, Xu and Liu, Shuai and Shen, Chao},
  year = {2024},
  journal = {Advances in Neural Information Processing Systems},
  doi = {10.52202/079017-1903},
  url = {https://papers.nips.cc/paper_files/paper/2024/hash/6dddcff5b115b40c998a08fbd1cea4d7-Abstract-Conference.html}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up