Abstract
Language Reward Shaping (LRS) is intended to alleviate sparse-reward challenges in reinforcement learning by providing auxiliary rewards based on natural language instructions. However, this study reveals that LRS can be surprisingly brittle. By rewarding "partially matched" behaviors, current LRS methods often mislead agents, resulting in slower convergence compared to pure reinforcement learning (RL) baselines. Through theoretical analysis and empirical evaluation on the Montezuma’s Revenge benchmark, we identify suboptimal information compression and temporal collapse as primary drivers of this performance degradation.
Introduction: The Promise and Pitfalls of Language Reward Shaping
Reinforcement Learning (RL) agents often struggle in environments with sparse rewards, where a success signal is only received after a long, complex sequence of actions. To accelerate learning, researchers employ Language Reward Shaping (LRS), using pretrained models to provide auxiliary rewards when an agent's actions align with text instructions (e.g., "climb down the ladder").
Despite its potential, LRS-trained agents frequently converge slower than standard curiosity-based RL baselines. This paper identifies the core issue as suboptimal information compression. When complex, high-dimensional language and visual data are squashed into a single scalar reward, precision is lost. This leads to "false positive" rewards for behaviors that only partially match instructions or perform them in the wrong order, trapping agents in suboptimal policy loops.
Methodology: Formalizing Instruction Following
The authors approach the LRS problem through both theoretical modeling and empirical experimentation. They formalize instruction following as a constraint-matching problem across three dimensions: Action (what to do), State (where to be), and Temporal (the sequence of events).
To isolate the effects of reward design, the study utilizes two models:
- Simulated LRS Model: A rule-based system testing three reward regimes: Perfect (only chronological matches), Partial (reduced rewards for incomplete matches), and Relaxed (rewards for subgoals regardless of order).
- Neural LRS Model: A state-of-the-art system using a T5 language encoder and a YOLOv7-based visual classifier to evaluate how real-world architectural limitations, such as gradient smoothness, impact learning.
Experimental Setup: Montezuma’s Revenge
The primary evaluation environment is Montezuma’s Revenge, a notorious "hard exploration" Atari benchmark. The authors collected top-rated instruction sentences from game forums for specific rooms. For the neural LRS model, they utilized a dataset of 5,000 annotated human gameplay clips to train the binary reward classifier.
Key Insights: The Scalar Bottleneck and Temporal Collapse
- The Scalar Bottleneck: Compressing rich semantic instructions into a single number creates an information bottleneck. A neural network might assign a high similarity score to an agent that performs the first half of an instruction but fails the second, reinforcing incorrect behavior.
- Temporal Collapse: Many LRS architectures fail to strictly enforce chronological ordering. This results in agents attempting to complete the final step of an instruction before satisfying the necessary prerequisites.
- LRS as a Constraint: LRS restricts the agent's search space. If instructions do not encompass every winning path, the agent may ignore efficient shortcuts it would have otherwise discovered through pure exploration.
Results: Performance Degradation and Brittleness
Empirical results highlight the fragility of LRS. In Room A2, the baseline (PPO+RND) achieved an Area Under the Curve (AUC) of 0.633, while the neural LRS model failed completely with a 0% success rate.
Even in the simulated model, shifting from "Perfect" matching to "Partial" matching caused the AUC to drop from 0.608 to 0.183. These findings suggest that LRS is only effective when the set of instruction-following policies is nearly identical to the set of all winning policies. If instructions are too vague or too specific, they hinder rather than help.
Conclusion and Future Work
The study demonstrates that current LRS methods are highly sensitive to task difficulty and instruction granularity. To address these limitations, the authors suggest two future directions:
- Vectorized Rewards: Moving beyond scalars to multi-label vectors that represent the satisfaction of specific constraints (Action, State, Temporal).
- Trajectory Optimization: Treating instructions as a means to evaluate entire trajectories rather than providing step-by-step rewards, thereby avoiding the accumulation of errors from single-step shaping.
Summary updated