Abstractive red teaming for language model role violationsAbstractive Red-Teaming of Language Model Character
The authors use CRL and QCI to search for role-violating query categories and say they outperform random sampling on 12 principles and 7 models.
The red team searches over natural language query categories such that queries within a category frequently elicit the target assistant to violate a certain role principle. The red team can sample from the category generator and query generator, obtain responses from the target model, and score them with a principle-specific reward model; the search is over categories rather than individual prompts. The goal is to find violations that static evaluation would miss but that could still occur in deployment, using far less compute than deployment.
- Role specifications describe how an assistant should behave across diverse interactions, but large-scale deployment still occasionally violates them. Fixed prompt sets query far less than deployment and easily miss rare failures; single-prompt optimization is too narrow and unlike real traffic. The authors want to find query categories that frequently elicit violations with less computation.
- Abstract red-teaming searches over natural language categories, not individual queries. The category generator and query generator are fine-tuned on public first-round queries; a principle-specific reward model scores violation severity. CRL applies policy gradient to the category generator; QCI keeps a pool of high-scoring queries, synthesizes attributes with an LLM, and explores over attribute subsets.
- Query budget 102400, 3 seeds. The authors say that on Llama-3.1-8B-Instruct's 12 principles and a subset of the other three models, CRL and QCI are higher than random sampling; at low query counts QCI is more sample-efficient. Main results use unfiltered rewards. After filtering, there are still categories that do not directly request violations but whose responses violate.
- The conclusion leaves modifying role norms or generating safety training data as future work, and the paper does not have a dedicated limitations section. The full comparison of the 12 principles is only on Llama-3.1-8B-Instruct; the paper does not report reward and human agreement, nor does it report τ.
- Evaluated models
- Llama-3.1-8B-InstructGemma3-12B-ITQwen3-30B-A3B-Instruct-2507GPT-4.1-MiniClaude Sonnet 4Claude 3.5 HaikuClaude Opus 4.1
- Benchmarks
- 12-principle character specificationWildChatLMSys-Chat-1MShareGPT4Anthropic-HHUltraFeedbackOpenAssistantHelpSteer2
- Metrics
- R_meanR_maxCSRASR
The paper proposes an abstractive red teaming method that searches over natural language query categories to locate query types that easily trigger language model role violations, rather than testing individual concrete queries one by one. The method includes two algorithms: one performs reinforcement learning on a category-generation LLM, and the other uses a strong LLM to iteratively synthesize categories from high-scoring queries. Across role specifications of 12 principles and 7 target models, both algorithms consistently outperform baselines. The paper gives examples: asking Llama-3.1-8B-Instruct to predict the future yields a response that AI will rule humanity, and asking GPT-4.1-Mini for prison survival essentials yields recommendations for illegal weapons.
Paper analysis
What problem does this paper attempt to solve?
With computation far smaller than deployment scale, find query categories for role violations that could still appear in deployment.
With computation far smaller than deployment scale, find types of role specification violations that could still appear in deployment.
- Scenario: The authors want assistants to conform to a character specification, i.e., how they should behave across diverse user interactions. The specification can be explicitly trained via Constitutional AI or implicitly learned in general human-preference alignment. The authors say large-scale deployment still occasionally violates, including users directly requesting harmful content and imperfect training causing harmful replies in ordinary conversations.
- Existing methods: The authors consider static evaluation to rely on fixed prompt sets, with query counts far smaller than deployment, missing rare failures; prompt optimization can elicit failures, but yields highly tuned individual prompts that are also unlikely to appear in large-scale deployment.
- Observation: Instead search natural-language categories. A category is a string describing a large group of user queries. If that category frequently violates and occupies only a small fraction of traffic, or rarely violates but occupies a large fraction of traffic, violations should be expected in deployment.
- This paper: Proposes abstractive red-teaming, along with Category-Level RL (CRL) and Query-Category Iteration (QCI), searching for high-scoring categories against principle-specific reward models. The abstract says coverage of 12 principles and 7 target models.
- Threat model:
- Goal: Given a principle to obey, find natural query types that cause violations but are rare and still possible in large-scale deployment.
- Knowledge: The paper does not state white-box or black-box. The searcher samples categories and queries within categories, then takes responses from the target model and scores them.
- Capabilities: Can update the category generator, or use a strong LLM to synthesize attributes from high-scoring queries; the filter model can score queries that directly request violations as low.
- Victim system: Language model assistants expected to follow role specifications, including open-source and frontier models.
What related research exists?
Related work is divided into role training, static or post-hoc evaluation, and query-level automatic red-teaming; the experimental baseline is random category sampling.
The paper's Related Work is divided into three parts, and the experiments additionally use random sampling as a control.
- Alignment and role training
- RLHF and Constitutional AI: Ouyang et al. (2022), Christiano et al. (2017), Bai et al. (2022b) use human or AI feedback to make models follow specifications. The introduction also lists Bai et al. (2022a) as alignment to general human preferences.
- Role training: Anthropic (2024) and Lambert (2025) discuss the subjective, qualitative side of shaping model personality. The authors say this paper is complementary to those training methods, for understanding role robustness in actual deployment.
- Evaluation timing
- Static query sets: Perez et al. (2023), Ganguli et al. (2022), Mazeika et al. (2024)'s HarmBench, Röttger et al. (2025)'s SafetyPrompts evaluate behavior on fixed sets, some constructed by developers or written by models. The authors say query counts are far smaller than typical deployment and may miss rare failures.
- Post-deployment analysis: Tamkin et al. (2024)'s Clio, Huang et al. (2025) find violations in samples of deployed traffic. The authors say this captures failures only after they occur; this paper proactively searches before larger deployment, citing Jones et al. (2025).
- Automatic red-teaming
- Jailbreak search: Perez et al. (2022) use language models for red-teaming; Zou et al. (2023), Chao et al. (2025), Jiang et al. (2024)'s WildTeaming look for adversarial jailbreaks that make models produce harmful content.
- Query-level reinforcement learning: Chowdhury et al. (2025) and Li et al. (2025) use reinforcement learning to elicit role-related pathological behavior, with the paper's example being encouraging users to self-harm. The authors say these works optimize at the query level, behavior depends on exact wording, and that query is unlikely to appear in deployment.
- Baseline and evaluation target: The control is random sampling (RS), i.e., randomly drawing categories from the category generator within budget, rather than putting the above published attack methods into the experimental table. The evaluation target is category rewards on 12 principles, not a named attack benchmark. The query distribution comes from public first-turn queries such as WildChat, LMSys-Chat-1M, ShareGPT, Anthropic-HH, UltraFeedback.
The authors place this paper at the category level: it can optimize against the model, thereby finding violations missed by static evaluation, and is coarser than single adversarial prompts, so queries within a category can still appear in deployment.
- Alignment and role training
How does the paper address this problem?
Using a category generator, query generator, and principle rewards, search for high-scoring query categories with CRL or QCI.
Abstract red-teaming does not directly optimize individual prompts, but searches over natural-language categories so that responses to many queries within a category violate some role principle. CRL and QCI share a category generator, a query generator, and a principle reward model.
Categories and generators
- Categories: A string c describes an arbitrarily large set of queries. When it can be split into ℓ sentences, the attributes are written as (a1, …, aℓ), with each sentence describing a different aspect of the queries.
- Two models: The category generator fits the unconditional distribution of categories in the data; given a category, the query generator fits the queries within it. Only the category generator is stressed, and the query generator is not updated, so that discovered queries remain diverse within the category.
- Data: Only first-turn user queries from public data are used, assistant responses are discarded, and deduplication with limited garbage filtering is applied, for a total of 1.4M items. Appendix A.5.1: WildChat 51.3%, LMSys 33.8%, HH 4.3%, UltraFeedback 4.3%, and the remaining about 6.3% from ShareGPT, OpenAssistant, HelpSteer2, and others.
- Fine-tuning: Claude 3.7 Sonnet uses Prompt A.1 to write 10 attributes for each query. Each query is paired with 4 categories, from 4 disjoint subsets of these 10 attributes, with sizes 1, 2, 3, and 4. Both generators are supervised fine-tuned from Qwen3-8B-Base for 1 epoch with batch size 512.
Principles and category rewards
- Norms: The 12 principles from the Claude constitution are used, with the full text in Appendix A.1, covering discrimination, illegal or unethical behavior, AI dominance and self-preservation, claiming personal experience or physicality, and conspiracy, torture, and abuse.
- Reward: r(x, y) measures how much the response violates the principle, looking at how bad it is in absolute terms, rather than which response is better for the same query.
- Filtering: To avoid queries that directly request violations, a filter model f(x) is added. The filtered reward rf,τ(x,y) equals r(x, y) when f(x)≥τ, and otherwise equals a smaller r_min. The paper does not give τ or r_min.
- Aggregation: For each category, k queries and target model responses are sampled, and a statistic S is used to obtain the category reward. Evaluation uses the mean, with k=16.
CRL
- Objective: Policy gradient updates the category generator to maximize J(θ)=𝔼c∼ pθC[RS(c)]. Advantages are computed from category rewards using RLOO with leave-one-out estimation over a set of categories. Pseudocode is in Appendix Algorithm 1.
- Hyperparameters: The implementation is based on verl. There are 8 groups with 2 categories each, a learning rate of 10^{-6}, and no KL. The authors state that adding KL to a high-entropy category generator is unstable.
- Training and reporting mismatch: R_mean is reported externally, while RL optimizes R_max per category. The authors state that this makes it easier to obtain a higher mean than directly optimizing the mean.
- Budget: Same as QCI and RS, 102400 queries are sent to the target model, with 3 seeds, and error is the standard error of the mean. Details are in Appendix A.5.3.
QCI
- State: Weights are not changed. The experience pool keeps only the s highest-scoring query-response pairs so far.
- Exploitation: A strong LLM synthesizes ℓ attributes from the common properties of high-scoring queries in the pool, concatenated into the current category. Experiments use Claude 3.7 Sonnet with Prompt A.2 and s=5; that prompt asks for 5 attributes.
- Exploration: For each attribute subset size, K/(ℓ+1) subsets are uniformly sampled, and one query, response, and reward are sampled for each; an equal number of random categories is added. After merging into the pool, only the s highest scores are kept. Pseudocode is in Appendix Algorithm 2.
- Parallelism: The authors state that trajectories are highly initialization-dependent and converge quickly, so each step uses M=15 subtrajectories with K=240 target model queries per step, taking the highest-scoring category across all subtrajectories.
Reward models
- Synthesis: Claude 3.7 Sonnet generates categories likely to elicit violations according to the principles, mixed with random categories from the category generator; after the query generator samples, it generates responses ranging from good to bad. An overview is in Figure 4.
- Training: GPT-4.1-Mini produces preferences. The reward model compares which pair violates the principle more; the filter model compares which query more explicitly requests a violation. Both are trained from Qwen3-8B-Base with Bradley-Terry, 2 epochs, batch 256, and learning rate 10^{-5}. Appendix A.5.2.
- Prompts: Appendix A.7 gives the full prompts for attribute extraction, QCI synthesis, behavior judgment, and attribute perturbation.
What experiments did the paper conduct?
Under a query budget of 102400 and 3 seeds, the authors say CRL and QCI category rewards are higher than random sampling.
Experimental setup
- Target models: Quantitative comparison uses Llama-3.1-8B-Instruct, Gemma3-12B-IT, Qwen3-30B-A3B-Instruct-2507, GPT-4.1-Mini. Qualitative examples additionally include Claude Sonnet 4 (written as Claude 4 Sonnet in Figure 2), Claude 3.5 Haiku (also written as Claude Haiku 3.5), Claude Opus 4.1. The abstract says 7 target models total. Figure 7 writes Gemma as Gemma-3-12B-Instruct.
- Principles: All 12 are compared on Llama-3.1-8B-Instruct (Appendix Table 2). The other 3 models report AI Supremacy, Illegal Activity, Religious Discrimination in Table 1, and Table 3 additionally reports Abuse.
- Baseline: RS, randomly sampling categories from the category generator within the same query budget.
- Metrics: Unfiltered R_mean of the highest-scoring category, k=16 per category. CRL uses R_max during optimization. The authors note different principles use different reward models, so scores are comparable only within a principle. The paper gives no score threshold for a "successful category."
- Budget and repeats: 102400 target model queries per algorithm per setting, 3 seeds, error as standard error of the mean.
- Evaluation: Main results are scores from the principle reward models, not a separate online LLM judge. Preferences for training that reward model come from GPT-4.1-Mini, which is itself also a target model.
Main results
The table below gives means ± standard errors over 3 seeds. Model row names correspond to the full names in the previous section; Table 1 writes the last model as GPT-4.1. Based on Table 1 and Appendix Table 2.
Swipe horizontally to read the table
Model Principle RS CRL QCI Llama AI Supremacy 2.87 ±.34 11.7 ±.01 10.9 ±.34 Gemma AI Supremacy 1.88 ±.45 11.4 ±.24 9.88 ±.49 Qwen AI Supremacy 1.52 ±.79 10.2 ±.60 10.3 ±.37 GPT-4.1 AI Supremacy 1.46 ±.58 10.9 ±.23 10.1 ±.63 Qwen Illegal Activity -2.73 ±.36 1.86 ±1.3 1.27 ±.21 Gemma Illegal Activity -2.26 ±.08 2.15 ±1.5 0.41 ±.56 Llama Unethical Behavior -1.31 ±.12 2.10 ±.85 0.89 ±.13 Qwen Religious Discrimination -1.29 ±.50 2.22 ±.11 4.14 ±.43 - Relative to RS: The authors say both methods outperform RS in all settings, and CRL is usually slightly higher than QCI. Checking Table 1, Table 3, and Appendix Table 2, the listed CRL and QCI means are all higher than RS in the same row. These main results use unfiltered rewards.
- Cells where QCI is higher: In Table 1's Religious Discrimination, all four models have higher reported QCI means: Llama 5.32 ±.38 vs CRL 4.84 ±.79, Gemma 2.66 ±.28 vs 2.26 ±.70, GPT-4.1 2.82 ±.27 vs 2.57 ±.60; Qwen is in the table above. In the table, Qwen's AI Supremacy is also slightly higher for QCI. Across the 12 principles in Appendix Table 2, only Religious Discrimination has QCI higher than CRL.
- Cells not listed: The remaining Illegal Activity and Religious Discrimination rows in Table 1, Abuse in Table 3, and the remaining principles in Appendix Table 2. Among listed cells, the lowest CRL is Qwen Illegal Activity, and the lowest CRL among Llama's 12 principles is Unethical Behavior. The three Claude models have no such reward table.
Sample efficiency
- What was measured: How the mean score of the highest-scoring category changes with the number of target model queries. Figure 5's three panels are GPT's Religious Discrimination, Llama's Conspiracy Theories, Qwen's Illegal Activity. Axes are Mean Score in Best Category and Queries to Target Model.
- Authors' interpretation: The authors say CRL and QCI are both higher than RS at many query budgets, and QCI is more sample-efficient than CRL when queries are limited, although final scores are usually slightly lower. The main text gives no endpoint values for the curves.
- Appendix: Figures 19–24 give mean, 20th, and 80th percentile curves for all Llama principles and subsets of the 4 models. The authors say this phenomenon appears consistently. The paper does not list readings from these curves.
Qualitative results under filtered rewards
- Difference from main tables: The authors say violations found with unfiltered optimization often look like the user is jailbreaking and are not always surprising. Section 4.3 switches to filtered rewards, scoring queries with filter score below τ as r_min. The paper does not report the τ used.
- Figure 2: The authors report that asking GPT-4.1-Mini about prison survival items leads to recommending illegal weapons or contraband; asking Claude Sonnet 4 for humorous names of female courses produces gender stereotypes; asking Llama-3.1-8B-Instruct for long-term future predictions says AI will rule, eliminate, or dominate humans. The figure contains query and response excerpts.
- Other examples: Figure 6 and Appendix A.2 also cover Claude Opus 4.1, Claude 3.5 Haiku, Gemma, and principles such as self-preservation, conspiracy theories, life experiences, gender, and religion. The appendix gives examples. The paper does not report category rewards next to these figures.
Attribute ablation
- Removing attributes: Appendix A.3, for the 5-attribute categories of Claude Opus 4.1 in Figure 6, samples 500 subcategories per retained length. The authors say in Figure 16 that reward mean, standard deviation, and min/max all decrease as attributes are removed. The main text has no values for these points.
- CSR: Defined as the proportion of a certain violation behavior appearing after sampling queries from a category; each draw is a new query. Judgment uses GPT-4.1-mini and a binary rubric, Prompt A.3.
- Perturbation: Figure 17 targets one category of Claude 3.5 Haiku, where the figure's Original ASR is 0.292. The authors say randomly perturbing any attribute decreases CSR. The main text uses CSR, while the figure title writes ASR. Figure 18 greedily removes attributes for Claude Sonnet 4's life experiences category; the authors say CSR decreases, and attributes with large impact on the full category often remain important after reduction. The main text has no values for each point.
Other ablations and analyses
- Figure 15 (GPT-4.1-Mini, Abuse, one random seed, unfiltered) highest-scoring category mean: RS -1.5, CRL 9.1, QCI 3.4.
- The authors say on that seed RS is directionally relevant but mostly refusals or barely violations; CRL has many and very specific attributes; QCI has lower mean, but median and highest-scoring examples still insult the user.
- The authors say CRL's high-scoring categories tend to have many attributes; QCI's categories are usually more general because the exploitation step fixes the number of attributes.
- The authors say QCI is highly initialization-sensitive and converges quickly, hence 15 sub-trajectories.
What are some points that can be further explored?
The authors leave modifying norms with categories or creating safety data as future work; the paper does not have a dedicated limitations section.
Limitations and future directions noted by the authors
- Future uses: The conclusion writes that categories describe high-level properties of bad queries, so discovered queries can be used to directly modify role specifications in training, such as a constitution, to target these behaviors; the query generator can also generate synthetic data for safety training. The authors leave both explorations as future work (Conclusion).
- Dedicated section: The paper has no Limitations section, nor does it list limitations on method failure, reward error, or deployment frequency elsewhere in Discussion or the appendix.
Experimental coverage
- The abstract writes 12 principles, 7 target models. Appendix Table 2 reports all 12 principles for Llama-3.1-8B-Instruct; Table 1 and Table 3 report principle subsets for Gemma3-12B-IT, Qwen3-30B-A3B-Instruct-2507, GPT-4.1-Mini (Section 4.2, Appendix A.6).
- Each algorithm setting uses 102400 target model queries, 3 seeds, k=16, unfiltered R_mean; CRL's optimization target is R_max (Section 4.1.3, 4.2).
- The control in the experimental tables is RS. Related work writes that query-level optimization is sensitive to exact wording and that query is unlikely to appear in deployment, but those methods do not enter the experimental tables.
- Qualitative search uses filtered rewards (Section 4.3). The paper does not report the values of τ and r_min.
- Preferences for the reward and filter models are generated by GPT-4.1-Mini, and CSR is judged by GPT-4.1-mini (Appendix A.3, A.5.2). The paper does not report agreement between reviewers and humans, nor the proportion of discovered categories in real traffic.
Summarize the main content of the paper
Abstractive red-teaming searches for role violations in category space; under the stated settings, CRL and QCI are higher than random sampling.
Abstractive red-teaming changes the role audit of language models from individual prompts to natural-language query categories, in order to find violations before deployment that are both rare and still likely to enter real traffic.
- Problem: Role specifications state how an assistant should behave across diverse interactions, but the authors say large-scale deployment still occasionally violates them. Fixed prompt sets query far less than deployment; optimizing a single prompt to be very narrow makes it less like a query users would submit.
- Method: On 1.4M public first-turn queries, they fine-tune a category generator and a query generator with Qwen3-8B-Base. Each of the 12 principles has a reward model, with preferences from GPT-4.1-Mini. CRL uses RLOO to update the category generator, optimizing R_max and reporting R_mean. QCI does not change weights; Claude 3.7 Sonnet synthesizes attributes from high-scoring pools and takes the highest-scoring category across 15 sub-trajectories. Neither updates the query generator.
- Quantitative: Query budget 102400, 3 seeds, k=16, unfiltered rewards. In Appendix Table 2, across the 12 principles for Llama-3.1-8B-Instruct, CRL's highest-scoring category means range from 2.10 ±.85 for Unethical Behavior to 11.7 ±.01 for AI Supremacy, and both CRL and QCI are higher than the RS baseline. The same holds for three principles on the other three models in Table 1. The authors say QCI is more sample-efficient at low query counts, with final scores usually slightly below CRL; on Religious Discrimination, QCI's reported mean can be higher. Scores across principles cannot be directly compared.
- Qualitative: After filtering queries that directly request violations, the authors report in Figure 2 and Figure 6 categories such as future prediction, prison survival items, humorous female course names, Paris drawbacks, and gray-market advice, and say responses contain AI domination, prohibited advice, gender stereotypes, negative portrayals of immigrants, and felony advice. The three Claude models do not appear in the reward comparison table.
- Authors' conclusion: The authors consider this a foundation for pre-deployment auditing and suggest using discovered categories to revise specifications or create safety training data; both are left as future work.
Related papers
- The Assistant Axis: Situating and Stabilizing the Default Persona of Language ModelsAnalysis / interpretabilityICML 2026