NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gradient-Based Trajectory Optimization With Learned Dynamics

Bhavya Sukhija, Nathanael Köhler, Miguel Zamora, Simon Zimmermann, Sebastian Curi, Andreas Krause, Stelian Coros

TL;DR

This paper demonstrates that high-performance robotic control doesn't require complex, hand-engineered analytical models. By learning differentiable dynamics from as little as 25 minutes of real-world interaction data, the authors enable gradient-based trajectory optimization for complex "black-box" systems, including the Boston Dynamics Spot and a drifting RC car.

What Problem Does This Paper Address?

Trajectory optimization is a cornerstone of modern robotics, allowing machines to plan complex maneuvers by minimizing a cost function. However, these methods traditionally rely on highly accurate analytical models of a robot's physics.

For many real-world systems, such models are nearly impossible to obtain. Robots like the Boston Dynamics Spot (seen in Figure 1) use proprietary, inaccessible low-level controllers that make the robot behave like a "black box." Furthermore, highly dynamic behaviors—such as a car drifting on loose dirt—involve complex friction and tire dynamics that are notoriously difficult to model from first principles. This paper tackles the challenge of performing agile maneuvers without needing these manual physics derivations.

Figure 1

Methods

The authors propose a data-driven pipeline that replaces manual physics with learned, differentiable dynamics:

  1. Dynamics Learning: They represent the robot's state transition function as a neural network. For the RC car, a standard Multi-Layer Perceptron (MLP) sufficed. For the Spot, they used a Gated Recurrent Unit (GRU). The GRU is crucial because the Spot's behavior depends on its internal gait cycle and leg positions—information not present in a simple 2D state vector. The RNN's hidden state acts as a proxy for these unobserved variables.
  2. Gradient-Based Optimization: Because the dynamics model is a neural network, it is fully differentiable. The authors use the chain rule to propagate gradients from the cost function back through the entire predicted trajectory to the control inputs.
  3. Smooth Activations: A key technical insight was the choice of activation functions. While ReLU is standard in deep learning, its non-smooth nature creates "noisy" gradients that can stall trajectory optimizers. The authors used GELU (Gaussian Error Linear Units) to ensure smooth derivatives, leading to much more stable control sequences.

Datasets

The study relies on small, targeted datasets collected directly from hardware:

  • Boston Dynamics Spot: Approximately 25 minutes of interaction data on normal terrain. To test adaptation, they collected an additional 15 minutes of data on "slippery" terrain, simulated by putting socks on the robot's feet.
  • RC Car: 15 minutes of interaction data, including high-torque maneuvers and loss of traction (drifting).

Key Insights and Ideas

  • RNNs for "Non-Markovian" Systems: The success of the GRU on the Spot highlights that recurrent architectures can capture hidden physical states (like the phase of a walking gait) that simple feed-forward models miss.
  • Smoothness is Safety: The transition from ReLU to GELU wasn't just about accuracy; it resulted in significantly smoother control actions, which is vital for preventing hardware wear and tear.
  • Rapid Adaptation: The authors showed that a model trained on one surface can be adapted to a drastically different one (like the "socks" experiment) with very little additional data, proving the flexibility of the learned approach.

Key Results

  • Accuracy: On the Spot, the learned RNN model achieved roughly 5x lower error than a standard first-principles model that assumes the robot perfectly follows velocity commands (see Figure 4).
  • Complex Maneuvers: The RC car successfully performed parallel parking, dynamic reverses, and drifting turns—maneuvers that are typically very difficult to program manually.
  • Performance: In closed-loop racing tests, the RC car achieved significant performance gains in lap times compared to a human expert.
  • Generalization: A model trained on a lab floor generalized surprisingly well to outdoor dry grass without further tuning, as shown in the comparison of commanded vs. actual velocity in the paper's experiments.
Figure 4

Limitations and Future Work

Despite the success, the authors note that model inaccuracies still accumulate over long prediction horizons (as seen in the log-scale error plots in Figure 4). While feedback control can mitigate this, the open-loop performance degrades over time.

Figure 4

Future work suggests integrating probabilistic ensembles to better handle model uncertainty and exploring active learning to automate the data collection process, rather than relying on pre-recorded offline datasets. They also aim to explore structured learning techniques that bake some basic laws of physics (like energy conservation) into the neural network architecture.

Summary updated

BibTeX
@inproceedings{sukhija2023gradient,
  author = {Bhavya Sukhija and Nathanael Köhler and Miguel Zamora and Simon Zimmermann and Sebastian Curi and Andreas Krause and Stelian Coros},
  title = {{Gradient-Based Trajectory Optimization With Learned Dynamics}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2023},
  doi = {10.1109/icra48891.2023.10161574},
}
Figure