A latent diffusion model's output has already passed through its autoencoder, so a second round trip changes it very little. This "déjà vu" underlies reconstruction-based detectors of generated images; we analyse when it reveals a generated image and when it does not. Read by a frozen vision foundation model without training, the trace is strongest in intermediate layers, and, unlike pixel-level reconstruction error, it treats blur as a sign of a real image. It belongs to the generator's exact decoder: on Synthbuster, the exact decoders of Stable Diffusion 1.3, 1.4, 2 and XL are the strongest of eight autoencoders and catch 94-100% of their generators' images at a 5% false-alarm rate (SDXL's version identified post hoc), while near-identical versions catch 7-42%. A detector trained only on real photographs and their autoencoder copies matches one trained on 162k generated images on GenImage (+2.3 points, 95% CI [0.9, 3.7]) and complements it in fusion, but one resize with JPEG re-save, or a mild blur, costs it 19-27 points. Two lessons concern benchmarks. The in-the-wild benchmark Chameleon can be solved from image width alone. And on Synthbuster, how the real photographs are matched to the generated images' size decides whether our detector leads or trails (+4.4 or -9.7 points): the matching protocol alone can reverse a detector comparison. Code and per-image scores: https://github.com/iamsaugatpandey/deja-vae
Figures & tables
Figure 1: What we measure, and the two findings that frame the paper. (a) The instrument, on real data: a Synthbuster ( Bammey, 2024 ) SDXL image (median of its class by fixed-point score) and the RAISE ( Dang-Nguyen et al., 2015 ) photograph it was prompted from (68th percentile among real images). An autoencoder round trip R at native resolution returns a copy that looks identical to each image. A frozen DINOv3 reads image and copy, and the bars show how far the class token moves (cosine distance, mean over layers 8–18). The generated image barely moves under its own decoder (SDXL 1.0), and three times as far under the 0.9 version of the same autoencoder. Déjà VAE-TF scores this movement without training; Déjà VAE-I and Déjà VAE-P are small heads trained on real photographs only, with their copies as stand-in fakes and blurred photographs as counterfactual reals ( Section 3 ). (b) Without training, the signal is strongest in intermediate layers. AUROC of the training-free signal per DINOv3 layer on GenImage (blue; mean over eight generators), and of blurred real images against the originals (grey; a high value would mean that the score mistakes blur for generation). Bands: 95% bootstrap intervals ( Section 4 ). (c) It belongs to the exact decoder. Share of generated images caught at a 5% false-positive rate by the training-free score with the generator’s own decoder (filled) and with a near-identical version of it (open). Synthbuster images are compared as stored (lossless) against real photographs downscaled to their size; with cropped reals the open markers move to 16.5%, 42.0% and 30.5%, and the exact decoder remains the strongest of eight autoencoders. GenImage images are first re-saved as JPEG q95, and the effect is weaker there ( Section 5 ). † The matching SDXL version was identified post hoc. On web images (Chameleon), no autoencoder in our bank restores the signal.
Figure 2: The déjà vu is visible in intermediate layers, and it is not a smoothness detector. AUROC of the training-free signal −dℓ(v,R(v)) (class token) at every second layer of DINOv3 (blue) and DINOv2 (orange). (a) GenImage, mean over the eight generators (200 fakes each, 400 reals). (b) Chameleon (300 + 300). (c) Blur control: real images blurred to the PSNR of their own autoencoder copy, scored against the unblurred reals; a high value means the score mistakes smoothness for generation. Grey dotted: PSNR (v,R(v)) ; grey dashed: DINOv3 mean patch-token distance. Shaded columns: the layers Déjà VAE reads. (d) How the copy is made, at layer 16 (filled) and the final layer (open). Bands and bars: 95% bootstrap intervals (reals and each generator’s fakes resampled, B=1,000 ).
Generator
SD1
ft-MSE
SDXL 0.9
SDXL 1.0 †
MoVQ
FLUX
DC-AE
Cons.
Downscaled reals
SD 2
16.0
95.0
41.0
15.5
10.0
21.5
11.5
13.5
SD 1.3
99.5
21.0
1.0
6.0
9.0
19.5
13.5
0.5
SD 1.4
99.0
26.0
3.5
10.0
4.0
21.5
22.5
0.5
DALL ⋅ E 3
22.0
32.5
31.5
15.0
7.0
32.5
2.0
34.5
SDXL
1.5
12.0
7.0
100.0
1.0
0.0
11.0
0.5
Table 1: Decoder bank on Synthbuster (training-free; 200 generated images and their 200 matched test reals per generator, no re-save). Top: reals downscaled to each generated image’s size (pre-specified). Bottom: the same generated images against cropped reals ( Section 3.4 ), for the five generators with a pre-specified decoder. TPR (%) at 5% FPR of the fixed-point score (DINOv3 class token, layers 10–18) under each autoencoder; the threshold is the 95th percentile of the generator’s own matched reals. Bold: the generator’s own decoder as pre-specified. † Added post hoc, after the SDXL prediction failed; underlined: the SDXL version Synthbuster’s images match. SD1: SD1’s original decoder; MoVQ: Kandinsky 2.1; Cons.: OpenAI’s consistency decoder. With 200 images per cell, a 95% binomial interval spans at most ±7 points.
GenImage
Chameleon
Synthbuster
Method
Fakes
TPR@5
worst
TPR@1
FPR deg
TPR@5
TPR@1
FPR deg
TPR@5
worst
FPR deg
Trained with generated images
SimLBR (released)
162k
85.3
45.0
74.2
4.2
84.0
75.6
7.7
80.3
41.9
4.5
SimLBR (retrained)
10k
83.8
41.0
73.0
3.7
81.1
68.0
6.4
81.3
40.5
5.3
Supervised probe
10k
80.3
32.4
67.9
3.6
73.2
55.4
4.9
78.4
31.6
5.2
Training-free
Table 2: Main results. TPR (%) at a 5% and 1% false-positive rate set on real calibration images only, and false-positive rate (%) on degraded real images at the 5% threshold (lower is better). GenImage: mean and worst over eight generators, all images re-saved as JPEG q95. Synthbuster: mean and worst over nine generators, with reals downscaled to each generated image’s size ( Section 3.4 ; cropped reals in Table 3 ). “Fakes”: generated images used in training. RIGID with normalised noise: noise added to the normalised input ( Appendix B ). Learned methods: mean over 3 seeds. † AEROBLADE is scored on a fixed stratified subset (4,000 images per benchmark); every method scored on that subset is in Appendix C . ‡ The first version of Déjà VAE-I, which reads the final-layer class token; it was replaced by layers 8–18 ( Section 3.1 ) and is shown for reference only ( Section 7.1 ). Bold: best single detector per column, excluding this row; the fused detector (last row) is discussed in Section 10 . Paired intervals for the key comparisons are in the text.
Figure 3: Synthbuster with downscaled reals. (a) TPR at a 5% false-positive rate per generator, with one threshold per method and seed set on the pooled calibration reals. Rows are grouped by how each generator decodes; “our decoder” is the ft-MSE autoencoder that makes Déjà VAE’s copies. (b) False-positive rate at the same threshold on each generator’s matched test reals (nominal 5%). SD 2 and SDXL images have the same sizes image by image, so their matched reals are identical. Points: mean over three seeds; bars: 95% bootstrap intervals (calibration reals resampled by photograph; fakes and matched test reals resampled; B=1,000 ). The same comparison with cropped reals is in Tables 3 and F .
Downscaled reals
Cropped reals
Method
Mean
Worst
FPR
Mean
Worst
FPR
SimLBR (released)
80.3
41.9
5.6
77.9
36.1
5.3
Supervised probe
78.4
31.6
5.5
69.5
21.3
3.8
Reconstruction probe
70.1
32.4
5.5
52.8
17.3
4.9
Déjà VAE-I
84.5
35.1
5.7
68.2
13.1
7.3
Déjà VAE-P
74.7
18.9
4.5
62.7
8.7
5.0
Table 3: Synthbuster under two ways of matching the real photographs. Downscaled (pre-specified): each RAISE photograph is cropped to the aspect ratio of its paired generated image and resized to its exact size. Cropped (added after the downscaled results): a native-resolution centre crop at the generated image’s exact size, with no resampling. Generated images, calibration/test split and detectors are identical. TPR (%) at 5% FPR, mean and worst over the nine generators, and false-positive rate (%) on the matched test reals at the same threshold; mean over 3 seeds. ‡ The first version of Déjà VAE-I, reading the final-layer class token, scored on Synthbuster post hoc ( Appendix E ).
Figure 4: One resize or re-compression moves generated images off the fixed point; a semantic detector does not notice. (a) TPR@5% after each post-processing step, with the threshold re-set on real images processed the same way. (b) False-positive rate on processed real images when the threshold set on unprocessed reals is kept; the dashed line is the nominal 5%. Dots: mean over SD 1.4, Wukong and Midjourney (150 fakes each; 300 reals) and 3 seeds; thick and thin bars: 66% and 95% bootstrap intervals (reals and fakes resampled, B=1,000 ).
Figure 5: Chameleon can be solved from image width alone. (a) Width and height of every Chameleon image (one dot per image; log scales, slight jitter). All 14,863 real images are 500 pixels wide. (b) AUROC of gradient-boosted classifiers that see only file metadata (5-fold cross-validation), on the original benchmark (grey) and on our size-matched version (blue). The dashed line is chance. Size matching removes every geometric cue; the remaining signal (bytes per pixel, 0.62) reflects image content and is kept.
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
GenImage
Chameleon
Size-matched
Synthbuster
Method
@5
@1
FPR deg
@5
@1
FPR deg
@5
@1
FPR deg
@5
@1
FPR deg
SimLBR (released)
83.5
73.4
3.4
84.5
71.6
7.5
75.9
59.2
7.5
81.9
64.9
4.8
SimLBR (retrained)
83.3
69.7
4.1
81.8
70.8
7.3
74.6
60.5
7.3
82.7
69.9
5.4
Supervised probe
80.9
70.7
4.4
74.1
57.4
5.9
66.6
49.3
5.9
79.2
68.0
6.0
Reconstruction probe
78.1
61.4
9.5
59.1
28.9
11.2
56.0
29.5
11.2
72.8
55.5
13.1
Déjà VAE-I
85.8
72.3
3.1
37.3
18.8
3.1
27.7
11.4
3.1
85.5
75.0
3.4
Appendix
Table 4: All methods on the fixed stratified subsets used for AEROBLADE (seed 13). GenImage: 1,000 calibration reals, 1,000 test reals stratified by source, 250 fakes per generator; Chameleon and size-matched Chameleon: 1,000 + 1,000 reals and 2,000 fakes; Synthbuster: 1,000 calibration reals, 1,800 geometry-matched test reals and 200 fakes per generator. TPR (%) at 5% and 1% FPR, and FPR (%) on degraded reals at the 5% threshold.
GenImage
Chameleon
Synthbuster
Variant
TPR@5
FPR deg
TPR@5
FPR deg
TPR@5
FPR deg
Déjà VAE-I as in the paper
87.5
5.0
33.9
2.0
84.5
3.0
final layer instead of layers 8–18
79.5
3.6
61.2
3.9
85.7
4.0
without counterfactual rows
92.8
29.8
36.0
12.8
84.9
16.8
Appendix
Table 5: Déjà VAE-I with one factor changed. The reference reads DINOv3 layers 8–18, copies at native resolution and trains with counterfactual rows. TPR (%) at 5% FPR (mean over generators) and false-positive rate (%) on degraded real images at the same threshold; mean over 3 seeds. Synthbuster with downscaled reals. Paired intervals are in the text.
Downscaled reals
Cropped reals
Generator
Déjà VAE-I
SimLBR
Difference
Déjà VAE-I
SimLBR
Difference
DALL ⋅ E 2
93.7
50.7
+43.0 [+38.5, +47.9]
78.3
47.4
+30.9 [+25.2, +36.0]
DALL ⋅ E 3
62.6
99.8
− 37.2 [ − 42.0, − 32.5]
26.1
99.6
− 73.5 [ − 79.1, − 66.5]
Firefly
98.3
41.9
+56.4 [+51.5, +63.2]
90.5
36.1
+54.4 [+49.2, +58.4]
GLIDE
35.1
74.9
− 39.8 [ − 44.5, − 33.3]
13.1
71.3
− 58.2 [ − 62.1, − 53.3]
Midjourney v5
86.1
91.0
− 4.9 [ − 7.7, − 1.5]
60.2
90.0
− 29.8 [ − 36.7, − 23.9]
Appendix
Table 6: Synthbuster per generator. TPR (%) at 5% FPR of Déjà VAE-I and SimLBR (released) with downscaled and with cropped reals, and their paired difference with a 95% interval (calibration resampled by RAISE photograph). Mean over 3 seeds.
Figure 6: Decoder bank on GenImage and Chameleon. TPR (%) at 5% FPR of the training-free signal (DINOv3 class token, layers 10–18) per generator (rows) and autoencoder (columns). GenImage images are re-saved as JPEG q95 before the copy, so that real (JPEG) and generated (PNG) images have the same format; Appendix G shows the bank on the original files. The threshold is set in-sample, at the 95th percentile of the same set’s real images (300 GenImage reals, 200 fakes per generator; 300 + 300 Chameleon). Orange outline: the generator’s own decoder. Right: the autoencoder that most often gives a generator’s images their strongest signal, and its share. With 200 fakes per cell, a 95% binomial interval spans at most ±7 points.
Figure 7: Decoder bank on the original files (JPEG real images, PNG generated images), for comparison with Figure 6 . The grey row re-thresholds BigGAN on real images downscaled to 128 pixels. Same threshold rule and samples as Figure 6 .
Generator
Pred.
ft-MSE
Δ Déjà VAE-I
Δ Déjà VAE-P
Δ Déjà VAE-TF
GenImage
ADM
66.8
+11.3 [+9.3, +13.5]
+22.4 [+19.8, +25.0]
− 3.6 [ − 6.6, +0.0]
BigGAN
83.8
+10.8 [+9.3, +12.6]
+20.4 [+18.6, +22.5]
+11.4 [+9.9, +13.8]
Midjourney
−
91.3
− 7.7 [ − 9.5, − 6.0]
− 2.7 [ − 3.9, − 1.3]
− 33.1 [ − 35.8, − 29.4]
VQDM
95.9
+3.8 [+2.9, +4.8]
+16.6 [+14.7, +18.6]
+9.1 [+6.4, +12.4]
GLIDE
65.1
+11.5 [+9.1, +14.1]
+30.4 [+27.7, +33.3]
− 10.8 [ − 14.0, − 7.1]
Appendix
Table 7: Copies from SD1’s original decoder instead of ft-MSE. Paired difference in TPR (%) at 5% FPR, SD1-decoder detector minus ft-MSE detector, with 95% bootstrap intervals (calibration reals and each generator’s fakes resampled jointly, seed-averaged, B=1,000 ). “Pred.”: pre-specified sign (+ (P): predicted for Déjà VAE-P only, as Déjà VAE-I is at ceiling). “ft-MSE”: Déjà VAE-I’s TPR with ft-MSE copies.
Figure 8: Training-data scale of the baselines trained with generated images. TPR at 5% FPR of SimLBR retrained with its released recipe (blue) and of the plain supervised probe (grey) against the number of training images per class (nested subsets; equal numbers of real and SD 1.4 images), with the released SimLBR head (diamond, 162k per class). Orange line and band: Déjà VAE-I, trained on 5,000 real images and no generated ones. Points: mean over 3 seeds; bars and band: 95% bootstrap intervals (calibration reals and each generator’s fakes resampled, B=1,000 , seed-averaged).
Figure 9: Most of every detector’s drop on size-matched Chameleon comes from processing, not from the shortcut. Change in TPR@5% caused by (a) one extra resize and JPEG q75 re-save (original → processing-only control) and (b) removing the size and aspect shortcut (control → size-matched). Slabs: paired bootstrap distributions (calibration reals and test fakes resampled jointly, B=1,000 , mean over 3 seeds); dots: means; thick and thin bars: 66% and 95% intervals. Rows sorted by total change.
Figure 10: Autoencoder traces add what a second semantic detector does not. Paired differences in TPR@5% between the Déjà VAE-P + SimLBR fusion and, from top to bottom, SimLBR alone and four control fusions that replace Déjà VAE-P with another detector, on each benchmark. Slabs: paired bootstrap distributions (calibration reals and test fakes resampled jointly, B=1,000 , mean over 3 seeds); dots: means; thick and thin bars: 66% and 95% intervals. Blue: the fusion is better (95% interval above zero); orange: worse. All panels share one scale.
AI-generated image detection identifies synthetic or AI-edited images and develops methods that generalize across generators, domains, and image transformations.
Must a detector see generated images in order to catch them? Detection of AI-generated images has long faced two problems. The cues a detector learns from the few generators in its training set carry traces specific to those generators and transfer poorly to new ones, which limits generalization. The real and generated training images also differ in format and content, so the detector takes these differences as evidence of authenticity, and its decisions change with factors that have nothing to do with authenticity, which harms robustness as well as generalization. Both problems stem from training on generated images. A detector never trained on them can largely avoid both at the source. Vision foundation models have already learned the concept of "AI-generated" during pretraining, and text can point to it directly. Building on this, we propose SaySee, a training-free detector: Say builds a generation direction from sets of paired descriptions that differ only in authenticity and scores an image by the projection of its embedding onto it, and See uses real images to correct the score offsets caused by format, image type and content. On 24 evaluation sets that span standard benchmarks, in-the-wild data and the latest generators, SaySee reaches a mean AUC of 98.2% with MoE-ViE, 4.2 points above the best existing detector. When format is decoupled from authenticity, it remains the best of all methods. Code will be released.
Tianchi Xu, Yuxuan Zhou, Yuheng Zhang +3
Tsinghua University · Nankai University · Shenzhen University
The rapid evolution of image generators calls for forensic cues that generalize beyond known generation mechanisms. Existing detectors often rely on static image representations or endpoint reconstruction discrepancies, leaving the evolution of intermediate reconstruction stages underexplored. We observe that the relative token predictability of real and generated images can reverse across reconstruction scales, suggesting that intermediate stages may expose forensic evidence overlooked by endpoint comparisons. Motivated by this observation, we propose RED (Reconstruction Evolution Dynamics), a framework that captures transferable forensic cues from coarse-to-fine reconstruction evolution. To our knowledge, RED is the first framework to use scale-wise token predictability to guide forensic evidence aggregation across intermediate reconstruction states. It represents the reconstruction trajectory produced by a frozen multiscale VQ-VAE in the shared feature space of a frozen CLIP encoder. To connect the observed predictability variations with visual evidence, RED learns image-adaptive stage weights from scale-wise token negative log-likelihoods provided by a frozen VAR model. A cross-stage evidence aggregation module then jointly models the original-image representation and the weighted reconstruction features, capturing complementary forensic cues through interactions along the reconstruction trajectory. Experiments on six diverse benchmarks demonstrate that RED achieves the highest average accuracy of 92.5% and average precision of 97.5% among the evaluated methods. Further evaluations show strong robustness to common image degradations, supporting the value of reconstruction evolution for generalizable AI-generated image detection. The code will be made publicly available upon acceptance of this paper.
Wenpeng Mu, Junshan Jin, Tanfeng Sun +2
School of Computer Science, Shanghai Jiao Tong University, Shanghai, China
Visible artifacts are an unreliable cue for detecting generated videos, because newer generators learn to remove them. We instead detect a trace left by the generation pipeline itself. Most video generators decode latents with a 3D causal VAE that groups consecutive frames in time, so the fidelity of generated frames rises and falls periodically with their position in a group. We call this periodic trace VAE Rhythm. Real videos are captured frame by frame and do not have it. To reveal it without training, we propose a phase scan. The scan reconstructs a clip with an off-the-shelf VAE from successive start offsets and measures the periodicity of the reconstruction error across these offsets. We find VAE Rhythm in most of the 39 variants of 31 generators we test, including the closed-source Sora, Kling 3.0 and Seedance 2.0. We use the rhythm as a zero-shot score, as a plug-in for existing detectors and as a data engine that pairs real videos with their VAE reconstructions to train our detector CaDet. On DF26, the training-free rhythm score outperforms all 15 retrained baselines, and as a plug-in it improves all 19 tested detectors by 6.7% to 23.7% AUROC. CaDet achieves the best AUROC on AIGVDBench, DF26 and three 2026 closed-source models, and its variant trained without any generated video still exceeds 90% on AIGVDBench.