RoboCoder: Robotic Learning from Basic Skills to General Tasks with Large Language Models
Jingyao Li, Pengguang Chen, Sitong Wu, Chuanyang Zheng, Hong Xu, Jiaya Jia
TL;DR
This work tackles the limited generalization of robotic learning under single-task benchmarks by introducing RoboCoder, an autonomous framework that learns from basic skills to tackle complex tasks through an adaptive action-space. A new 80-task benchmark spanning 7 entities in IsaacGym is proposed to stress-test learning from minimal mastery, where GPT-4 achieves $47\%$ in three-shot humanoid scenarios. RoboCoder integrates a Searcher, Actor, and Evaluator to iteratively expand and refine executable action codes using real-time environmental feedback, achieving a $36\%$ relative improvement over GPT-4 for humanoids and up to $92\%$ in quadruped environments, while significantly improving inference speed via a lightweight action-searcher. The results validate the framework's robustness across diverse models and entities, suggesting meaningful benefits for open-world robotic manipulation and future real-world deployment, albeit with current limitations limited to simulated environments.\n
Abstract
The emergence of Large Language Models (LLMs) has improved the prospects for robotic tasks. However, existing benchmarks are still limited to single tasks with limited generalization capabilities. In this work, we introduce a comprehensive benchmark and an autonomous learning framework, RoboCoder aimed at enhancing the generalization capabilities of robots in complex environments. Unlike traditional methods that focus on single-task learning, our research emphasizes the development of a general-purpose robotic coding algorithm that enables robots to leverage basic skills to tackle increasingly complex tasks. The newly proposed benchmark consists of 80 manually designed tasks across 7 distinct entities, testing the models' ability to learn from minimal initial mastery. Initial testing revealed that even advanced models like GPT-4 could only achieve a 47% pass rate in three-shot scenarios with humanoid entities. To address these limitations, the RoboCoder framework integrates Large Language Models (LLMs) with a dynamic learning system that uses real-time environmental feedback to continuously update and refine action codes. This adaptive method showed a remarkable improvement, achieving a 36% relative improvement. Our codes will be released.
