Skip to content

Alignment waltz: jointly training agents to collaborate for safetyThe Alignment Waltz: Jointly Training Agents to Collaborate for Safety

arXiv· arXiv:2510.08240· ICLR 2026· Jingyu Zhang, Haozhu Wang, Eric Michael Smith, Sid Wang, Amr Sharaf, Mahesh Pasupuleti, Benjamin Van Durme, Daniel Khashabi, Jason Weston, Hongyuan ZhanMeta Superintelligence Labs; Johns Hopkins UniversityIndexed by this site · 2026-10-14· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

WaltzRL: WildJailbreak ASR drops from 39.0% to 4.6%, and OR-Bench ORR drops from 45.3% to 9.9%.

Questions
Safety alignment must simultaneously reduce unsafe outputs on adversarial prompts and over-refusal on benign sensitive prompts. An independent safeguard rewrites entire segments containing risky content into refusals, which the authors argue worsens over-refusal and fails to provide fine-grained guidance for refused queries.
Methods
WaltzRL jointly trains two agents: a dialogue agent and a feedback agent. The feedback side provides safety and over-refusal labels and textual suggestions, and only rewrites responses when the labels indicate a need. DIR rewards feedback using the dialogue reward difference before and after rewriting. It first trains the feedback agent with the dialogue model frozen, then updates both jointly and turns off the additive label reward.
Experiments and results
The authors state that in Table 1, WaltzRL's average ASR is 3.7% and average ORR is 7.6%, lower than the listed baselines. On WildJailbreak, ASR drops from 39.0% to 4.6%, and on OR-Bench, ORR drops from 45.3% to 9.9%. The FTR on AlpacaEval is 6.7%.
Limitations and future work
The authors state that the experiments are in English, with Tmax=1 and static prompts, and that unsafe responses and over-refusals are not completely eliminated. Future directions include other languages, more feedback rounds, adaptive attack evaluation, and a general feedback agent. The paper does not report the number of repetitions or human agreement.
Experimental setupLlama-3.1-8B-Instruct · WildJailbreak、WildJailbreak training set et al. · ASR、ORR et al.
Evaluated models
Llama-3.1-8B-Instruct
Benchmarks
WildJailbreakWildJailbreak training setFORTRESS adversarial harmfulStrongREJECTOR-Bench-Hard-1KOR-Bench-80KFORTRESS benignAlpacaEval 2.0IF-EvalGPQA DiamondMMLUTruthfulQA
Metrics
ASRORRFTRLabel AccF1LCWRWR
AI summaryThe paper proposes WaltzRL, a multi-agent reinforcement learning framework that models safety alignment as a collaborative game, jointly training a dialogue agent and a feedback agent. The feedback agent is incentivized to give suggestions that improve both safety and helpfulness, with the core being a Dynamic Improvement Reward that evolves with the effect of the dialogue agent adopting feedback. At inference time, unsafe or over-refusal responses from the dialogue agent are improved rather than discarded, and the feedback agent intervenes only when needed to maintain low latency. On five datasets, unsafe responses on WildJailbreak drop from 39.0% to 4.6%, over-refusals on OR-Bench drop from 45.3% to 9.9%, without degrading general capabilities.

