[CVPR Findings 2026] PRADA: Probability-Ratio-Based Attribution and Detection of Autoregressive-Generated Images
2
stars
5
commits
Python
primary language
Jul 13, 2026
updated
Simon Damm, Jonas Ricker, Henning Petzka, and Asja Fischer (Ruhr University Bochum)
Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Findings, 2026
This repository contains the official implementation of PRADA and information on how to use the DARG dataset.
We recommend using uv. Once installed, you can recreate our environment by running
uv sync
from within the root directory.
Depending on your environment, you might have to make changes to pyproject.toml to select the right PyTorch version.
Our dataset can be downloaded from Zenodo. In total, It contains 155,000 images from 20 autoregressive image generators.
Note: The evaluation in the paper uses a reduced subset.
Generating your own images: If you need more images or would like to reproduce our dataset, please refer to scripts/generate_images.py.
uv run scripts/prepare_imagenet.py path/to/imagenet/val to recreate out subset of 10000 images.RAISE_1k.csv from the RAISE-1k website and run uv run scripts/prepare_raise1k.py path/to/RAISE_1k.csv to download and convert the images.To reproduce our results for class-to-image models, run
uv run predict.py --real-image-dir data/darg/c2i/real --fake-image-dirs "['data/darg/c2i/hmar_d20','data/darg/c2i/hmar_d30','data/darg/c2i/llamagen_b256','data/darg/c2i/llamagen_l256','data/darg/c2i/rar_l','data/darg/c2i/rar_xxl','data/darg/c2i/var_d20','data/darg/c2i/var_d30']" --mode c2i --train-size 250 --output-root results/c2i
To reproduce our results for text-to-image models, run
uv run predict.py --real-image-dir data/darg/t2i/real --fake-image-dirs "['data/darg/t2i/infinity_2b','data/darg/t2i/janus_1b','data/darg/t2i/llamagen_xlstage2','data/darg/t2i/switti_1024']" --mode t2i --train-size 250 --output-root results/t2i
These commands will automatically use our pre-trained score functions.
Code in src/external contains external repositories (with slight modifications for fixing imports) that are subject to their own licenses:
If you find this repository or the DARG dataset helpful, please cite our work as follows:
@InProceedings{Damm_2026_CVPR,
author = {Damm, Simon and Ricker, Jonas and Petzka, Henning and Fischer, Asja},
title = {PRADA: Probability-Ratio-Based Attribution and Detection of Autoregressive-Generated Images},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Findings},
month = {June},
year = {2026},
pages = {6506-6516}
}
5 commits
Python
100.0%
[CVPR Findings 2026] PRADA: Probability-Ratio-Based Attribution and Detection of Autoregressive-Generated Images
2
stars
5
commits
Python
primary language
Jul 13, 2026
updated
Simon Damm, Jonas Ricker, Henning Petzka, and Asja Fischer (Ruhr University Bochum)
Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Findings, 2026
This repository contains the official implementation of PRADA and information on how to use the DARG dataset.
We recommend using uv. Once installed, you can recreate our environment by running
uv sync
from within the root directory.
Depending on your environment, you might have to make changes to pyproject.toml to select the right PyTorch version.
Our dataset can be downloaded from Zenodo. In total, It contains 155,000 images from 20 autoregressive image generators.
Note: The evaluation in the paper uses a reduced subset.
Generating your own images: If you need more images or would like to reproduce our dataset, please refer to scripts/generate_images.py.
uv run scripts/prepare_imagenet.py path/to/imagenet/val to recreate out subset of 10000 images.RAISE_1k.csv from the RAISE-1k website and run uv run scripts/prepare_raise1k.py path/to/RAISE_1k.csv to download and convert the images.To reproduce our results for class-to-image models, run
uv run predict.py --real-image-dir data/darg/c2i/real --fake-image-dirs "['data/darg/c2i/hmar_d20','data/darg/c2i/hmar_d30','data/darg/c2i/llamagen_b256','data/darg/c2i/llamagen_l256','data/darg/c2i/rar_l','data/darg/c2i/rar_xxl','data/darg/c2i/var_d20','data/darg/c2i/var_d30']" --mode c2i --train-size 250 --output-root results/c2i
To reproduce our results for text-to-image models, run
uv run predict.py --real-image-dir data/darg/t2i/real --fake-image-dirs "['data/darg/t2i/infinity_2b','data/darg/t2i/janus_1b','data/darg/t2i/llamagen_xlstage2','data/darg/t2i/switti_1024']" --mode t2i --train-size 250 --output-root results/t2i
These commands will automatically use our pre-trained score functions.
Code in src/external contains external repositories (with slight modifications for fixing imports) that are subject to their own licenses:
If you find this repository or the DARG dataset helpful, please cite our work as follows:
@InProceedings{Damm_2026_CVPR,
author = {Damm, Simon and Ricker, Jonas and Petzka, Henning and Fischer, Asja},
title = {PRADA: Probability-Ratio-Based Attribution and Detection of Autoregressive-Generated Images},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Findings},
month = {June},
year = {2026},
pages = {6506-6516}
}
5 commits
Python
100.0%