TL;DR
This paper introduces LID (Language Models for Interactive Decision-Making), a framework that repurposes pre-trained Large Language Models (LLMs) as a "scaffold" for sequential decision-making. By representing goals and observations as sequences, the authors demonstrate that LLM-based policies achieve massive gains in combinatorial generalization—outperforming standard baselines by up to 43.6% in complex simulated environments.
The Challenge of Combinatorial Generalization
Standard Reinforcement Learning (RL) and imitation learning often struggle with combinatorial generalization. While an agent might learn to "put an apple in the fridge" and "put a plate on the table," it frequently fails when asked to "put a plate in the fridge"—a novel combination of known elements it hasn't encountered together during training.
Most traditional policy architectures use fixed-dimensional feature vectors to represent the world. This approach is rigid; it doesn't scale well to environments with a varying number of objects or complex temporal histories. The authors ask a compelling question: Can the internal representations learned by LLMs during text pre-training—which already capture complex relationships and planning logic—be leveraged for general decision-making, even in tasks that don't explicitly involve language?
The LID Framework
The authors propose LID, which treats decision-making as a sequence-to-sequence problem:
- Sequential Input Encoding: Instead of a single vector, the agent’s goal, current observation, and interaction history are converted into a sequence of embeddings. These can be natural language strings (e.g., "put the apple in the fridge"), scene graphs, or even arbitrary integer indices.
- LM Initialization: The policy network is initialized with the weights of a pre-trained language model (specifically GPT-2).
- Action Prediction: The LM processes the input sequence, and its output is passed to a task-specific head that predicts the next discrete action.
- Active Data Gathering (ADG): For scenarios where expert demonstrations aren't available, the authors introduce a self-supervised loop. The agent explores the environment, and even when it fails a goal, it uses Hindsight Relabeling to identify what sub-goal it did actually achieve. It then updates its policy using these "successful" failures.
Evaluation Environments
The framework was evaluated on two primary benchmarks designed to test the limits of generalization, specifically focusing on Novel Tasks and Novel Scenes.
VirtualHome
VirtualHome is a 3D simulator for household tasks. It features complex, long-horizon goals (e.g., "Inside(pancake, stove):1; Close(stove); SwitchOn(stove)") and graph-based observations of objects and their states.
BabyAI
BabyAI is a 2D grid-world environment for instruction following. It requires the agent to navigate and manipulate objects based on synthetic language commands.
Key Insights
- The Power of Sequence: The most critical factor for generalization wasn't the "language-ness" of the input, but its sequential structure. Moving from a fixed vector to a sequence allowed the transformer architecture to attend to relevant objects and history more effectively.
- Pre-training is a General Inductive Bias: Initializing with pre-trained LM weights provided a significant boost (11.2% success rate) even when the inputs were not natural language. This suggests that LMs learn fundamental patterns of reasoning and planning that transcend text.
- Format Flexibility: Surprisingly, encoding inputs as natural language versus arbitrary integer indices had a negligible impact on final performance. The LM's ability to process sequences is more important than its specific vocabulary.
- Solving Sparse Rewards: The Active Data Gathering (ADG) approach allowed the model to learn in environments where standard RL (like PPO) completely failed, proving that the LM-based policy is a more stable starting point for learning from scratch.
Key Results
- Superior Generalization: In VirtualHome "Novel Tasks," LID improved task completion rates by 43.6% over the best non-LM baseline (LSTM).
- Sample Efficiency: On BabyAI, LID reached high success rates with significantly fewer demonstrations than the original environment's baseline.
- Zero-to-Hero with ADG: In VirtualHome settings without expert data, LID-ADG achieved a 46.7% success rate, while standard RL baselines (PPO and DQN+HER) remained at 0%.
- Ablation Impact: Removing the sequential structure (the "No-Seq" test) caused performance on novel tasks to crater from 58.2% to just 2.0%, highlighting the importance of the transformer's attention mechanism over sequential data.
Limitations and Future Work
- Hand-Designed Relabeling: The Active Data Gathering phase currently relies on hand-designed rules to determine what goal was achieved in a failed trajectory. Automating this "goal discovery" is a key next step.
- LM Biases: The authors acknowledge that pre-trained LMs carry inherent biases from their training data, which could manifest as "common sense" that is actually incorrect or harmful in specific physical environments.
- Scaling Up: While this work used GPT-2, the authors suggest that larger models (like GPT-3 or beyond) could further improve reasoning in even more complex, open-ended environments.
- Real-World Robotics: The current study is limited to simulation; testing the LID framework on physical hardware remains an open challenge.
Summary updated