The paper proposes WaltzRL, a multi-agent reinforcement learning framework that models safety alignment as a collaborative game, jointly training a dialogue agent and a feedback agent. The feedback agent is incentivized to give suggestions that improve both safety and helpfulness, with the core being a Dynamic Improvement Reward that evolves with the effect of the dialogue agent adopting feedback. At inference time, unsafe or over-refusal responses from the dialogue agent are improved rather than discarded, and the feedback agent intervenes only when needed to maintain low latency. On five datasets, unsafe responses on WildJailbreak drop from 39.0% to 4.6%, over-refusals on OR-Bench drop from 45.3% to 9.9%, without degrading general capabilities.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Use two-agent positive-sum reinforcement learning to simultaneously rewrite unsafe responses and over-refusals.

    Safety alignment must simultaneously reduce unsafe outputs elicited by adversarial prompts and over-refusals on benign sensitive prompts; whole-response rejection pushes the two into opposition.

    • Scenario: The authors argue there is tension between helpfulness and harmlessness (Bai et al., 2022). Adversarial prompts such as role-playing can bypass alignment and elicit unsafe content; benign prompts similar to harmful requests are over-rejected. The authors state that over-handling unsafe risks worsens over-refusals.
    • Existing Approaches: A common approach is to add a standalone safeguard (e.g., Llama Guard, Constitutional Classifiers) outside the conversation model, replacing prompts or responses judged unsafe with a whole-response refusal. The authors argue this worsens over-refusals, especially for dual-use prompts with unclear intent and long responses that are mostly helpful but contain a small risky segment.
    • Setting: The system includes a conversation agent, and a feedback agent can be deployed alongside it. The input is a user prompt, including adversarial harmful prompts and benign prompts prone to over-refusal. The authors state this deployment requires an attack to bypass both agents simultaneously. Whether a response is unsafe or an over-refusal is determined by review labels.
    • Proposal: They propose WaltzRL, framing alignment as a positive-sum collaboration: the feedback agent gives suggestions, and the conversation agent incorporates them. At inference, unsafe or over-refusal responses are rewritten rather than discarded; feedback is triggered adaptively based on labels. Training uses the Dynamic Improvement Reward (DIR), which scores feedback by the reward difference before and after rewriting.
  2. What related research exists?

    Related work mainly includes zero-sum debate, external safeguards, and multi-agent RL; the authors position this as positive-sum collaboration.

    Related work focuses on zero-sum debate, external safeguards, and self-play or multi-agent RL.

    Debate-Based Safety

    • Zero-sum debate: Irving et al. (2018) train agents on zero-sum debate using self-play. Subsequent work extends two-player debate to more practical settings (Brown-Cohen et al., 2023; Radhakrishnan, 2023; Brown-Cohen et al., 2025).
    • RedDebate (Asad et al., 2025): Uses long-term memory to retain safety experiences learned in debate interactions. The authors distinguish this work from theirs by emphasizing positive-sum collaboration rather than agents competing with each other.

    External Safeguards

    • Classifiers and interfaces: LlamaGuard (Inan et al., 2023; Meta Llama Team, 2025), OpenAI moderation endpoint (Markov et al., 2023), Constitutional Classifiers (Sharma et al., 2025). The authors state that standalone safeguards decouple safety from the LLM, offering more flexibility when standards change; the feedback agent is similar in spirit but collaborates more deeply with the conversation model.
    • Self-Guard and AutoDefense: Wang et al. (2024) and Zeng et al. (2024). The authors state that, like safeguards, they can only strengthen safety and cannot reduce over-refusals.
    • Deliberative and constructive alignment: Deliberative alignment (Guan et al., 2025) makes the model explicitly reason over interpretable safety specifications before the final response. The authors state that this work extends such deliberation into a dialogue between conversation and feedback agents. Zhang et al. (2025a), Duan et al. (2025), and Yuan et al. (2025) improve helpfulness or constructiveness while maintaining safety; the authors state these are complementary to this work.

    Self-Play and Multi-Agent RL

    • Liu et al. (2025): Splits the same model into an attacker and a defender, using zero-sum games for RL.
    • Other role divisions: Zhou et al. (2025) trains agents that interact with human collaborators over multiple rounds; Zha et al. (2025) and Sareen et al. (2025) jointly train a generator and a verifier to enhance reasoning. The paper only describes these three works.
    • Zero-sum alignment games: Zheng et al. (2024) and Ye et al. (2025) frame alignment as a two-player game, but only explore settings where one player's reward increase implies the other's decrease. The differences the authors highlight are: this paper deploys two agents at inference, whereas Liu et al. (2025) and Zheng et al. (2024) deploy only the trained defender; and this paper's positive-sum reward encourages collaboration.

    Experimental Baselines and Benchmarks

    • Baselines: Untrained Llama-3.1-8B-Instruct, single-model RL using only the conversation reward, Llama Guard 4 added to both, two-agent collaboration without RL, and an oracle that converts ground-truth labels into template sentences (§3.1).
    • Benchmarks: Adversarial safety uses WildJailbreak, FORTRESS adversarial harmful, StrongREJECT; over-refusal uses OR-Bench-Hard-1K, FORTRESS benign; general capability uses AlpacaEval 2.0, IF-Eval, GPQA Diamond, MMLU, TruthfulQA.

    The authors position this work as a collaborative positive-sum game: two agents are rewarded for the same outcome, both are deployed at inference, and feedback is scored by the improvement brought by suggestions; this distinguishes it from zero-sum debate or zero-sum self-play, and from safeguards that reject entire unsafe responses.

  3. How does the paper address this problem?

    WaltzRL jointly trains dialogue and feedback agents, using DIR to incentivize feedback based on the reward difference before and after rewriting.

    WaltzRL uses multi-agent reinforcement learning to jointly train a conversation agent and a feedback agent. At inference, it only rewrites responses flagged as unsafe or over-refusals.

    Collaboration Protocol

    The goal is to maximize the sum of both agents' rewards, minus the KL divergence of each from its reference policy. p is the user prompt, ct is the rewrite at turn t, and ft is the feedback at turn t.

    • Turns: The conversation agent first generates c0 from p, then the feedback agent generates f0. The process continues only if the label indicates further improvement is needed and the turn limit has not been reached. The experiments set Tmax=1, meaning two conversation responses and one round of feedback. The authors state that more rounds would increase inference cost, and one round is already effective in §3.2.
    • Feedback Format: The feedback agent must output JSON with fields reasoning, unsafe, overrefuse, and feedback. Only the feedback string enters the conversation history; the reasoning and the two labels remain private to the conversation agent. Fig. 5 and Fig. 6 show the system prompts for both agents; Fig. 6 contains safety guidelines, which are not listed here.
    • Stopping: Stop when unsafe=False and overrefuse=False are predicted, or when Tmax is reached. Early in training, stop if the feedback format is invalid.

    Rewards

    The conversation reward is 1 only when the response is both safe and not an over-refusal: Rc((p,Ht−1),ct)=1{¬ unsafe∧¬ overrefuse}.

    • Alignment Labels: During training, WildGuard provides response_harmfulness and response_refusal. unsafe equals the former. overrefuse is defined as the prompt not being harmful and the response being a refusal. Whether the prompt is harmful is determined by the data source: WildJailbreak is harmful, OR-Bench is benign.
    • DIR: The improvement reward is the difference between the next-turn and current conversation rewards: RfDIR((p,Ht−1,ct),ft)=Rc((p,Ht),ct+1)−Rc((p,Ht−1),ct). It is 0 when there is no next turn. It changes as the conversation policy updates.
    • Combination: The total feedback reward is alpha times DIR times the label reward, plus lambda times the label reward, plus gamma times the format reward. The label reward is 1 when the predicted flag equals the review label; the format reward is 1 when the JSON is parseable and correctly formatted. The authors multiply DIR by whether the label is correct; otherwise the improvement term would dominate and the label reward would decrease during training.

    Policy Update

    Each step first performs a multi-turn collaborative rollout, then collects the trajectory into single-agent samples, and finally applies policy gradient to both actors, which can be done in parallel.

    • Feedback Samples: The state is (p, ct), and the action is the token of ft; one turn is randomly sampled from the occurred turns.
    • Conversation Samples: τA generates c0 from p; τB generates the final response cT on the history up to the previous turn's feedback. Each step randomly uses one type, so the model learns both to directly produce a qualified initial draft and to incorporate feedback only when needed.
    • Optimization: REINFORCE++ is extended to two agents. The advantage is the sample reward minus the sum of log-probability ratios relative to the reference policy, normalized within the actor's batch, with clipping. beta=0.01, alpha=0.65, lambda=0.25 (when not disabled), gamma=0.1, clip radius 0.2, learning rate 5·10^−7, batch size 32. Prompts are at most 4096 tokens, and each turn generates at most 512 tokens. The implementation is based on OpenRLHF and MARTI, with rollouts using vLLM.

    Two-Stage Adaptation

    The authors state that in the later stages of training, most initial drafts are already qualified, so the feedback agent sees fewer problematic samples; hence, they use two stages.

    • Stage 1: Freeze the conversation model, use the full feedback reward, and first learn the format and labels. 5000 samples each from WildJailbreak and OR-Bench.
    • Stage 2: Both models update jointly, with lambda set to 0 to avoid flag overfitting to imbalanced labels; DIR is still multiplied by label correctness. Prompts not used in Stage 1 are used in this stage. The training prompts total 20000: 10000 from the WildJailbreak training set, and 10000 from OR-Bench-80K after deduplication relative to OR-Bench-Hard-1K. RL does not use helpfulness prompts.
  4. What experiments did the paper conduct?

    The authors state that WaltzRL's average ASR and ORR are lower than the baselines in Table 1, but not the lowest in every cell for SR and FB.

    On five safety and refusal datasets, the authors state that WaltzRL's average ASR and average ORR are lower than the baselines in Table 1.

    Experimental Setup

    • Models: Both the conversation agent and the feedback agent are initialized from Llama-3.1-8B-Instruct. The safeguard baseline is Llama Guard 4, which detects prompts and responses and replaces responses with a refusal if unsafe content is found. The review model for ASR, ORR, and the Alignment Labels used in training is WildGuard.
    • Training Data: 10000 adversarial prompts from the WildJailbreak training set, and 10000 boundary refusal prompts from OR-Bench-80K (deduplicated relative to OR-Bench-Hard-1K). Stage 1 uses 5000 each, and the rest are used in Stage 2. Tmax=1. RL does not include helpfulness prompts.
    • Safety and Refusal Sets: ASR uses WildJailbreak adversarial harmful (WJ), FORTRESS adversarial harmful (FH), StrongREJECT (SR). ORR uses OR-Bench-Hard-1K (OB), FORTRESS benign (FB). The paper does not give the number of samples in these test sets, nor does it report the number of repetitions.
    • Metrics: ASR is the proportion of responses judged harmful by WildGuard; ORR is the proportion of benign prompts judged as refusals by WildGuard. Also reported are the Feedback Trigger Rate (FTR), feedback label accuracy, and F1, which is the harmonic mean of (1 − average ASR) and (1 − average ORR).
    • General Capability: AlpacaEval 2.0 reports LCWR and WR using the official implementation; the paper does not specify the review model. IF-Eval reports PS, IS, PL, IL. GPQA Diamond, MMLU, and TruthfulQA report multiple-choice accuracy; TruthfulQA uses MC1.
    • Baselines: Untrained baseline response; single-model RL using only the conversation reward; each with Llama Guard 4 added; inference-time collaboration without RL; and an oracle that converts ground-truth labels on baseline responses into template sentences.

    Main Results

    Swipe horizontally to read the table

    Method (Table 1)WJ ASRAverage ASROB ORRAverage ORR
    Baseline response39.0%26.5%45.3%25.7%
    Baseline + Safeguard16.0%9.0%48.7%29.8%
    Single-model RL13.2%12.2%11.9%8.6%
    Single-model RL + Safeguard7.3%5.3%20.7%14.9%
    Inference-time collaboration19.4%13.4%18.3%12.7%
    Oracle label-converted feedback10.6%7.0%28.2%16.6%
    WaltzRL4.6%3.7%9.9%7.6%
    • Authors' interpretation: The authors state that WaltzRL advances the Pareto front between helpfulness and harmlessness. The left figure is used to show the trade-off between average ASR and average ORR; the coordinates of the points in the figure are not individually labeled, and Table 1 is authoritative.
    • Safeguard: The authors state that adding a safeguard increases ORR, with two magnitudes: 6.3% when added to single-model RL and 4.1% when added to the baseline (§3.2). The authors argue that when over-refusal is already low without a safeguard, the negative impact is greater.
    • Exceptions: On SR, WaltzRL's ASR is 0.3%, while the baseline, its safeguard, and the oracle are 0.0%, and the untrained collaboration is 3.8%. On FB, WaltzRL's ORR is 5.4%, single-model RL is 5.2%, and the oracle is 5.0%. The authors state that even with ground-truth labels, the oracle cannot reduce both rates to 0 and has a more limited effect on over-refusals, and they argue that fine-grained feedback is more critical for persuading the model to rewrite over-refusals.

    General Capability and Instruction Following

    • Training itself: In Table 2, Llama-3.1-8B-Instruct's LCWR/WR is 37.2%/26.8%, and after WaltzRL training it is 35.9%/26.7%. GPQA goes from 34.8% to 33.8%; MMLU from 68.0% to 68.1%; TruthfulQA MC1 is 37.0% in both. IF-Eval's PS/IS/PL/IL goes from 42.1/56.7/47.5/60.8 to 43.8/58.5/47.9/62.1. The authors state that even though RL does not use helpfulness prompts, general capability declines little.
    • With adaptive feedback: In Table 4, WaltzRL's FTR on AlpacaEval is 6.7%, with LCWR/WR of 35.3/26.0; without adaptive feedback it is 35.9/26.7. The untrained collaboration has an FTR of 42.6% and LCWR/WR of 32.2/24.1, and without feedback it is 37.2/26.8. The authors state that triggering is rare on non-safety prompts, and the win-rate drop is small.

    Feedback Triggering and Labels

    • Table 3: The untrained collaboration's label accuracy on WJ/OB is 31.4%/63.9%, with FTR of 82.2%/75.5%. WaltzRL's are 70.1%/60.6% and 48.2%/43.1%. Label accuracy increases on WJ but is lower than the untrained collaboration on OB. The authors state that training reduces over-triggering.
    • Latency: The authors state that even on sets containing only challenging safety or refusal prompts, the FTR is below 50%, and they state that at Tmax=1 the latency impact is similar to a safeguard. The paper does not report specific times.
    • Qualitative: The authors state that in the examples in §G, feedback changes over-refusals into compliance, and the rewrite follows the outline in the feedback; behaviors also appear where the feedback agent directly guides the other agent on what to say and writes ideal response quotes. The example texts are not reproduced.

    Joint Training and DIR

    • Frozen conversation model: In Table 5, the average ASR is 5.1%, the average ORR is 14.2%, and F1 is 90.1; in the same table, WaltzRL has 3.7%, 7.6%, and 94.3. The authors state that joint updating is better.
    • Removing DIR: In Table 6, replacing DIR with the next-turn conversation outcome reward gives an average ASR of 8.4%, an average ORR of 6.7%, and an F1 of 92.4. On OB, the ORR is 6.9%, lower than WaltzRL's 9.9% in the same table; on FB it is 6.6%. The authors still state that removing DIR is overall worse.
    • Reward variants: Fig. 2 compares three feedback rewards. The authors state that all three improve more than they worsen; (A) has the most accurate labels but slightly lower helpfulness than (B) and (C); (C), which completely removes the label term, has the worst labels. Multiplying DIR by label correctness is necessary to maintain label accuracy. The paper does not give the percentages in the figure. Stage 1 uses (A), and Stage 2 uses (B).

    Other Ablations and Analyses

    • Removing Stage 2 (Table 7): WJ ASR 11.7%, OB ORR 35.1%; Label Acc is WJ 71.4%, OB 58.3%; FTR is WJ 52.7%, OB 29.9%. The authors state that ASR/ORR are higher while labels and FTR are similar; in the same table, WaltzRL's OB FTR is 43.1% and WJ Label Acc is 70.1%, and the directions are not all consistent.
    • Using only τA (Table 8): average ASR 3.7%, average ORR 8.6%, F1 93.8; FH ASR 4.6%, SR ASR 1.6%.
    • Using only τB (Table 8): average ASR 5.8%, average ORR 9.2%, F1 92.4. The authors state that mixed sampling is better.
    • Fig. 3 and Fig. 4: The paper does not give endpoint values. The authors state that Stage 1 learns the legal format and correct labels; Stage 2 simultaneously improves the rewards of both the initial and final responses, with the final reward still higher at the end.
  5. What are some points that can be further explored?

    The authors state that the experiments are in English, single-turn feedback, and static prompts, and that both types of errors are not fully eliminated.

    In the Limitations and Conclusion, the authors list future work in four areas: language, number of feedback rounds, attack types, and a general feedback model.

    Limitations and Future Directions Noted by the Authors

    • Language: Experiments are conducted on English datasets. Future work could evaluate other languages, including side-channel attacks in low-resource languages (§F, citing Shen et al., 2024).
    • Number of feedback rounds: Due to computational resources, only at most one round of feedback was used (Tmax=1). More rounds might bring further improvements (§F).
    • Attack types: Evaluation uses static adversarial prompts. The authors state that dynamic adaptive attacks would yield stronger results (citing Zhang et al., 2025b; Nasr et al., 2025), and future work could extend evaluation to adaptive attacks (§F).
    • Residual errors: WaltzRL does not completely eliminate unsafe responses and over-refusals, and the authors therefore argue the topic still requires future research (§F).
    • Scope of the feedback model: This paper trains the feedback agent to be tailored to a specific conversation agent. Future work could train a general feedback agent that works out of the box with different conversation models (§5).

    Experimental Coverage

    • Backbone: Both the conversation agent and the feedback agent are initialized from Llama-3.1-8B-Instruct; the safeguard comparison is Llama Guard 4 (§3.1).
    • Evaluation sets: Safety and refusal use WJ, FH, SR, OR-Bench-Hard-1K, and FB; general capability uses AlpacaEval 2.0, IF-Eval, GPQA Diamond, MMLU, and TruthfulQA (§3.1). §F states that these experiments are conducted on English datasets using static adversarial prompts.
    • Comparisons and training data: Table 1 includes baseline response, single-model RL, two variants with Llama Guard 4 added, untrained collaboration, and oracle label-to-template feedback. The training prompts total 20000, from the WildJailbreak training set and deduplicated OR-Bench-80K (§B.1).
    • Judgment and rounds: Training Alignment Labels and evaluation ASR/ORR use WildGuard; experiments use Tmax=1 (§C, §D, §3.1).
    • Not reported in the paper: Number of evaluation repetitions, number of samples in each test set, number of training steps, and agreement between reviewers and humans. Adversarial prompts come from existing datasets; the paper does not report generating prompts with an attack model.
  6. Summarize the main content of the paper

    WaltzRL uses positive-sum reinforcement learning to jointly train two agents, rewriting both unsafe and over-refusal responses.

    WaltzRL jointly trains a dialogue agent and a feedback agent with a positive-sum game, so that responses remain safe while reducing over-refusal.

    The contradiction to address is: adversarial prompts elicit unsafe content, while an independent safeguard rejects entire segments of risky content. The authors argue this worsens over-refusal on benign sensitive prompts and fails to provide fine-grained guidance for refused queries.

    The feedback side outputs unsafe and overrefuse labels and textual suggestions, and only passes suggestions back to the dialogue side for rewriting when the labels indicate a problem. DIR equals the difference in dialogue reward between the rewritten and pre-rewrite responses, multiplied by whether the labels match WildGuard's aligned labels. Stage 1 freezes the dialogue model to learn format and labels; Stage 2 updates both jointly and turns off the additive label reward. Experiments use Tmax=1, and both sides are initialized from Llama-3.1-8B-Instruct.

    • Table 1: On WildJailbreak, ASR goes from 39.0% to 4.6%, with an average ASR of 3.7% across WJ/FH/SR; on OR-Bench-Hard-1K, ORR goes from 45.3% to 9.9%, with an average ORR of 7.6% across OB/FB. The authors state these two averages are lower than the listed baselines.
    • The same table does not have the lowest in every cell: on StrongREJECT, WaltzRL is 0.3%, while several baselines are 0.0%; on FORTRESS benign, ORR is 5.4%.
    • Table 2: Without helpfulness prompts, AlpacaEval LCWR goes from 37.2% to 35.9%, GPQA from 34.8% to 33.8%, and TruthfulQA MC1 remains 37.0%. The authors state general capabilities decline little. In Table 4, FTR on AlpacaEval is 6.7%.
    • Tables 5–6: F1 is 94.3; with a frozen dialogue model it is 90.1, and without DIR it is 92.4. Without DIR, average ORR is 6.7%, lower than WaltzRL's 7.6%, but average ASR is 8.4%.

    The authors state that collaborative positive-sum training and on-demand feedback can simultaneously reduce both types of errors, and claim this advances the Pareto front of helpfulness and harmlessness. They also argue that fine-grained feedback is more effective than template sentences converted from ground-truth labels for reducing over-refusal. Future work is to train a general feedback agent that can work with different dialogue models.

Related papers

Both use: AlpacaEval 2.0
Show 3 more papers
Read originalICLR 2026