Views
No views yet
📄 Paper: RA-Det: Towards Universal Detection of AI-Generated Images via Robustness Asymmetry (arXiv:2603.01544) 💻 Code: github.com/dongdongunique/RA-Det 🏛️ Venue: ICML 2026
⚠️ The statistics-based discrepancy branch needs enough samples per batch for stable covariance estimation. That is why a batch size of 256 (32 per GPU × 8 GPUs) is strongly recommended — smaller batches noticeably degrade accuracy.
| Configuration | ensemble_vitl16_raw_lpd_discrepancy (four-branch ensemble) |
| Backbone | DINOv3 ViT-L/16, frozen (1024-d embeddings) |
| Perturbation module | Differential Robustness Probing (U-Net), ε = 16/255 |
| Detector branches | Semantic (DINOv3) + Discrepancy + Low-level residual (+ L²) |
| Loss | Discrepancy loss (margin = 1.0) + classification loss |
| Training data | ProGAN (Wang2020 format), 0_real/ & 1_fake/ per category |
| Checkpoint file | checkpoint_best.pt (PyTorch state_dict) |
| Framework | PyTorch (torchrun distributed training/eval) |
| License | See the code repository (intended for research use) |
.safetensors model — RA-Det's forward pass requires the DINOv3 backbone plus the DRP U-Net and multi-branch detector defined in the codebase. The intended way to run it is via the official repository.1git clone https://github.com/dongdongunique/RA-Det.git
2cd RA-Det
3pip install -r requirements.txt
4
5# DINOv3 backbone weights -> models/dino/dinov3_vitl16_pretrain.pth
6# DINOv3 source -> models/dinov3_repo (see repo README)1from huggingface_hub import hf_hub_download
2
3ckpt_path = hf_hub_download(
4 repo_id="dongdongunique/RA-Det-Checkpoints",
5 filename="checkpoint_best.pt",
6 repo_type="model",
7)
8print(ckpt_path)paths.py (or set env vars) to point at your data in Wang2020 format:1PROGAN_TRAIN_DATA_PATH = "/path/to/progan_train" # .../airplane/{0_real,1_fake}/...
2AIGCTEST_DATA_PATH = "/path/to/AIGCTestset/test" # progan/, stable_diffusion_v_1_4/, DALLE2/, ...bash scripts/validate.sh --gpus 8 --checkpoint /path/to/checkpoint_best.pt1torchrun --nproc_per_node=8 train.py \
2 --config ensemble_vitl16_raw_lpd_discrepancy \
3 --eps 0.06274509803921569 \
4 --margin 1.0 \
5 --four-branch-ensemble \
6 --normalize-loss \
7 --validate-checkpoint /path/to/checkpoint_best.pt1# 8 GPUs, recommended batch size 256 (32/GPU), eps=16/255, margin=1.0
2bash scripts/main.sh --gpus 8 --niter 1| Parameter | Default | Note |
|---|---|---|
--eps | 16/255 (0.0627) | Perturbation budget |
--margin | 1.0 | Discrepancy-loss margin |
--niter | 1 | Training epochs |
--gpus | 8 | GPUs for torchrun |
| Batch size | 256 | Required for stable discrepancy statistics |
1@misc{wang2026radetuniversaldetectionaigenerated,
2 title={RA-Det: Towards Universal Detection of AI-Generated Images via Robustness Asymmetry},
3 author={Xinchang Wang and Yunhao Chen and Yuechen Zhang and Congcong Bian and Zihao Guo and Xingjun Ma and Hui Li},
4 year={2026},
5 eprint={2603.01544},
6 archivePrefix={arXiv},
7 primaryClass={cs.CV},
8 url={https://arxiv.org/abs/2603.01544},
9}