response
We thank the reviewer for appreciating our writing and empirical results. We added
1. Ethic statement (after the Discussion section)
2. Experiments on ChatGPT and Vicuna (Appendix C.3)
3. Analysis on over-fitting to classifier (Appendix C.1)
to the manuscript. Also, we are running experiments on text-to-image experiment. Our responses are detailed in the following.
> Ethical comments
>
**Answer:**
We’ve added an ethic section after the discussion section and would like to know if the reviewer thinks this addresses potential ethic concerns.
> The empirical results are limited to the text-to-text generation models.
>
> Can you provide simple experimental results on text-to-image models like stable-diffusion?
>
**Answer:**
Our framework is applicable to text-to-image red-teaming. We are running the experiments and will do our best to add these results during rebuttal.
> The proposed automated red-teaming method is based on the pre-trained offensiveness classifier. As [1] raised, there exists a risk of discovering test cases that over-fit the red team classifier, resulting in false positive test cases. But there isn't any analysis about this risk.
>
**Answer:**
We added a new analysis in Appendix C.3, showing that the toxic response elicited by our red-teaming method **generalize to other toxicity classifiers** also.
**High Correlation of Toxicity Predictions Across Classifiers:** Table 7(i) shows **Pearson Correlation Coefficients (PCC)** of the toxicity probabilities predictions between RoBERTa and two other classifiers, on the responses of the target model Dolly-7B. The table shows that PCC is near one, indicating that a strong positive correlation between RoBERTa and other classifiers in toxicity prediction. This implies that when RoBERTa predicts higher toxicity probability, the other models are also likely to show similar increases in their toxicity probability predictions.
**Similar to GPT-4’s predictions:** Table 7(iii) in Appendix C.3 compared RoBERTa's classification accuracy to GPT-4 by analyzing 3000 responses from each red-teaming method. GPT-4 evaluated these responses for toxicity. Using GPT-4's predictions as the ground truth, we assessed RoBERTa's precision, recall, and F1-score. The results, with F1 scores nearing one, suggest a high similarity between RoBERTa's and GPT-4's predictions. We also added the confusion matrix in Figure 7(ii) the Appendix C.3 for reference.
Note that we compared RoBERTa with GPT-4 using a confusion matrix and F1 score rather than Pearson Correlation Coefficient (PCC), as GPT-4 cannot predict probabilities. Attempts to prompt GPT-4 for probabilistic outputs, using various phrasings, were unsuccessful; the model typically responded that it could not provide numerical probabilities.
> Can you provide experimental results on large language models such as the text-davinci-003 model or gpt-3.5-turbo prompted chatbots?
>
**Answer:**
We’ve added the results of red teaming against Vicuna-7B and ChatGPT (gpt3.5-turbo) in Section C.3 in the Appendix, showing that **our method is also effective at generating diverse and effective testcases** against these models. Our results showed the following facts:
1. **Higher Diversity:** Our approach yields more diverse test cases and target model’s responses, as shown in (Figures 9(i)(c,d,e,f) and 9(ii)(c,d,e,f)).
2. **More Unique Test Cases:** Figures 9(i)(b) and 9(ii)(b) illustrate that our RL+Curiosity approach generated around 50,000 unique test cases resulting in toxic responses surpassing a 0.9 toxicity threshold. This number is significantly higher than those produced by the baselines, RL+TDiv and RL. It's important to note, as Figures 9(i)(a) and 9(ii)(a) indicate, that while RL+TDiv led to a higher proportion of toxic responses, the overall lower number of unique test cases indicates an issue of lack of diversity, with many cases being exactly identical based on string comparison.
> It is just a curiosity question. In a realistic scenario, each query on the target model usually incurs costs. Hence, the number of model queries during the red teaming process can be an important factor for the overall cost of the method. Can you provide the number of queries used during the end-to-end process of RL+"curiosity"? Also, can you estimate the price when we red-team gpt4 api using RL +"curiosity"?
>
**Answer:**
**Number of queries:** We used 40K queries for instruction following experiments (Section 4.3) and 100K queries for text continuation experiments (Section 4.2). We determine both numbers based on when the combined rewards (i.e., toxicity probability + curiosity + entropy bonus) of RL+Curiosity (our method) stop growing.
**Price of red-teaming GPT-4:** $143.999. We did the calculation by assuming the maximum amount of input and output tokens are all 40 and 40K queries and based on the GPT-4’s pricing info in https://openai.com/pricing.