Skip to main content
QUICK REVIEW

[Paper Review] Deluca -- A Differentiable Control Library: Environments, Methods, and Benchmarking

Paula Gradu, John Hallman|arXiv (Cornell University)|Feb 19, 2021
Model Reduction and Neural NetworksPhysics and Astronomy29 references5 citations
TL;DR

Deluca is an open-source, differentiable control library that enables auto-differentiation through physics-based simulation dynamics using JAX, accelerating gradient-based control methods. It provides differentiable environments for classic control tasks and novel medical ventilator simulators, achieving over 1000× speedup in simulation via JIT compilation and enabling new methods in adaptive and adversarial control with provable guarantees.

ABSTRACT

We present an open-source library of natively differentiable physics and robotics environments, accompanied by gradient-based control methods and a benchmark-ing suite. The introduced environments allow auto-differentiation through the simulation dynamics, and thereby permit fast training of controllers. The library features several popular environments, including classical control settings from OpenAI Gym. We also provide a novel differentiable environment, based on deep neural networks, that simulates medical ventilation. We give several use-cases of new scientific results obtained using the library. This includes a medical ventilator simulator and controller, an adaptive control method for time-varying linear dynamical systems, and new gradient-based methods for control of linear dynamical systems with adversarial perturbations.

Motivation & Objective

  • To address the lack of open-source, natively differentiable simulation environments for reinforcement learning and control.
  • To enable fast, gradient-based training of controllers by providing auto-differentiation through simulation dynamics.
  • To support novel control methods that require derivatives of system dynamics, such as adaptive control and robust control under perturbations.
  • To provide a benchmarking suite for gradient-based control algorithms, including LQR, GPC, and H-infinity control.
  • To enable data-efficient, end-to-end training of learned controllers using differentiable simulators, as in medical ventilator control.

Proposed method

  • Leverages JAX's automatic differentiation and JIT compilation to enable differentiable simulation of continuous-time dynamical systems.
  • Implements a suite of differentiable environments, including variants of OpenAI Gym environments and a deep-learning-based medical ventilator simulator.
  • Supports differentiable dynamics for linear and nonlinear systems, enabling gradient computation through state transitions and cost functions.
  • Uses functional programming primitives (e.g., jax.lax.scan) to optimize simulation loops, achieving sub-nanosecond per-step inference after JIT compilation.
  • Integrates state-of-the-art gradient-based control methods such as AdaGPC, GPC, and LQR with error feedback, natively differentiable through dynamics.
  • Provides a modular API allowing users to define custom differentiable environments, including those based on neural networks.

Experimental results

Research questions

  • RQ1Can differentiable simulation enable faster and more sample-efficient training of control policies in continuous control tasks?
  • RQ2How does differentiable simulation improve the performance and convergence of adaptive control methods for time-varying linear systems?
  • RQ3To what extent can differentiable simulators reduce data and compute requirements in learning-based control, such as in medical ventilator control?
  • RQ4How do gradient-based control methods with provable guarantees (e.g., GPC with error feedback) compare to classical methods like LQR and H-infinity control under adversarial perturbations?
  • RQ5What are the computational and statistical trade-offs between model-free policy gradient methods and differentiable dynamics-based optimization?

Key findings

  • Deluca achieves over 1000× speedup in simulation time compared to standard NumPy-based implementations, with per-iteration times reduced to 38 ns after JIT compilation.
  • The differentiable ventilator simulator enables data-efficient training of a learned controller, reducing the need for extensive real-world data or hyperparameter tuning.
  • Gradient-based control methods such as AdaGPC and GPC achieve superior robustness to time-varying and adversarial perturbations compared to iLQR and LQR in the inverted pendulum task.
  • The library enables direct computation of policy gradients without Monte Carlo estimation, reducing variance and eliminating the need for stochastic policies in deterministic systems.
  • Differentiable dynamics allow for efficient, deterministic optimization of control policies, with significant gains in sample efficiency and computational complexity over zero-order or likelihood ratio gradient estimators.
  • Benchmarking results show that GPC with error feedback outperforms LQR and H-infinity control under Gaussian, sinusoidal, and constant perturbations, demonstrating the value of differentiable robust control.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.