SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.09647 · 2024

C2P-CLIP: Injecting Category Common Prompt in CLIP to Enhance Generalization in Deepfake Detection

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2408.09647.json · badge: /api/ran/2408.09647.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
chuangchuangtan/c2p-clip-deepfakedetection canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
create_logger Ran
ran; our contract draft was wrong, not the code
chuangchuangtan/c2p-clip-deepfakedetection/utils/logger.py
pointer only (licence: NONE) · get_code("f839584065da54aa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chuangchuangtan/c2p-clip-deepfakedetection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate2 Ran
ran; our contract draft was wrong, not the code
chuangchuangtan/c2p-clip-deepfakedetection/networks/decode_clipfeature_image.py
pointer only (licence: NONE) · get_code("e33b112514a9e4b0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chuangchuangtan/c2p-clip-deepfakedetection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_clip_model Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
chuangchuangtan/c2p-clip-deepfakedetection/networks/decode_clipfeature_image.py
pointer only (licence: NONE) · get_code("0eb85b162e25a879")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chuangchuangtan/c2p-clip-deepfakedetection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

unnormalize Ran
ran; our contract draft was wrong, not the code
chuangchuangtan/c2p-clip-deepfakedetection/utils/util.py
pointer only (licence: NONE); the stored copy get_code serves, from yzy-stack/effort-aigi-detection, is pointer only (licence: NONE) · get_code("7742460f647f9ca2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chuangchuangtan/c2p-clip-deepfakedetection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_text Not yet run
unverified (harvested, no recorded run)
chuangchuangtan/c2p-clip-deepfakedetection/networks/decode_clipfeature_image.py
pointer only (licence: NONE) · get_code("8ce1a73d6b1c51e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, chuangchuangtan/c2p-clip-deepfakedetection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
generate2 4 other papers
3 dated earlier, 1 later
2111.09734 (2021-11)
ClipCap: CLIP Prefix for Image Captioning
2211.11694 (2022-11)
Exploring Discrete Diffusion Models for Image Captioning
2309.17430 (2023-09)
FACTS: First Amplify Correlations and Then Slice to Discover Bias
and 1 more not named here
unnormalize 2 other papers
1 dated earlier, 1 later
1906.05856 (2019-06)
Detecting Photoshopped Faces by Scripting Photoshop
2411.15633 (2024-11)
Orthogonal Subspace Decomposition for Generalizable AI-Generated Image Detection

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This work focuses on AIGC detection to develop universal detectors capable of identifying various types of forgery images. Recent studies have found large pre-trained models, such as CLIP, are effective for generalizable deepfake detection along with linear classifiers. However, two critical issues remain unresolved: 1) understanding why CLIP features are effective on deepfake detection through a linear classifier; and 2) exploring the detection potential of CLIP. In this study, we delve into the underlying mechanisms of CLIP's detection capabilities by decoding its detection features into text and performing word frequency analysis. Our finding indicates that CLIP detects deepfakes by recognizing similar concepts (Fig. \ref{fig:fig1} a). Building on this insight, we introduce Category Common Prompt CLIP, called C2P-CLIP, which integrates the category common prompt into the text encoder to inject category-related concepts into the image encoder, thereby enhancing detection performance (Fig. \ref{fig:fig1} b). Our method achieves a 12.41\% improvement in detection accuracy compared to the original CLIP, without introducing additional parameters during testing. Comprehensive experiments conducted on two widely-used datasets, encompassing 20 generation models, validate the efficacy of the proposed method, demonstrating state-of-the-art performance. The code is available at \url{https://github.com/chuangchuangtan/C2P-CLIP-DeepfakeDetection}

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2408.09647")
get_code_for_paper("2408.09647")
have("2408.09647")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2408.09647.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2408.09647.svg)](https://syntology.ai/paper/2408.09647)

Connect an agent — have() is free.