LLMs-guided adaptive compensator: Bringing Adaptivity to Automatic Control Systems with Large Language Models

Zhongchao Zhou, Yuxi Lu, Yaonan Zhu, Yifan Zhao, Bin He, Liang He, Wenwen Yu, Yusuke IwasawaarXiv 2025 · DOI

Introduction

In the field of robotics, achieving "adaptive control"—the ability for a system to maintain performance despite physical changes, wear, or environmental shifts—remains a significant challenge. Traditional approaches typically rely on complex mathematical derivations, such as Lyapunov stability proofs, and require highly precise physical models. While Large Language Models (LLMs) have excelled at high-level task planning (e.g., decomposing a request to "get an orange" into sub-tasks), their application in low-level, real-time control has historically been limited to simple linear systems or basic parameter tuning.

Comparison of LLM task decomposition and classic feedback control systems.

The LLM-Guided Adaptive Compensator Framework

This research introduces a framework that leverages LLMs as "intelligent tuners" to augment existing controllers. Instead of tasking the LLM with designing a controller from scratch—a process prone to errors and high computational costs—the researchers use it to design an adaptive compensator. This compensator bridges the performance gap between a real robot and an ideal "reference model."

The process follows a structured loop:

  1. Reference Model Selection: The user defines the desired system behavior (e.g., fast convergence with no overshoot).
  2. Discrepancy Prompting: The LLM is provided with natural language descriptions of the performance gap (e.g., "System 1 has high overshoot").
  3. Iterative Design: Using Chain-of-Thought (CoT) reasoning, the LLM generates compensation strategies in code or functional forms.
  4. Stability Verification: Crucially, the authors apply formal Lyapunov stability analysis to ensure the generated compensator is safe and stable before deployment.
The LLM-guided framework for reference system selection and adaptive compensator design.

Experimental Evaluation

The framework was evaluated on two challenging, highly nonlinear platforms:

  • McKibben Pneumatic Artificial Muscles (PAMs): Soft robotic arms characterized by extreme nonlinearity, hysteresis, and air compressibility.
  • Unitree H1_2 Humanoid Robot: A complex system used to evaluate the framework's ability to handle "sim-to-real" gaps and maintain stability under external disturbances.

Key Insights and Results

The study found that LLMs possess a form of "intuitive physics," allowing them to suggest effective control actions (like derivative boosts or integral actions) based on qualitative descriptions without needing to solve underlying differential equations manually.

Key findings include:

  • Higher Success Rates: By focusing on compensation rather than full control, the reasoning complexity is reduced. The framework achieved an 80% success rate on 1-DoF tasks, compared to only 20% for direct LLM-based control design.
  • Zero-Shot Generalization: The system demonstrated the ability to adapt to unknown dynamics without specific retraining.
  • Decoupling Capabilities: In multi-degree-of-freedom tests, the LLM successfully identified and compensated for joint coupling, a notoriously difficult problem in robotics.

Conclusion and Future Directions

While the LLM-guided compensator significantly enhances adaptivity, challenges remain regarding real-time execution speeds and the "black-box" nature of LLM outputs. Future work will focus on integrating LLMs into high-frequency control loops and developing more rigorous automated verification for safety-critical hardware applications.

Summary updated

BibTeX
@misc{zhou2025llms,
  author = {Zhongchao Zhou and Yuxi Lu and Yaonan Zhu and Yifan Zhao and Bin He and Liang He and Wenwen Yu and Yusuke Iwasawa},
  title = {{LLMs-guided adaptive compensator: Bringing Adaptivity to Automatic Control Systems with Large Language Models}},
  year = {2025},
  eprint = {2507.20509},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.20509},
}
Figure