The problem
A car is in a corner on dry road and the surface turns to wet, snow or ice within a few metres. Two families of controller claim to handle this:
- Reinforcement learning: a network trained on millions of simulated skids that works out the grip from how the car has just been behaving (here an RMA-style teacher–student PPO policy).
- Adaptive model predictive control (here MPPI): simulate a thousand possible futures every step, pick the best, and keep a running estimate of the grip, either with a bank of models or a learned friction estimator.
Papers usually report one beating the other. Two things make those comparisons hard to trust. Many test cases are crashes no controller could avoid, which just adds noise. And the method the authors care about usually gets more information or more tuning.
What I built
First, find out what is possible
Every scenario gets a label before any controller is compared: reactive-feasible (you can save it by reacting), preview-required (only if you see the ice coming), certified-infeasible, or undetermined. The "infeasible" label comes from a proof: a friction-circle certificate shows the tyres can't supply the force the corner needs, even used perfectly. The "feasible" labels come from oracle MPPI controllers that are told the true grip. 4,000 held-out test scenarios were labelled this way.

A simulator and a controller I can trust
The car is a dynamic bicycle model with combined-slip Pacejka tyres and separate friction on each axle, written in NVIDIA Warp so thousands of cars run at once on the GPU. I wrote it test-first against a slow float64 reference model. Then I wrote the MPPI controller a second time in C++17/CUDA (CMake, GoogleTest in CI, Python bindings). It reproduces the Warp version's random number stream bit for bit, so both draw exactly the same samples and can be compared on whole control steps.
| Compute (RTX 5090 Laptop GPU) | C++/CUDA | Warp |
|---|---|---|
| One MPPI step, 1 car, 1,024 samples × 150-step horizon (median of 30) | 15.3 ms | 15.8 ms |
| Same, 64 cars at once (median of 30) | 46.8 ms | 58.9 ms |
| Learned policy, one step on one CPU thread (median of 300) | 0.19 ms | |
A fair fight, agreed in advance
- Every method gets the same observations and the same logged tuning budget, and is run on the same paired scenarios.
- The hypotheses, the splits and the statistics (hierarchical bootstrap, equivalence tests, Holm correction) were committed before any test data was labelled (git tags
prereg-v1andprereg-v2). Every later change is a dated amendment, A1 to A9. - Failure rates are compared only where the car can physically be saved.
What I found
The labels change the ranking

The learned policy did not beat adaptive MPPI
On 3,009 paired reactive-feasible scenarios × 5 seeds, the RL student did not beat the model-bank MPPI: departure difference −15.6 pp, 95% CI [−42.1, +1.0]. The interval is that wide because the PPO training seeds ranged from excellent to failing. A sanity gate I had pre-registered flagged that instability before the test run.
Much of its safety was caution
The learned policies reach the ice noticeably slower than the reference speed. So I drove the bank MPPI at the student's arrival speed: it departs 0.006 of the time vs 0.190 for the student. Slowing down has a price, too: a 16.0% [15.4, 16.7] loss of pace on dry road.

Two more results. A student distilled from a teacher that can see the road ahead departs 17.7 pp less [1.2, 44.3] than one distilled from a teacher that only knows the current friction, even though the student itself never sees the road ahead. And model mismatch did not hurt the bank MPPI on any of the three axes I tested, which went against my prediction.
Debugging the seed instability
Two of five PPO teacher seeds collapsed. Training is deterministic per seed, so I could replay a failing run exactly. I ruled out four hypotheses on 10 seeds each (reward normalisation, a bound penalty, the learning rate and the discount factor). The real cause was a mismatch: checkpoints were kept based on success during training, with exploration noise on, but the policy is deployed without noise. Selecting checkpoints on deterministic held-out validation fixed it.
I then re-tested under a second pre-registration (A9) on 2,233 fresh scenarios. All 10 seeds of the repaired policy passed the reliability gate (old recipe: 8/10), and at matched speed it was non-inferior to adaptive MPPI: +0.3 pp [−0.3, +0.9] with a 2 pp margin. Not superior.

What I learned
- Label what's possible before you compare anything. Without the labels, the ranking mostly reflects which scenarios you happened to sample.
- Always check how fast each controller is going. "Safer" can just mean "slower", and that has to be priced.
- Pre-registering is what made a negative result worth reporting. The gate caught the seed problem before the test, and the follow-up got its own plan instead of quietly replacing the first one.
- A second, slow implementation is the cheapest test for a fast one, and reproducing the random stream exactly makes the comparison airtight.
Everything is public: the code (MIT), the v1.0.0 release and the technical report. Every number on this page is written by the evaluation harness.