Alpha-Kitten checkpoints

Trained agents for the two-player base game of Exploding Kittens, from the paper Alpha-Kitten: League Self-Play Beats Open-Source LLMs at a Stochastic Imperfect-Information Card Game.

  • Code, training and evaluation scripts, paper: https://github.com/Karthik-Ragunath/alpha-kitten
  • The best agent, agents/B-grpo_grpo_g870000.pt, is the only one unbeaten in the 20-agent playoff (19–0). The trained agents beat Qwen3-30B-A3B 8.5:1 and Gemma-4-31B 6.5:1 when both LLMs see exactly what the agents see.

What is in this repo

Folder Files What they are
agents/ 21 The 20 playoff agents (every headline result in the paper uses these), plus B-ppo's best qualifier checkpoint
teachers/ 130 All Phase-1 specialist checkpoints: PPO, GRPO, DPO, SAC and DREAM, every 10,000 episodes up to 250,000, plus each one's _final.pt
init/ 5 The Phase-2 starting points: the distilled network for recipes A, A-plus, B-grpo and B-ppo, and the shared random initialisation for recipe D

agents/: the playoff agents

Each file is a mixture-of-experts super-agent (shared transformer backbone of width 512, 6 expert heads, a top-2 gate and a value head). The file name is <recipe>_<league algorithm>_<games trained>.

  • Playoff BT: rank (and Elo) by Bradley–Terry in the playoff, where the 20 agents play each other 2,000 games per pair. This ranks by games won.
  • Playoff match: rank (and win–loss–tie record) by matches won in the same playoff. A match is won by taking more than half of the 2,000 games.
  • Super Elo: rank in the 50-agent round robin (500 games per pair).
File Recipe League Games trained Playoff BT Playoff match Super Elo
B-grpo_grpo_g870000.pt B-grpo GRPO 870,000 1 (1230) 1 (19-0-0) 2
A_grpo_final.pt A GRPO 1,250,000 (final) 2 (1226) 9 (8-11-0) 1
B-grpo_grpo_g1120000.pt B-grpo GRPO 1,120,000 3 (1219) 2 (18-1-0) 9
B-grpo_grpo_final.pt B-grpo GRPO 1,250,000 (final) 4 (1219) 3 (17-2-0) 3
B-grpo_grpo_g1000000.pt B-grpo GRPO 1,000,000 5 (1217) 4 (15-4-0) 6
B-grpo_grpo_g750000.pt B-grpo GRPO 750,000 6 (1217) 5 (15-4-0) 8
B-grpo_grpo_g620000.pt B-grpo GRPO 620,000 7 (1212) 6 (13-6-0) 10
B-grpo_grpo_g500000.pt B-grpo GRPO 500,000 8 (1205) 10 (8-11-0) 12
A_grpo_g870000.pt A GRPO 870,000 9 (1202) 14 (6-13-0) 4
B-grpo_grpo_g370000.pt B-grpo GRPO 370,000 10 (1201) 7 (10-9-0) 17
D_grpo_g1120000.pt D GRPO 1,120,000 11 (1198) 8 (9-10-0) 11
A_grpo_g1120000.pt A GRPO 1,120,000 12 (1198) 13 (7-12-0) 7
A_grpo_g1000000.pt A GRPO 1,000,000 13 (1195) 15 (6-13-0) 5
B-grpo_grpo_g250000.pt B-grpo GRPO 250,000 14 (1191) 11 (8-11-0) 18
D_grpo_final.pt D GRPO 1,250,000 (final) 15 (1191) 12 (8-11-0) 14
B-ppo_grpo_g1000000.pt B-ppo GRPO 1,000,000 16 (1187) 18 (4-15-0) 20
A-plus_grpo_g1000000.pt A-plus GRPO 1,000,000 17 (1176) 16 (6-13-0) 15
A_grpo_g750000.pt A GRPO 750,000 18 (1176) 19 (4-15-0) 19
A-plus_grpo_g1120000.pt A-plus GRPO 1,120,000 19 (1174) 17 (5-14-0) 13
A-plus_grpo_g870000.pt A-plus GRPO 870,000 20 (1168) 20 (4-15-0) 16
B-ppo_grpo_g1120000.pt B-ppo GRPO 1,120,000 – (–) – 22

B-ppo_grpo_g1120000.pt did not enter the playoff; it is included because it is recipe B-ppo's best checkpoint in its qualifier.

The recipes:

Recipe Teachers (distillation) League pool
A 5 specialists + rule-based bot 30 fixed opponents
A-plus same as A same as A, but at least 40% of games against fixed opponents
B-grpo 6 GRPO checkpoints 26 fixed, GRPO only
B-ppo 6 PPO checkpoints 26 fixed, PPO only
D none (random weights) 1 fixed (random)

teachers/: the Phase-1 specialists

Named <algorithm>_ep<episodes>.pt. Each specialist trained for 250,000 episodes against the uniform-random opponent. The paper and all Phase-2 recipes use the _ep250000.pt files as the final teachers; the _final.pt files were saved at the very end of each run and differ slightly. Recipes B-grpo and B-ppo distil from the 20k, 50k, 100k, 150k, 200k and 250k checkpoints, and the league pools draw from the checkpoints every 10k episodes.

Final win rate against random: PPO 84.1%, GRPO 82.4%, SAC 77.8%, DREAM 73.6%, DPO 63.0%.

init/: Phase-2 starting points

  • <recipe>_distilled.pt: the network right after distillation, before league training. Both the GRPO and the PPO run of a recipe start from this file.
  • D_random_init.pt: the random weights shared by both runs of recipe D.

Pass one of these to scripts/train_phase2.py --skip-distillation --init-ckpt <file> to rerun league training without redoing distillation.

How to use

git clone https://github.com/Karthik-Ragunath/alpha-kitten && cd alpha-kitten
pip install -e . huggingface_hub
huggingface-cli download KarthikRagunathAnandaKumar/alpha-kitten \
    agents/B-grpo_grpo_g870000.pt --local-dir hf

# Watch the champion play the rule-based bot
PYTHONPATH=. python scripts/inference.py --base-game-only \
    --agent1 super_agent --ckpt1 hf/agents/B-grpo_grpo_g870000.pt \
    --agent2 rule_based --games 5

# Play against it yourself
PYTHONPATH=. python scripts/play_human.py --base-game-only \
    --opponent super_agent --checkpoint hf/agents/B-grpo_grpo_g870000.pt

Super-agent files are PyTorch dicts with backbone, moe_policy, value_head and optimizer (the optimizer state is kept so training can be resumed with --resume-ckpt). The loaders in the GitHub repo read the number of experts and the width from the file. Always pass --base-game-only: every agent was trained and evaluated on the official 2022 base game.

Limitations

One seed per recipe; during training the learner always moved first (evaluation alternates seats); and in a Nope decision the observation does not say which card is being Noped. See the paper's Limitations section.

Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading

Collection including KarthikRagunathAnandaKumar/alpha-kitten