Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Inpainting attack via Adversarial LLM toolkit

https://github.com/LLM-QC/AdversariaLLM/tree/feat/add_inpainting_attack

Code

Installation

Conda environment

conda create -n llm-inpainting-attack python=3.11 -y
conda activate llm-inpainting-attack

hf_home environment variable

export HF_HOME=/path/to/huggingface/cache

Using Python 3.11.11

pip install -r requirements.txt

Attack

To generate new adversarial prompts, you may execute follow the generate.slurm file.

You can also pass a path to a CSV file for custom prompts and targets. See csv example for structure.

python generate.py --dataset ./csv_example.csv

This creates (in default settings) a CSV file in the output folder containing the generated adversarial prompts.

Citation

@article{ludke2025diffusion, title={Diffusion LLMs are Natural Adversaries for any LLM}, author={L{"u}dke, David and Wollschl{"a}ger, Tom and Ungermann, Paul and G{"u}nnemann, Stephan and Schwinn, Leo}, journal={arXiv preprint arXiv:2511.00203}, year={2025} }

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages