🦆 Learning to fight: what the ring changes
on December 1, 2026
One robot, two rings and 36 more draws. Inside Team Murmell’s MicroDuck sumo experiments with reinforcement learning, counterfactual simulation and parallel coding agents.
Building Physical AI in Paris
On December 1, 2026, I joined Arthur Testard and Moss’Ab Mirande-Ney at CNIT Paris La Défense, in room Dragonnier 6, for AI Tinkerers Paris’s Physical AI Builders Day. The event brought together apidays, FOST and PAIR(ED). DuckFightClub co-organized the sumo challenge, Featherless AI sponsored the event and Swanbase was a community partner. DuckFightClub founder Nicolas Grenié was listed among the co-organizers and judges. Event and venue · Hackathon portal · Nicolas Grenié
We chose Track 1, MicroDuck Sumo. The Open Physical AI track welcomed projects beyond sumo. Simulation-only projects were eligible. The judging criteria emphasized working prototypes, measurable performance and reproducibility. One portal snapshot listed 16 teams and 24 members on team rosters. Attendance and the number of final submissions are separate figures. Organizer handbook
Arthur led Team Murmell and brought ML and research engineering experience. Moss’Ab, Murmell’s founder and CEO, brought agent infrastructure and distributed development experience. I participated as Darkwood’s founder and a full-stack engineer, preparing the local simulator and working on tooling and benchmark interpretation. The experiments were team work. Public Git history credits Moss’Ab on much of the repository and records Codex as a co-author on several benchmark commits. Commit authorship alone cannot assign every research contribution. Team history · Series comparison
What the robot controls
Pollen Robotics’ MicroDuck is a small open-source biped. Two copies of the robot share a MuJoCo ring. The referee counts a ring-out when the center of the trunk stays beyond the yellow boundary for 100 ms. Falls remain in play. A timeout or simultaneous ring-out is a draw. Physics and servos update at 200 Hz, and the runner calls the policy at 50 Hz. The 20 ms control interval also has to accommodate the other robot and physics. A fast inference measurement on its own cannot establish real-time performance. Participant guide
Position, momentum, contact and balance constrain the commands that will work. Asking a coding agent to prepare an experiment and asking a controller to recover from a push are different jobs. Codex and Claude helped develop the software. The simulation loop runs numeric ONNX policies and contains no live LLM call. Deploying a policy on hardware would require separate checks for sensor and actuator delays, contact, friction and model mismatch. Our results are simulation results. Kit contract
A frozen walker and a tactical commander
We reused the kit’s Alpha Walking network with frozen weights. A tactical commander decides how to move. The walker converts that choice into joint actions while accounting for the robot’s state. This let us change strategy and keep locomotion fixed across candidate comparisons.
flowchart TD
O["MuJoCo observations · float32 [1,72]"] --> F["Extract 17 tactical features"]
F --> C["Commander · MLP 17 → 64 → 64 → 3"]
C --> V["Forward, lateral and yaw commands"]
O --> P["48 proprioceptive values"]
P --> W["Alpha Walking · frozen weights"]
V --> W
W --> A["14 joint actions"]
A --> M["MuJoCo physics and servos"]
M --> O
The learned control loop. Both neural components are embedded in one graph.
The learned commander extracts opponent relative position, velocity and heading, the vector to the ring center, edge margin, time remaining and opponent uprightness from indices 61–71. Robots also observe projected gravity and their own gyro, scaled by 0.25 for the commander. Three bounded commands, ten zeros and the 48 proprioceptive values form the walker’s 61 inputs. The result is a stateless, self-contained sumo_v1 ONNX with one float32 [1,72] input and one [1,14] output. The referee applies the kit’s home pose and action scale. Exporter
During training the Python environment holds each choice for five control steps, or 100 ms. The exported graph has no hold counter and recomputes commands at each 20 ms call in the standard runner. The reported parity check of about 2 × 10⁻⁷ compares instantaneous commands on synthetic observations. It does not establish parity across complete trajectories at different cadences. Training environment · ONNX export check
smart-v3, the scripted baseline
Our first commander aimed about 100 ms ahead of the opponent, cruised at about 0.40 m/s and increased speed to 0.52 m/s at close range when aligned. It steered inward near the boundary. An outward pushing bias caused self ring-outs and the search took its coefficient to zero.
We used the cross-entropy method to sample nine parameters and fit the next generation’s distribution to strong candidates. Eight generations, 16 candidates and 24 bouts per candidate amount to 3,072 optimization bouts, with training seeds 1–4. The repository reports about 26 minutes on eight CPU cores, an artifact around 0.8 MB and about 0.5 ms CPU inference.
Protocol. Radius 0.5 m, three kit opponents (Alpha Pressure, Velstand Counter and Alpha Chase), seeds 301–306 held out for this phase, both starting sides, 36 single 30 s bouts per model. Draws retained, with no tie-break.
| Model | Wins | Losses | Draws |
|---|---|---|---|
smart-v3 |
7 | 3 | 26 |
rookie-starter |
3 | 5 | 28 |
trained-v1 |
0 | 6 | 30 |
The test gave us a useful baseline against walkers. The large draw count and the mixed results against other autonomous commanders limit the conclusion. Seeds 301–306 later became PPO selection seeds. smart-v3 implementation and reports
Behavior cloning, PPO and self-play
Behavior cloning used smart-v3’s commands to initialize the actor. PPO then optimized simulated trajectories. Its actor is a 17 → 64 → 64 → 3 MLP. A 17 → 128 → 128 → 1 critic estimates value during training. PPO clips the policy probability ratio during updates, and the critic stays out of the exported graph.
The original reward used +1 for a win, −1 for a loss and −0.1 for a timeout draw. A radial potential encouraged the own robot to stay farther inside the ring than the opponent. A later optional correction used the discounted potential difference γΦ(s′) − Φ(s), with terminal potential zero. That change postdates the first v3 checkpoint. CPU workers collected episodes with randomized sides. The league sampled difficult opponents more often, and self-play added a frozen earlier checkpoint. PPO code and results · Potential correction
Selection protocol. Radius 0.5 m, seven opponents, seeds 301–306, both starting sides, single 30 s bouts without a tie-break. The smart-v3 row is a subset of the league.
| Model and opponents | Bouts | Wins | Losses | Draws |
|---|---|---|---|---|
ppo-v3-ck1, league |
84 | 54 | 3 | 27 |
ppo-v3-ck1 vs smart-v3 |
12 | 7 | 1 | 4 |
In subsequent confirmation lots 471–473 and 491–495, the same checkpoint recorded 61 wins, 12 losses and 39 draws across 112 bouts. Each lot used seven opponents, both sides, a 0.5 m ring and single 30 s bouts with draws preserved. These lots were used to confirm tactical comparisons and have a different role from the selection league. Confirmation reports
Expert gates and counterfactual decisions
A gate selected or blended the commands of smart-v3, charger, guardian and interceptor. A later version added the tactical head of an earlier PPO as a fifth expert. The data generator restored the same MuJoCo state, servo state, action history, delays, referee state and random generators for each short rollout. Whole episodes were held out for validation so that neighboring frames could not leak across the split.
The 28-bout selection test used seven opponents, seeds 301–302, both sides and single 30 s bouts in a 0.5 m ring, with no tie-break. The soft gate scored 3/5/20, the near-discrete gate 1/4/23 and smart-v3 9/2/17, in wins/losses/draws. Team notes also describe a depth-three tree that won more series against Rookie and lost more overall, and a depth-four tree that lost less and drew more. The public repository lacks the full raw reports for that tree comparison. Learning which action looks best over a short horizon can still yield a weaker complete match. Meta-policy experiments
We investigated recentering, pursuit and prolonged pushing. Relative radial motion and contact helped explain traces. The exported interventions used available observations, including edge margin, relative position and projected gravity. One selected replay shows recentering turn a draw into a win. In another, it turns a winning branch into a draw. Retrospective examples can explain what happened from a particular state. Matched trials on new starts test whether a change transfers. Trace cases
Matched series protocol. Radius 0.5 m, Alpha Pressure, Velstand Counter and Rookie Starter, seeds 781–784 and 791–794, both starting sides, 48 series per policy. First to two wins in at most five 30 s bouts, an additional reversed-side bout for unresolved series and no final coin toss.
| Policy | Series won | Lost | Drawn |
|---|---|---|---|
| PPO with predictive interception | 44 | 2 | 2 |
ppo-v3-ck1 |
41 | 4 | 3 |
Predictive interception looked promising in the small ring, where a short displacement can finish a push. Prolonged pushing did not fare as well across opponents. The series difference is a measured result for these seeds and opponents. Series reports
GRPO and the recommended model
GRPO kept the PPO commander and walker and compared complete episodes with the same seed, opponent and side. The code used normalized within-group returns as advantages, dropped zero-variance groups, clipped updates asymmetrically and optionally regularized toward the starting actor with a KL term. This implementation used the group baseline in place of PPO’s learned critic.
G1 used KL and G2 omitted it, both at 0.5 m. G4 and G5 started from ppo-v3-ck1 and trained at 1 m with victory-oriented shaping and a stronger draw penalty. G4 disabled KL. G5 used a KL coefficient of 0.02. Spot interruptions led the team to change checkpoint collection while recovering intermediate exports. GRPO trainer and configs
Sealed protocol. Radius 1 m, 11 kit opponents, seeds 601–603, both sides and 66 single 30 s bouts per model. Draws retained with no tie-break.
| Model | Wins | Losses | Draws |
|---|---|---|---|
| GRPO G4 | 17 | 0 | 49 |
| GRPO G5 | 19 | 1 | 46 |
ppo-v3-ck1 |
15 | 0 | 51 |
G4 is the repository’s recommendation. G5 has a net score one point higher. Small differences among draw-heavy results are insufficient evidence of statistical superiority. The team reports that G4 passed duckfight validate --team and measured roughly 0.34 ms CPU inference. The published file’s independently recalculated SHA-256 is below.
1a2e0f3a7e46909f6be226728dba85de7eba6172f4ccd13eaee477ffe5aef081
Recommended ONNX and evaluation notes
Half a meter changed the benchmark
On seeds 301–303, the same ppo-v3-ck1 played 66 single 30 s bouts per radius, against 11 kit opponents on both starting sides, with no tie-break. At 0.5 m it won 53, lost 3 and drew 10. At 1 m it won 19, lost 1 and drew 46. Radius experiment
xychart-beta
title "PPO-v3-ck1 · 66 bouts per radius"
x-axis ["W 0.5 m", "W 1 m", "L 0.5 m", "L 1 m", "D 0.5 m", "D 1 m"]
y-axis "Bouts" 0 --> 60
bar [53, 19, 3, 1, 10, 46]
W: wins. L: losses. D: draws. Team Murmell data, seeds 301–303.
The longer distance to the boundary leaves more room and time to recover. Staying in the ring remained achievable while finishing attacks became harder. The local UI default of 1 m motivated later training. The organizer’s API lists a 0.5 m radius for both Paris divisions, 30 s bouts, first to two in five rounds and a Linux arm64 runner. The published bracket rule adds a reversed-side bout and, if required, a recorded public coin toss. Published division rules
Infrastructure and parallel work
Python 3.12 and uv supported reproducibility, MuJoCo ran physics, PyTorch trained the actor and ONNX Runtime executed exported policies. On my Intel Mac I used Linux x86-64 in Docker to preserve the kit’s lockfile where ONNX Runtime lacked a native wheel. The team parallelized CPU workers and ran AWS experiments. MuJoCo trajectory collection dominated this implementation’s cost. A different physics engine or a larger network could shift the bottleneck, so we would profile each stage before changing hardware.
The PufferLib adapter reused the same environment. Its build failed because Python.h was missing. The Torch reference was about 440 decisions/s with six workers, and PufferLib produced no comparable measurement. I tested Featherless AI connectivity separately during preparation. The team code gives no evidence that the sponsor’s API was in the training or control path. PufferLib investigation
Murmell provided a shared project directory and separate agent terminals. Its documentation describes file reservations for concurrent edits. On our task board Codex tested decision trees and benchmark duels. Claude investigated PPO and GRPO, trained PPO and improved it with self-play. One snapshot showed five tasks in progress, one pending and eight completed that day. People supervised the work and decided how to compare and promote candidates. A checkpoint, an exact runner version and an evaluation report were better handoff points than a conversational summary. Murmell canvas · Git history
That is the connection with my Darkwood work. Flow deals with execution and data moving between steps. Uniflow makes workflows visible and editable. Navi drives explicit integrations such as the path from Joplin to the blog. The hackathon exposed the need for the same explicit handoffs and reproducible artifacts when several coding agents work together. The robot’s real-time numeric loop has its own contract and timing. Darkwood’s Flow and Navi work · Uniflow · Navi
What the evidence supports
The AI Tinkerers team page marks our project Submitted, with a last save at 15:39 CET. The public entry links to the G5 ONNX. The team repository separately recommends G4 on the 1 m benchmark. Neither page identifies the checksum loaded for an official bout. Our division, opponents, bracket results and placing remain unconfirmed. The official results page was still awaiting the jury’s published results. Submission status · Public project entry · G5 model · Official results
The public entry also reports a 0.5 m benchmark against 11 kit configurations plus smart-v3, selection seeds 301–306, both starting sides and 144 single 30 s bouts per model with no tie-break. PPO v3-ck1 scored 117 wins, 4 losses and 23 draws. The best GRPO model in that lot, G1 with KL, scored 117, 3 and 24. Those are the team’s benchmark results. Next I would reproduce the result on a fresh lot at the official radius, separate types of timeout draws and measure the difference between training and deployment action cadence. GRPO benchmark
Thanks to Arthur Testard and Moss’Ab Mirande-Ney, to AI Tinkerers Paris and DuckFightClub, and to Pollen Robotics for MicroDuck and Alpha Walking. The cover is a generated editorial illustration for Darkwood. The diagrams and chart are based on the team’s code and results. Official starter kit · Team repository · Event gallery