High-Dimensional Controller Tuning through Latent Representations

Alireza Sarmadi, Prashanth Krishnamurthy, Farshad Khorrami

TL;DR

Tuning high-dimensional controller parameters (like those in Model Predictive Control) is notoriously difficult because standard optimization methods struggle with the "curse of dimensionality." This paper introduces a framework that uses a Variational Autoencoder (VAE) to compress complex parameter spaces into a low-dimensional "latent" representation, allowing efficient tuning via Bayesian Optimization with significantly fewer trials.

What Problem Does This Paper Address?

In robotics, finding the right "knobs" to turn for a controller (e.g., weights in a cost function or constraints in Model Predictive Control) is a major bottleneck.

  1. Manual Tuning: Is slow, tedious, and often suboptimal.
  2. Bayesian Optimization (BO): Works well for a few parameters but typically fails once you exceed 10–20 dimensions because the search space becomes too vast.
  3. Deep Reinforcement Learning (DRL): Can learn complex policies but requires millions of samples, which causes physical wear and tear on real robots.

The authors aim to bridge this gap: they want to tune high-dimensional parameter vectors (up to 77 dimensions in this study) efficiently enough to be practical for real-world systems.

Methods

The authors propose a three-phase "Actor-Critic" style framework:

  1. Data Collection (Phase 1): They run a sample-efficient search using TuRBO (Trust Region Bayesian Optimization) in the original high-dimensional space within a simulator. They collect a "replay buffer" of parameter sets that result in stable robot motion (i.e., the robot doesn't fall).
  2. Learning the Mapping (Phase 2): They train a Variational Autoencoder (VAE) on this buffer. The VAE learns to map the high-dimensional parameters into a much smaller latent space (e.g., compressing 77 dimensions down to 5). The intuition is that "stable" parameters live on a lower-dimensional manifold.
  3. Latent Space Tuning (Phase 3): They perform the final optimization inside this tiny latent space. Because the search space is now small, TuRBO can find optimal parameters very quickly—requiring only about 220 iterations.

The Actor is the MPC controller executing the policy, and the Critic is the TuRBO algorithm evaluating the "path cost" (how well the robot tracked the desired velocity).

Datasets

The study was conducted entirely in the PyBullet simulation environment. They used three quadruped robot models:

  • Unitree A1: A common research quadruped.
  • Unitree B1: A larger, more powerful version of the A1.
  • Solo12: An open-source research robot.

The tasks involved trotting and jumping at a target speed of 0.5 m/s. Training data for the VAE was generated by running 10,000 initial iterations to find stable parameter regions.

Key Insights and Ideas

  • The Manifold Hypothesis for Controllers: The most important takeaway is that while a controller might have 77 parameters, the subset of those parameters that actually produce stable, high-performance motion is much smaller and highly structured.
  • Task Generalization: A VAE trained on one motion (like trotting) can be used to tune a completely different motion (like jumping). This suggests the latent space captures the underlying dynamics of the robot itself, not just a specific task.
  • Robot Transferability: Remarkably, a mapping learned for one robot (Unitree A1) could be used to help tune a different robot (Unitree B1). This "transfer learning" capability could drastically reduce the time needed to deploy controllers on new hardware.
  • Robustness to Noise: The method found successful parameters even when the "real world" was simulated with uneven terrain (Perlin noise), which wasn't present during the initial training phase.

Key Results

  • Dimensionality Reduction: Successfully tuned 77 parameters for the Solo12 robot by searching in a 5-dimensional latent space.
  • Efficiency: After the VAE was trained, the system found optimal parameters in just 220 evaluations. For comparison, direct optimization in high dimensions often requires thousands of trials.
  • Performance: In all tests, the automated tuning outperformed manual tuning by experts. For the Unitree A1 trot, the path cost was reduced from 8.96 (manual) to 6.17 (proposed method).
  • Stability: In a test of 677 stable points in the original space, the VAE was able to reconstruct 658 of them successfully, proving that the latent space accurately represents the "safe" regions of the parameter space.

Limitations and Future Work

  • Initial Data Requirement: The method still requires an initial "Phase 1" to collect stable parameters. While this is done in simulation, it still represents a computational overhead.
  • Sim-to-Real Gap: While the authors tested on uneven terrain to simulate real-world perturbations, the paper does not show results on a physical robot. Real-world sensor noise and hardware latencies might present additional challenges.
  • Fixed Architecture: The VAE architecture (number of layers/nodes) was chosen heuristically. Future work could involve automating the discovery of the optimal latent dimension size.

Summary updated

BibTeX
@inproceedings{sarmadi2024high,
  author = {Alireza Sarmadi and Prashanth Krishnamurthy and Farshad Khorrami},
  title = {{High-Dimensional Controller Tuning through Latent Representations}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  url = {https://openreview.net/forum?id=UoCecPB5n8},
}
Figure