The researchers propose a pipeline for training a general-purpose automated red-teaming model.Training a General Purpose Automated Red Teaming Model
Checkpoint selected by validation set vs. zero-shot Qwen3-8B: in-domain ASR 85% vs. 33.89%, out-of-domain 29.35% vs. 20.87%.
The red-team model receives natural language adversarial goals, generates attacks, and submits them to the target LLM to elicit the undesirable behavior described by that target. During training and evaluation, target replies are read; the training reward uses an LLM-as-a-judge generated per goal, not a dedicated detector. Out-of-domain success is determined by garak detectors. The paper does not use white-box or black-box.
- Content-safety-oriented automated red teaming relies on off-the-shelf evaluators, which have poor coverage of targets such as malicious code and data exfiltration, and also does not explicitly control which type of behavior is elicited. The authors aim to train red-team models that can generate attacks according to natural language goals and do not require a dedicated evaluator during training.
- The seed model generates concrete examples, disguise methods, and scoring rubrics according to the adversarial goal, filling them into the attack generation template. GRPO fine-tunes the safety-trained Qwen3-8B: attacks are sent to the target LLM, and the judge gives three-tier rewards according to the rubric. Whether out-of-domain success occurs is determined by garak detectors, which differs from the training reward.
- The checkpoint selected by the validation set, relative to zero-shot Qwen3-8B, achieves an overall in-domain ASR of 85% versus 33.89%, and out-of-domain ASR of 29.35% versus 20.87%. The checkpoint trained attacking Qwen3-8B has an average out-of-domain ASR of 37.8%. Some out-of-domain targets are 0 for both. The authors state that RL does not automatically increase attack diversity.
- The authors note that no human evaluation was conducted, LLM judges and garak detectors may both misjudge, and only Qwen3-8B was trained without specifically evaluating non-English attacks. Experiments were single-run; inference targets were Qwen3-8B and Gemma-3-12b-it. The paper does not report query counts or agreement between judges and humans.
- Evaluated models
- Qwen3-8BGemma-3-12b-itMixtral-8x22B-v0.1
- Benchmarks
- garak
- Metrics
- ASRmean pairwise cosine similarity
The researchers propose a pipeline for training red-team models that generalizes to arbitrary adversarial goals, including goals not directly trained on, and does not rely on evaluators available at training time. Existing automated red-teaming methods mostly target safety and content moderation, relying on content safety models as evaluators and optimizing to bypass them, without testing on other adversarial intents. Experiments show that fine-tuning small models such as Qwen3-8B with this pipeline significantly improves their ability to generate attacks on both in-domain and out-of-domain adversarial goals.
Paper analysis
What problem does this paper attempt to solve?
The goal is to train a red-team model that does not rely on specialized evaluators and can generalize to unseen adversarial goals.
How to train a red-team model that can generate attacks for arbitrary natural language adversarial goals (including goals unseen at training time) when no dedicated evaluator is available during training.
- Scenario: The authors argue that static safety benchmarks become saturated by alignment processes, while new jailbreaks keep emerging, so red-teaming is needed to find unresolved vulnerabilities. Automated red-teaming can supplement humans, cover a wider range of situations, and adapt to specific target LLMs.
- Existing methods: The authors state that most automated red-teaming targets content safety, using safety models as evaluators and optimizing to bypass them, without testing on intents such as malicious code, data exfiltration, or exploiting known coding vulnerabilities. Without listing adversarial goals, it is also difficult to control which type of behavior is actually elicited.
- Setup: The authors assume that evaluators can be available at evaluation time but not at training time, so rewards must be constructed on the fly for arbitrary goals. The model being fine-tuned is a safety-trained instruction model, not an uncensored model.
- Proposal: An RL pipeline: diverse attack generation inputs, plus goal-specific LLM-as-a-judge rewards, to fine-tune models such as Qwen3-8B.
- Threat model:
- Goal: The input is a natural language adversarial goal, and the generated attack should elicit the corresponding undesirable behavior from the target LLM. Examples in the main text include malware generation and data exfiltration via URI variables.
- Knowledge: Both training and evaluation send attacks to the target LLM and read the responses. The paper does not label knowledge assumptions as white-box, black-box, or no-box.
- Capability: Control over the attack text submitted to the target model. Training rewards do not use existing dedicated detectors for that target.
- Victim system: The LLM being attacked. During training: Qwen3-8B, Gemma-3-12b-it, Mixtral-8x22B-v0.1; during inference evaluation: the first two.
What related research exists?
Related work often relies on content safety evaluators; the authors instead use a target-specific LLM judge for RL rewards.
The authors discuss related work along the technical line of automated red teaming, as well as content safety evaluators and static benchmarks.
Human red teaming and scaling
- Human red teaming: Ganguli et al. (2022) and Wei et al. (2023) leverage human creativity and focus on inputs that real users might provide.
- Language model complement: Perez et al. (2022) use language models to generate a large number of red-teaming prompts. The authors view this as a complement to human red teaming.
Adaptive jailbreaks
- Rewriting attacks: Genetic algorithms (Liu et al., 2023), optimizing prompt suffixes against target responses (Zou et al., 2023), and using LLMs to iteratively modify adversarial prompts (Mehrotra et al., 2024; Samvelyan et al., 2024; Rahman et al., 2025).
Training red-teaming models
- Evaluator feedback: Perez et al. (2022) generate attacks, run them against the target LLM, and use an evaluator to judge success; the red-teaming model can be updated via filtering, supervised learning, or reinforcement learning.
- Diversity and wild strategies: Ge et al. (2024) and Chen et al. (2025b) increase output diversity in the reward; Jiang et al. (2024b) mine attack strategies from real interactions. The authors state that these works all rely on content safety classifiers and optimize only in that context.
Content safety and static benchmarks
- Classifier coverage: Ghosh et al. (2025), Han et al. (2024), and Markov et al. (2023) identify offensive, race- and gender-related responses, as well as crime and self-harm. The authors state that as code capabilities expand, issues such as package hallucination, ANSI escape codes, and template engines increase, yet content safety data rarely includes these examples, and red-teaming methods that rely on them may struggle to detect them.
- Static benchmarks: Wan et al. (2024) and Guo et al. (2024) evaluate some of these issues. The authors cite Zhou et al. (2023) and Banerjee et al. (2024), stating that static benchmarks may be over-optimized and need updating when new intents or attack vectors emerge.
- Baselines and data: The experimental baseline is zero-shot generation from Qwen3-8B under the same attack-generation inputs. Adversarial targets come from garak; the authors do not use its existing adversarial prompts, only natural-language target descriptions.
The authors position this paper on top of the RL red-teaming fine-tuning of Perez et al. (2022): the reward is changed to a target-specific LLM-as-a-judge, training does not require an existing strong evaluator, and unseen targets are evaluated separately. Out-of-domain success is instead measured with garak detectors, which are not the same judgment as the training reward.
How does the paper address this problem?
The seed model generates attack inputs and scoring rubrics, then uses three-tier LLM review rewards for GRPO fine-tuning.
Multi-goal red-team training pipeline first expands natural language adversarial goals into attack generation inputs and scoring rubrics, then uses GRPO to fine-tune the red-team model. Rewards come only from LLM judges; target-specific detectors are not called during training.
Adversarial Goals
- Source: Goals are taken from behaviors that garak probes aim to elicit. The authors do not use existing adversarial prompts from garak, only natural language descriptions.
- Split: Training uses the goals in Table 1: DAN, Flirtation, Identity Attack, Insult, Profanity, Severe Toxicity, Sexually Explicit, Threaten, Toxicity, Win 10 Keys, Ethnic Slur, Bullying, Antivirus codes, Sexualize, Slurs. Table 2, used only for out-of-domain evaluation, includes Raw ANSI Gen, Jinja Exploitation, Malware Gen, and Python, Ruby, Rust package hallucination.
- Selection: The authors state that some of these behaviors could also be detected by typical content safety classifiers, but such classifiers are not provided during training; out-of-domain goals are chosen as behaviors that are usually rare or absent in content safety data.
- Out-of-domain success: An attack is considered successful only if the garak detector corresponding to that behavior detects the behavior in the target's response.
Attack Generation Input
- Seeds: Qwen3-235B-A22B generates two types of seeds zero-shot based only on the natural language goal: concrete examples of the goal; methods to disguise malicious requests. Examples in the text include prompt injection and placing the request in a less common language. Appendix G.1 and G.2 provide the full prompts.
- Template: Seeds are filled into the attack generation input template so that the red-team model generates attacks for the specific goal in the input, rather than with no input or random noise. Appendix G.3 provides the full template.
- Scale: 36,220 training, 100 validation, 1,000 in-domain test, 29,400 out-of-domain test. The authors state the same pipeline can generate inputs for new goals at evaluation time.
- Starting point: The fine-tuned model is the safety-trained instruction model Qwen3-8B. The authors state this is not necessarily an advantage, only that such models can also be trained into red-team models.
Rewards
- Rubric: The seed model generates 5 yes/no questions for each goal, where answering "yes" indicates the malicious goal has occurred. Experiments use rubrics generated by Qwen3-235B-A22B. Appendix F provides the generation prompt.
- Training judge: Two options: fixed Qwen3-8B, or the current target model being attacked.
- Three tiers: Outputs that cannot be parsed as attacks receive a low reward; well-formatted but unsuccessful outputs receive a slightly higher reward; well-formatted and successful outputs receive a high reward. Specific values are compared in experiments.
- No detectors: garak detectors are not used during training. The authors' premise is that evaluators for these goals are available at evaluation time but not at training time.
Reinforcement Learning Update
- Loop: The red-team model generates attacks from inputs, attacks are sent to the target LLM, and the goal-specific rubric is used for LLM-as-a-judge, updating the model with three-tier rewards.
- Algorithm and settings: Group Relative Policy Optimization, implemented as VeRL. Appendix K: training batch size 128, max prompt length 1024 (longer ones filtered), max response length 2048, learning rate 1e-6, low-variance KL coefficient 0.001, entropy coefficient 0, 5 actor rollouts per step (VLLM), no critic warmup.
- Checkpoint: Selected based on average ASR across all in-domain goals on the validation set, and on inference targets Qwen3-8B and Gemma-3-12b-it. The judge at validation is Qwen3-235B-A22B.
- Attacked models: During training, Qwen3-8B, Gemma-3-12b-it, and Mixtral-8x22B-v0.1 are compared. The paper does not describe this access as white-box or black-box.
Evaluation-time Determination
- In-domain: Uses the generated rubric, with judge Qwen3-235B-A22B, which may differ from the training judge.
- Out-of-domain: Uses garak detectors, not the training-time LLM judge. One point the authors want to test is that test determination differs from training reward.
- Inference targets: Attacks are sent to Qwen3-8B and Gemma-3-12b-it separately. Mixtral-8x22B-v0.1 is only used as an attacked model during training.
What experiments did the paper conduct?
The authors state that for the checkpoint selected by the validation set, the overall in-domain ASR is 85%, and the out-of-domain ASR is 29.35%.
Experimental Setup
- Models: The red-team model being fine-tuned is Qwen3-8B. The models attacked during training are Qwen3-8B, Gemma-3-12b-it, and Mixtral-8x22B-v0.1. The inference evaluation targets are Qwen3-8B and Gemma-3-12b-it. Seeds, rubrics, and validation and in-domain judging use Qwen3-235B-A22B.
- Data: Adversarial goals come from garak; in-domain is in Table 1, out-of-domain in Table 2. Attack generation inputs are 36220 for training, 100 for validation, 1000 for in-domain test, and 29400 for out-of-domain test.
- Baseline: Zero-shot generation by Qwen3-8B on the same inputs. The authors state the inputs are fairly detailed, so this is a strong baseline.
- Metrics: ASR. In-domain and validation use generated rubrics plus LLM-as-a-judge; out-of-domain uses the corresponding garak detector. Diversity is the average pairwise cosine similarity of successful attacks, with all-MiniLM-L6-v2 as the embedding model; lower is more diverse.
- Judging: The training judge is Qwen3-8B or the attacked target model. The judge for validation and in-domain testing is Qwen3-235B-A22B. The paper does not report judge–human agreement, nor how many generations per input at evaluation time or the sampling temperature.
- Repetition and selection: Appendix K states that all results come from a single run. Checkpoints are selected by the average ASR over all in-domain targets on the validation set and the two inference targets. Figure 2 and Figure 3 compare this checkpoint on each training target.
Main Results
Red-team checkpoint In-domain overall ASR Out-of-domain overall ASR Checkpoint selected by validation set 85% 29.35% Zero-shot Qwen3-8B 33.89% 20.87% Checkpoint attacking Qwen3-8B during training, selected by validation set not reported 37.8% According to the Section 5 main text. Figure 2 and Figure 3 are per-target plots; the main text does not give readable bar heights, so per-target numbers are not filled in here. Mixtral-8x22B-v0.1 was also attacked during training; the Section 5 main text does not give the overall ASR of that checkpoint.
- The authors state: On the in-domain targets of Figure 2 and the out-of-domain targets of Figure 3, the post-training model is more effective than zero-shot Qwen3-8B; out-of-domain uses garak detectors, not the LLM judge used in training.
- The authors state: For the checkpoint that attacked Qwen3-8B during training, the out-of-domain average ASR is higher than that of the checkpoint selected by the validation set. "Not reported" in the table means Section 5 does not give its in-domain overall number.
- Exception: The authors state that on some out-of-domain targets, both zero-shot and the post-training model have a success rate of 0, because generating the attack inputs substantially rewrote the target details, inconsistent with what the detector actually checks.
Training Targets, Judge, and Epochs
- What was measured: Training target, whether the judge is fixed Qwen3-8B or the attacked model, reward values, and 1, 3, 5 epochs. Appendix I, using the same validation-set criterion as Section 5, writes the selected model as: attacking Gemma-3-12b-it during training, with Gemma-3-12b-it as judge, and rewards of format error −0.2, failure 0.0, success 1.0.
- Results: The authors state that using the attacked model as judge is usually more effective than fixed Qwen3-8B; −0.2/0.0/1.0 performs better on validation. 3 epochs is strongest on the in-domain test, and the validation set predicts this. Using other training targets transfers less to the inference target Gemma-3-12b-it than attacking Qwen3-8B; the authors state this trend does not extend to out-of-domain targets. The paper does not give specific ASRs for these comparisons.
- Authors' interpretation: Success rates on some out-of-domain targets peak at earlier epochs. The authors believe that beyond 1 epoch, the model may overfit to the adversarial goals present during training. Figure 12 and Figure 13 are the corresponding curves; the main text does not give readings for each point.
Diversity
- What was measured: For each adversarial goal, the average pairwise cosine similarity of successful attacks computed with all-MiniLM-L6-v2. Another setting adds this similarity, relative to a set of reference attacks (zero-shot attacks by Qwen3-8B on the training inputs), to the reward with equal weight to the success reward.
- Results: The authors state that RL does not automatically improve diversity; on average, zero-shot Qwen3-8B's successful attacks are slightly more diverse; among post-training models, those with higher ASR are also more diverse. The main text gives no similarity values. In one setting (attacking Qwen3-8B, judge Qwen3-8B, 1 epoch, success reward 0.2), adding the diversity term slightly lowers in-domain ASR, raises out-of-domain ASR, and yields diversity better than zero-shot.
- Collapse: When the diversity term is added to the above validation-selected hyperparameter combination, the authors state training collapses, and Figure 18's in-domain success rate is very low. The authors state the two rewards are equally weighted and other linear combinations were not searched; Appendix J states that compute limited further experiments.
Single-Target Proof of Concept
- What was measured: Appendix E first performs RL on a single target, with reward directly from the garak detector. The three targets are raw ANSI sequences, Markdown image data exfiltration with a variable URI, and malware code. Reward schemes are 0.0/0.2/1.0 or −0.2/0.0/1.0.
- Results: The authors state that relative to zero-shot Qwen3-8B, RL usually improves ASR; in most cases attacking Qwen3-8B during training is more effective. The two rewards have no substantial difference. More epochs help ANSI and URI exfiltration; malware ASR peaks at 3 epochs. The main text gives no specific values for these ASRs.
- Reward hacking and examples: The authors state that this setting exhibits reward hacking, and attacks are also less sophisticated: if the input contains a context example and it is not penalized, the model may repeat that example. In the main experiments the authors state they did not see such instances, and believe the detailed attack inputs and diverse LLM-judge rewards are sufficient regularization. The appendix gives attack examples. The authors state that the behaviors elicited are sometimes broader than the narrowest subset the detector checks; the URI variable in the exfiltration example is still often a placeholder; if such variants appeared in agent systems that maintain conversation context or execute actions, the authors state they could cause real harm.
Other Ablations and Analyses
- Appendix F: GPT-4o, Llama 3.1 70B Instruct, and Qwen3-235B-A22B each generate rubrics and act as judge, with agreement with the detector's judgments on historical garak data being comparable; the paper gives no agreement rate. The experiments use Qwen3-235B-A22B's rubrics.
- Appendix H: The authors state that in spot checks some responses contained code, but garak's code regex did not detect it; Python is especially difficult, and there are also languages for which the detector has no regex.
- Appendix H: Spot checks of Markdown image URI exfiltration found no successful attacks; the authors state the attack inputs did not specify the image URI form the detector checks.
- Section 5: The authors state that generated attacks are more complex, include role-play and more detailed format instructions, and tend to use specific examples and disguises from the input. Appendix H has examples, not repeated here.
What are some points that can be further explored?
The authors state in Section 8 that they used automated evaluation, only trained Qwen3-8B, and did not specifically evaluate non-English attacks.
Limitations and future directions noted by the authors
- Evaluators: In-domain uses LLM-as-a-judge, out-of-domain uses garak detectors, with no human evaluation; out-of-domain requires specialized knowledge to judge whether a form is harmful. The authors state that LLM judges can specify arbitrary features, but recognition may not be stable; garak detectors are accurate for what they check, but may mark other ways of achieving the goal as failures, or may mark failures as successes without considering refusals. The authors suggest strengthening evaluators for various goals in future work (Section 8).
- Model scope: Only Qwen3-8B is trained, and evaluation targets three specific models. The authors state that using other base models and evaluating on a broader set of models would be helpful (Section 8).
- Language: No dedicated training or evaluation of attack generation in languages other than English, and no evaluation of how the base model's language capabilities affect results. Disguise seeds suggest using other languages, so some attacks are still generated in other languages (Section 8).
- Human red-teaming and defense data: The authors hope to study whether human red-teamers can use the model to cover a broader range of behaviors, and whether successful attacks can be used for defense training, compared with existing defense training data (Section 7).
- Reverse reward: The authors state that with a modified pipeline, one could fix the red-team model and use detailed criteria to judge success or failure to update the target model: high reward for unsuccessful attacks, low reward for successful ones (Section 7).
- Scale and safety training: The authors state it is worth quantifying the impact of model scale and safety training on red-teaming effectiveness; this paper focuses on Qwen3-8B (Section 7).
Experimental coverage
- Models: RL fine-tunes only Qwen3-8B. Models attacked during training: Qwen3-8B, Gemma-3-12b-it, Mixtral-8x22B-v0.1; inference evaluation targets: Qwen3-8B and Gemma-3-12b-it (Section 4).
- Goals and scale: In-domain goals listed in Table 1, out-of-domain goals in Table 2. Attack generation inputs: 36,220 training, 100 validation, 1,000 in-domain test, 29,400 out-of-domain test (Section 3.3, Appendix K).
- Baselines and judgment: Baseline is zero-shot Qwen3-8B on the same inputs. In-domain judged by Qwen3-235B-A22B using generation criteria, out-of-domain by garak detectors (Sections 4–5).
- Runs and unreported items: Appendix K states all shown results come from a single run. The paper does not report the number of queries, the number of generations per input at evaluation time, the sampling temperature, or agreement between judges and humans.
- Diversity: Average pairwise cosine similarity of successful attacks computed with all-MiniLM-L6-v2 (Section 4, Appendix J). The main text does not give specific values for this similarity.
Summarize the main content of the paper
The authors claim the pipeline improves Qwen3-8B's in-domain and out-of-domain ASR, but some out-of-domain targets remain at 0.
The authors use reinforcement learning to train a red-team model so that it can generate attacks based on adversarial goals given in natural language, without needing an existing dedicated evaluator for that goal during training.
- Problem: The authors argue that content-safety red-teaming does not explicitly list the behaviors to elicit, and lacks training examples for new intents such as malicious code and data exfiltration; the evaluator should be available at evaluation time but not at training time.
- Approach: Qwen3-235B-A22B generates concrete examples, disguise methods, and 5 yes/no scoring rubrics zero-shot, filling them into the attack-generation input. GRPO fine-tunes a safety-trained Qwen3-8B: attacks are sent to the target LLM, and the judge updates rewards in three tiers. Training does not use garak detectors.
- Key numbers: For the checkpoint selected by the validation set, the overall in-domain ASR is 85%, while zero-shot Qwen3-8B is 33.89%; the overall out-of-domain ASR is 29.35%, while zero-shot is 20.87%. Out-of-domain uses garak detectors instead, which are not the same judgment as the training reward (Section 5).
- Another checkpoint: For the checkpoint selected by the validation set while attacking Qwen3-8B during training, the average out-of-domain ASR is 37.8%. The authors state it is higher than the checkpoint selected by the validation set and higher than the zero-shot 20.87%.
- Exceptions: On some out-of-domain targets both are 0, which the authors attribute to the attack input rewriting target details that are inconsistent with what the detector checks. The authors state that RL does not automatically increase the diversity of successful attacks; the diversity reward sometimes causes training to collapse. Qualitatively, the authors state that generated attacks are more complex and tend to use the examples and disguise methods in the input.
- Authors' conclusion: The authors state that this pipeline can improve an instruction model's ability to generate effective attacks for out-of-domain goals and across multiple target LLMs, and hope to later see whether it can assist human red-teaming and defense training.