LLM-Based Offline Learning for Embodied Agents via Consistency-Guided Reward Ensemble

Sangwoo Shin, Yujeong Lee, Wei-Jin Park, Honguk Woo · DOI

TL;DR

This paper introduces COREN, a novel framework that leverages Large Language Models (LLMs) to provide dense reward signals for offline Reinforcement Learning (RL) of embodied agents. By employing a consistency-guided ensemble of LLM-generated rewards, COREN effectively grounds these rewards in specific environments, enabling efficient agent training without direct interaction and achieving performance comparable to state-of-the-art online LLM-based agents, despite a much smaller agent policy network.

What Problem Does This Paper Address?

Embodied agents, designed to interact with the physical world, often struggle with complex, long-horizon tasks that require sophisticated reasoning and planning. While Large Language Models (LLMs) have shown remarkable reasoning capabilities, directly using them as embodied agents presents challenges: they require extensive prompt engineering, significant computational resources, and suffer from inference latency. This makes them impractical for real-time applications.

Offline Reinforcement Learning (RL) offers a solution by training agents on pre-collected datasets without further environment interaction. However, offline RL typically relies on sparse reward signals, which are insufficient for learning complex, instruction-following tasks. Existing methods for using LLMs to generate rewards often lack grounding in the specific environment, leading to inconsistent or inaccurate feedback, especially in offline settings where direct interaction for fine-tuning is impossible. This paper tackles the problem of bridging the gap between the powerful reasoning of LLMs and the practical needs of offline RL for embodied agents, aiming to create efficient agents that can learn complex tasks from static datasets.

Methods

The core of COREN is a two-stage reward estimation process:

  1. Spatio-Temporally Consistent Reward Estimation: Instead of directly using an LLM's output, COREN queries the LLM multiple times using different prompts to generate several types of rewards. These rewards are designed to be consistent across different aspects:
  2. Contextual Consistency: Achieved by using multiple prompts with varying contextual frames and taking a majority vote on their outputs.
  3. Structural Consistency: Ensures the LLM understands the environment's physical structure by asking MDP-specific questions (e.g., "Which objects are relevant to the instruction?"). Rewards from prompts that fail to answer these queries correctly are discarded.
  4. Temporal Consistency: Verifies that actions deemed high-value by the LLM can collectively achieve the instruction by using backward verification prompts. Actions that fail this verification are excluded.
  5. Domain-Grounded Reward Ensemble: The spatio-temporally consistent rewards (contextual, structural, and temporal) are then combined using a learned reward orchestrator. This orchestrator is trained to align the accumulated stepwise rewards from the LLM with the sparse, ground-truth reward (success/failure) provided in the offline dataset. This ensemble process effectively tunes the LLM's rewards to be domain-specific and more reliable for offline RL.

The trained agent policy, using a standard offline RL algorithm like Conservative Q-Learning (CQL), is then trained on this reward-augmented dataset.

Datasets

  • VirtualHome (VH): The primary environment used for training and evaluation. VH is a realistic benchmark for simulating household activities, featuring diverse interactive objects and basic behaviors. The authors define 58 distinct actions and use 25 distinct tasks for experiments.
  • Offline Dataset (D): Constructed by augmenting single expert trajectories for each task with random actions leading to failed trials. This dataset contains approximately 8,000 trajectories, each annotated with a sparse reward of 1 for success and 0 for failure.
  • MDP-QA dataset (DQA): A dataset of question-answer pairs used for structural consistency checks, generated by the authors.

Key Insights and Ideas

  • LLMs as Tools, Not Agents: The paper advocates for using LLMs as sophisticated tools for reward generation rather than directly as embodied agents, mitigating issues like latency and prompt engineering complexity.
  • Consistency is Key for Grounding: The core idea is that by enforcing spatio-temporal consistency across multiple LLM queries, the generated rewards become more grounded in the specific environment, even without direct interaction.
  • Ensemble Learning for Robustness: Combining rewards from different consistency criteria and aligning them with sparse ground-truth rewards creates a more robust and domain-specific reward signal.
  • Offline RL Advantage: COREN demonstrates that effective offline RL for complex tasks is achievable by augmenting sparse rewards with LLM-generated dense rewards, opening doors for more efficient and safer agent training.
  • Parameter Efficiency: COREN achieves competitive performance with significantly smaller agent policy networks compared to LLM-based agents, highlighting the efficiency of its reward estimation approach.

Key Results

  • Outperforms RL Baselines: COREN significantly outperforms other offline RL agent baselines, achieving average gains of 20.0% in Success Rate (SR), 15.2% in Completed Goal Conditions (CGC), and 5.6% in Plan metrics over the best RL baseline (Self-Consistency).
  • Comparable to LLM-Based Agents: COREN achieves performance comparable to state-of-the-art LLM-based agents (e.g., SayCan-Gemini, ProgPrompt-Gemini) despite using a much smaller agent policy network (117M parameters vs. 8B parameters for LLM agents) and using LLMs only for training.
  • Robustness to Domain Shifts: COREN shows resilience to cross-domain shifts (altered object locations), maintaining performance better than many baselines that struggle to adapt without explicit retraining.
  • Ablation Studies: The results show that using all three consistency measures (contextual, structural, temporal) is crucial for optimal performance, and increasing the number of prompts generally improves agent performance.

Limitations and Future Work

  • LLM Capability Dependency: The performance of COREN heavily relies on the underlying LLM's reward estimation capabilities. If the LLM's pre-trained knowledge doesn't align well with the target environment, or if the environment is highly dynamic and non-stationary, the learned policy might degrade.
  • Non-Stationary Environments: The current framework is primarily designed for static offline datasets. Addressing limitations in non-stationary environments where domain characteristics change over time is identified as a direction for future work.
  • LLM Inference Cost: While COREN uses LLMs only for training, the initial reward estimation process still incurs computational costs associated with LLM inference.
  • Modality for Reward Estimation: Experiments with large multi-modal models (LMMs) for reward estimation showed lower performance compared to LLMs, suggesting that current LMMs might not be as well-suited for high-level reasoning tasks in embodied environments.

Summary updated

BibTeX
@inproceedings{shin2024llm,
  author = {Sangwoo Shin and Yujeong Lee and Wei-Jin Park and Honguk Woo},
  title = {{LLM-Based Offline Learning for Embodied Agents via Consistency-Guided Reward Ensemble}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.170},
}
Figure