AGFT: Alignment-Guided Fine-Tuning for Zero-Shot Adversarial Robustness of Vision-Language Models (CVPR 2026)
Yubo Cui · Xianchao Guan · Zijun Xiong · Zheng Zhang
https://arxiv.org/abs/2603.29410
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu126
pip install ftfy regex tqdm
pip install git+https://github.com/openai/CLIP.git
pip install -r requirements.txt
The preparation of the dataset can refer to torchvision.datasets, with the default directory being ../dataset, which can be modified through parameter --root.
CUDA_VISIBLE_DEVICES='1,0' OMP_NUM_THREADS=1 torchrun --nproc_per_node 2 main.py --method='AGFT' --use_float --enable_amp --time='40_180_4' --train_or_val --method_args='{"AGFT": {"logit_scale": 180,"scale_ratio": 0.4}}' --lr=4e-4
CUDA_VISIBLE_DEVICES='1,0' OMP_NUM_THREADS=1 torchrun --nproc_per_node 2 main.py --method='AGFT' --use_float --enable_amp --weight_path='40_180_4_ViT-B_32_AGFT_ImageNet_10.pth' --val_attack='PGD'
CUDA_VISIBLE_DEVICES='1,0' OMP_NUM_THREADS=1 torchrun --nproc_per_node 2 main.py --method='TeCoA' --use_float --enable_amp --time='1' --train_or_val --lr=1e-5
@InProceedings{Cui_2026_CVPR,
author = {Cui, Yubo and Guan, Xianchao and Xiong, Zijun and Zhang, Zheng},
title = {AGFT: Alignment-Guided Fine-Tuning for Zero-Shot Adversarial Robustness of Vision-Language Models},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2026},
pages = {22836-22846}
}