{"title":"LLM-controller: Dynamic robot control adaptation using large language models","authors":"Rasoul Zahedifar , Mahdieh Soleymani Baghshah , Alireza Taheri","doi":"10.1016/j.robot.2024.104913","DOIUrl":null,"url":null,"abstract":"<div><div>In this study, a dynamic adaptation of a robot controller is investigated using large language models (LLMs). We propose our controller called the LLM-Controller, where, in response to changes in the system dynamics or reference signals, the LLM adapts the controller to the new context. Various scenarios reflecting real-world conditions, including unknown disturbances, unmodeled dynamics, and changing reference signals, were analyzed. Using the proposed LLM-Controller, one can adapt to new conditions automatically without manual tuning. Additionally, the controller's performance is investigated using different prompting techniques, such as zero-shot and few-shot chain-of-thought (COT), which facilitate step-by-step reasoning and improve adaptation to new contexts. The proposed scheme is applied to two case studies involving robot manipulators. First, it is tested on a 2-link robot manipulator, followed by a 3-link manipulator to enhance its generalizability. The algorithm's adaptability and effectiveness are further evaluated across a range of tasks and conditions, demonstrating its versatility in various scenarios. The results demonstrate that the LLM-Controller achieved a 100 % success rate in adapting the controller to new conditions for the 2-link manipulator, with a significant improvement in trial efficiency; while for the 3-link system, the controller maintained a 90 % success rate, showing greater adaptability to changes in reference signals or dynamic conditions in under 20 s. These outcomes could be further enhanced by employing a COT approach, potentially leading to higher success rates, fewer trials, and optimized costs. In contrast, the classic nonlinear adaptive controller struggled to adjust to the new conditions, while the LLM-Controller automatically adapts, guiding the system to new stable states. This research provides valuable insights into how LLMs can enhance decision-making, improving stability and performance in dynamic and uncertain environments.</div></div>","PeriodicalId":49592,"journal":{"name":"Robotics and Autonomous Systems","volume":"186 ","pages":"Article 104913"},"PeriodicalIF":4.3000,"publicationDate":"2025-01-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Robotics and Autonomous Systems","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0921889024002975","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AUTOMATION & CONTROL SYSTEMS","Score":null,"Total":0}
引用次数: 0
Abstract
In this study, a dynamic adaptation of a robot controller is investigated using large language models (LLMs). We propose our controller called the LLM-Controller, where, in response to changes in the system dynamics or reference signals, the LLM adapts the controller to the new context. Various scenarios reflecting real-world conditions, including unknown disturbances, unmodeled dynamics, and changing reference signals, were analyzed. Using the proposed LLM-Controller, one can adapt to new conditions automatically without manual tuning. Additionally, the controller's performance is investigated using different prompting techniques, such as zero-shot and few-shot chain-of-thought (COT), which facilitate step-by-step reasoning and improve adaptation to new contexts. The proposed scheme is applied to two case studies involving robot manipulators. First, it is tested on a 2-link robot manipulator, followed by a 3-link manipulator to enhance its generalizability. The algorithm's adaptability and effectiveness are further evaluated across a range of tasks and conditions, demonstrating its versatility in various scenarios. The results demonstrate that the LLM-Controller achieved a 100 % success rate in adapting the controller to new conditions for the 2-link manipulator, with a significant improvement in trial efficiency; while for the 3-link system, the controller maintained a 90 % success rate, showing greater adaptability to changes in reference signals or dynamic conditions in under 20 s. These outcomes could be further enhanced by employing a COT approach, potentially leading to higher success rates, fewer trials, and optimized costs. In contrast, the classic nonlinear adaptive controller struggled to adjust to the new conditions, while the LLM-Controller automatically adapts, guiding the system to new stable states. This research provides valuable insights into how LLMs can enhance decision-making, improving stability and performance in dynamic and uncertain environments.
期刊介绍:
Robotics and Autonomous Systems will carry articles describing fundamental developments in the field of robotics, with special emphasis on autonomous systems. An important goal of this journal is to extend the state of the art in both symbolic and sensory based robot control and learning in the context of autonomous systems.
Robotics and Autonomous Systems will carry articles on the theoretical, computational and experimental aspects of autonomous systems, or modules of such systems.