← Latest papers
🤖 AI

Safety Alignment of LMs via Non-cooperative Games

This paper introduces AdvGame, a novel safety alignment paradigm that frames the interaction between an Attacker and a Defender language model as a non-zero-sum game trained via online reinforcement learning with preference-based rewards, resulting in a more robust and helpful Defender alongside a powerful general-purpose red-teaming agent.

Original authors: Anselm Paulus, Ilia Kulikov, Brandon Amos, Rémi Munos, Ivan Evtimov, Kamalika Chaudhuri, Arman Zharmagambetov

Published 2026-06-02
📖 5 min read🧠 Deep dive

Original authors: Anselm Paulus, Ilia Kulikov, Brandon Amos, Rémi Munos, Ivan Evtimov, Kamalika Chaudhuri, Arman Zharmagambetov

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a very smart but inexperienced robot (the Defender) how to handle a chaotic world full of tricky questions, some of which are dangerous.

Traditionally, developers tried to teach this robot by showing it a list of "bad questions" and saying, "Don't answer these." But the robot is smart; it eventually learns to memorize the list but fails when someone asks a new kind of bad question it hasn't seen before. It's like teaching a security guard to recognize only the specific faces on a "wanted" poster, rather than teaching them to spot suspicious behavior in general.

This paper introduces a new way to train the robot called AdvGame. Instead of a teacher and a student, they set up a video game with two players:

  1. The Attacker (The "Trickster"): A robot whose only job is to invent new, clever ways to trick the Defender into saying something harmful.
  2. The Defender (The "Guardian"): A robot whose job is to answer helpful questions while safely dodging the Trickster's traps.

The Core Idea: A Never-Ending Dance

In the old method, the Trickster would try to break the Guardian, then the Guardian would get patched up, then the Trickster would try again. It was a slow, back-and-forth "cat-and-mouse" game.

In AdvGame, they play simultaneously.

  • The Trickster tries to find a new hole in the Guardian's armor.
  • The Guardian instantly learns to patch that hole.
  • Because they are playing at the same time, the Guardian learns to handle any new trick the Trickster comes up with, not just the ones it saw yesterday.

The paper argues that this isn't a "zero-sum" game (where one wins and the other loses). Instead, it's a non-zero-sum game. The Trickster isn't trying to destroy the Guardian; it's trying to make the Guardian better by finding its weaknesses. The Guardian isn't trying to silence the Trickster; it's trying to stay helpful while refusing to be tricked.

The Scoreboard: "Better Than" vs. "How Many Points"

A major innovation in this paper is how they judge the players.

  • Old Way (Point-wise): A judge gives a score like "7 out of 10" to a single answer. This is tricky because "7" is subjective. The robot might learn to game the system by giving answers that look good to the judge but aren't actually safe (like a student memorizing the answer key rather than learning the subject).
  • New Way (Pairwise): The judge is shown two answers side-by-side and simply asked, "Which one is better?"
    • Analogy: Instead of asking a food critic to rate a burger on a scale of 1 to 10 (which is hard to calibrate), you just ask, "Is Burger A better than Burger B?" This is much harder to cheat and gives a clearer signal of what "good" actually looks like.

The Results: Stronger and Smarter

The paper tested this method on two popular robot models (Llama and Qwen). Here is what they found:

  1. The Guardian got tougher: The Defender models trained with AdvGame were much harder to trick. When tested against known "jailbreak" attacks (ways to bypass safety filters), they held their ground much better than models trained with old methods.
  2. The Guardian stayed helpful: A common problem with safety training is that the robot becomes too cautious and refuses to answer harmless questions (like "How do I kill a computer process?"). AdvGame managed to keep the robot helpful and useful while still being safe.
  3. The Trickster became a super-tool: The Attacker robot didn't just disappear after training. It became a powerful "Red Team" tool. This means the Attacker itself can now be used to test other robots to see if they are safe, acting as a professional stress-tester.

The Secret Sauce

The paper highlights three reasons why this worked so well:

  • Two Separate Robots: They didn't use one robot to play both roles (which can get confused). They used two distinct models, so the Attacker stays focused on attacking and the Defender on defending.
  • The "Better Than" Judge: Using the pairwise comparison (which is better?) prevented the robots from cheating the scoring system.
  • The "Moving Average" Trick: They used a technique called EMA (Exponential Moving Average). Imagine the Guardian is a student taking a test. Instead of panicking because they got one question wrong, they look at their performance over the last few weeks to see their true skill level. This keeps the training stable and prevents the robot from overreacting to a single bad example.

Summary

AdvGame is like a gym where a robot learns to dodge punches. Instead of a coach showing it a video of a punch and telling it how to dodge, the robot trains by sparring with a partner who is constantly inventing new punches in real-time. The result is a robot that is not only safer but also more useful, and a sparring partner that is so good at finding holes in defenses that it can be used to test any other robot in the future.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →