# Turning Safety into Competence: Minimally Exploitable Robot Policies via Safety-Filtered Reinforcement Learning

Robotics.world

> Robots that compete against opponents — in racing, robot soccer, or pursuit–evasion — must win without falling over, leaving the field, or crashing into the other player.

**arXiv**: 2609.27312 · Preprint · not peer-reviewed

**Published**: 2026-09-23

**Authors**: Ruihan Wu, Rui Yang, Donggeon David Oh, Duy Nguyen, Haimin Hu

## In plain words

Robots that compete against opponents — in racing, robot soccer, or pursuit–evasion — must win without falling over, leaving the field, or crashing into the other player. Standard safe RL trains one policy to do both jobs at once, which is hard to tune and often produces policies that are either too timid or too reckless, and either way can be deliberately exploited by an opponent.

## AI summary

## Overview

**Research area:** Safe reinforcement learning, multi-agent game theory, and legged-robot control — specifically competitive human–robot interaction where a safety violation means immediate loss.

**Technical level:** Advanced. The paper combines a formal safety-critical Markov game formulation and an equilibrium/exploitability analysis with a two-stage adversarial-RL training pipeline and hardware trials.

**Scope:** The paper proposes S2C (Safety to Competence), a two-stage framework that learns a robust safety filter first, then trains competitive task policies inside the filtered environment, and proves that perfect filtering preserves non-exploitability for safety-committed players.

## What This Paper Is About

Robots that compete against opponents — in racing, robot soccer, or pursuit–evasion — must win without falling over, leaving the field, or crashing into the other player. Standard safe RL trains one policy to do both jobs at once, which is hard to tune and often produces policies that are either too timid or too reckless, and either way can be deliberately exploited by an opponent. The authors instead split the problem in two: build a safety filter that independently keeps the robot out of failure states, then let a task policy learn to win while that filter is active during both training and deployment.

## Key Contributions

1. **A game-theoretic formulation of competitive safety.** The authors define a Safety-Critical Markov Game (SC-MG) with per-player solo margins (e.g., distance to ground and field boundary), coupled margins (e.g., distance to the opponent), a fault-attribution map for collisions, and an augmented reward with an absorbing win/loss term of magnitude ρ. They prove the game is zero-sum (Proposition 1) and admits a value at every state (Proposition 2).
2. **A non-exploitability guarantee for safety–task separation.** Theorem 1 shows that, given *perfect* safety filters, a Nash equilibrium of the filtered game induces, through the same filters, an equilibrium of the original SC-MG restricted to safe policies — so both players have zero exploitability in their respective games.
3. **The S2C training framework.** A two-stage pipeline: stage one synthesizes a robust safety filter per player via adversarial RL (instantiated with MAGICS, producing a safety critic and a fallback policy); stage two trains task policies with the filter embedded in the transition dynamics (instantiated with IPPO), using a pool of historical checkpoints as opponents; deployment reuses the identical filter.
4. **Large-scale simulation and hardware validation.** Evaluation against eight safe RL baselines (early termination, reward penalty, CPO, and PPO-Lagrangian, each with and without the filter at deployment) in symmetric and asymmetric quadruped touchdown games, plus stress tests against a human opponent on physical hardware.

## Main Findings

- **Highest competitive performance in simulation.** In the symmetric game S2C reaches a 76.5% ± 2.0 win rate and 90.0% ± 1.9 safe rate; in the asymmetric game, 77.5% ± 2.8 win rate and 87.9% ± 2.4 safe rate. Each table row corresponds to 31,200 games.
- **Large Elo margin.** S2C attains the highest joint Elo rating at 139, more than 100 points above the runner-up, Nom† at 37.
- **Lowest empirical exploitability.** The strongest opponent in the evaluation pool achieves a net win rate of only 0.11 against S2C, versus 0.54–0.75 against baselines. Because the pool contains unfiltered baselines, this means S2C resists even opponents not committed to safe play.
- **A filter bolted onto a baseline does not create competence.** Adding S2C's filter to the baselines at deployment raised safe rates by up to 22.4 percentage points, but changed win rates by at most 7.4 percentage points, and exploitability stayed high. The authors attribute this to baseline policies never learning to cooperate with the filter, so it intervenes constantly and degrades their play.
- **Tactics emerge earlier with filtering.** Feints and abrupt stop-and-turn maneuvers appeared noticeably earlier in S2C training than in baselines, which the authors credit to the filter braking or stabilizing the robot near danger instead of forcing the policy to discover safety through catastrophic failures.
- **Strong hardware results against a human.** Over ten trials per role, S2C achieved the highest task completion at 70% in both roles, with 80% safe rate as attacker and 90% as defender. ET and Nom dropped to 30%–60% safe rates when attacking; CPO scored zero touchdowns as attacker (a violation on every trial) and reached 100% defensive safety only by passively traversing the field.
- **Robustness to unseen human behavior.** S2C faced the most demanding human motion, with the highest mean human peak speed in both roles (2.14 ± 0.36 m/s when attacking, 2.40 ± 0.38 m/s when defending) and the highest attacking human peak acceleration (5.83 ± 1.30 m/s²). These human strategies were not seen in training.

## Methodology in Plain English

The authors treat each robot as playing a two-player zero-sum game in which falling, leaving the field, or causing a collision ends the game immediately, and a fault-attribution rule decides who is blamed when both players violate safety at once (for collisions: whoever closes on the opponent faster).

**Stage one — build the safety net.** Each robot's safety filter is trained separately from any task objective, as a game between the robot and an adversary that actively tries to push it into failure. The adversarial RL algorithm MAGICS jointly learns a fallback policy and a safety critic. In the touchdown game the state is 62-dimensional and the action is a 12-dimensional normalized joint-position increment, tracked by a joint-level PD controller; the fallback and critic are three-layer MLPs with hidden widths of 512 and 256 units, trained in 2048 parallel MuJoCo environments on an RTX 5080.

**Stage two — learn to win inside the net.** Task policies are trained with the filter acting inside the simulator, so every action the policy proposes is either passed through unchanged (if safe) or corrected. The policy is never told about the filter and gets no extra safety reward — it simply experiences the consequences of overrides and learns to avoid provoking them. Training uses IPPO with an MLP of three hidden layers (512, 256, 128), 8192 parallel environments, a sparse ±1 touchdown reward plus a dense locomotion shaping term annealed after 1000 iterations, opponent-pool sampling probability p = 0.35, and 5000 iterations, with opponents chosen preferentially when their win rate is near 50%.

**Deployment.** At runtime the same filter is kept, approximated as a Robust Q-CBF: it runs a fixed number of gradient steps to find an action close to the proposed one that the learned critic certifies as safe, falling back to the learned safety policy if none is found.

**Evaluation.** Nine methods (S2C plus eight baselines) are compared in a round-robin tournament over five random training seeds, with each figure in the win-rate matrix averaged over 3900 trials. Hardware trials use an HTC Vive Lighthouse system with two base stations at diagonal field corners and SteamVR trackers on the robot and the human, with inference and filtering on a Jetson Nano at 50 Hz.

## Why This Matters

**Impact on research.** The paper moves the "safety filter costs you performance" intuition onto formal ground for competitive settings: it shows that with perfect filtering, safety-committed equilibria are not exploitable, and it demonstrates empirically that the filter must be present *during* training for that benefit to materialize. This reframes filter placement as a training-time design decision rather than a deployment-time patch, and gives a template for separating safety synthesis from strategic learning in multi-agent settings.

**Real-world applications:**

- Legged robot soccer and other robot-vs-robot sports, where falling or colliding is both a failure and a forfeit.
- Drone racing and motorsports, where aggressive racing lines must respect hard physical limits.
- Pursuit–evasion and perimeter-defense security robots operating near people.
- Human–robot competitive training or rehabilitation games, where the robot must be a worthy but safe opponent.

**Industry relevance.** Companies deploying quadrupeds and humanoids in shared spaces need policies that stay safe against unpredictable humans without becoming passive. S2C offers a modular recipe — any filter-synthesis method, any MARL algorithm, any filter deployment mechanism — plus evidence that a pretrained filter can be reused across the training and deployment stack, which fits existing sim-to-real pipelines and on-robot inference budgets (50 Hz on a Jetson Nano here).

## Future Directions

- **Guarantees under imperfect filters.** The theory assumes perfect filters; deriving formal guarantees for ε-Nash equilibria under approximation error from imperfect filters and task policies is stated as an open question.
- **Scaling filter synthesis to harder dynamics.** The filter here relies on a learned critic over a 62D observation; extending robust synthesis to higher-dimensional or contact-rich systems remains a modeling and compute challenge.
- **Perception-in-the-loop filtering.** The authors propose integrating S2C with latent-space safety filters that use visual feedback, for competitive interaction in unstructured, open-world environments.
- **Broader game structures.** The formulation covers two players (or two groups) in a zero-sum game with unique fault attribution; extending non-exploitability results to multi-player general-sum interactions or ambiguous fault cases is not addressed.

## Target Audience

Robotics and RL researchers working on safe control, multi-agent learning, or legged locomotion; graduate students studying safety filters, constrained MDPs, or game-theoretic policy learning; and practitioners in robot sports, drone racing, or field robotics who need competitive policies with hard safety guarantees and want a concrete, hardware-validated baseline comparison. Readers without a background in Markov games, Nash equilibria, or control barrier functions will find the theoretical sections demanding, though the experimental narrative is accessible.

## Authors’ abstract

Robots deployed for competitive tasks must outmaneuver their opponents without sacrificing safety. Existing approaches, including safe reinforcement learning (RL), train a single policy to achieve task success and avoid failures simultaneously. This coupling can complicate training and leave the learned policy exploitable by deliberate attacks. We propose Safety to Competence (S2C), a two-stage RL framework that separates safety synthesis from competitive task learning. We…

[The full abstract on arXiv](https://arxiv.org/abs/2609.27312)

[Read the original paper](https://arxiv.org/abs/2609.27312)

## Related papers

- [Unified Overview of Safety Certificate Functions: Techniques from Hamilton--Jacobi Reachability and Control Barrier Functions](https://robotics.world/paper/unified-overview-of-safety-certificate-functions-techniques-from-2611.07537) 2026-11-05 · cs.RO · Also by Donggeon David Oh, Haimin Hu
- [DexMimic: A Generalist Dexterous Hand-Object Tracking Policy via Value-Guided Reset Allocation](https://robotics.world/paper/dexmimic-a-generalist-dexterous-hand-object-tracking-policy-via-value-2610.19089) 2026-10-13 · cs.RO · Also by Rui Yang
- [T(R,O) Grasp++: Cross-Embodiment Dexterous Grasping in Cluttered Environments at Scale](https://robotics.world/paper/t-r-o-grasp-cross-embodiment-dexterous-grasping-in-cluttered-2610.25410) 2026-10-18 · cs.RO · Also by Rui Yang
- [TwinBridge: Digital Twin-Driven Policy and Reward Transfer for Real-World Reinforcement Learning in Laboratory Robotics](https://robotics.world/paper/twinbridge-digital-twin-driven-policy-and-reward-transfer-for-real-2611.06442) 2026-11-04 · cs.RO · Key terms of the title in common
- [Generalizing deep reinforcement learning across cable-driven parallel robot configurations with actuator-level policies](https://robotics.world/paper/generalizing-deep-reinforcement-learning-across-cable-driven-parallel-2608.07546) 2026-07-31 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/turning-safety-into-competence-minimally-exploitable-robot-policies-via-2609.27312
