Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wangyu-ovo/MML
Code for the paper "Jailbreak Large Vision-Language Models Through Multi-Modal Linkage"
https://github.com/wangyu-ovo/MML
Last synced: about 1 month ago
JSON representation
Code for the paper "Jailbreak Large Vision-Language Models Through Multi-Modal Linkage"
- Host: GitHub
- URL: https://github.com/wangyu-ovo/MML
- Owner: wangyu-ovo
- Created: 2024-11-28T10:21:00.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-06T09:33:43.000Z (about 1 month ago)
- Last Synced: 2024-12-06T10:28:40.682Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-LVLM-Attack - Github
README
# Jailbreak Large Vision-Language Models Through Multi-Modal Linkage
Code for the paper [Jailbreak Large Vision-Language Models Through Multi-Modal Linkage](https://arxiv.org/pdf/2412.00473)## Data
We uploaded the encrypted images [here](https://drive.google.com/drive/folders/10QlhyFvytmUsapcQf2xBBBsiB9N0zrpl?usp=sharing)
Run before Download it as `./dataset`
## Attack Commands
```shell
python attack.py --dataset 'safebench' \
--data-path 'dataset' \
--save-dir 'save_dir' \
--image-format 'images_wr'\
```You can choose the encryption or attack methods by replacing the `image-format` parameter. Here are some options:
- `images_figstep` : [FigStep](https://arxiv.org/abs/2311.05608) attack.
- `images_qr`: [QueryRelated](https://arxiv.org/abs/2311.17600) attack.
- `images_wr`: MML with word replacment
- `images_miror`: MML with image mirroring.
- `images_rotate`: MML with image rotation.
- `images_base64`: MML with Base64-Encoding.## Main Results
![](figs/result.png)
## Reference
If you find the code useful for your research, please consider citing
```bib
@article{wang2024jailbreak,
title={Jailbreak Large Vision-Language Models Through Multi-Modal Linkage},
author={Wang, Yu and Zhou, Xiaofei and Wang, Yichen and Zhang, Geyuan and He, Tianxing},
journal={arXiv preprint arXiv:2412.00473},
year={2024}
}
```