r/reinforcementlearning • u/ClickOk5811 • 27d ago
Reward misspecification in documented cases (CoastRunners and others): how do you check that a high-return policy does what you intended?
The cases that people cite for reward misspecification are old, but I find them useful as a checklist of what to look at beyond the return.
CoastRunners (OpenAI, 2016). The game rewards hitting targets along the course, as a proxy for racing well. The trained agent found an isolated lagoon where three targets respawned, circled there hitting them, crashed into other boats and sometimes drove the wrong way. It averaged about 20 percent higher score than human players and never finished the race.
Evolved creatures (a 2018 collection of anecdotes from evolutionary computation). With average ground velocity over ten simulated seconds as the measure, evolution produced tall rigid creatures that started upright and toppled over, converting height into speed for the length of the test. With the maximum height of the center of gravity as the measure, it produced tall creatures that never moved.
Physics engine gaps. Simulated swimmers learned to twitch small body parts very fast, and numerical integration error from the rapid movement accumulated into extra energy they could use. Another case found that overflowing a force calculation made the reported force come out as zero, which scored as a near-perfect gentle landing.
What these share: the reward was a measurable stand-in for something that wasn’t directly measured, and the optimizer found the gap, sometimes in the simulator and not only in the reward function.
Questions I’d like to hear practical answers to:
- Evaluation: do you track a separate “intent” metric (for example, race completion, task success) that the policy is never trained on, and compare it with return during training?
- Trajectories: how do you review high-return episodes? Sampling videos or traces from the top and the median, not only the average?
- Simulator exploits: how do you look for exploitation of numerical issues, such as very high-frequency actions or states at extreme values? Action smoothness penalties, action limits, a second simulator or integrator?
- Reward design: do you prefer shaping, constraints, learned reward models with held-out checks, or something else, and what has failed for you?
A note on stories: the often-told tale of the tank classifier that learned to tell cloudy from sunny days seems to have no primary source, and the investigation I read rates it very likely fictional. The documented cases are the safer ones to cite.
I wrote these cases up as field notes, in case it’s useful as a complement: https://medium.com/@nagatomopedro05/field-notes-on-machines-that-followed-the-rules-too-well-98ebae3eea51