Language Priors without Language: A Frozen LLM Layer for Generated Image Detection
Anonymous authors
ICLR 2027
Abstract. Generated image detection increasingly relies on frozen vision-language models such as CLIP, whose features generalize well across generators but are learned through global image-text alignment and remain limited in modeling semantic relationships among image regions and structural consistency. As modern generators suppress low-level artifacts, high-level cues such as semantic and structural anomalies become decisive. We observe that large language models (LLMs) acquire, through autoregressive pretraining, precisely the ability that CLIP lacks: organizing semantic relationships and contextual dependencies among tokens. We therefore propose to treat a single frozen decoder layer of a pretrained LLM as a semantic relation enhancement module for visual tokens. The layer re-encodes the CLIP tokens within the relational structure learned from language, without any language prompts or textual inputs, while both CLIP and the LLM remain frozen and only about 4.3M parameters are trained. Trained on a single generator, our detector reaches 91.55% accuracy and 99.38% average precision across 13 GAN and diffusion generators, surpassing the strongest prior detector by 3.05 accuracy points, and it generalizes to recently released diffusion and autoregressive generators with 98.43% accuracy.
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 paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 25 Nov 2026, 10:32 UTC.
- Rating
- 3/4(+1)
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
The paper proposes a detector for generated-images. The method is about inserting a frozen pretrained LLM layer between a frozen CLIP image encoder and a lightweight classifier. It achieves performance gains (about +3 to +4 accuracy points) and is supported by ablations and visualizations. The claim is that the improvements come from language-derived relational priors rather than generic pretrained-transformer effects.
Strengths
The method is simple and practically attractive. One frozen LLM layer, frozen CLIP, and only 4.3M trainable parameters.
Cross-generator results are good under multiple source-target shifts.
In the ablations, there are the interesting comparisons. E.g. capacity-matched MLP, random transformer, class-token-only, and multiple-LLM comparisons.
The paper is transparent about gains and what is hard. It mentions Midjourney, ADM, and VAR as difficult cases; that is honest.
Weaknesses
The core idea was already established by Pang et al. (2024): project visual tokens into a frozen pretrained LLM transformer block, remove causal/rotary text assumptions, and use the block as a visual encoder layer. The current paper applies this recipe to generated-image detection, freezes CLIP, adds attention LoRA, and gives task-specific analysis. I wonder whether this is sufficient to be interesting for an ICLR audience. A comparison with a task-adapted Pang-baseline would make the merit of the paper stronger.
The paper mentions a lot of times the importance of relational modeling. I can see that it's important. However, I wonder if the paper really pins down that this it the main driver for the good results. E.g. one ablation changes two things at the same time, making it impossible to distinguish the causing effect. The other ablation with the random transformer shows mainly that pretraining matters, which is not surprising, and not as an argument for relations in (generated) images.
Several related works are absent from the main comparisons. E.g. Community Forensics, AntiFakePrompt, and others. Even if protocols or code availability prevent direct inclusion or comparison, the paper would be stronger with a discussion on qualitative differences and some reimplementation or comparison by other means.
The discussion of CLIP models in the related work makes them appear incapable of relational modeling. That conclusion is too broad. CLIP-based methods may alter token interactions, incorporate local features, etc.
Questions for the authors
Why are Community Forensics, bias-free training, Breaking Semantic Artifacts, C2P-CLIP, and other recent detectors not included in the main tables? Which cannot be evaluated under the exact protocols, and why?
Can you include a task-adapted Pang-baseline to evaluate the additions in this paper?
How does performance change under JPEG compression, resizing, cropping, screenshots, blur, and common social-media processing? Can a threshold selected on the source domain transfer under these perturbations?
Please report low-FPR operating points and calibration metrics. Given near-saturated AP but lower fixed-threshold accuracy, how much of the gain is ranking versus calibration?
4 comments
Response to Reviewer PpTn (Part 2/3: Relational Mechanism & Recent Detector Baselines)
W2: Isolating Relational Token Interaction from Patch Information Access
You rightly noted that moving from Row 3 ( only) to Row 4 (all tokens) in Tab. 6 changes two things simultaneously: gains access to patch features and weights them via pretrained content-based attention. To separate these two factors (App. D.2, Tab. 18), we add two intermediate controls: Uniform attention (same pretrained TinyLlama layer and tokens, but attention weights fixed to ) and MLP + patch mean (feeding the concatenation of and the mean patch token into the capacity-matched MLP):
| Re-encoder (Protocol I, ACC / AP %) | Only | + Patch Tokens, Uniform Weights | + Patch Tokens, Content Attention |
|---|---|---|---|
| Capacity-matched MLP | 85.92 / 96.10 | 87.32 / 97.80 | — |
| Pretrained TinyLlama layer | 88.95 / 98.54 | 89.57 / 98.68 | 91.55 / 99.38 |
Within the ACC / AP step of Tab. 6 (Row 3$\to$4), uniform access to all patches accounts for only ACC / AP, whereas content-based pretrained attention contributes ACC (76% of the step) and AP (83%). Giving patch means to the MLP reaches only 87.32% ACC.
We also fully agree that cross-token interaction is not the sole driver of the total ACC gain over linear probing: token-wise re-encoding of contributes ACC, uniform patch access ACC, and content-based attention ACC. Notably, both components depend on language pretraining: in App. D.1 (Tab. 16), adding patch interaction lowers AP for DINOv2-g () and MetaCLIP-H () but raises AP across all three language blocks ( to ). We have revised Secs. 1 and 3.2 to precisely define relational modeling in our single-layer readout (Eq. 4) as content-based cross-token evidence aggregation and to state both complementary gains transparently.
W3 & Q1: Comparisons with Recent Detectors and Protocol Compatibility
Using official code, released weights, and default thresholds, we evaluate the four available methods on the Protocol I test manifest (13 generators, real + fake per set; App. E.1, Tab. 22):
| Method | Training Data | Seen P1 Test Generators | Diffusion (7) | GAN (6) | Overall (13) |
|---|---|---|---|---|---|
| Ours | GenImage SDv1.4 | SDv1.4 only | 91.17 / 99.46 | 91.99 / 99.28 | 91.55 / 99.38 |
| C2P-CLIP (AAAI'25) | GenImage SDv1.4 (official) | SDv1.4 only | 96.37 / 99.11 | 69.43 / 80.82 | 83.93 / 90.67 |
| B-Free (arXiv'24) | COCO + SD2.1 inp. (361k) | None | 91.74 / 97.88 | 86.99 / 93.60 | 89.55 / 95.90 |
| AntifakePrompt (arXiv'23) | COCO + SD3/SD2-inp./LaMa (~180k) | None | 81.14 / 90.96 | 66.82 / 88.51 | 74.53 / 89.83 |
| Comm. Forensics (224px) | 4,803 generators (5.4M) | 6 of 13 (+2 same arch.) | 94.42 / 99.04 | 96.68 / 99.82 | 95.47 / 99.40 |
| Comm. Forensics (384px) | 4,803 generators (5.4M) | 6 of 13 (+2 same arch.) | 96.91 / 99.89 | 98.09 / 99.93 | 97.45 / 99.91 |
Protocol compatibility:
- Exact Protocol I:
C2P-CLIPprovides official GenImage SDv1.4 weights; it achieves higher ACC on seen-family diffusion sets (96.37% vs. 91.17%, though lower AP: 99.11% vs. 99.46%) but degrades sharply on unseen GANs (69.43% / 80.82%), trailing our method by 7.62 ACC / 8.71 AP overall. - Data-centric / VQA paradigms (grouped separately): For
B-Free(~300k SD2.1 content-aligned inpainted COCO pairs),AntifakePrompt(multi-source VQA prompt tuning of a 7B VLM), andCommunity Forensics(5.4M images across 4,803 generators), dataset construction is core to the method, so retraining on plain SDv1.4 breaks their design. Trained on a single generator, our model still outperformsB-Free(+2.00 ACC / +3.48 AP) andAntifakePrompt(+17.02 ACC / +9.55 AP).Community Forensicsattains higher overall accuracy because its training set directly includes 6 of the 13 test generators (SDv1.4, SDv1.5, ADM, GLIDE, VQDM, BigGAN), 2 same-architecture families (ProGAN, StyleGAN), and ImageNet real images; on the 5 test generators unseen by its training set (Wukong, Midjourney, CycleGAN, StarGAN, GauGAN), our single-source model matches its 224px ranking performance (99.48% vs. 99.42% AP; 384px: 99.90% AP), trailing only in fixed-threshold ACC (93.28% vs. 95.24%). - Breaking Semantic Artifacts (Zheng et al., 2024): Neither checkpoints, custom DiffusionDB/LAION splits, nor a required model definition file in the public repo are available, preventing faithful numerical reproduction; we discuss it qualitatively in Sec. 2 and App. E.1.
Response to Reviewer PpTn (Part 3/3: Post-Processing Robustness, Low-FPR & Calibration)
Q3: Post-Processing Robustness and Source-Domain Threshold Transfer
We evaluate 5 CLIP-based detectors (all trained with standard blur+JPEG augmentation) across 23 perturbations on all 13 Protocol I sets (Sec. 4.5, Tab. 11; App. F, Tabs. 27–28; setup details in our reply to bPUv):
| Perturbation (13-set ACC / AP %) | Ours | Effort | VIB-Net | UnivFD | C2P-CLIP |
|---|---|---|---|---|---|
| Clean (aug-trained, 1k+1k split) | 86.42 / 97.28 | 85.33 / 96.52 | 88.38 / 95.11 | 65.30 / 85.97 | 83.94 / 90.68 |
| JPEG () | 76.13 / 91.28 | 68.87 / 86.98 | 74.69 / 83.78 | 57.23 / 81.14 | 58.74 / 66.94 |
| Resize (25/50/75%) | 76.72 / 87.42 | 74.08 / 81.18 | 71.02 / 76.92 | 66.21 / 72.53 | 52.28 / 69.19 |
| Blur () | 72.68 / 81.82 | 68.55 / 76.06 | 67.06 / 72.49 | 60.16 / 67.10 | 52.74 / 63.95 |
| Crop (3 settings) | 73.88 / 90.25 | 73.92 / 90.05 | 77.98 / 84.08 | 66.06 / 83.94 | 79.92 / 86.26 |
| Screenshot () | 76.22 / 91.66 | 78.38 / 89.88 | 77.76 / 84.79 | 71.26 / 81.98 | 70.64 / 85.81 |
| Social media | 66.61 / 79.00 | 59.91 / 74.59 | 69.80 / 77.59 | 60.25 / 79.90 | 63.02 / 67.12 |
| Mean over all 23 settings | 75.74 / 88.34 | 73.32 / 84.27 | 75.00 / 81.17 | 61.96 / 76.93 | 64.05 / 74.01 |
Across all 23 perturbations, our detector ranks 1st in both mean AP (88.34% vs. Effort's 84.27%) and mean ACC (75.74% vs. VIB-Net's 75.00%), winning both metrics on JPEG, resize, and blur (+4.30 to +6.24 AP over Effort). While our AP also leads on crop and screenshot scaling, fixed-threshold ACC varies across individual perturbations (e.g., C2P-CLIP on crop, VIB-Net on social media), motivating the threshold-transfer test below.
Threshold transfer on perturbed SDv1.4 validation set ( images) vs. fixed (ACC %, App. F, Tab. 28):
| Policy | Clean | JPEG | Resize | Blur | JPEG$\to$Blur | Noise | Jitter | Social | Crop | Screen. |
|---|---|---|---|---|---|---|---|---|---|---|
| Fixed | 86.42 | 76.13 | 76.72 | 72.68 | 71.81 | 74.20 | 86.15 | 66.61 | 73.88 | 76.22 |
| Source-tuned | 79.66 | 80.58 | 75.98 | 72.14 | 73.31 | 80.23 | 83.42 | 67.58 | 73.13 | 75.52 |
Re-selecting on identically perturbed source images helps when a perturbation shifts all logits unidirectionally (Noise , JPEG ACC), but offers limited benefit otherwise because source SDv1.4 classes are nearly perfectly separated (ACC 100%), leaving a wide margin that weakly constrains cross-domain thresholds.
Q4: Low-FPR Operating Points and Ranking vs. Calibration
In App. E.2 (Tabs. 23–24), we separate per-set ranking (Opt. ACC, TPR@1%/5%FPR) and calibration (ECE, Brier) from deployment threshold transfer (Src-TPR, Src-FPR: locking at 5% FPR on SDv1.4 real validation images across all test sets):
| Method (All 13 / 6 GANs) | Opt. ACC | TPR@1% | TPR@5% | ECE | Brier | Src-TPR | Src-FPR |
|---|---|---|---|---|---|---|---|
| Ours | 97.67 (97.19) | 92.46 (91.67) | 98.09 (97.80) | 10.67 (8.82) | 10.02 (8.14) | 98.76 (99.18) | 12.12 (20.27) |
| Effort | 95.76 (94.14) | 82.16 (73.78) | 93.57 (89.68) | 9.64 (8.90) | 7.88 (7.89) | 98.32 (98.75) | 18.98 (33.37) |
| VIB-Net | 92.20 (89.37) | 70.73 (63.88) | 86.60 (81.27) | 10.29 (10.33) | 9.58 (10.72) | 93.89 (95.10) | 19.71 (35.65) |
| UnivFD | 74.28 (65.11) | 18.98 (1.57) | 35.62 (8.12) | 25.15 (27.35) | 25.76 (31.41) | 56.22 (51.35) | 17.85 (32.25) |
| C2P-CLIP | 88.33 (77.68) | 53.32 (16.52) | 71.40 (40.77) | 4.58 (1.57) | 23.57 (24.34) | 97.42 (97.27) | 31.41 (62.55) |
Removing calibration via Opt. ACC, our method still leads (97.67% vs. Effort's 95.76%). While AP is near-saturated, at 1% FPR our recall exceeds Effort by +10.30 points overall and +17.89 points on unseen GANs (91.67% vs. 73.78%), whereas ECE/Brier match Effort and VIB-Net—confirming our gain comes from superior ranking (especially in the low-FPR tail) rather than calibration. Under the source-locked 5%-FPR threshold, our detector simultaneously achieves the highest Src-TPR (98.76%) and lowest Src-FPR (12.12% vs. 17.85–31.41% for baselines). Notably, realized FPR stays near target (5.1%) across the 7 GenImage sets (ImageNet real) but rises to 20.27% on the 6 GAN sets (LSUN/CelebA/COCO real; 32.25–62.55% for all baselines): source thresholds transfer across generators, but drift across real-image sources.
Reply to Rebuttal
It is a good rebuttal, which addresses my earlier concerns and answers questions. I have also looked at the other reviews, they are positive, and I now agree. I have increased my score.
In the rebuttal, I appreciated the added nuance. The authors discuss the changes relative to the similar prior work Peng et al. (2024). They improved one ablation where two things changed at the same time, now they separated them. A comparison with other works was added. The authors added a discussion on related works that I missed before. They also discuss CLIP models with more nuance.
- Rating
- 3/4
- Confidence
- 4/4
- Soundness
- 2/3
- Presentation
- 3/3
- Informativeness
- 3/3
Read review
Summary
This paper proposes a generated-image detector that enhances frozen CLIP visual representations using a single pretrained LLM decoder layer without textual inputs. CLIP patch tokens are projected into the LLM hidden space, processed through bidirectional attention, and mapped back for binary classification. The CLIP encoder and pretrained LLM weights remain frozen, while lightweight projection layers, LoRA adapters, and a classification head are trained.
The central hypothesis is that relational representations acquired during language pretraining can improve the modeling of semantic and structural inconsistencies in generated images. Experiments across three generalization protocols demonstrate improvements over existing detectors, achieving 91.55% accuracy on 13 GAN and diffusion generators and 98.43% accuracy on emerging generators. Ablation studies examine the contributions of pretrained weights, token interactions, adaptation strategies, and LLM architectures.
Strengths
-
Effective use of pretrained LLM representations for visual forensics. The paper demonstrates that a single pretrained LLM layer can substantially improve generated-image detection without language prompts or text decoding. The approach is computationally attractive in terms of trainable parameters, and the consistent improvements across different pretrained LLMs suggest that the benefits are not specific to a particular language model. This provides an interesting direction for transferring pretrained language representations to visual discriminative tasks.
-
Strong cross-generator evaluation and informative ablations. The evaluation considers several training and testing protocols, including generalization between GAN and diffusion generators and transfer to autoregressive generators unseen during training. The ablations comparing pretrained layers, randomly initialized layers, capacity-matched MLPs, and class-token-only processing help identify which components contribute to the observed improvements. These experiments substantially strengthen the empirical contribution.
Weaknesses
-
The contribution of language-specific pretraining remains insufficiently isolated. Although the ablations demonstrate that pretrained LLM weights outperform random initialization and capacity-matched MLPs, they do not conclusively establish that the improvement specifically originates from relational knowledge acquired through language pretraining. In particular, a comparison with a pretrained visual Transformer block or another pretrained attention module that processes the same CLIP patch tokens is missing. The current results support the usefulness of pretrained LLM layers, but they provide weaker evidence for the stronger claim that language-derived relational priors are the essential mechanism.
-
The evaluation does not establish robustness under realistic image transformations. The experiments focus on clean benchmark images, while generated-image detection in practical settings frequently involves JPEG compression, resizing, cropping, and other post-processing operations. The paper explicitly acknowledges that post-processing robustness has not been evaluated. Since the proposed method is intended to identify high-level inconsistencies rather than low-level generation artifacts, demonstrating whether its improvements persist under such transformations would be important for assessing the practical significance of the contribution.
Questions for the authors
-
Could the authors compare the proposed pretrained LLM layer against a pretrained visual Transformer block or another pretrained attention module with comparable computational capacity and access to the same patch tokens? This would help clarify whether the improvements are attributable specifically to language pretraining or to pretrained attention-based feature refinement more generally.
-
How does the detector perform under common post-processing transformations, particularly JPEG compression and image resizing? Does the advantage over existing CLIP-based detectors remain consistent when these transformations are applied to unseen-generator test images?
3 comments
Response to Reviewer CAFC (Part 1/2: Language vs. Visual/Multimodal Pretrained Blocks)
We thank Reviewer CAFC for recognizing our promising cross-modal transfer direction, parameter efficiency, cross-generator generalization, and controlled ablations. We reply in two parts (Part 1: W1/Q1; Part 2: W2/Q2): pretrained visual/multimodal block comparisons are in App. D.1 (Tab. 16), and post-processing robustness in Sec. 4.5 (Tab. 11) and App. F (Tabs. 25–26) of the revised PDF (in blue).
W1 & Q1: Language-Pretrained Layer vs. Pretrained Visual and Multimodal Transformer Blocks
If our gains came merely from inserting a sufficiently large pretrained attention block, then replacing the LLM layer with a comparably sized pretrained visual or vision-language block, fed the exact same CLIP patch tokens, should work equally well. To test this directly (App. D.1, Tab. 16), we replace the TinyLlama block with pretrained Transformer blocks from pure text (autoregressive and masked LM), image-text contrastive learning, and self-supervised visual pretraining, keeping the surrounding projections, LoRA rank, and readout identical. For each block, we also train a class-token-only ( only) variant. Since a single token cannot attend across patches, the gap () strictly isolates the gain from cross-token interaction.
| Inserted Block (Protocol I, 13-set mean) | Pretraining Objective | Dim | Block Params | All Tokens () | Only | Token Interaction () |
|---|---|---|---|---|---|---|
| TinyLlama-1.1B (Ours) | Text, autoregressive | 2048 | 44.0M | 91.55 / 99.38 | 88.95 / 98.54 | / |
| Llama-3.1-8B | Text, autoregressive | 4096 | 218.1M | 91.22 / 99.47 | 89.43 / 98.45 | / |
| BERT-large | Text, masked LM | 1024 | 12.6M | 89.21 / 98.97 | 88.81 / 97.58 | / |
| EVA-CLIP-8B | Image-text, contrastive | 4096 | 234.9M | 88.40 / 98.07 | 87.98 / 97.56 | / |
| MetaCLIP-H | Image-text, contrastive | 1280 | 19.7M | 87.60 / 97.32 | 87.87 / 97.83 | / |
| DINOv2-g | Image-only, self-sup. | 1536 | 28.3M | 87.67 / 96.47 | 86.16 / 96.87 | / |
The results divide cleanly by pretraining modality rather than scale or generic attention refinement:
- Consistent modality gap at matched capacity: Every language-pretrained block (89.21–91.55% ACC, 98.97–99.47% AP) outperforms every visual and multimodal block (87.60–88.40% ACC, 96.47–98.07% AP). Even at matched width and parameter count—
Llama-3.1-8B(, 218M) vs.EVA-CLIP-8B(, 235M), orBERT-large(, 12.6M) vs.MetaCLIP-H(, 19.7M) andDINOv2-g(, 28.3M)—language blocks lead by +1.5 to +2.8 ACC and +1.4 to +2.5 AP, whereas visual/multimodal blocks barely exceed a randomly initialized layer (86.72% ACC / 96.93% AP in Tab. 6). - Two-level advantage: Language blocks already re-encode better (88.81–89.43% vs. 86.16–87.98% ACC), and admitting patch-token interaction consistently boosts AP across all three language blocks (+0.84 to +1.39 AP; +1.79 to +2.60 ACC for autoregressive LLMs), whereas AP stagnates or drops for visual/contrastive blocks ( to AP). This confirms that the improvement stems from priors learned in language pretraining rather than generic pretrained attention.
Response to Reviewer CAFC (Part 2/2: Post-Processing Robustness on All & Unseen Generators)
W2 & Q2: Post-Processing Robustness on All and Unseen Generators
Following standard robustness evaluation practice (Wang et al., 2020), we train all compared detectors under Protocol I (SDv1.4 only) with Gaussian blur and JPEG augmentation, and evaluate 23 post-processing perturbations across all 13 test sets ( real + fake per set), including the 6 GAN families completely unseen during training (Sec. 4.5, Tab. 11; App. F, Tabs. 25–26).
Per-level JPEG & resizing AP (%) across all 13 Protocol I generators (App. F, Tab. 25):
| Perturbation Level | Ours | Effort | VIB-Net | UnivFD | C2P-CLIP |
|---|---|---|---|---|---|
| JPEG | 93.23 | 90.15 | 86.79 | 83.89 | 69.94 |
| JPEG | 90.89 | 86.55 | 83.06 | 80.57 | 68.13 |
| JPEG | 89.70 | 84.24 | 81.48 | 78.95 | 62.76 |
| Resize 25% | 78.73 | 73.29 | 69.46 | 65.79 | 62.03 |
| Resize 50% | 89.81 | 82.89 | 78.42 | 74.07 | 69.30 |
| Resize 75% | 93.71 | 87.34 | 82.88 | 77.73 | 76.23 |
Mean AP (%) on unseen generator families (6 GAN test sets absent from training; App. F, Tab. 26):
| Perturbation Category (Unseen GANs) | Ours | Effort | VIB-Net | UnivFD | C2P-CLIP |
|---|---|---|---|---|---|
| JPEG () | 85.40 | 81.25 | 78.18 | 69.27 | 55.58 |
| Resize (25/50/75%) | 86.04 | 80.07 | 75.08 | 65.27 | 66.66 |
| Blur () | 78.01 | 72.18 | 66.82 | 60.62 | 58.92 |
| Social media pipeline | 73.31 | 64.55 | 68.34 | 64.08 | 53.67 |
| Crop (3 settings) | 86.77 | 83.42 | 75.84 | 71.55 | 71.92 |
| Screenshot () | 90.80 | 87.00 | 80.98 | 68.13 | 75.73 |
Our detector achieves the highest AP at every JPEG quality and every resize ratio across all 13 sets, as well as the highest overall mean AP across all 23 perturbations (88.34% vs. Effort's 84.27%, Tab. 11). Crucially, on the 6 unseen GAN generators, our lead over the strongest CLIP-based baseline holds firmly across all perturbation types: +4.2 AP under JPEG, +6.0 AP under resizing, +5.8 AP under blur, and +5.0 AP under social-media processing.
I will keep my original score and look forward to seeing the suggested revisions reflected in the final version of the paper.
- Rating
- 3/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 3/3
- Informativeness
- 3/3
Read review
Summary
This paper studies generalizable generated-image detection by reusing language-pretrained representations without textual input. It inserts a single pretrained LLM decoder layer between a frozen CLIP encoder and a binary classifier to re-encode all visual tokens under bidirectional attention. Experiments under three protocols covering GAN, diffusion, and autoregressive generators report strong cross-generator detection performance. Ablations suggest that both the pretrained LLM weights and interactions between the class and patch tokens contribute to the improvements.
Strengths
-
The method is simple and computationally lighter than full MLLM-based forensic systems: it requires no text prompts or decoding and trains only about 4.3M parameters. The strong results across GAN, diffusion, and autoregressive generators demonstrate promising cross-generator generalization.
-
The paper includes useful controlled ablations comparing linear probing, a capacity-matched MLP, class-token-only processing, a randomly initialized Transformer layer, different adaptation strengths, layer depths, and LLM backbones. These experiments provide evidence that the improvement cannot be explained solely by additional trainable capacity.
Weaknesses
-
The results show improved classification and more foreground-focused activations, but do not establish that the model detects semantic or structural inconsistencies rather than residual local artifacts or generator-specific cues. Therefore, the paper’s central explanation for why the LLM layer improves generalization remains insufficiently validated.
-
The evaluation omits common transformations such as JPEG compression, resizing, cropping, blur, and social-media recompression. Since generated images are frequently post-processed in practice, the method’s robustness and practical reliability remain unclear.
Questions for the authors
-
Can the authors evaluate the model on controlled examples containing explicit semantic or structural inconsistencies, or otherwise separate its reliance on high-level relations from low-level generator artifacts?
-
How does performance change under JPEG compression, resizing, cropping, blur, and social-media-style recompression? Do the gains over CLIP-based baselines remain after these transformations?
3 comments
Response to Reviewer bPUv (Part 1/2: Separating High-Level Cues from Low-Level Artifacts)
We thank Reviewer bPUv for recognizing our method's simplicity, efficiency, cross-generator generalization, and controlled ablations. We reply in two parts (Part 1: W1/Q1; Part 2: W2/Q2); all new experiments appear in Sec. 4.5 (Tab. 11) and Appendices D.3 and F (Tabs. 19–21, 25–27) of the revised PDF (in blue).
W1 & Q1: Separating High-Level Relational Cues from Low-Level Artifacts
We do not claim our detector ignores low-level traces. Rather, it uses both low-level traces and higher-level content cues, while the frozen LLM layer reduces reliance on fragile generator-specific artifacts. To separate them, we run three controlled interventions on Protocol I (App. D.3), comparing our model against three internal controls sharing the exact same frozen CLIP ViT-L/14 tokens (trained without data augmentation so robustness training does not confound mechanism analysis): linear probing, -only LLM re-encoding, and uniform-attention LLM re-encoding (weights fixed to ).
1. Suppressing low-level artifacts via low-pass filtering (App. D.3, Tab. 19). Upsampling and noise residuals concentrate in high frequencies (Frank et al., 2020; Liu et al., 2022). If the LLM layer's gain came solely from low-level artifacts, its lead over linear probing should vanish under Gaussian blur or down-up resizing.
| Variant (AP vs. clean) | Blur | Blur | Blur | Resize | Resize |
|---|---|---|---|---|---|
| CLIP + linear probe | |||||
| LLM layer, only | |||||
| LLM layer, uniform attention | |||||
| Ours (full model) |
All variants drop, confirming high-frequency cues help every detector. Yet our full model degrades least in every setting, widening its margin over the three controls by 2.5–9.1 AP points after filtering, whereas the two restricted LLM variants drop 2.1–5.2 points more than linear probing. Thus, the gain tied to content-weighted attention is precisely what survives low-pass filtering.
2. Disrupting spatial layout while preserving local patch artifacts (App. D.3, Tab. 20). Conversely, we split the input into a grid and randomly permute tiles (at , every ViT patch is displaced).
| Variant (AP vs. clean) | ||||
|---|---|---|---|---|
| CLIP + linear probe | ||||
| LLM layer, only | ||||
| LLM layer, uniform attention | ||||
| Ours (full model) |
Disrupting global layout hurts far less than removing high frequencies, and our model again drops least ( AP at ). Since RoPE is disabled, queries patches by content rather than 2D coordinates, still aggregating local evidence after shuffling.
3. Varying semantic plausibility under matched generation traces (App. D.3, Tab. 21). For 600 real images, we inpaint the central quarter twice using the same model, mask, and initial noise seed: once with an original-class object (coherent) and once with the most semantically distant class (incoherent). We report the fraction of pairs where the incoherent edit receives a higher fake score ( = no preference), before and after blur.
| Variant (Pairwise preference) | Unblurred | Blur |
|---|---|---|
| CLIP + linear probe | 0.40 | 0.53 |
| LLM layer, only | 0.67 | 0.60 |
| Ours (full model) | 0.72 | 0.63 |
Linear probing leans opposite () and is near chance after blur (), confirming low-level inpainting traces do not favor incoherent edits. Adding the LLM layer ranks the incoherent edit as more fake in 67–72% of pairs (60–63% after blur), directly isolating sensitivity to semantic plausibility.
Response to Reviewer bPUv (Part 2/2: Robustness to Image Post-Processing)
W2 & Q2: Robustness to Image Post-Processing
In Sec. 4.5 (Tab. 11) and App. F (Tabs. 25–27), we evaluate 23 perturbations across all 13 Protocol I test sets ( real + fake per set): JPEG ( {90, 80, 70}), resize (25/50/75%), blur ( {1, 2, 3}), JPEG$\to$blur (, ), Gaussian noise (std {5, 10, 20}), color jitter (brightness/contrast 0.4, hue 0.1), social media (long-side JPEG ), crop (random 75%/50%, center 50%), and screenshot scaling (). Following standard robustness practice (Wang et al., 2020), all detectors are trained with blur and JPEG augmentation.
| Perturbation (Mean AP %, 13 sets) | Ours | Effort | VIB-Net | UnivFD | C2P-CLIP |
|---|---|---|---|---|---|
| Clean (aug-trained, 1k+1k split) | 97.28 | 96.52 | 95.11 | 85.97 | 90.68 |
| JPEG () | 91.28 | 86.98 | 83.78 | 81.14 | 66.94 |
| Resize (25/50/75%) | 87.42 | 81.18 | 76.92 | 72.53 | 69.19 |
| Blur () | 81.82 | 76.06 | 72.49 | 67.10 | 63.95 |
| JPEG Blur (2 settings) | 83.11 | 76.95 | 73.75 | 69.05 | 63.98 |
| Noise () | 87.38 | 81.35 | 80.28 | 74.23 | 70.65 |
| Color jitter (3 settings) | 96.27 | 94.37 | 93.19 | 83.51 | 88.18 |
| Social media | 79.00 | 74.59 | 77.59 | 79.90 | 67.12 |
| Crop (3 settings) | 90.25 | 90.05 | 84.08 | 83.94 | 86.26 |
| Screenshot () | 91.66 | 89.88 | 84.79 | 81.98 | 85.81 |
| Mean over 23 perturbations (AP) | 88.34 | 84.27 | 81.17 | 76.93 | 74.01 |
| Mean over 23 perturbations (ACC) | 75.74 | 73.32 | 75.00 | 61.96 | 64.05 |
Averaged over all 23 perturbations, our detector ranks 1st in both mean AP (88.34% vs. Effort's 84.27%) and mean ACC (75.74% vs. VIB-Net's 75.00%), achieving the top AP on 20/23 settings (+3.1 to +7.1 AP across all JPEG, resize, blur, and JPEG$\to$blur levels). Under noise/color jitter, our AP stays highest while fixed-threshold scores shift slightly. Under crop/screenshot, Effort and our model perform comparably.
I thank the authors for the detailed response and the additional experiments.
The controlled interventions on filtering, layout permutation and semantic plausibility separate the model's reliance on high-level content cues from low-level generator artifacts, which supports the paper's central claim. The evaluation over a wide range of post-processing perturbations across all Protocol I test sets also resolves my robustness concern.
I maintain my original rating of 3.
Comments on the paper
1 comment
General Response and Summary of Manuscript Revisions
We sincerely thank the Area Chair and all three reviewers (bPUv, CAFC, PpTn) for their constructive feedback and for recognizing our work's promising cross-modal transfer direction, simplicity and parameter efficiency (~4.3M trainable parameters, no text input), cross-generator generalization, and controlled ablations.
We have uploaded a revised PDF (revisions highlighted in blue) adding post-processing robustness to the main text (Sec. 4.5) and detailed mechanistic, baseline, and calibration analyses to Appendices D–F:
- Post-Processing Robustness in Main Text (
bPUvW2/Q2,CAFCW2/Q2,PpTnQ3 — Sec. 4.5, Tab. 11 & App. F, Tabs. 25–28): Across 23 perturbations on all 13 Protocol I test sets, our detector ranks 1st in both mean AP (88.34%) and mean ACC (75.74%), winning 20/23 settings in AP and maintaining clear margins on unseen GANs. - Language-Specific Priors vs. Visual/Multimodal Blocks (
CAFCW1/Q1,PpTnW1/W2 — App. D.1, Tab. 16): Replacing our LLM block with capacity-matched pretrained visual (DINOv2-g) and multimodal (EVA-CLIP-8B,MetaCLIP-H) blocks on identical CLIP tokens shows language blocks (TinyLlama,Llama-3.1-8B,BERT-large) consistently outperform both by +0.8 to +4.0 ACC and +0.9 to +3.0 AP. - Pang et al. Baselines & Relational Mechanism (
PpTnW1/Q2, W2,bPUvW1/Q1 — App. D.2–D.3, Tabs. 17–21): Reproducing Pang et al. (2024) drops accuracy by 7.71–28.23 ACC due to shortcut overfitting on unseen GANs. Uniform-attention controls, low-pass filtering, patch shuffling, and noise-matched semantic inpainting isolate content-based attention and semantic plausibility from low-level artifacts. - Recent Detectors, Low-FPR & Calibration (
PpTnW3/Q1, Q4 — App. E, Tabs. 22–24): We evaluateC2P-CLIP,B-Free,AntifakePrompt, andCommunity Forensics, and show +10.30% TPR@1%FPR (+17.89% on unseen GANs) overEffort.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Reviewer PpTn (Part 1/3: Pang et al. Baselines, Contribution & CLIP Discussion)
We thank Reviewer PpTn for the constructive critique. As your questions span seven new tables, we reply in three parts (Part 1: W1/Q2, W4; Part 2: W2, W3/Q1; Part 3: Q3, Q4). All updates appear in Secs. 1–3, 4.5, and Apps. D–F of the revised PDF (in blue).
W1 & Q2: Task-Adapted Pang et al. (2024) Baselines and Core Contribution
Conceptually, Pang et al. use an LLM block as a general-purpose booster for recognition, where the answer depends on what an image contains. In generated image detection, however, as low-level artifacts fade, the evidence lies increasingly in how the high-level semantic contents of an image relate to one another. This is precisely where frozen CLIP features fall short and what a language-pretrained layer can provide. Image forensics is therefore a natural fit for this idea rather than a routine task transfer.
Methodologically, while we adopt Pang et al.'s removal of causal masking and RoPE to feed visual tokens into an LLM block (credited in Sec. 3.2 and App. A), directly applying Pang et al.'s training paradigm fails to generalize in generated-image detection. In all experiments of Pang et al., the visual backbone is trained jointly with a fully frozen LLM block (either from scratch or by end-to-end fine-tuning of a pretrained encoder, without LoRA). Using the exact same wrapper (
LN→Linear→ LLM block →Linear→ tcls head), we reproduce both Pang et al. settings under Protocol I (App. D.2, Tab. 17):Training from scratch reaches only 63.32% ACC (chance-level 53.78% on unseen GANs). Critically, Pang et al.'s fine-tuned CLIP variant trains 72$\times$ more parameters (307.4M vs. 4.25M) yet trails our method by 7.71 ACC points overall (83.84% vs. 91.55%): it fits the seen diffusion family slightly tighter in AP (99.67% vs. 99.46%) but collapses by −11.99 ACC and −4.10 AP on unseen GANs (80.00% vs. 91.99%).
This contrast highlights a fundamental difference between recognition (Pang et al.'s focus) and forensics: under single-generator binary supervision, updating the visual backbone rapidly overfits source-generator artifacts and content/category biases (Guillaro et al., 2024; Zheng et al., 2024). Freezing CLIP and adapting only attention projections via rank-4 LoRA prevents shortcut collapse and rules out backbone co-adaptation—a confounder Pang et al. explicitly left open. Beyond this necessary design departure, we contribute three forensic analyses absent from prior work:
DINOv2-g) and multimodal (EVA-CLIP-8B,MetaCLIP-H) blocks shows language blocks outperform both by +0.8 to +4.0 ACC and +0.9 to +3.0 AP on identical CLIP tokens.W4: Nuanced Discussion of CLIP-Based Detectors
We agree our original wording was overly broad and have revised Secs. 1, 2, and App. A. CLIP's ViT encoder indeed models token interactions via self-attention, and recent detectors (
Effort,C2P-CLIP,CO-SPY) modify weights or fuse local features. Our revised text scopes the claim accurately: CLIP's global image-text contrastive objective does not explicitly supervise inter-region structural/semantic consistency, and we complement frozen CLIP tokens with an external prior learned from autoregressive sequence modeling.