Controllability-Constrained Deep Network Models for Enhanced Control of Dynamical Systems

Suruchi Sharma, Volodymyr Makarenko, Gautam Kumar, Stas TiomkinarXiv 2023

TL;DR

Standard deep learning models excel at predicting future states from data but often fail to guarantee that the learned system can actually be controlled. This paper bridges the gap between deep learning and classical control theory by embedding a differentiable controllability constraint directly into a Variational Autoencoder (VAE) loss function. The resulting models show a massive three-order-of-magnitude boost in latent controllability, translating to more accurate long-term planning and up to a 9% reduction in control costs.

What Problem Does This Paper Address?

When designing controllers for complex systems (like robots) using high-dimensional data (like camera feeds), researchers often use deep neural networks to compress images into a compact "latent space" where the system's dynamics can be modeled.

However, standard deep learning objectives only care about minimizing prediction error—how well the model predicts the next frame. They completely ignore a fundamental control-theoretic property: controllability. A system is controllable if it can be steered from any initial state to any target state using valid control inputs.

Without formal controllability guarantees, downstream controllers (like Model Predictive Control, or MPC) often perform sub-optimally, steering the system into latent states where the model no longer understands how actions affect the environment.

Methods

The authors build upon the standard Embed-To-Control (E2C) framework, which uses a VAE to map high-dimensional observations ($o_t$) to latent states ($z_t$) and learns a transition model $f_\theta(z_t, a_t) = z_{t+1}$.

The key innovation is augmenting the standard VAE reconstruction loss with a controllability constraint based on the Controllability Gramian ($W_\theta(z)$) of the locally-linearized latent dynamics:

$$\hat{\ell} = \ell_{\text{prediction}} - \beta \ell_{\omega}(\theta; \mathcal{D})$$

Where the constraint term maximizes the log-determinant of the Gramian:

$$\ell_{\omega}(\theta; \mathcal{D}) = \frac{1}{N}\sum_{t=1}^N \ln\det W_\theta(z_t)$$

This term acts as a penalty for models with a low "controllability volume." Because this constraint is fully differentiable, the entire network can be trained end-to-end using standard gradient-based optimizers like ADAM. A scalar parameter, $\beta$, regulates the trade-off between pure prediction accuracy and controllability.

Method overview showing how the controllability constraint integrates with the VAE framework

Datasets

The method was evaluated on two classic simulated control benchmarks from OpenAI Gym, rendered as low-resolution images to simulate raw sensor data:

  1. Inverted Pendulum: 15,000 training samples of $(o_t, a_t, o_{t+1})$ triples, rendered as $48 \times 48$ pixel images.
  2. Cart Pole: 15,000 training samples, rendered as $80 \times 80$ pixel images.

Key Insights and Ideas

  • The Prediction-Controllability Trade-off: Low prediction error does not guarantee a good control model. A model can be highly accurate at predicting passive physics while remaining blind to how control inputs can actively manipulate the state space.
  • Differentiable Control Theory: By leveraging the log-determinant of the local Controllability Gramian, the authors successfully transformed a classical, binary control property into a smooth, continuous loss term suitable for backpropagation.
  • Mitigating Compounding Errors: Explicitly enforcing controllability prevents the latent space from drifting into un-actuatable configurations. This structural constraint dramatically improves long-term trajectory prediction accuracy over multi-step horizons.

Key Results

  • Inverted Pendulum: Introducing the constraint ($\beta \approx 0.5$) increased the degree of controllability (measured by the minimal eigenvalue of the Gramian) by three orders of magnitude compared to the unconstrained baseline ($\beta = 0$).
  • Reduced Control Cost: This boost in controllability translated directly to a 9% reduction in total MPC control cost in the original physical environment.
The trade-off between control cost reduction and the degree of controllability across different values of $\beta$
  • Long-Term Planning: Qualitatively, the constrained model tracked the true system dynamics accurately over long horizons, whereas the baseline model quickly drifted and failed to predict the pendulum's true position after 7 time steps.
Qualitative comparison of long-term predictions for the Inverted Pendulum

Limitations and Future Work

  • Manual Hyperparameter Tuning: The trade-off parameter $\beta$ currently must be found via grid search. The authors note that automating this selection using dual optimization techniques is a critical next step.
  • Computational Complexity: Computing the Jacobians and the determinant of the Controllability Gramian at every training step introduces computational overhead, which may limit scalability to very high-dimensional latent spaces.
  • Evaluation Scope: While successful on classical benchmarks (Pendulum and Cart Pole), the method still needs to be validated on highly non-linear, real-world systems like robotic surgery or neuro-stimulation feedback loops.

Summary updated

BibTeX
@misc{sharma2023controllability,
  author = {Suruchi Sharma and Volodymyr Makarenko and Gautam Kumar and Stas Tiomkin},
  title = {{Controllability-Constrained Deep Network Models for Enhanced Control of Dynamical Systems}},
  year = {2023},
  eprint = {2311.06438},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.06438},
}
Figure