Logic Foundry

Build with understanding.

TriPlay-RL trains a safety evaluator to distinguish helpful answers from bare refusals

A refusal can keep a language model from giving dangerous advice, but it tells a trainer little about whether the model could have offered useful help instead. TriPlay-RL, a reinforcement learning framework from the Peking University–360 Joint Large Model Laboratory, makes that distinction part of training. In their ACL 2026 paper, the researchers report that after 10 rounds of training, the attack success rate against their 14-billion-parameter defender fell from 25.6% to 4.6% on JailBreakBench.

How the evaluator gives feedback

TriPlay-RL uses three separate model instances: a red-team model proposes challenges, a blue-team model answers them, and an evaluator judges the responses. The researchers update one model at a time, in that order, using reinforcement learning objectives based on Group Relative Policy Optimization (GRPO).

The evaluator learns from prompt-and-answer pairs collected during training. Safety experts first assess whether an answer is dangerous. For safe answers, usefulness experts distinguish a bare refusal from a response that offers guidance, such as explaining the risk or suggesting a safe alternative. Expert votes supply the labels the evaluator learns to predict.

A bare refusal earns the defender zero reward; safe, useful guidance earns a positive reward. This gives the defender a reason to help where it can without supplying dangerous details. Updating the evaluator on new exchanges also means it learns from the kinds of responses it will judge in later rounds.

Why test against more than one model?

One experiment shows how a high attack success rate can hide a narrow capability. When the researchers removed both the training loop and the penalty for repetitive prompts, the red-team model repeatedly generated a fixed template. It succeeded 98.2% of the time against Llama-3.1-Nemotron-Nano-8B but only 0.2% of the time against Meta-Llama-3.1-8B-Instruct.

With the complete framework, success against Nemotron fell to 85.4%, while success against Llama rose to 6.6%. The output diversity score rose from 0.004 to 0.588. Judged on Nemotron alone, the repetitive model would look better. The second target and the diversity measure reveal what that comparison misses, although even the complete model rarely succeeded against Llama.

What the benchmarks measured

The team tested defenders initialized from the 4B, 8B and 14B versions of Qwen3. Attack success rates generally declined across AIR-Bench2024, JailBreakBench, WildJailBreak and S-Eval. Alongside the JailBreakBench result, the 14B defender’s rate on AIR-Bench2024 fell from 13.9% to 4.4% after 10 rounds.

The researchers tested the evaluator separately on 3,000 expert-verified examples labeled as dangerous outputs, bare refusals or safe guidance. Classification accuracy rose from 48.2% to 56.2% for the 4B evaluator, from 54.9% to 64.3% for 8B, and from 97.0% to 98.2% for 14B. The largest evaluator was already highly accurate before training; the smaller models improved but remained substantially less reliable at making the distinction.

The defender received no reasoning or general-task data during safety training. Across 12 comparisons covering three model sizes and four benchmarks—LiveCodeBench, GPQA, AIME2025 and IFEval—the team reported performance broadly comparable to the base models. That result concerns the capabilities those tests measured. Likewise, the lower jailbreak rates measure resistance to the tested attacks, not how often users received useful guidance in practice.