English

Keypoint Action Tokens Enable In-Context Imitation Learning in Robotics

Robotics 2024-10-21 v3 Machine Learning Neural and Evolutionary Computing

Abstract

We show that off-the-shelf text-based Transformers, with no additional training, can perform few-shot in-context visual imitation learning, mapping visual observations to action sequences that emulate the demonstrator's behaviour. We achieve this by transforming visual observations (inputs) and trajectories of actions (outputs) into sequences of tokens that a text-pretrained Transformer (GPT-4 Turbo) can ingest and generate, via a framework we call Keypoint Action Tokens (KAT). Despite being trained only on language, we show that these Transformers excel at translating tokenised visual keypoint observations into action trajectories, performing on par or better than state-of-the-art imitation learning (diffusion policies) in the low-data regime on a suite of real-world, everyday tasks. Rather than operating in the language domain as is typical, KAT leverages text-based Transformers to operate in the vision and action domains to learn general patterns in demonstration data for highly efficient imitation learning, indicating promising new avenues for repurposing natural language models for embodied tasks. Videos are available at https://www.robot-learning.uk/keypoint-action-tokens.

Keywords

Cite

@article{arxiv.2403.19578,
  title  = {Keypoint Action Tokens Enable In-Context Imitation Learning in Robotics},
  author = {Norman Di Palo and Edward Johns},
  journal= {arXiv preprint arXiv:2403.19578},
  year   = {2024}
}

Comments

Published at Robotics: Science and Systems (RSS) 2024

R2 v1 2026-06-28T15:37:22.592Z