Author response to Reviewer UQkL
Thank you for your comments. We appreciate that you quickly updated the content to give us time to respond. Below we have done our best to answer the points you made, including a new experiment showing **good transfer performance to attack GPT-4o**.
> The tested models are quite small. Even if the attacks generalize to different models, it’d be good to have an evaluation of bigger and closed-source models (since the technique doesn’t require access to model weights).
Since our method involves on-policy training in the first stage, running an experiment with a closed model as the target would be expensive and not feasible for us. However, we would like to note that in our transfer experiments (summarized in Table 2), we do consider larger models, such as Llama-2-70B-chat and Llama-3-70B-instruct. Additionally, we generate 1,024 prompts originally targeted at Llama-2-7B-chat and transfer them to attack GPT-4o. Across five random seeds, **an average of 65% of the prompts elicit harmful responses from GPT-4o**.
> Although inexpensive, it seems not very efficient to retrain the policy on a subset of generated prompts. For example, filtering the prompt can be done on the fly during the GFlowNet stage.
As we show in Table 3, the second stage accounts for a very small fraction of total training time. While it could be possible to train the second-stage SFT model "online", this would present two challenges. First, it would require keeping two copies of an attacker model in memory (the GFlowNet policy and the second-stage SFT attacker policy). Second, the samples used for SFT would not be seen in random order, but in the order they were discovered by the GFlowNet sampler, possibly leading to bias or catastrophic forgetting.
> Why do you use two different toxicity classifiers for different models?
For preliminary experiments, following the work of [1], we use the RoBERTa-based toxicity classifiers for GPT-2 and Dolly. However, when red-teaming target large language models with safety alignment, the classifier assigns unreasonably high toxicity score to refusal responses to attack prompts, as shown in Table B.1. As a result, we switch it to Llama-Guard for red-teaming Llama and Gemma.
> The difference in performance between GFlowNets and GFlowNets+MLE changes quite a bit across different models. For example, for Dolly and GPT-2 the performance is almost the same, for Gemma there is a huge gap, for the Llamas the difference is a bit smaller. Do you have a sense of why this is happening?
The intensity of safety alignment in target language models makes a significant difference. GPT-2 and Dolly lack safety guardrails and rarely refuse to respond to prompts, making the discovery of attack prompts relatively easy. On the other hand, the target language models with strong safety alignment, such as Llama-2-7b-chat and Gemma-2b-it, often refuse to answer to naive attack prompts, resulting in a sparse reward landscape. As discussed in lines 53-65, this sparsity poses a significant challenge for GFlowNet, making it extremely difficult to balance the trade-off between diversity and toxicity.
> The attacks produced with this method are very diverse. Is this diversity mainly semantic or also stylistic?
Based on our qualitative study on a small subset of generated prompts, the diversity is primarily semantic.
### References
[1] Hong, Zhang-Wei, et al. "Curiosity-driven Red-teaming for Large Language Models", ICLR 2024.
**Thank you again for your comments, questions, and suggestions, and do not hesitate to tell us if we can provide further answers.**