[2026.05.01] Our paper was accepted to ICML 2026! 🎉
[2026.02.25] We released the ArXiv paper. 🚀
TL;DR
While prior work improves AIGI detection by combining artifact and semantic features in MLLMs, we find that artifact features often suffer from high intra-feature similarity, causing uniform attention and ineffective fusion. To address this attention dilution problem, we propose TranX-Adapter, a lightweight fusion module that combines task-aware optimal-transport fusion and cross-attention-based X-Fusion to enable bidirectional interaction between artifact and semantic features.
🔧 Installation
Clone this repository and navigate into the codebase
i. If you want to train on RRDataset, you need to set the input image resolution to 512x512 (./ms-swift/swift/llm/template/template/qwen.py line 637 and ./ms-swift/swift/llm/template/templatellava.py line192).
ii. We found that if the model is trained directly on GenImage Sdv1.4, the MLLM tends to overfit to the input image resolution. Therefore, we recommend training with real and fake images that have the same resolution. We use the BiasFree part (SD2.1_selfconditioned_origBG.zip and COCO_real_512.zip) to prevent the model from overfitting to image resolution. We recommend downloading the data from the official link.
iii. We found that MLLM training converges quickly and also overfits rapidly. Therefore, we recommend using a checkpoint from the middle of training.
📈 Evaluation
Modify the LMUData in ./VLMEvalKit/scripts/run_task.sh
You need to modify LMUData to the absolute path of Dataset.
Modify DATASET_URL and DATASET_MD5 in ./VLMEvalKit/vlmeval/dataset/aigc_detection.py.
Replace DATASET_URL with the absolute path of the CSV file, and fill in DATASET_MD5 with the MD5 value computed earlier.
If you use TranX-Adapter in your research, please cite our work:
@inproceedings{wang2026tranx,
title={TranX-Adapter: Bridging Artifacts and Semantics within MLLMs for Robust AI-generated Image Detection},
author={Wang, Wenbin and Huang, Yuge and Xu, Jianqing and Yu, Yue and Yan, Jiangtao and Ding, Shouhong and Zhou, Pan and Luo, Yong},
booktitle={Forty-third International Conference on Machine Learning},
url={https://arxiv.org/abs/2602.21716}
}