Abstract
Reinforcement Learning (RL) agents typically learn from sparse numerical rewards, a process that often lacks the nuance and context of human instruction. This paper presents the Language-Teachable Decision Transformer (LTDT), a framework designed to integrate high-context natural language feedback—specifically hindsight reflections and foresight guidance—into the training loop. By utilizing GPT-4 to generate linguistically diverse feedback, the authors demonstrate that both the informativeness of the content and the variety of its expression are critical for improving task success, generalization to unseen environments, and few-shot adaptation. Experimental results across four diverse benchmarks show that LTDT significantly outperforms standard Decision Transformer baselines.
Introduction
The development of autonomous agents capable of following complex instructions in dynamic environments is a central goal of artificial intelligence. While traditional RL relies on scalar rewards (e.g., +1 for success), human teaching is characterized by descriptive feedback that critiques past actions (hindsight) and suggests future steps (foresight). However, incorporating such "noisy" natural language into RL models remains challenging. This research investigates how the informativeness and linguistic diversity of feedback influence an agent's learning trajectory and its ability to generalize to novel scenarios.
Methodology: The Language-Teachable Decision Transformer (LTDT)
The LTDT extends the Decision Transformer (DT) architecture, which frames RL as a sequence modeling task. The model processes a multi-modal sequence of states, actions, rewards, and language feedback tokens, allowing it to correlate specific linguistic cues with environmental transitions.
Informativeness and Diversity
The authors define an informativeness taxonomy consisting of two primary feedback types:
- Hindsight: Critiques identifying errors in past trajectories (e.g., "You have gone to the wrong direction").
- Foresight: Guidance suggesting optimal future actions (e.g., "To access the recycling bin, you’ll need to pedal").
To ensure the agent learns semantic meaning rather than simple template matching, GPT-4 was employed to augment simple instructions into a diverse pool of natural language variations. This prevents the model from overfitting to specific word patterns. Furthermore, the training process utilized sub-optimal trajectories, intentionally introducing perturbations so that agents could encounter and learn from mistakes through hindsight feedback.
Experimental Setup
The LTDT was evaluated across four distinct benchmarks that test different cognitive and physical capabilities:
- HomeGrid: A grid-based household task environment focused on object manipulation and navigation.
- ALFWorld: A vision-and-language environment for high-level household chores based on the ALFRED benchmark.
- Messenger: A reasoning task requiring the agent to identify entity roles and deliver messages while avoiding enemies.
- MetaWorld: A robotic manipulation benchmark involving a Sawyer arm performing tasks like assembly and hammering.
Key Results and Discussion
The study yielded several critical insights into the role of language in agent training:
- Performance Gains: Transitioning from no language to template-based hindsight and foresight improved success rates by an average of 9.86 points. Adding GPT-augmented diversity provided an additional 10.14 point boost, totaling a nearly 20% improvement over the baseline.
- Generalization and Adaptation: Agents trained with diverse language showed superior performance on unseen tasks. In few-shot settings, these agents reached higher success rates with significantly fewer examples than baselines.
- Internal Representation: Interestingly, agents trained with language feedback outperformed baselines even when that feedback was withheld at test time. This suggests that language acts as a powerful regularizer, helping the agent build a stronger internal representation of task logic.
- Robustness to Noise: The LTDT architecture demonstrated resilience to redundant or slightly misleading feedback, maintaining performance levels comparable to or better than agents trained without any language at all.
- The "Moderate Difficulty" Sweet Spot: Language feedback provided the highest efficiency gains for tasks of moderate difficulty, where the agent has the foundational skills but requires guidance to refine its strategy.
Conclusion
This work highlights that the quality of language feedback—defined by its informative content and linguistic variety—is a primary driver for effective embodied RL. By treating language as a rich source of context rather than a simple command, the LTDT framework enables more robust and adaptable agents. Future research will focus on scaling these methods to high-dimensional, photorealistic environments and exploring the nuances of real-world human-robot interaction.
Summary updated