Training microrobots to swim by a large language model

Machine learning and artificial intelligence have recently become a popular paradigm for designing and optimizing robotic systems across various scales. Recent studies have showcased the innovative application of large language models (LLMs) in industrial control and in directing legged walking robots. Here, we use an LLM, Generative Pre-trained Transformer 4 (GPT-4), in most scenarios, to train two prototypical microrobots for swimming in viscous fluids. Adopting a few-shot learning approach, we develop a minimal, unified prompt composed of only five sentences. The same concise prompt successfully guides two distinct articulated microrobots---the three-link swimmer and the three-sphere swimmer---in mastering their signature strokes. These strokes, initially conceptualized by physicists, are now effectively interpreted and applied by the LLM, enabling the microrobots to circumvent the physical constraints inherent to microlocomotion. In addition, we extend our study to the four-link and four-sphere swimmers, enabling their effective propulsion. Remarkably, for this specific task, our LLM-based decision-making strategy substantially outperforms a traditional reinforcement-learning method in terms of training speed. We discuss the subtle aspects of prompt design, particularly emphasizing the reduction of costs when using GPT-4.

Authors

Institutions

Publication Details

Journal
Physical Review Applied
Published
2025-04-25
DOI
https://doi.org/10.1103/physrevapplied.23.044058
Citations
5
Primary Topic
Micro and Nano Robotics
Type
article
Field-Weighted Citation Impact
5.03

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Training microrobots to swim by a large language model

Lailai Zhu, Zhuoqun Xu
5 citations
Physical Review Applied
Micro and Nano Robotics
5.03
article

Training microrobots to swim by a large language model

Lailai Zhu, Zhuoqun Xu
article en
5 citations

Abstract

Machine learning and artificial intelligence have recently become a popular paradigm for designing and optimizing robotic systems across various scales. Recent studies have showcased the innovative application of large language models (LLMs) in industrial control and in directing legged walking robots. Here, we use an LLM, Generative Pre-trained Transformer 4 (GPT-4), in most scenarios, to train two prototypical microrobots for swimming in viscous fluids. Adopting a few-shot learning approach, we develop a minimal, unified prompt composed of only five sentences. The same concise prompt successfully guides two distinct articulated microrobots---the three-link swimmer and the three-sphere swimmer---in mastering their signature strokes. These strokes, initially conceptualized by physicists, are now effectively interpreted and applied by the LLM, enabling the microrobots to circumvent the physical constraints inherent to microlocomotion. In addition, we extend our study to the four-link and four-sphere swimmers, enabling their effective propulsion. Remarkably, for this specific task, our LLM-based decision-making strategy substantially outperforms a traditional reinforcement-learning method in terms of training speed. We discuss the subtle aspects of prompt design, particularly emphasizing the reduction of costs when using GPT-4.

Physical Review AppliedVol. 23(4)
National University of Singapore (SG)
Agency for Science, Technology and Research, National University of Singapore, China Scholarship Council
Openalex Percentile: Top 5%
Micro and Nano Robotics
5.03
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Training microrobots to swim by a large language model — Lailai Zhu, Zhuoqun Xu · Physical Review Applied (2025) | TGRS Research Map | TGRS