TL;DR
This paper introduces Language Model Predictive Control (LMPC), a novel framework that fine-tunes large language models (LLMs) to improve their ability to learn from human feedback for robot teaching. LMPC significantly enhances how efficiently robots learn new tasks from non-expert users, leading to faster task completion and fewer corrections.
What Problem Does This Paper Address?
Teaching robots new tasks using natural language is a promising avenue for making robotics more accessible. While large language models (LLMs) can translate language commands into robot code, their ability to learn from human feedback is limited by their context window. This means that over longer interactions, LLMs can "forget" previous feedback, hindering their teachability. The challenge is to enable LLMs to effectively learn and retain information from multi-turn human-robot interactions to become more teachable and adaptable.
Methods
The core contribution is Language Model Predictive Control (LMPC). LMPC combines two key ideas:
- Fast Adaptation (In-Context Learning): This is the standard approach where LLMs use previous interactions as context to generate robot code. The system converts natural language feedback into robot reward code, which then drives robot actions.
- Slow Adaptation (Model Fine-Tuning): This is where LMPC introduces its novelty. The LLM is fine-tuned offline using data collected from human-robot teaching sessions. This fine-tuning process treats the human-robot interaction as a partially observable Markov Decision Process (POMDP), where the LLM learns to predict future interactions. This learned "transition dynamics model" is then combined with Model Predictive Control (MPC) at inference time. MPC allows the LLM to "look ahead" and sample multiple potential future interactions to find the most efficient path to task success, effectively learning to learn faster.
A key aspect of LMPC is "Top-User Conditioning." The LLM is trained to condition its generations on data from "top users" (those who demonstrate higher task success rates). This helps the model learn from high-quality feedback and generalize better, even to users who are not "top users."
Datasets
The research utilizes a dataset of human-robot interactions collected from 35 non-expert users teaching robots 78 different tasks across 5 robot embodiments (Robot Dog, Mobile Manipulator, Aloha, Bi-arm Kuka, Kuka+Hand). Data was collected in simulation, with some real-world evaluations. The paper also mentions using the RoboCodeGen benchmark for evaluating code-writing capabilities.
Key Insights and Ideas
- Fine-tuning LLMs for Teachability: The paper demonstrates that fine-tuning LLMs specifically for the task of learning from human feedback (teachability) yields significant improvements beyond just in-context learning.
- POMDP Analogy for Learning: Framing human-robot interaction as a POMDP provides a powerful theoretical lens for understanding how to train LLMs to predict and learn from sequential feedback.
- "Top-User" Data is Crucial: Conditioning LLM learning on data from high-performing users significantly boosts performance, suggesting that learning from high-quality, effective feedback is key. However, this conditioning doesn't completely discard data from other users, maintaining a balance.
- LMPC Generalizes: The LMPC framework shows strong generalization capabilities, improving performance not only on unseen tasks but also on unseen robot embodiments and APIs.
Key Results
- LMPC improves non-expert teaching success rates on unseen tasks by 26.9%.
- It reduces the average number of human corrections needed for task success from 2.4 to 1.9.
- LMPC enhances the success rate of in-context learning for new tasks on unseen robot embodiments and APIs by 31.5%.
- Top-user conditioning leads to significant performance improvements, even when top-user data constitutes a small fraction of the training data.
- Experiments show that LMPC models generalize well to new robot embodiments, demonstrating cross-embodiment learning.
Limitations and Future Work
- Computational Resources: The approach requires significant computational resources for both MPC and LLM fine-tuning. Future work could explore more efficient MPC and fine-tuning techniques (e.g., LoRA).
- Open-Source Models: The authors were unable to release their fine-tuned model weights due to logistical and legal constraints, and could not perform extensive comparisons with open-source models due to resource limitations for human studies. They have released an open-source Colab notebook to facilitate experimentation with other LLMs.
- Multimodal Feedback: The current work focuses on language feedback. Future research could explore incorporating multimodal inputs (e.g., video, audio) to enrich the feedback and improve LLM learning.
- Iterative Fine-tuning: Initial experiments with iterative fine-tuning did not yield further improvements, suggesting that more advanced methods for data distribution adaptation or synthetic data generation might be needed for continued gains.
- Task-Level Analysis: While some task-level analyses were performed, the low sample sizes per task limit definitive conclusions. More data is needed for deeper task-specific insights.
Summary updated