CoolFace
Modelpublic

cyberagent/multimodal-adversarial-training

sourceHugging Facegpl-3.0updated 6mo agoView on Hugging Face
4likes
Model Card

[WACV'26] Multimodal Adversarial Training โ€” Resources

This repository hosts model checkpoints and data resources for the paper:

Multimodal Adversarial Defense for Vision-Language Models by Leveraging One-To-Many Relationships Futa Waseda, Antonio Tejero-de-Pablos, Isao Echizen IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 2026

For the source code and training scripts, please refer to the GitHub repository: ๐Ÿ‘‰ https://github.com/CyberAgentAILab/multimodal-adversarial-training

๐Ÿ“˜ Overview

This work proposes Multimodal Adversarial Training (MAT) for Vision-Language Models (VLMs). MAT is a unified adversarial training pipeline for image-text retrieval models. The extended version, MAT+, additionally leverages one-to-many relationships in image-text pairs to improve robustness.

Highlights

  • โ€”Unified MAT pipeline for image-text retrieval models (CLIP, ALBEF, BLIP).
  • โ€”MAT+ leverages one-to-many relationships in image-text pairs.
  • โ€”Reproducible results on Flickr30k and COCO benchmarks.

๐Ÿ“˜ Directory structure

resources/
โ”œโ”€โ”€ checkpoints/                          # MAT/MAT+ model checkpoints
โ”‚     โ”œโ”€โ”€ ALBEF_flickr_MAT_HumanCaps.pth
โ”‚     โ”œโ”€โ”€ BLIP_flickr_MAT_HumanCaps.pth
โ”‚     โ”œโ”€โ”€ CLIP_B_coco_MAT_HumanCaps.pth
โ”‚     โ”œโ”€โ”€ CLIP_B_coco_MAT_base.pth
โ”‚     โ””โ”€โ”€ CLIP_B_flickr_MAT_HumanCaps.pth
โ””โ”€โ”€ augmentations/                        # Data augmentations for MAT+
      โ”œโ”€โ”€ dataset_json.zip                # Text augmentation annotations
      โ””โ”€โ”€ flickr_SD_I2I_0.5.zip          # Image augmentations (SD img2img)

๐Ÿ“˜ Checkpoints

Adversarially trained model checkpoints for image-text retrieval:

FileModelDatasetVariant
ALBEF_flickr_MAT_HumanCaps.pthALBEFFlickr30kMAT + HumanCaps
BLIP_flickr_MAT_HumanCaps.pthBLIPFlickr30kMAT + HumanCaps
CLIP_B_coco_MAT_HumanCaps.pthCLIP ViT-BCOCOMAT + HumanCaps
CLIP_B_coco_MAT_base.pthCLIP ViT-BCOCOMAT (base)
CLIP_B_flickr_MAT_HumanCaps.pthCLIP ViT-BFlickr30kMAT + HumanCaps

The base models used for training are:

๐Ÿ“˜ Augmentations

Data augmentations used to reproduce MAT+ results:

FileDescription
dataset_json.zipText augmentation data โ€” augmented captions and annotations in JSON format
flickr_SD_I2I_0.5.zipImage augmentation data โ€” Flickr30k images augmented via Stable Diffusion image-to-image (strength 0.5)

๐Ÿ“˜ Usage

  1. 1.Clone or download this repository:
bash
   # Using the Hugging Face CLI
   hf download cyberagent/multimodal-adversarial-training --local-dir ./resources

   # Or using git with LFS
   git lfs install
   git clone https://huggingface.co/cyberagent/multimodal-adversarial-training
  1. 1.Clone the code repository and follow its setup instructions.
  1. 1.Update the checkpoint and data paths in configs/ to point to the downloaded resources.

๐Ÿ“˜ Citation

If you find these resources useful, please cite:

bibtex
@inproceedings{waseda2026multimodal,
  title={Multimodal Adversarial Defense for Vision-Language Models by Leveraging One-To-Many Relationships},
  author={Waseda, Futa and Tejero-de-Pablos, Antonio and Echizen, Isao},
  booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
  year={2026}
}

๐Ÿ“˜ Acknowledgements

This work builds upon the following repositories:

๐Ÿ“˜ License

This repository is licensed under the GNU General Public License v3.0.