Scaling study
Research project to pick the network size and training recipe for a 3-week final run, with milestones and a run queue for idle compute.
21 min read
The end goal is a superhuman 1v1 bot, with 2v2 second and 3v3 a distant stretch goal (see Game modes), from one final run of about three weeks on this machine (~500 GPU-hours). This page plans the research that decides how that run is set up, and above all how big its network should be. Everything here is meant to be run in idle time. Find the next job in the run queue, start it, and stop it whenever you need the PC back.
The study's end product is a one-dial recipe: pick a network width or a GPU-hour budget, and every other setting follows from rules this study measures.
At a glance#
| ID | Milestone | Cost | Status |
|---|---|---|---|
| S0 | Tooling: architecture flags, study runner, anchor evaluation, frontier chart, the one-dial flags | build | not started |
| S1 | Throughput per size: steps/s of every candidate network | ~30 min, idle machine | done |
| S2 | Recipe check: update size, learning rate and LayerNorm at a small and a large size | ~40 GPU-h | running |
| S3 | Size ladder: 6 sizes from scratch, extended in rounds | ~230 GPU-h | not started |
| S4 | Architecture at the frontier: residual blocks, a wider critic | ~50 GPU-h | not started |
| S5 | Long-run recipe: learning-rate decay, horizon, batch growth, opponent sampling | ~60 GPU-h of forks | not started |
| S6 | Final run | ~500 GPU-h | not started |
"GPU-h" here means hours of this machine running that job alone (see Budget).
The question#
Every step of training costs compute in proportion to the network's size: it plays with the network (a forward pass) and then learns from that step (forward and backward passes, three epochs). That's about 20 FLOP per weight per agent step. With a fixed three weeks, a bigger network means fewer games played:
| Size | Hidden layers (actor and critic each) | Weights | Compute per step | Steps/s (S1) | Steps in 500 GPU-h |
|---|---|---|---|---|---|
| XS | 128-128 | 0.08 M | 2 MFLOP | 1.77 M (simulator-bound) | 3.2 T |
| S | 256-256 | 0.22 M | 4 MFLOP | 1.81 M (simulator-bound) | 3.3 T |
| M (current) | 512-512-256 | 0.93 M | 19 MFLOP | 1.35 M | 2.4 T |
| L | 1024-1024-512 | 3.4 M | 69 MFLOP | 522 k | 0.94 T |
| XL | 2048-2048-1024-1024 | 15 M | 305 MFLOP | 144 k | 0.26 T |
| XXL | 4096-4096-2048-2048 | 60 M | 1.2 GFLOP | 41 k | 74 B |
From M up, the PPO update on the GPU sets the pace. Real runs are somewhat slower than these numbers, because frozen opponents from the pool also need inference. For scale, the 10 B-step bot that beats Necto 0.72 used 10 B steps of M: about 2 GPU-hours at today's speed.
Too small a network can't represent superhuman play, however long it trains. Too big a network plays too few games in three weeks to learn it. For language models, Chinchilla measured where that balance lies. For self-play PPO in Rocket League nobody has, so this study measures it for our setup.
The end product: one dial#
The study should leave behind rules, not just one good configuration. In
nanochat, one flag (--depth) sets the model size, and
formulas fitted in scaling experiments derive the width, training length, batch size and learning
rates from it. The trainer here should work the same way:
# the goal: choose a width, and everything else follows
just train-match <task> --size 1024
# or choose a budget, and the size follows too
just train-match <task> --gpu-hours 500| Setting | Derived from width w | Rule measured in |
|---|---|---|
| Hidden layers | one shape family, [w, w, w/2] (M is w = 512) | fixed before S3 |
| Learning rate | 2e-4 × (w/512)^-a, or a fixed KL-per-update target | S2 |
| Training length | the best width for each budget (or the budget that makes w best) | S3 |
| Steps per update | grows with training length, learning rate with its square root | S5, plus the gradient noise scale |
| Schedule | learning-rate steps and horizon changes at set fractions of the run | S5 |
| Everything else | half-life, entropy, epochs, clip: tuned at M and held fixed unless S5 says otherwise | S2, S5 |
How the rules get measured:
Tune at M, carry up by formula, check at the target size. M is cheap, so it's the reference. nanochat found that settings tuned at a small size hurt at a large one, so every rule is checked at the size the final run uses.
Few points, not grids. A run here costs 3–6 GPU-hours, so each rule starts from published scaling (learning rate ∝ 1/√width, steps per update ∝ training length^0.38) and is tested at two or three values. Two points show a direction; fitting an exponent takes three.
One headline number for recipe changes: GPU-hours for M to beat Necto 0.5 (under an hour today). A change counts only if it improves that and holds at a second width.
Fit ratings, not win rates. Scores are noisy and capped at 1, so the fits use the cross-run league rating.
Once the rules are fitted, --size and --gpu-hours go into the trainer (S0). The
manifest records each derived value and the rule that set it.
What we know already#
What other bots used#
Most details below were taken from the bots' code and papers. Where a number is a guess or comes only from forum talk, the row says so.
| Bot | Network | Training | Strength |
|---|---|---|---|
| Nexto (RLGym community) | attention model, width 256, ~0.46 M weights (estimated from its file size) | "about 250,000 hours of gameplay" (~1e10 game steps); lr 1e-4; 20% games vs past versions picked to be even matches | about Grand Champion 1 in 1s, 2s and 3s (its README) |
| Seer (ETH master's thesis, 2022) | shared trunk + LSTM-512, 2.0 M weights | 1e10 steps over 1.5 months; lr 1e-5 → 5e-6; half-life 10 → 20 s | Platinum 1 in 1v1 |
| Element | 5 × 256 MLP | about 1.3e10 steps | unknown |
| Opti | 512-wide MLP skill models + a selector | decisions every 4 ticks; fixed bots (Nexto, Necto) in the opponent pool | unknown |
| rlgym-ppo guide | 2048-2048-1024-1024 actor and critic (~15 M) | lr 2e-4 → 1e-4 → 0.8e-4 as the bot improves; 1–3 optimizer steps per 100 k samples | guide defaults, not a specific bot |
| GigaLearnCPP (community C++ learner) | 256 × 3 with LayerNorm (default) | 1 epoch per 50 k batch | defaults |
Bots said to beat pros or SSLs (Seer v4–v6, LeBot+) have published no training details. No bot with a documented setup has a verified result against pros. The strongest documented bots are small (under 2 M weights), but they also had much less compute than we do. Nexto's ~1e10 game steps took a distributed real-game setup, and we generate that many in a few hours. Our 10 B bot played about a third as much as Nexto. So nothing shows the strong bots were limited by network size, and nobody has tested large networks with our amount of compute either.
What the research says#
The best size grows with the compute budget, as a power law (Hilton et al. 2023, "Scaling laws for single-agent reinforcement learning"; board-game AlphaZero studies). The exponent differs by game, so it has to be measured.
Big plain MLPs often train worse under PPO. LayerNorm, residual blocks and observation normalisation let bigger networks pay off (SimBa, 2024). A naive large-network test can fail for optimisation reasons and wrongly suggest size doesn't help. That's why S2 comes first.
A wider critic costs little and doesn't hurt ("What Matters in On-Policy RL", 2020). Only the actor plays: as the learner, as every opponent in the pool, and later in the real game.
Long runs lose plasticity. Over billions of steps, PPO networks gradually lose the ability to learn new things (feature collapse). Larger and normalised networks hold up better, and it should be monitored (Juliani and Ash 2024; Moalla et al. 2024).
Long runs want a schedule. Every documented long run lowers the learning rate as skill rises and lengthens the horizon (OpenAI Five, Seer, the rlgym-ppo guide). OpenAI Five's larger batches helped more the better the agent got.
Where our recipe differs from everyone else's#
Compared with the community, our current match defaults stand out in three ways. These are tested before the size ladder (S2) or during the long-run recipe (S5):
Many optimizer steps per sample. We take 24 Adam steps per 131 k samples (8 minibatches × 3 epochs) at lr 2e-4. The community takes 1–3 per 100 k at 1e-4 to 2e-4, and tunes the learning rate to keep the clip fraction near 0.08.
Constant learning rate. Every documented long run lowers it.
A short horizon. Our half-life is 5 s (γ 0.9908). Nexto uses about 9 s, Lucy-SKG 10 s, Opti 16 s, Seer 10 → 20 s.
Method#
Task:
tasks/match-1v1-flip-kickoff-v1.json, the task of the 10 B bot, from scratch. If the final run's task is frozen first, the study's winning run can simply keep going as the start of the final run (open decisions).One change at a time. Every run in a comparison shares the task, seed set and recipe, except the thing being tested.
Constant learning rate inside the study. Then any checkpoint along a run is a valid "what if we had stopped here", so one run per size gives its whole curve.
Measure cost in steps, not wall time. Runs are paused, resumed and share the PC with other work, so wall time is meaningless. Cost is agent steps, converted to GPU-hours with S1's steps/s. A run slowed down by other work loses nothing.
Judge against fixed opponents. Every checkpoint at a budget point plays 256 single-goal games against Necto, Nexto, Nexto with its scripted kickoff, and the frozen 10 B bot. Checkpoints from all runs also play each other in a cross-run league (Bradley–Terry ratings), which still separates them once they beat Nexto. Ratings against a run's own past checkpoints don't compare across runs.
No early verdicts. Small networks will look better early, because they play more games. The answer is which curve is still rising at the budget we plan to spend, and where the curves cross. The plateau rule applies: a flat stretch counts only once it's as long as the gain before it.
Seeds: one per arm in the first rounds, two for every finalist. Differences inside the seed spread are noise.
Budget#
| Phase | GPU-h |
|---|---|
| S1 throughput | ~2 |
| S2 recipe check | ~40 |
| S3 size ladder | ~230 |
| S4 architecture | ~50 |
| S5 long-run recipe | ~60 |
| Research total | ~380 (≈ 16 days) |
| S6 final run | ~500 (3 weeks) |
Runs go one at a time: two runs sharing the GPU get less done than the same runs back to back (measured). If the final task is frozen before S3, the S3 winner's run carries straight into S6, so its hours aren't lost.
Run queue#
The next jobs, in order. Start the first one that isn't done and whose milestone is unblocked. Close Rocket League and other GPU-heavy programs first; for S1, the machine must be fully idle.
Run one job at a time. Two runs sharing the GPU each got about 0.38 of their solo speed (M with
XL, 2026-10-17), so a pair does less work than the same two runs back to back. Evaluate every 30
minutes (--eval-minutes 30): at --eval-every 1200, M spent 20% of its time in evals. XL runs
first: whether the bigger net beats Nexto more reliably is the question that matters most.
Every run so far levels off near 0.2 against Nexto (S2 so far), so four
S5 arms run early on M: longer reward horizons (10 s and 20 s half-life),
Nexto as the opponent in 10% of training games, and a 4× batch. The bot arm trains against
Nexto, so its Nexto score is no longer held out; judge it on Necto and the cross-run league.
# start a queued run (its flags and target are in the table)
just train-match tasks/match-1v1-flip-kickoff-v1.json --run-dir runs/scaling/<id> --seed 1 \
--total-steps <target> <flags>
# need the PC back: Ctrl+C in its terminal, or from another one
just train-stop runs/scaling/<id> --wait
# continue later where it stopped (also after a crash: rolling checkpoint every 10 min)
just train-resume runs/scaling/<id>| ID | Milestone | Flags | Target steps | Status |
|---|---|---|---|---|
bench | S1 | see S1 | – | done |
s2-m-base-s1 | S2 | --hidden 512 512 256 --eval-minutes 30 | 15 B | done |
s2-xl-base-s1 | S2 | --hidden 2048 2048 1024 1024 --eval-minutes 30 | 3 B | done |
s2-m-few-s1 | S2 | --hidden 512 512 256 --num-minibatches 2 --update-epochs 2 --eval-minutes 30 | 15 B | done |
s2-xl-few-s1 | S2 | --hidden 2048 2048 1024 1024 --num-minibatches 2 --update-epochs 2 --eval-minutes 30 | 3 B | done |
s2-xl-lr1-s1 | S2 | --hidden 2048 2048 1024 1024 --lr 1e-4 --eval-minutes 30 | 3 B | running |
s2-xl-few-s1 (extend) | S2 | resume with --total-steps 6_000_000_000 | 6 B | queued |
s5-m-hl10-s1 | S5 (early) | --hidden 512 512 256 --gamma-half-life-s 10 --eval-minutes 30 | 10 B | queued |
s5-m-hl20-s1 | S5 (early) | --hidden 512 512 256 --gamma-half-life-s 20 --eval-minutes 30 | 10 B | queued |
s5-m-bot-s1 | S5 (early) | --hidden 512 512 256 --opponent-bot-frac 0.1 --opponent-bot nexto --eval-minutes 30 | 10 B | queued |
s5-m-batch4-s1 | S5 (early) | --hidden 512 512 256 --n-steps 128 --eval-minutes 30 | 10 B | queued |
s2-m-lr1-s1 | S2 | --hidden 512 512 256 --lr 1e-4 --eval-minutes 30 | 15 B | queued |
s2-m-ln, s2-xl-ln | S2 | the winning recipe + LayerNorm | as above | blocked on S0 |
s3-* | S3 | per size, after S2 | per round | blocked on S2 |
Once S0's study runner exists, this whole table becomes one command that picks the next job, starts or resumes it, and runs it to its target (see S0).
Milestones#
S0: Tooling#
not started
What the study needs that the learner doesn't have yet:
not started
--critic-hidden: critic sizes separate from the actor's.not started
--layer-normand--residual: LayerNorm after each hidden layer, and SimBa-style residual blocks. The opponent pool's batched inference, evaluation,watchand the Rust checkpoint bridge must load them too.not started Checkpoints at budget points: a checkpoint at each doubling of compute (0.75, 1.5, 3, 6, 12, 24, 48, 96 GPU-hours), independent of in-run evaluations. In-run evaluations against Necto and Nexto cost the same wall time for every size, so they weigh 15–20% on small networks and almost nothing on big ones. Study runs evaluate offline instead.
not started Compute accounting: weights, cumulative FLOP and GPU-hours (steps ÷ S1's steps/s) in
metrics.jsonland the manifest.not started Study runner (
just scaling): a queue file of runs with flags and targets. It starts or resumes the first unfinished run and runs it to its target, then the next. Ctrl+C pauses it.just scaling-statusprints the queue with progress.not started Anchor evaluation (
just scaling-eval): 256 games of every new budget-point checkpoint against Necto, Nexto (both kickoff modes) and the 10 B bot, plus the cross-run league. Results go to one JSON per study.not started Frontier chart: a docs directive that plots score and rating against GPU-hours (log scale), one line per size, from that JSON.
not started Plasticity diagnostics: dead-unit fraction and feature rank of each hidden layer, logged every few hundred updates.
not started Clip fraction and KL in the overview: both are logged already; S2 judges recipes partly by them.
not started Gradient noise scale: estimated from the minibatch gradients each epoch already computes. It gives the largest batch that still helps, which feeds S5's batch rule.
not started
--sizeand--gpu-hours: the one-dial flags, built last from the fitted rules.
S1: Throughput per size#
done 2026-10-17 Needs a fully idle machine (check nvidia-smi) for about 2 hours:
# not `just bench-learner`: just splits the quoted arms apart
uv run python -m physlab_rl.bench_learner --task tasks/match-1v1-flip-kickoff-v1.json --repeats 2 \
--out-root runs/scaling/bench \
--arm "xs=--hidden 128 128" --arm "s=--hidden 256 256" --arm "m=--hidden 512 512 256" \
--arm "l=--hidden 1024 1024 512" --arm "xl=--hidden 2048 2048 1024 1024" \
--arm "xxl=--hidden 4096 4096 2048 2048"Output: steps/s and update time per size. These replaced the estimates in The question and set each size's step targets for every budget. This also checks that XXL fits in GPU memory with the default minibatch.
Result (2026-10-17, idle machine, 2 repeats, from scratch so no pool opponents yet;
runs/scaling/bench/):
| Size | Steps/s | PPO update per 131 k steps | GPU arithmetic in the update |
|---|---|---|---|
| XS | 1.77 M | 30 ms | – |
| S | 1.81 M | 50 ms | – |
| M | 1.35 M | 98 ms | 22 TFLOP/s |
| L | 522 k | 253 ms | 33 TFLOP/s |
| XL | 144 k | 911 ms | 40 TFLOP/s |
| XXL | 41 k | 3.17 s | 45 TFLOP/s |
XS and S are limited by the simulator, about 1.8 M steps/s.
From M up, the update decides the pace. Each size up costs about 3.5× the steps/s.
Bigger matrices use the GPU better: XXL's arithmetic rate is twice M's. So each size costs less than its weight count suggests.
The CPU sits mostly idle during XL and XXL runs, but that doesn't make pairing worthwhile. Even M needs the GPU for inference, and two processes switching on the GPU waste time (Run queue).
S2: Recipe check#
running Base and few arms done; xl-lr1 running, then xl-few extended to 6 B; m-lr1 queued.
LayerNorm arms wait on S0.
Question: do the size ladder's runs need a different recipe from today's defaults? If the recipe is wrong for big networks, the ladder would undersell them.
Sizes: M (current) and XL (the rlgym-ppo guide's size).
Arms:
base: today's defaults, 8 minibatches × 3 epochs, lr 2e-4;few: 2 × 2, 4 optimizer steps per update, close to the community's;lr1: lr 1e-4;ln: the best of those plus LayerNorm.
Budget: about 3 GPU-h per M arm and 5–8 per XL arm. Targets in the queue are steps; adjust them once S1 has run.
Judge: score against the anchors at equal GPU-hours. Also look at clip fraction, KL and entropy: is a recipe stable, and does entropy collapse?
Output: the learning-rate rule (learning rate against width, or a KL target that replaces it)
and the update recipe for the ladder. lr1 at 1e-4 is the 1/√width rule at XL. If it beats
xl-base, a third XL point at 5e-5 decides the exponent.
So far (2026-10-18; scores out of 1, 128 games per opponent, so about ±0.07 each):
| Run | Necto at ~3 B steps | Nexto at ~3 B steps | Necto, end | Nexto, end | Mean KL per update |
|---|---|---|---|---|---|
m-base (15 B, about 3.1 GPU-h) | 0.49 | 0.17 | 0.72 | 0.27 | 0.004 |
m-few (15 B) | 0.40 (3.7 B) | 0.09 | 0.74 | 0.21 | – |
xl-base (3 B, about 5.8 GPU-h) | 0.30 | 0.11 | 0.30 | 0.11 | 0.015 |
xl-few (3 B) | 0.46 | 0.20 | 0.46 | 0.20 | 0.002 |
XL learned less per step than M, and far less per GPU-hour. It was flat after about 1.8 B steps (Necto 0.3–0.4, Nexto about 0.1). Its policy moved about 3× as far per update as M's (KL 0.015 against 0.004), so today's recipe may be too aggressive for it;
xl-lr1tests that.With gentler updates, XL keeps up with M per step.
xl-few(KL 0.002) reached Necto 0.46 and Nexto 0.20 at 3 B, level withm-base, and was still climbing fast at its cap (Necto 0.04 at 1 B, 0.25 at 2.2 B, 0.46 at 3 B), so it's being extended to 6 B. Per GPU-hour it's still about 7× behind M.Every run levels off near 0.2 against Nexto. M got there by about 3 B steps and stayed between 0.17 and 0.30 through 15 B. The same ceiling at different sizes and settings suggests something other than network size limits it, such as the training opponents or the short reward horizon. S5 tests those; consider bringing its horizon arm forward.
fewmatchesbaseat M: it starts slower but ends level, and it trains faster (1.01 M steps/s against about 0.92 M).
S3: Size ladder#
not started Blocked on S2 and S1.
Question: at each compute budget, which size is best, and how does that best size grow with budget?
Sizes: XS, S, M, L, XL, XXL (table), with S2's learning-rate rule for each. All sizes use one shape family,
[w, w, w/2], so only width changes: XL and XXL drop their fourth layer and are benched again in S1. Every run starts from scratch, keeps a constant learning rate, and writes budget-point checkpoints.Rounds:
Every size to 12 GPU-h (~72 GPU-h).
The 3–4 sizes still rising, extended to 48 GPU-h by resuming. The largest affordable size always stays in, because it's the one that starts slowest (~110 GPU-h).
A second seed of the two leading sizes to 24 GPU-h (~48 GPU-h).
Analysis:
plot score and league rating against GPU-hours, one line per size;
at each budget, find the best size;
fit how that best size grows with budget, and extrapolate to the final run's ~500 GPU-h.
This is the Chinchilla method. The extrapolation is about 10× past the longest run, so treat it as a direction, not a precise answer: if two sizes are close, prefer the larger one, since it's the one more likely to keep improving over three weeks.
Output: the training-length rule (the best width for each budget), the final run's network size, and the frontier chart on this page.
S4: Architecture at the frontier#
not started Blocked on S0 and S3 round 1.
Question: at the leading size, does a better architecture beat plain width?
Arms (24 GPU-h each, against the plain run at the same size):
SimBa-style residual blocks with LayerNorm;
a critic one size up from the actor (critic sizes from
--critic-hidden);if S2 showed LayerNorm matters, the leading size without it as a check.
Output: the final run's architecture.
S5: Long-run recipe#
not started Blocked on S3.
Question: which schedule turns a good 48-hour run into a better 3-week one? These are forks: each arm resumes from a strong S3 checkpoint and runs about 1–2 B steps, two seeds per arm, against a control fork that changes nothing.
Learning rate: step it down (e.g. 2e-4 → 1e-4 → 5e-5), or tie it to a clip-fraction target.
Horizon: lengthen the half-life from 5 s to 10 s, then 20 s.
Batch: grow rollouts from 131 k to 0.5–1 M steps per update.
Entropy: anneal it late. Do this only once mechanics are stable: flipping died out once before (flip-preserving run).
Opponent sampling. Today 20% of games are against pool snapshots, sampled by age. The candidates:
sample by win rate, as Nexto's p(1−p) and AlphaStar's PFSP do;
add Necto and Nexto as fixed pool members, as Opti did;
periodic exploiter runs.
Opponent sampling needs a build first.
Output: the batch rule (steps per update against training length) and the schedule rule (changes at set fractions of the run). For the final run, these become dated stages written down before it starts.
S6: Final run#
not started Blocked on S3–S5 and the open decisions.
About three weeks of resumable training, started with
--gpu-hours 500. The settings it derives are recorded on this page before it starts.Every budget point evaluated against the anchors and the league, and plasticity diagnostics watched. Any mid-run change, such as a learning-rate step, follows S5's plan, not a judgement made mid-run.
At the end, play it in the real game through RLBot (T4), and against people.
Game modes#
decided 2026-10-17
1v1 is the priority. The whole study and the final run are 1v1.
2v2 comes after a superhuman 1v1 bot. Teamwork (rotation, passing, not double-committing) is a separate problem from individual skill, and likely a harder one, so it gets its own project later. The size and recipe found here are a starting point for it, not an answer. Nexto trained 1s, 2s and 3s in one network; that's an option then, not for the 1v1 final run.
3v3 is a distant stretch goal. Nothing here is planned for it.
Open decisions#
These are yours to make. Each changes what the study runs.
Freeze the final task before S3? If the task and its settings are frozen first, the S3 winner's run becomes the start of the final run. Those settings are:
the observation and latency options from the skill-mixing plan;
the small boost pad radius (P2);
kickoff training.
If they're decided later, S3 runs on the current task and the final run starts from scratch.
Order against the skill-mixing experiments. The paused Phase 1 runs (Mixing skills into self-play) compete for the same idle time.
Research budget. ~380 GPU-h as planned. Cheaper options: drop XXL and S4, or run S3 round 2 on two sizes instead of four.
Decisions every 8 ticks. At 15 Hz, wall dashes fail. A superhuman bot may need finer control (Opti used 4 ticks), which halves steps/s. That's a separate study, but it's a decision for the final run.