Back to selected work
Public repoSep 2026 · Reinforcement learning

Vision PPO Racing Arena: Diagnosing a Silent RL Training Failure

A pixel-only PPO driver in MetaDrive that silently failed to learn, traced to a global gradient clip starving the actor head.

The problem

Why build this?

A 500k-step run of a pixel-only PPO agent showed no sustained improvement and reached only 5% route completion. Nothing crashed, so the cause had to be found by measurement.

Approach

How it works

  • Measured per-module gradient norms and weight drift during training.
  • Found that a single global gradient clip scaled the actor head's gradients down about 100x (norm 17 vs 2,468 for the encoder), so actor weights moved less than 0.002 over 100k steps.
  • Fixed it with per-module optimizer parameter groups and retuned loss coefficients. Added parallel rollout workers and macOS/MPS support.

Outcome

What came out of it

  • The actor's update size grew about 10,000x.
  • Route completion reached 17% after 20k steps, vs 5% for the old 100k-step policy.

Technology

Tools used deliberately

PythonPyTorchPPOMetaDriveMPS

Source and evidence

The claims on this page are limited to the project repository, model page, public demo, and resume record.