Diagnose why a helicopter RL agent keeps producing unsafe landings despite high average reward.
Case context: A team trains a helicopter control agent using a reward function that gives R(T) = -1,000 for crashes and a positive reward for safe landings, with the exact positive value depending on landing smoothness. After training, the agent achieves high average reward across episodes, but engineers notice landings are frequently occurring far from the desired landing spot, even though crashes are rare.
Question: Based on the source material, what is the likely issue with this reward function, and how might it be revised to address it?
Sample answer: The likely issue is that the reward function heavily penalizes crashes and rewards smooth landings but does not adequately account for whether the helicopter lands at the desired spot. Since the reward function must trade off crash avoidance, landing smoothness, landing location, and ride roughness, if landing location is underweighted or omitted, the agent has little incentive to land at the correct spot as long as it avoids crashing and lands smoothly. The team should revise R(.) to include a term that penalizes distance from the desired landing location.
Key points:
- The reward function must trade off crash risk, landing smoothness, landing location, and ride roughness
- High average reward does not guarantee all desiderata are well balanced
- Landing location appears underweighted given the observed behavior
- A fix involves explicitly incorporating landing location into R(.)
Rubric: Full credit for identifying that landing location is a required tradeoff factor per the source and that underweighting it explains the observed behavior, plus a reasonable proposed fix; partial credit for a vague diagnosis without connecting to the tradeoff factors.
0
1
References
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Machine Learning Yearning (Deeplearning.ai)
Tags
Data Science
Foundations of Large Language Models Course
Computing Sciences
Machine Learning
Deep Learning
Supervised Learning
Dive into Deep Learning @ D2L
Machine Learning Strategy
Machine Learning Yearning @ DeepLearning.AI
Related
In the helicopter reinforcement learning example, what does the reward function R(T) primarily measure?
True or False: A trajectory ending in a helicopter crash could be assigned a reward like R(T) = -1,000.
A safe landing trajectory T might result in a _____ R(T), with the exact value depending on landing smoothness.
Match each trajectory outcome in the helicopter example to its typical reward value.
Order the steps for designing and using a reward function in the helicopter RL example.
Analyze why designing a good reward function for helicopter trajectories is difficult.
Diagnose why a helicopter RL agent keeps producing unsafe landings despite high average reward.
Name two desiderata besides crash avoidance that a helicopter reward function must trade off.
Who typically chooses the reward function R(.) in the helicopter reinforcement learning example?
True or False: The reward function only needs to account for whether the helicopter crashes, ignoring passenger comfort.