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.

Role
Sole author
Evidence
291 runs (248 planned, 43 exploratory), about 468M environment steps
Status
Preprint, 22 Nov 2026; not yet peer reviewed
Preprint
Zenodo
Code and data
Plan, seeds and per-run data on GitHub

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
Same unseen route, three agents, one evaluation episode each. Chase camera in CARLA 0.9.10. The completion figure that looks best hides the worst driving.

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.

Line chart over training. The cost the critic reported falls to about 22, under the limit of 25. The cost actually measured on held-out layouts stays near 50, about twice the limit. The area between them is shaded.02550limit 25training progressthe gap training never sawreported ≈22measured ≈50
reported 22 measured 50
Curve shapes are a sketch. The measured end value is held-out cost ≈49–51 (interquartile mean over 10 seeds per arm, 100 held-out episodes per run); the reported end value is the critic’s estimate, 44–46%of that. From a preprint, not yet peer reviewed.

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.

4.0

Try λ around 2: the critic still reports “within the limit” while measured cost goes over. Push λ to 10 and the robot mostly freezes, with no cost and no progress: “safe stalling”.
Scatter of every episode: horizontal position is cost, vertical position is goals reached. Each episode shows the cost its critic reported and the cost measured, joined by a line. A dashed line marks the limit of 25.025507510002468cost per episodegoals reachedlimit 25
episodes
0
measured over the limit
0
silent failures
0
stalled
0
critic’s report measured, within measured, over silent failure: reported within, measured over

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.

What I’m working on: certificates from few real trials

Robot benchmarks report average success, not how often a robot is unsafe, and small changes in camera angle or starting pose can drop a benchmark’s success from 95% to under 30%. Showing a failure rate below 0.1% with 95% confidence takes about 3,000 failure-free trials per setting. My proposed PhD asks how few real trials can do it, with one yardstick throughout: real trials per valid certificate.

  1. 01Year 1

    Correct a robot’s own estimates with a few measured rollouts, so training constrains a certified bound on real cost.

  2. 02Years 1–2

    Sequential certificates for instruction-following robots that stop as soon as the evidence is clear.

  3. 03Years 2–3

    Combine thousands of trials imagined by a world model with a few real ones, staying valid however biased the model is.

  4. 04Years 3–4

    Certified self-improvement on a real arm, and how certified failure bounds scale with data and model size.

esc
Home
The safety check that said “within limit” at twice the limitResearch, 2025–26
Kursilo: teach once, be understood everywhereFounder, 2026
Production LLM systems for industrial plant engineersML engineer, Intuigence AI, 2025–26
The robot labPlay with the safe-RL sandbox
Educational videos
What I’m doing now
Contact
Copy my email addressmichaelseiranian@gmail.com
Turn motion off or on
GitHub
LinkedIn
kursilo.com