LEMCA: LLM-Guided Synthesis of Efficient Mode-Switching Control Architectures
Organizations: University of Pennsylvania · Amazon Robotics · Georgia Institute of Technology
Abstract
Physical control tasks in the natural world, such as driving or object manipulation, frequently exhibit dramatic variations in sensory and compute complexity over time. Correspondingly, a natural resource-efficient choice for robot control is to dynamically switch between control modes with varying resource allocations. However, such "mode-switching controllers" (MSCs) have historically required laborious, expert-driven design and synthesis for each new task. Driven by these design difficulties, modern robotic control architectures often fall back to a wasteful "monolithic" one-size-fits-all structure, where resource allocation is permanently anchored to the hardest, most resource-intensive task phases. To facilitate the design of performant yet efficient MSCs, we propose LLM-Guided synthesis of Efficient Mode-Switching Control Architectures (LEMCA). LEMCA represents MSC designs as interpretable programs to be iteratively refined in an evolutionary loop. To evaluate design fitness, we propose MSC-compatible extensions of automated controller synthesis approaches, such as reinforcement learning in simulation. LEMCA then leverages the semantic priors, reasoning, and coding capabilities of Large Language Models (LLMs) to iteratively edit controller modes, their corresponding sensory-compute resource allocations, and mode transitions. Our experiments across diverse control benchmarks show that LEMCA consistently discovers strategies that surpass the Pareto frontier of monolithic designs by reclaiming wasted resources during "easy" task phases. LEMCA thus presents an automated, low-effort path to synthesize resource-efficient MSC designs.
Figures & tables
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | point-to-disk | RF-DMC | |
|---|---|---|---|
| Architecture (actor / critic / monitor MLPs) | |||
| depth (# hidden layers) | / / | / / | |
| width (hidden dim) | / / | / / | |
| activation | SiLU | ||
| critic value head | two-hot, , bins | ||
| PPO Parameters | |||
| Hyperparameters | Value | |
|---|---|---|
| Population Size | 20 | |
| Offspring per Generation | 3 | |
| Tournament Size | 5 | |
| Number of Inspirations | 3 | |
| Explore Rate | 0.2 | |
| max_retries (LLM Validation) | 1 | |
| Cost Structure | GPS | RadialSector | |||
|---|---|---|---|---|---|
| CostlyGPS | |||||
| CheapGPS | |||||
| Sensor configuration | CostlyGPS | CheapGPS |
|---|---|---|
| SectorRadar(s=1, d=()) | ||
| SectorRadar(s=3, d=()) | ||
| SectorRadar(s=4, d=(0.01,0.05)) | ||
| SectorRadar(s=8, d=(0.05,0.2,0.5)) | ||
| GPS(sigma_xy=0.01) | ||
| GPS(sigma_xy=0.05) |
| Per-step cost | |||
| Configuration | CostlyGPS | CheapGPS | |
| RadialSector monoliths | |||
| SectorRadar(s=3, sigma_theta=0.8) | |||
| SectorRadar(s=3) | |||
| SectorRadar(s=4) | |||
| SectorRadar(s=5, sigma_theta=0.2) | |||
| Task | Rangefinder Site | Priv. State Size | ||
|---|---|---|---|---|
| cartpole-swingup | pole tip | |||
| cup-catch | cup center | |||
| finger-spin | fingertip |
| Grade | Rel. Cost / Ray | |||||
|---|---|---|---|---|---|---|
| Task Performance: | ||||
|---|---|---|---|---|
| Config | cost/step | cartpole-swingup | cup-catch | finger-spin |
| Parameter | Description | Domain | |
| Sensor | sensor power (reliable-detection range, SNR) | ||
| max_range | range cutoff for returned detections | ||
| fov | angular field of view (rad); omnidirectional | ||
| Planner | n_samples | MPPI rollouts per refinement iteration | |
| n_iters | MPPI refinement iterations | ||
| horizon | planning horizon (s) |
| Configuration | cost/step |
|---|---|
| (R0=2, max_range=10, fov= /3, n_iters=1, n_samples=256, horizon=2, period=10) | |
| (R0=20, max_range=10, fov= , n_iters=3, n_samples=512, horizon=3, period=4) | |
| (R0=50, max_range=15, fov= , n_iters=5, n_samples=1024, horizon=5, period=1) |
| Template | Modes | Free params | Approach-mode radial structure |
|---|---|---|---|
| T1 | 2 | 3 | single radial band |
| T2 | 2 | 5 | 3 radial bands |
| T3 | 2 | 7 | 5 radial bands |
| T4 | 3 | 6 | two nested approach modes |
| Variant (legend) | Search mechanism | Pop. + Crossover | Cross-Iter. Memory |
|---|---|---|---|
| GA + Design Log (LEMCA) | feasible-first GA | ✓ | design log |
| GA | feasible-first GA | ✓ | none |
| Refine Best + Design Log | greedy hill-climb (best) | -- | design log |
| Refine Latest + Design Log | greedy hill-climb (latest) | -- | design log |
| Single Chat | one growing conversation | -- | raw chat history |
LLM-Based Program Synthesis
Large language model (LLM)-based program synthesis turns natural-language goals and examples into executable programs, often using tests or formal constraints.
See all 311 papers