TL;DR
Training agents to follow complex instructions usually requires massive amounts of human demonstrations or prohibitively expensive online queries to Large Language Models (LLMs). This paper introduces Language Feedback Models (LFMs)—smaller, cost-effective models trained on offline LLM feedback to critique agent behavior. By automatically identifying and imitating "good" actions flagged by the LFM, agents achieve higher task completion rates and can even adapt to unseen environments without needing extra LLM calls.
What Problem Does This Paper Address?
Teaching an AI agent to follow natural language instructions in a grounded environment (like a robot navigating a kitchen or a virtual agent conducting a science experiment) is notoriously difficult.
Traditional Reinforcement Learning (RL) struggles here because rewards are sparse—the agent only gets a "good job" signal at the very end of a long sequence of actions. Imitation Learning (IL) solves this by having the agent copy an expert, but gathering human demonstrations is slow and expensive.
Recently, researchers have tried using massive LLMs (like GPT-4) as the "expert" to tell the agent what to do at every step. However, querying an LLM online during training or deployment is incredibly slow and financially impractical. The authors tackle this gap: How can we leverage the vast world knowledge of LLMs to train embodied agents, without the crippling cost of querying them continuously?
Methods
The authors propose a pipeline that shifts the heavy lifting from online generation to offline critiquing:
- Verbalization: First, raw environment observations (like images or 3D coordinates) are translated into text descriptions (e.g., "You see a fridge and a counter").
- Offline LLM Feedback: The researchers run a baseline agent (trained on a small set of initial demonstrations) and collect its trajectories. They send batches of these trajectories to an LLM and ask it to act as a critic: "Which of these steps were actually productive toward solving the task?"
- Train the Language Feedback Model (LFM): They use this LLM feedback to train a much smaller, cheaper model (a 770M parameter Flan-T5) to predict whether a given action is productive or not.
- Imitation Learning via LFM: The agent explores the environment. The new, lightweight LFM evaluates the agent's actions on the fly. The agent then updates its policy by imitating only the actions the LFM flagged as "desirable."
Datasets
The authors evaluated their approach on three distinct, complex benchmarks:
- ALFWorld: A simulated 3D kitchen environment where agents complete compositional tasks (e.g., "clean some lettuce and put it in the fridge").
- ScienceWorld: A text-based simulation for basic science experiments (e.g., "determine if aluminum foil is conductive"). It features a massive action space and long-horizon tasks.
- Touchdown: A visual navigation benchmark using Google Street View. Note: The authors introduced a novel verbalization technique here, using CLIP to match image patches to noun phrases to create text descriptions of the visual streets.
Key Insights and Ideas
- Critiquing is easier than generating: It is much more cost-effective to use an LLM to evaluate an action than to predict the correct action. In environments with huge action spaces (like ScienceWorld), asking an LLM "what should I do next?" often leads to hallucinations. Asking "was opening that door helpful?" yields much more reliable data.
- Zero-shot generalization: Because the LFM learns general principles of "good behavior" (e.g., moving toward a target object is generally good), it can be dropped into a completely new, unseen environment. It can guide the agent to adapt to this new environment without needing new human demonstrations or expensive GPT-4 calls.
- Interpretable AI: The authors found they could train the LFM to not just output a binary "yes/no" for an action, but to explain why an action was good (e.g., "Yes, because you successfully located the candle"). This allows humans to verify the training data without degrading the model's performance.
Key Results
The researchers compared their LFM approach against a baseline Behavioral Cloning (BC) model and an "ACTPRED" model (where the LLM directly predicts the next action), keeping the LLM token budget strictly capped at 100k tokens for fairness.
- Superior Performance: LFM consistently beat direct action prediction.
- Massive Adaptation Gains: When the LFM was used to adapt the agent to unseen test environments (LFMA), task completion rates jumped significantly:
- ALFWorld: 62.6% (Baseline) $\rightarrow$ 76.5% (LFM Adaptation)
- ScienceWorld: 45.8% (Baseline) $\rightarrow$ 50.4% (LFM Adaptation)
- Touchdown: 57.5% (Baseline) $\rightarrow$ 63.5% (LFM Adaptation)
- Open-source vs. Closed-source: They found that GPT-4 was vastly superior to LLaMA-2-70B at providing accurate feedback. LLaMA-2 frequently hallucinated, rewarding the agent for useless actions (like opening random drawers).
Limitations and Future Work
- The Verbalization Bottleneck: The system relies entirely on a module that accurately translates the environment into text. If the verbalizer misses a crucial visual detail, the LFM is blind to it.
- Compute Requirements: While "small" compared to GPT-4, the 770M parameter LFM still requires significant GPU power. The authors noted a severe performance drop when trying to use an even smaller 250M parameter model.
- Future Directions: The authors suggest testing this framework on physical robots (to test real-world verbalization limits), shrinking model sizes for edge devices like phones, and using the rich, interpretable text feedback to generate dense reward functions for standard Reinforcement Learning.
Summary updated