Skip to main content
QUICK REVIEW

[Paper Review] DiffTune: Auto-Tuning through Auto-Differentiation

Cheng Sheng, Minkyung Kim|arXiv (Cornell University)|Sep 20, 2022
Iterative Learning Control SystemsEngineering7 citations
TL;DR

DiffTune is a gradient-based auto-tuning framework that uses auto-differentiation to optimize controller parameters by unrolling the dynamical system and controller into a computational graph, enabling efficient and stable tuning of nonlinear controllers. In a quadrotor experiment, DiffTune reduced tracking error by 3.5x over 10 trials in a 12-dimensional parameter space, outperforming state-of-the-art methods through effective use of first-order gradient information and $π$-adaptive control for uncertainty compensation.

ABSTRACT

The performance of robots in high-level tasks depends on the quality of their lower-level controller, which requires fine-tuning. However, the intrinsically nonlinear dynamics and controllers make tuning a challenging task when it is done by hand. In this paper, we present DiffTune, a novel, gradient-based automatic tuning framework. We formulate the controller tuning as a parameter optimization problem. Our method unrolls the dynamical system and controller as a computational graph and updates the controller parameters through gradient-based optimization. The gradient is obtained using sensitivity propagation, which is the only method for gradient computation when tuning for a physical system instead of its simulated counterpart. Furthermore, we use $\mathcal{L}_1$ adaptive control to compensate for the uncertainties (that unavoidably exist in a physical system) such that the gradient is not biased by the unmodelled uncertainties. We validate the DiffTune on a Dubin's car and a quadrotor in challenging simulation environments. In comparison with state-of-the-art auto-tuning methods, DiffTune achieves the best performance in a more efficient manner owing to its effective usage of the first-order information of the system. Experiments on tuning a nonlinear controller for quadrotor show promising results, where DiffTune achieves 3.5x tracking error reduction on an aggressive trajectory in only 10 trials over a 12-dimensional controller parameter space.

Motivation & Objective

  • To address the challenge of inefficient and unstable manual tuning of nonlinear robotic controllers with high-dimensional parameter spaces.
  • To develop an auto-tuning framework that is stable, compatible with physical system data, and efficient for real-time deployment.
  • To enable gradient-based optimization of controller parameters using auto-differentiation, even when the system model is imperfect or uncertain.
  • To integrate $π$-adaptive control to compensate for unmodeled dynamics and prevent gradient bias in physical systems.
  • To demonstrate superior performance and efficiency compared to existing model-based and model-free auto-tuning methods on complex robotic tasks.

Proposed method

  • Formulate controller tuning as a parameter optimization problem by unrolling the dynamical system and controller into a computational graph.
  • Compute gradients of the performance loss (e.g., tracking error) with respect to controller parameters using auto-differentiation and sensitivity propagation.
  • Apply gradient descent to iteratively update controller parameters based on the computed gradients.
  • Integrate $π$-adaptive control to stabilize the system and mitigate bias from unmodeled uncertainties during tuning.
  • Ensure differentiability of the controller by leveraging structures such as PID, MPC, or LQR, which are amenable to implicit differentiation via the Implicit Function Theorem.
  • Use a loss function based on the squared norm of position tracking error over a 10-second horizon, with added process noise to simulate real-world conditions.

Experimental results

Research questions

  • RQ1Can gradient-based auto-tuning via auto-differentiation achieve superior performance and efficiency compared to existing model-free and model-based auto-tuning methods?
  • RQ2How does the integration of $π$-adaptive control affect gradient stability and tuning performance in the presence of unmodeled system uncertainties?
  • RQ3To what extent can DiffTune reduce tracking error in high-dimensional controller parameter spaces (e.g., 12D) within a small number of trials?
  • RQ4How does the learning rate influence convergence and stability in the DiffTune optimization process?
  • RQ5Can DiffTune generalize across diverse, aggressive trajectories without re-tuning?

Key findings

  • DiffTune achieved a 3.5x reduction in tracking error on an aggressive 3D figure-8 trajectory for a quadrotor, using only 10 trials in a 12-dimensional parameter space.
  • The method outperformed state-of-the-art auto-tuning baselines, including AutoTune and SafeOpt-PSO, in both convergence speed and final performance.
  • Ablation studies confirmed that the learning rate significantly affects convergence: higher rates (e.g., 0.1) led to oscillations near the minimum, while lower rates (0.001) yielded smoother but slower convergence.
  • The integration of $π$-adaptive control improved robustness, as evidenced by stable tuning even when parameters were relaxed to higher values to handle uncertainties.
  • DiffTune demonstrated strong generalization across diverse trajectories, including 2D and 3D circles and vertical figure-8s, without re-tuning.
  • The computational graph unrolling preserved interpretability, distinguishing DiffTune from purely black-box learning approaches.

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.