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

STRIDE: Structured Lagrangian and Stochastic Residual Dynamics via Flow Matching

Prakrut Kotecha, Ganga Nair B, Shishir Kolathaya · DOI

TL;DR

STRIDE is a new dynamics learning framework that combines the physical "common sense" of Lagrangian mechanics with the expressive power of generative Flow Matching. By splitting robot motion into a structured physical prior and a stochastic residual, it achieves a 20% boost in long-horizon prediction accuracy and enables robots to handle messy, real-world contacts with unprecedented reliability.

What Problem Does This Paper Address?

Predicting how a robot will move is easy in a simulation but incredibly hard in the real world. When a legged robot hits a patch of mud or a slippery slope, the physics become "non-conservative" and "stochastic"—meaning there’s a lot of uncertainty involved in friction, impacts, and joint compliance.

Engineers usually face a trade-off:

  1. Analytical Models: These use rigid-body physics equations. They are physically consistent (they don't violate gravity or energy conservation) but fail to capture the "messiness" of real-world interactions.
  2. Purely Data-Driven Models: These (like standard Neural Networks) are great at fitting complex data but often "hallucinate" physics-defying movements, leading to massive errors over long periods (drift).

Furthermore, contact is often multi-modal. If a robot's foot hits the ground, it might stick or it might slip. Traditional models try to predict the "average" of these two outcomes, resulting in a "mushy" prediction that doesn't represent either physical reality.

Methods

The authors propose STRIDE (Structured Lagrangian and Stochastic Residual Dynamics via Flow Matching), which uses a dual-stream architecture:

  • The Lagrangian Prior (LNN): This part of the model is constrained by the laws of physics. It uses a Lagrangian Neural Network to learn the robot's mass matrix and potential energy. By construction, it ensures the robot's "base" movements are energy-consistent and physically plausible.
  • The Stochastic Residual (CFM): Instead of a deterministic "correction" term, STRIDE uses Conditional Flow Matching (CFM). CFM is a generative modeling technique (similar to the tech behind Stable Diffusion but much faster) that learns the distribution of interaction forces. This allows the model to sample realistic, multi-modal forces rather than just guessing an average.

Crucially, these two components are trained jointly end-to-end. This encourages a "division of labor" where the LNN handles the predictable physics and the CFM mops up the complex, uncertain residuals.

Datasets

The researchers evaluated STRIDE across three platforms of increasing complexity:

  • 1-DoF Pendulum: Used to analyze how the model handles sensitive regions like unstable equilibria.
  • Unitree Go1 Quadruped: Tested in high-fidelity simulations and on real-world hardware across diverse terrains (mud, grass, slopes).
  • Unitree G1 Humanoid: A high-dimensional system used to test the model's scalability.

The training data consisted of trajectory pairs (states and resulting accelerations) collected from these systems.

Key Insights and Ideas

  • Automatic Scaling: One of the most striking findings was how the model naturally allocated responsibility. During smooth "flight" phases, the LNN did 93.5% of the work. During high-impact contact transitions, the CFM residual dynamically scaled up to handle 78.8% of the predicted acceleration.
  • Solving the "Averaging" Problem: By using a generative model (CFM) for the residual, STRIDE avoids the "averaging bias" of standard regression. It can represent the fact that a foot might either slip or stick, rather than predicting a physically impossible middle ground.
  • Speed Matters: While diffusion models are powerful, they are often too slow for a robot's 50Hz control loop. CFM provides similar generative quality but requires far fewer function evaluations, making it viable for real-time hardware deployment.

Key Results

  • Accuracy: STRIDE reduced long-horizon prediction error by 20% and contact force prediction error by 30% compared to deterministic baselines.
  • Stability: On the Unitree Go1, STRIDE reduced rollout error by a staggering 83% compared to a standard black-box MLP.
  • Hardware Success: The model was successfully deployed on a real Go1 robot. It demonstrated "zero-shot" adaptation, meaning it could maintain stable walking and velocity tracking on muddy ground and 20-degree grassy slopes without being specifically trained on those exact conditions.
  • Topology Preservation: In the pendulum experiments, STRIDE was the only model that correctly preserved the "saddle-like" structure of the phase portrait near unstable points, whereas other models showed significant "averaging" drift.

Limitations and Future Work

The authors acknowledge a few areas for growth:

  • Proprioception Only: Currently, the model relies on joint states and IMU data. Integrating visual observations (like depth cameras) could allow the model to "see" a slippery surface before the robot even touches it.
  • Planning Integration: While the model works well with sampling-based controllers (like MPPI), future work could explore tighter integration with uncertainty-aware or risk-sensitive planning to make the robot even more cautious in highly unpredictable zones.
  • Distribution Shift: Like all data-driven methods, the model's performance may degrade if the robot encounters an environment radically different from its training set.

Summary updated

BibTeX
@misc{kotecha2026stride,
  author = {Prakrut Kotecha and Ganga Nair B and Shishir Kolathaya},
  title = {{STRIDE: Structured Lagrangian and Stochastic Residual Dynamics via Flow Matching}},
  year = {2026},
  eprint = {2603.08478},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.08478},
}
Figure