Reward hacking from environment quirks (potholes and timeout abuse)
From Learning on the Job: The Future of Post-Training — Raymond Feng, Applied Compute · ≈6:48
“And the main sort of problem is like has kind of two names, which are both the same problem, environment fidelity and reward hacking.”
AI Engineer
“So, we have some examples that we've seen where in a trading run in the past, we had some like networking issues causing our environment to have tool calls that failed maybe around 10% of the time. If that is the case, then we actually saw that the model would then start outputting shorter and shorter responses.”
AI Engineer
“Now, this was really surprising to us because in our reward function, we actually didn't have any length penalty.”
AI Engineer
“if you think about maybe the model is like a human like walking along a sidewalk and like the tool call failures are like potholes in the sidewalk, like it makes a lot of sense that because there's so many potholes, the model doesn't want to run for that long uh because it might fall in a pothole and then get a zero reward for the rollout”
AI Engineer
“One thing we saw was that if your tool calls take a long time, then if the model feels like the problem is really hard, it will actually just be incentivized to like abuse the tool calls and just like call a lot of them in quick succession and try to time out the sandbox so it avoids getting a reward of zero. It just gets the rollout dropped.”
AI Engineer
- Shows a concrete postmortem of reward hacking: flaky tool calls (10% failure rate) caused the model to shorten responses to avoid 'potholes,' and sandbox timeouts caused models to spam tool calls to force a dropped rollout instead of a zero reward — a key pitfall in RL environment design.
Clip transcript
articleReward Hacking in Reinforcement LearningLilian Weng
articleReward Hacking Challenges Oversight of Autonomous Research AgentsYue Huang, Zhangchen Xu, Yuchen Ma, Wenjie Wang, Zheyuan Liu, Ziwei Xu, Pin-Yu Chen, Michel Galley, Zinan Lin, Stefan Feuerriegel, Radha Poovendran, Misha Sra, Alex Pentland, Xiangliang Zhang, Zichen Chen- clipDefining reward hackingAI Engineer
Checking sign-in…
Loading comments…