GA-Agent: Large Language Models as Hyperparameter Optimizers for Evolutionary Controller Synthesis
Abstract
Tuning PID controllers to satisfy competing objectives - low tracking error, fast settling, limited overshoot, and moderate control effort - is labor-intensive and requires expertise. Genetic algorithms (GAs) offer gradient-free optimization of controller gains against a weighted fitness function, but success depends on meta-level choices: population size, generation budget, gain bounds, and fitness weights. These are usually set by manual trial-and-error or costly bilevel optimization, exposing a tension: GAs excel at dense numerical search, but configuring them needs high-level, context-dependent semantic reasoning. We propose GA-Agent, which decouples these modes. A standard GA handles low-level PID gain optimization. A large language model (LLM) agent operates at the meta-level: it observes completed GA runs, diagnoses gaps versus user control objectives, and proposes updated GA configurations. The architecture uses structured memory, quantitative goal translation, resource-aware termination, and outcome-driven routing. We evaluate GA-Agent on eight control case studies with diverse dynamics (DC motor, inverted pendulum, aircraft pitch, autonomous underwater vehicle, and others). GA-Agent achieves 100% success on all benchmarks, outperforming a Regular GA with fixed hyperparameters in solution quality and sample efficiency. It matches or surpasses a Cascade-GA baseline while reducing function evaluations by one to two orders of magnitude, typically converging in one to three optimization attempts. Sensitivity analysis shows robustness across LLM backbones and memory configurations. A compact memory buffer (size 2-3) and cost-effective models (DeepSeek-V4-Flash at about $0.002 per run) achieve superior performance.
Create a lesson
Metadata
- Categories
- eess.SY, cs.SY
Related papers
Scalable Synthesis of Time-Varying Stochastic Control Certificates via Sequential Optimization
Shared title terminologyeess.SYRayan Mazouz, Luca Laurenti, Morteza Lahijanian
Communication-aware Synthesis of Safe Controllers for Discrete-Time Linear Multi-Agent Systems with Distributed k-Hop Observation
Shared title terminologyeess.SYYihan Liu, Teng Yan, Meiqi Tian et al.
Control Barrier Function Synthesis for Differential-Algebraic Systems
Shared title terminologyeess.SYHongchao Zhang, Mohamad H. Kazma, Ben Wooding et al.
DynaSeek: Large Language Model-Driven Hybrid Dynamic Model Discovery for Grid-Tied Inverters from Limited Measurements
Shared title terminologyeess.SYHongwei Zhen, Chao Shen, Jianfeng Niu et al.
Probability-Based Collision Risk Evaluation of Trajectories for Optimal Control Problems with Moving Obstacles
Shared title terminologyeess.SYFlorian Steppich, Matthias Gerdts
Data-Driven Communication Topology and Distributed Controller Synthesis: Control-Aware and Co-Design
Shared title terminologyeess.SYMichael C. A. Nestor, Jiaxin Wang, Fei Teng