Research, 2025–26
The safety check that said “within limit” at twice the limit
The cost critic saw less than half of the real cost, so training reported a safety limit as met while held-out cost ran at about twice the limit. The preprint, code, plan and per-run data are public.
It started with a result that looked too good
For my MSc at Manchester I built a safe-RL driving agent in CARLA: Lag-U, a published method that adds an uncertainty gate to Lagrangian safe RL, implemented on TD3 with a 15-stage curriculum and a two-GPU training pipeline. Against a fixed-budget Lagrangian baseline it cut cost per kilometre from 109.8 to 51.0 (−54%) and collisions per kilometre by 93%, and red-light violations fell to zero.
One training run per method, with the best checkpoint for each route chosen on the same evaluation, so these numbers are optimistic. Unconstrained TD3 had fewer collisions still. The clips below show why headline numbers need checking.
TD3, no safety constraint
99.8% of the route142 red-light ticks
- route completed
- 99.8%
- cost per km
- 127.0
- collisions
- 0
- red-light ticks
- 142
Fixed-budget Lagrangian, the baseline
safety constraint on4 collisions, stopped at 55.7%
- route completed
- 55.7%
- cost per km
- 129.9
- collisions
- 4
- red-light ticks
- 0
Lag-U, my implementation
75.9% of the route0 collisions, 0 red lights
- route completed
- 75.9%
- cost per km
- 11.0
- collisions
- 0
- red-light ticks
- 0
So I measured it properly
In 2026 I re-tested the method on Safety-Gymnasium’s SafetyPointGoal task as a pre-specified study: I wrote the analysis plan and recorded its hash before the 248 planned runs, then added 43 exploratory runs, 291 in total and about 468M environment steps. Every compared run was scored on 100 held-out episodes on layouts it never trained on. The question was simple: what does the uncertainty gate actually do?
What I found
With the published settings, the cost critic predicted only 44–46% of the cost actually incurred. Training checked the constraint against that estimate, so it showed the limit of 25 as met, while held-out cost was≈49–51: about twice the limit (Holm-adjusted p ≈ 0.008 that it exceeds 25). Plain TD3-Lag, without the gate, shows the same pattern: the gap sits in the cost critic itself.
What might fix it, measured honestly
The paper gives four practical checks for anyone training against a learned cost critic. In an exploratory follow-up, a TD3-Lag agent whose multiplier follows measured cost rather than the critic met the limit in all three of its runs (held-out cost 17.0, 23.0 and 20.1). That is a lead, not a result: in a separate study, a measured-cost baseline still went over the limit in 3 of 6 seeds.
The same lesson showed up in production at Intuigence AI: an A/B test that reported −2.5 points because its treatment arm never ran. Check the measurement, not the report.
The robot lab
A toy version of the benchmark from my research. The robot earns reward for reaching the green goal and pays 1 cost for every step inside an orange hazard, with a limit of 25 per 1,000-step episode. Its critic, like the one in my study, only sees about 45% of the cost.
- episodes
- 0
- measured over the limit
- 0
- silent failures
- 0
- stalled
- 0
Every dot is one episode, including a background sweep across λ on your current layout. It is a hand-written controller, not my trained agent, and the critic is a stand-in that reports 45% of cost. The point it makes is the real one: a constraint that is checked against an estimate can look satisfied when it isn’t.