What Is Reward Hacking?
Reward hacking happens when a learning agent earns high measured reward without achieving the intended outcome. The robot optimizes the reward you implemented, which may differ from the task you had in mind.
Watch & exploreExplore one engineering idea at a time. Watch a short lesson, read the key concepts and test your understanding before your next interview, project or class.
Video · Key ideas · Check your understanding
Reward hacking happens when a learning agent earns high measured reward without achieving the intended outcome. The robot optimizes the reward you implemented, which may differ from the task you had in mind.
Watch & exploreImitation learning uses expert behavior as a learning signal. Reinforcement learning improves behavior using rewards from interaction or recorded experience. The key distinction is whether the learner receives examples of actions or feedback about outcomes.
Watch & exploreOffline reinforcement learning trains from a fixed dataset of previously collected transitions. During this training stage, the algorithm does not collect new experience by interacting with the environment. It still uses a reward based learning objective.
Watch & exploreDistribution shift means the data encountered during deployment differ statistically from the training data. A robot vision model trained in one workspace may face new lighting, backgrounds, object appearances, or camera positions after installation.
Watch & explore