Transferable Adversarial Distribution Learning: Query-efficient Adversarial Attack against Large Language Models
To help readers quickly reproduce the experimental results, since each fine-tuned model takes about several hours on the 3090GPU, we provide powerful surrogate models trained on different datasets.
Use the following training script to finetune a pre-trained transformer model from HuggingFace:
python text_classification.py
Well-trained surrogate models are available here.
distribution_learning.py shows the core code of distribution learning, the complete code will be released soon.
python distribution_learning.py
This repository is built based on the FAIR repository. We thank C. Guo * et al. for their help.