GLIDE-RL: Grounded Language Instruction through DEmonstration in RL

Chaitanya Kharyal, Sai Krishna Gottipati, Tanmay Kumar Sinha, Srijita Das, Matthew E. TaylorAAMAS 2024

TL;DR

This paper introduces GLIDE-RL, a novel framework for training AI agents to follow natural language instructions in complex environments with sparse rewards. By employing a teacher-instructor-student setup, GLIDE-RL leverages demonstrations from multiple teachers to create a curriculum that helps the student agent learn to generalize to unseen instructions.

What Problem Does This Paper Address?

Developing AI agents that can understand and act upon natural language instructions is a significant challenge, especially in environments where rewards are infrequent and language can be ambiguous. Traditional Reinforcement Learning (RL) struggles with sparse rewards, and grounding language in actions adds another layer of complexity. Existing methods often tackle these issues independently. This paper aims to bridge this gap by creating an RL agent that can effectively learn from natural language instructions, generalize to new phrasing, and perform complex tasks by learning from expert demonstrations within a structured curriculum.

Methods

GLIDE-RL introduces a multi-agent framework consisting of three key components:

  • Teacher Agents: These agents act in the environment and are rewarded based on the student agent's performance. They generate a curriculum of incrementally challenging goals by proposing tasks that the student can learn from. The paper emphasizes using multiple teacher agents to ensure diverse goal generation.
  • Instructor Agent: This agent observes the teacher's actions, describes them in natural language, and then uses a pre-trained Large Language Model (LLM) to convert these descriptions into multiple synonymous instructions. This is crucial for teaching the student agent to generalize.
  • Student Agent: This is the goal-conditioned RL agent that learns to follow the natural language instructions provided by the instructor. It's trained using a combination of standard Deep Q-Network (D3QN) loss and a Behavioral Cloning (BC) loss, which leverages the teacher's demonstrated trajectories to help the student learn tasks it struggles with.

The core novelty lies in the teacher-instructor-student curriculum learning framework, where teachers provide demonstrations, the instructor translates these into varied language instructions, and the student learns from this rich, multi-faceted guidance.

Datasets

The experiments were conducted in the BabyAI "BossLevel" environment. This environment is described as complex, featuring multiple rooms, various objects with different colors, and a discrete action space. For testing generalization, a holdout set of synonymous instructions was created.

Key Insights and Ideas

  • Curriculum Learning is Crucial: The paper strongly demonstrates that a curriculum generated by teacher agents significantly improves the student agent's performance compared to training without teachers or with random teachers.
  • Multiple Teachers Enhance Diversity: Using multiple teacher agents leads to more diverse goal generation, which in turn benefits the student agent's learning and generalization capabilities.
  • Language Model for Generalization: The instructor's use of an LLM to generate synonymous instructions is key to enabling the student agent to generalize to unseen language variations.
  • Behavioral Cloning as a Safety Net: The BC loss is vital for helping the student agent learn tasks it fails to achieve through pure RL, especially in sparse reward settings. It acts as a way to learn from expert demonstrations when direct reward is not immediately available.

Key Results

  • GLIDE-RL, with four teachers, achieved a success rate of around 60% on the test set, outperforming baselines like one-hot encoding (which capped around 40%) and training without behavioral cloning loss.
  • The success rate of the student agent increased with the number of teachers, though the gains became marginal after two teachers.
  • The agent trained with GLIDE-RL demonstrated an ability to generalize to previously unseen goals and synonymous instructions, achieving a notable 40% success rate on a holdout test set even without prior exposure to those specific event sequences or language.
  • The study showed that the Q-values assigned by the student agent to synonymous instructions decreased as the distance of the synonym from the original instruction increased in the embedding space, suggesting the agent's understanding of semantic similarity.

Limitations and Future Work

  • Instructor is Pre-trained: The current framework assumes the instructor agent is capable of describing actions and has access to a pre-trained LLM. The paper suggests extending this to train the instructor agent as well.
  • Human Instructors: A promising future direction is to explore using actual humans as instructors, which could provide even richer and more nuanced guidance.
  • Teacher Skill Exploration: The authors are interested in further investigating the types of skills that teacher agents develop while challenging the student.
  • Environmental Complexity: While the BabyAI "BossLevel" environment is complex, further experimentation in even more challenging or diverse environments is a natural next step.

Summary updated

BibTeX
@inproceedings{kharyal2024glide,
  author = {Chaitanya Kharyal and Sai Krishna Gottipati and Tanmay Kumar Sinha and Srijita Das and Matthew E. Taylor},
  title = {{GLIDE-RL: Grounded Language Instruction through DEmonstration in RL}},
  booktitle = {AAMAS},
  year = {2024},
  url = {https://openreview.net/forum?id=ddUTN55MbM},
}
Figure