articleMay 29, 2023Closed access
Code as Policies: Language Model Programs for Embodied Control
Indexed incrossref
Abstract
Large language models (LLMs) trained on code-completion have been shown to be capable of synthesizing simple Python programs from docstrings [1]. We find that these code-writing LLMs can be re-purposed to write robot policy code, given natural language commands. Specifically, policy code can express functions or feedback loops that process perception outputs (e.g., from object detectors [2], [3]) and parameterize control primitive APIs. When provided as input several example language commands (formatted as comments) followed by corresponding policy code (via few-shot prompting), LLMs can take in new commands and autonomously re-compose API calls to generate new policy code respectively. By chaining classic…
Citation impact
555
total citations
- FWCI
- 62.92
- Percentile
- 100%
- References
- 77
Citations per year
Authors
8Topics & keywords
Topics
Keywords
- Computer science
- Programming language
- Python (programming language)
- Context (archaeology)
- Code (set theory)
- Robot
- Artificial intelligence
- Natural language
No related works found for this paper.