Learning to Learn Faster from Human Feedback with Language Model Predictive Control

Jacky Liang, Fei Xia, Wenhao Yu, Andy Zeng, Montserrat Gonzalez Arenas, Maria Attarian, Maria Bauza Villalonga, Matthew Bennice, Alex Bewley, Adil Dostmohamed, Chuyuan Fu, Nimrod Gileadi, Marissa Giustina, Keerthana Gopalakrishnan, Leonard Hasenclever, Jan Humplik, Jasmine Hsu, Nikhil J Joshi, Ben Jyenis, J Chase Kew, Sean Kirmani, Tsang-Wei Edward Lee, Kuang-Huei Lee, Assaf Hurwitz Michaely, Joss Moore, Kenneth Oslund, Dushyant Rao, Allen Z. Ren, Baruch Tabanpour, Quan Vuong, Ayzaan Wahid, Ted Xiao, Ying Xu, Vincent Zhuang, Peng Xu, Erik Frey, Ken Caluwaerts, Tingnan Zhang, brian ichter, Jonathan Tompson, Leila Takayama, Vincent Vanhoucke, Izhak Shafran, Maja Mataric, Dorsa Sadigh, Nicolas Heess, Kanishka Rao, Nik Stewart, Jie Tan, Carolina Parada · DOI

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:

  1. 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.
  2. 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

BibTeX
@inproceedings{liang2024learning,
  author = {Jacky Liang and Fei Xia and Wenhao Yu and Andy Zeng and Montserrat Gonzalez Arenas and Maria Attarian and Maria Bauza Villalonga and Matthew Bennice and Alex Bewley and Adil Dostmohamed and Chuyuan Fu and Nimrod Gileadi and Marissa Giustina and Keerthana Gopalakrishnan and Leonard Hasenclever and Jan Humplik and Jasmine Hsu and Nikhil J Joshi and Ben Jyenis and J Chase Kew and Sean Kirmani and Tsang-Wei Edward Lee and Kuang-Huei Lee and Assaf Hurwitz Michaely and Joss Moore and Kenneth Oslund and Dushyant Rao and Allen Z. Ren and Baruch Tabanpour and Quan Vuong and Ayzaan Wahid and Ted Xiao and Ying Xu and Vincent Zhuang and Peng Xu and Erik Frey and Ken Caluwaerts and Tingnan Zhang and brian ichter and Jonathan Tompson and Leila Takayama and Vincent Vanhoucke and Izhak Shafran and Maja Mataric and Dorsa Sadigh and Nicolas Heess and Kanishka Rao and Nik Stewart and Jie Tan and Carolina Parada},
  title = {{Learning to Learn Faster from Human Feedback with Language Model Predictive Control}},
  booktitle = {Robotics: Science and Systems},
  year = {2024},
  doi = {10.15607/rss.2024.xx.125},
}
Figure