Egocentric Soccer: pixel-only 6v6 soccer players
Checkpoints of a soccer policy in which every player sees only its own first-person camera pixels. There is no shared state and no voice between players at play time: to find the ball and teammates a player has to turn its head. All players of a team run the same network, each on its own camera stream.
- Watch games through the players' eyes: https://tonychenxyz.github.io/research-notes/egocentric-soccer/
- Code (training, evaluation, video recording): https://github.com/tonychenxyz/soccer-rl
Files
| Path | What it is |
|---|---|
vision112hb20a/ckpt.pt |
Final best checkpoint (2026-11-30). PyTorch file with the actor, the critic, observation statistics and the training arguments. 72 MB. |
vision112hb20a/args.json |
Training arguments of the last training block. |
vision112hb20a/SHA256SUMS |
7a3f2790b555ddd94951086cc33a7139f8ba477e9e2dc50c33da30639ec80dd1 ckpt.pt |
vision111p25a/ckpt.pt |
Previous best checkpoint (2026-11-29). 72 MB. |
vision111p25a/args.json |
Training arguments of vision111p25a. |
vision111p25a/SHA256SUMS |
2b00001801e3ce6d40a63fb70674e7d41f9025bbd4b4678cb80e9451621e2c1b ckpt.pt |
pools/v45hb/ |
24 frozen opponent actor state dicts (467 MB total + SHA256SUMS) — the exact league pool that trained vision112hb20a from vision111p25a. |
pools/v46/ |
24 frozen opponent actor state dicts (467 MB total + SHA256SUMS) — adds vision112hb20a (×3) and top Gen-40 variants for continued fine-tuning. |
from huggingface_hub import hf_hub_download
path = hf_hub_download("tonychenxyz/soccer-rl", "vision112hb20a/ckpt.pt")
The checkpoint is a pickled Python dictionary (torch.load(path, weights_only=False)); load it with the code repository
above. As with any pickle file, only load it from a source you trust.
The game
6v6 (five outfield players and a goalkeeper per team), 5-minute games, simulated in MuJoCo-Warp on a 50.4 x 32.6 m pitch with a 5.0 x 2.0 m goal. No voice channel. The policy's eye has four nested views, from a wide 120 degree view down to a 4 degree fovea.
Training
A recurrent actor (minGRU, width 512, 2 layers; 5.1 M parameters) was first trained by imitation of a teacher that sees the full game state, then by reinforcement learning (PPO) in 6v6 against itself and a league of 24 past versions. The reward is goals scored minus goals conceded. There is no reward for passing.
Evaluation of vision112hb20a
All numbers are for 6v6, 5-minute games, with the settings above.
| Test | Result |
|---|---|
Against the built-in scripted bot (held out: never an opponent in the last training stages), 256 fresh games (eval_50hz.py, canonical 50 Hz) |
+3.70 ± 0.13 goals/game (4.53–0.82; 242W–11D–3L); 0.43 ± 0.04 completed / 4.34 attempted 50-Hz open-play passes/game (2.86× vs vision99lt2). *(Greedy argmax 128g: +4.30 ± 0.21, 0.20 ± 0.05 passes/game.)* |
Against the previous best checkpoint (vision111p25a), 128-game confirmation gate (192 pooled) |
+0.52 goals per game (standard error 0.19; 66-21-41; 192 pooled: +0.52 ± 0.15, 93-44-55) |
| Completed open-play passes per team per game in self-play (canonical 50 Hz, 256 fresh games / 512 team-games) | 1.11 ± 0.05 completed / 17.09 ± 0.24 attempted (0.75 ± 0.04 with dt >= 0.06 s; 0.37 ± 0.03 with dt >= 0.10 s, dist >= 3 m; 73.8% receiver seen in FOV within 1.5 s before kick, 81.7% within 3.0 s). (Greedy argmax 128g: 0.77 ± 0.06 completed / 14.96 attempted. Under legacy 10-Hz scan_stats.py: 3.62 / 15.86, inflated ~2–3× by missed substep opponent touches.) |
Zero-shot 11v11 full-goal transfer vs. GRFBot (64 games, zero 11v11 training) |
+2.91 ± 0.24 goals/game (55W–7D–2L); 0.66 ± 0.10 50-Hz completed / 5.08 attempted passes/game |
Evaluation of vision111p25a (previous best, 2026-11-29)
| Test | Result |
|---|---|
| Against the built-in scripted bot (held out), 256 fresh games | +3.70 goals per game (standard error 0.13) |
Against its previous best checkpoint (vision110plam45b), 128 games |
+0.67 goals per game (standard error 0.19); 69 wins, 22 draws, 37 losses |
| Completed open-play passes per team per game in self-play, 256 fresh games | 3.45 (15.0 attempted) |
Limits
- A research checkpoint for one simulator and one set of rules; it is not expected to work elsewhere.
- In self-play the ball still changes team often; long passing moves are rare.