Abstract
Ensuring the safety of Large Language Models (LLMs) against adversarial attacks is a critical challenge. Traditional red teaming is often slow and lacks diversity in attack styles. We present FERRET, an automated red-teaming framework that accelerates vulnerability discovery by generating multiple adversarial mutations per iteration and ranking them using a custom-trained reward model. FERRET achieves a 95% attack success rate (ASR), outperforming existing methods like Rainbow Teaming by 46% while significantly reducing the time required to identify effective jailbreaks.
Introduction
As LLMs are increasingly integrated into critical infrastructure, the risk of generating harmful, biased, or illegal content grows. Red teaming—the intentional probing of a model to find vulnerabilities—is the standard for safety testing. However, manual red teaming is resource-intensive, and current automated methods often converge on a narrow set of attack styles or suffer from slow convergence speeds. FERRET addresses these efficiency and diversity gaps by treating red teaming as an iterative optimization problem guided by a specialized reward model.
Methodology
FERRET builds upon the Rainbow Teaming architecture, which utilizes a 2D archive of prompts categorized by Risk Category (e.g., Violent Crimes) and Attack Style (e.g., Slang). The framework introduces a high-throughput, four-step iterative loop designed to explore the harmfulness landscape efficiently.
- Sampling: The system selects "weak" prompts from the archive—those with low success scores—to serve as seeds for new mutations.
- Mutation: A mutator model (Mistral-7B) generates $N$ candidate mutations simultaneously, attempting to shift the prompt into new risk categories and attack styles.
- Categorical Filtering: To maintain diversity and prevent "category drift," Llama Guard 2 verifies that mutated prompts align with their intended risk categories. Non-compliant prompts are discarded.
- Scoring: Remaining candidates are ranked using a custom Reward Model (RM). This RM, a Llama 3-8B model fine-tuned on 24,000 adversarial preference pairs, identifies the most effective mutation to update the archive.
Experimental Setup and Datasets
The framework was evaluated using the Anthropic Harmless Dataset for initial seeds and the MLCommons AI Safety Taxonomy to define 11 distinct risk categories. The custom Reward Model was trained on a preference dataset generated by ranking Rainbow Teaming outputs with an LLM-as-a-judge. Testing was conducted against target models including Llama 2-chat 7B and Llama 3-Instruct 8B.
Key Results
FERRET demonstrates superior performance in both success rate and discovery speed. It achieved a 95% ASR on Llama 2-chat 7B and 94% on Llama 3-Instruct 8B. Notably, the system reached a 90% ASR threshold 15.2% faster than the baseline Rainbow Teaming, with speedups reaching up to 82.5% in specific safety benchmarks.
Quantity and Scoring Quality
Experiments revealed that generating multiple mutations ($N=5$) and ranking them with a dedicated Reward Model is significantly more effective than linear search or using generic LLM judges. The Reward Model provides more consistent alignment with safety benchmarks like GPT-4 evaluation. Furthermore, adversarial prompts discovered on smaller models showed high transferability, with an average 51% ASR when tested against frontier models like GPT-4o.
Discussion and Future Work
While FERRET significantly improves red-teaming efficiency, the authors note challenges such as semantic drift, where mutations may lose the original intent of the seed prompt. Future research will focus on preserving prompt semantics, utilizing more powerful mutator models, and expanding the risk taxonomy beyond the current 11 categories. Additionally, investigating potential overfitting of the Reward Model to specific safety classifiers remains a priority for ensuring robust safety diagnostics.
Summary updated