Generalizable Optimal Control with Transformers: One Policy Across Diverse Systems
Organizations: Robotics Institute, Carnegie Mellon University, Pittsburgh, PA, USA
Abstract
Classical optimal control designs a separate controller for each plant. Even for the Linear Quadratic Regulator (LQR), every new model must be identified and its Riccati equation re-solved. We ask whether a single learned policy can instead serve an entire family of systems, and we show that one transformer can. We train the policy to imitate optimal LQR state feedback across a collection of heterogeneous Multiple-Input, Multiple-Output (MIMO) Linear Time-Invariant (LTI) systems that differ in their state and input dimensions and in their cost objectives. A shared representation lets the same parameters control every member of the family. It combines system-wise standardization, zero-padding and masking across dimensions, and an explicit encoding of the cost matrices. At run time, the policy maps a short window of recent states and the specified cost to a control action. It uses no plant matrices and identifies the dynamics implicitly from the state history. We evaluate on simulated systems over closed-loop rollouts, and no unstable rollout was observed in any of them. On the systems seen during training, it attains a median relative sub-optimality of , even under parameter perturbations of up to . It transfers to unseen systems with lightweight fine-tuning, reaching a median sub-optimality of . These results support transformers as generalizable near-optimal controllers for structured families of linear systems.
Figures & tables
| Seen Systems: 1. Simple Pendulum, 2. Two Link Arm, 3. Spring Damper, 4. Suspension System, 5. DC Motor, 6. Three Link Manipulator, 7. Differential Drive Robot, 8. SCARA Robot, 9. Omnidirectional Robot, 10. Cable Driven Robot, 11. Flexible Joint Robot, 12. Six DOF Manipulator, 13. Dual Arm Robot, 14. Double Integrator, 15. Lotka Volterra. |
|---|
| Unseen Systems: 16. Inverted Pendulum, 17. Segway Robot, 18. Asymmetric Oscillator, 19. Active Mass Damper, 20. Coupled Oscillators, 21. Damped Oscillator, 22. Triple Mass Spring, 23. Electromechanical Actuator, 24. Thermal System, 25. Fluid Tank, |
| 26. Vibrating Beam, 27. Motor Generator, 28. Mechanical Linkage. |
| Data: |
| time step s , rollout length , sequences/system , perturbation . |
| Architecture: |
| window , max. dimensions , , embedding width , heads , blocks , feed-forward width . |
| Training: |
| epochs , batch size , learning rate , Cauchy scale . |
Optimal Control
Optimal control studies how to choose actions over time to optimize performance while satisfying system dynamics and constraints.
See all 135 papers