English

In-Context Learning Enables Robot Action Prediction in LLMs

Robotics 2025-03-18 v2 Computation and Language

Abstract

Recently, Large Language Models (LLMs) have achieved remarkable success using in-context learning (ICL) in the language domain. However, leveraging the ICL capabilities within LLMs to directly predict robot actions remains largely unexplored. In this paper, we introduce RoboPrompt, a framework that enables off-the-shelf text-only LLMs to directly predict robot actions through ICL without training. Our approach first heuristically identifies keyframes that capture important moments from an episode. Next, we extract end-effector actions from these keyframes as well as the estimated initial object poses, and both are converted into textual descriptions. Finally, we construct a structured template to form ICL demonstrations from these textual descriptions and a task instruction. This enables an LLM to directly predict robot actions at test time. Through extensive experiments and analysis, RoboPrompt shows stronger performance over zero-shot and ICL baselines in simulated and real-world settings. Our project page is available at https://davidyyd.github.io/roboprompt.

Keywords

Cite

@article{arxiv.2410.12782,
  title  = {In-Context Learning Enables Robot Action Prediction in LLMs},
  author = {Yida Yin and Zekai Wang and Yuvan Sharma and Dantong Niu and Trevor Darrell and Roei Herzig},
  journal= {arXiv preprint arXiv:2410.12782},
  year   = {2025}
}

Comments

Published in ICRA 2025

R2 v1 2026-06-28T19:24:34.236Z