TL;DR
TEDUO (Teaching the Environment Dynamics from Unlabeled Observations) is a novel pipeline that enables AI agents to learn complex, language-conditioned tasks using only unlabeled, non-expert data. By using Large Language Models (LLMs) first to label and simplify raw data, and then as a final policy that "grounds" its broad knowledge in specific environment dynamics, TEDUO achieves significantly better generalization to novel goals and unseen states than conventional Reinforcement Learning (RL) or out-of-the-box LLMs.
The Challenge of Language-Conditioned RL
Training an AI to follow natural language instructions (e.g., "Put the purple ball next to the purple chest") traditionally requires one of two expensive resources: massive amounts of human-labeled "expert" demonstrations, or millions of real-time interactions with an environment to learn via trial and error.
In the real world, we often have plenty of unlabeled data (like recordings of people using apps) but no clear reward signal or expert labels. Furthermore, standard RL agents are notoriously brittle—they often fail when given a slightly different instruction or placed in a new room. Conversely, while LLMs "understand" language, they lack grounding. They might know what a "purple chest" is, but they don't know the specific "physics" of a symbolic environment, such as the fact that you cannot walk through a wall or that you must pick up a key before opening a door.
The TEDUO Methodology
To bridge this gap, the authors propose a three-step synergy between LLMs and RL, as illustrated in the overview below:
- LLMs as Data Enhancers: The pipeline takes an unlabeled dataset of state-action transitions. It uses an LLM to perform "hindsight labeling"—evaluating a transition to determine if a specific goal was achieved. To save on API costs, a lightweight "proxy reward model" is trained to mimic the LLM's labels. Optionally, the LLM performs state abstraction, stripping away irrelevant details (like the color of a door that isn't part of the goal) to simplify the learning task.
- Offline Policy Learning: With rewards now assigned to the previously unlabeled data, standard offline RL (like Tabular Q-learning or DQN) is used to solve for optimal policies across a finite set of training goals.
- LLMs as Generalizers: Finally, the knowledge from these RL policies is distilled back into a base LLM (like Llama-3-8B) via Supervised Fine-Tuning (SFT). This crucial step takes the "grounded" rules learned by the RL agent and merges them with the LLM’s inherent ability to understand synonyms and complex instructions.
Evaluated Datasets
The researchers evaluated TEDUO on two distinct symbolic environments:
- BabyAI: A sophisticated grid-world benchmark where agents must navigate rooms, pick up objects, and follow complex nested instructions.
- Webshop: A simulated e-commerce environment where agents must navigate a website, use search bars, and purchase specific items based on product requirements. This tests the model's ability to handle dynamically evolving action spaces and linguistic inputs.
Key Insights and Ideas
- The Grounding Gap: A striking insight is that even advanced "reasoning" models like DeepSeek-R1 struggle with low-level control in these environments without fine-tuning. They often default to "move forward" regardless of obstacles because they haven't learned the environment's specific constraints.
- Abstraction is Efficiency: By using LLMs to simplify the state space, the authors reduced the number of unique states by 10% and the feature space by up to 80%, drastically improving data efficiency.
- Compute is the New Bottleneck: In traditional RL, the bottleneck is often the availability of data. With TEDUO, the bottleneck shifts to computational power. Because the "training goals" are just text, an infinite variety of them can be generated to fine-tune the LLM, provided there are enough GPU cycles to process the SFT.
Key Results
- Superior Generalization: On the BabyAI "Synth" benchmark, TEDUO-Llama-3-8B achieved a 65% success rate on training tasks. More importantly, when faced with novel goals (instructions never seen during training), it maintained a 45% success rate—nearly three times better than standard RL baselines.
- Zero-Shot Robustness: When moved to entirely new environment layouts, TEDUO saw only a 12% performance drop, compared to a 24% drop for the BabyAI-IL-bot baseline.
- Outperforming Giants: TEDUO-Llama-3-8B (a relatively small model) significantly outperformed much larger "vanilla" models, including Llama-3-70B and DeepSeek-R1, which hovered between 14% and 32% success rates due to their lack of grounding.
Limitations and Future Work
- Textual Representation: The method assumes the environment state can be represented as text. While true for many digital and symbolic tasks, this is a hurdle for high-dimensional continuous spaces (like raw video). The authors suggest Vision-Language Models (VLMs) as a future direction.
- Discrete Actions: Currently, the model outputs discrete action tokens. Extending this to continuous control (like robotic arm joint velocities) would require different tokenization strategies.
- Domain Knowledge: While data requirements are minimal, practitioners still need enough domain knowledge to provide a list of "plausible goals" for the environment to kickstart the labeling process.
Summary updated