A Flow Matching Framework for Soft-Robot Inverse Dynamics
Abstract
Learning the inverse dynamics of soft continuum robots remains challenging due to high-dimensional nonlinearities and complex actuation coupling. Conventional feedback-based controllers often suffer from control chattering due to corrective oscillations, while deterministic regression-based learners struggle to capture the complex nonlinear mappings required for accurate dynamic tracking. Motivated by these limitations, we propose an inverse-dynamics framework for open-loop feedforward control that learns the system's differential dynamics as a generative transport map. Specifically, inverse dynamics is reformulated as a conditional flow-matching problem, and Rectified Flow (RF) is adopted as a lightweight instance to generate physically consistent control inputs rather than conditional averages. Two variants are introduced to further enhance physical consistency: RF-Physical, utilizing a physics-based prior for residual modeling; and RF-FWD, integrating a forward-dynamics consistency loss during flow matching. Extensive evaluations demonstrate that our framework reduces trajectory tracking RMSE by over 50% compared to standard regression baselines (MLP, LSTM, Transformer). The system sustains stable open-loop execution at a peak end-effector velocity of 1.14 m/s with sub-millisecond inference latency (0.995 ms). This work demonstrates flow matching as a robust, high-performance paradigm for learning differential inverse dynamics in soft robotic systems.
Figures & tables
| Model | Shape Traj. RMSE | Random Traj. RMSE |
| MLP | 23.1 | 30.6 |
| LSTM | 15.6 | 8.4 |
| Transformer | 13.4 | 12.7 |
| RF | 6.7 | 5.2 |
| RF-FWD | 5.0 | 3.5 |
| RF-Physical | 6.8 | 4.0 |
| Model | Phase Lag (Shape) | Input Energy (Rand) |
| MLP | 0.0575 s | 26.47 |
| LSTM | 0.0775 s | 16.56 |
| Transformer | 0.0475 s | 20.70 |
| RF-FWD | 0.0450 s | 17.04 |
| Trajectory | Vertical RMSE (mm) | Horizontal RMSE (mm) |
| Star | 3.83 | 3.96 |
| Spiral | 4.94 | 6.52 |
| Circle | 3.95 | 8.65 |
| Heart | 4.46 | 6.47 |
| Mean | 4.30 | 6.40 |
| Method | Ctrl. Type | Infer. [ms] | Speed [m/s] ( [s -1 ]) | Err. [mm (%L)] | Train [min] |
| OL-LSTM [ 30 ] | Feedforward | – | 0.035–0.045 (0.18–0.23) | 3.2 (1.6%) | – |
| Dyn. Oper. [ 5 ] | Feedback | – | 1.50 (3.23) | – | |
| DKoopman [ 17 ] | Feedback | 0.44 0.14 | – | 1.79 1.26 (3.25%) | – |
| Hyb. MLNN [ 31 ] | Feedback | 0.005–0.080 (0.03–0.46) | 0.4–1.1 (0.23–0.63%) | – | |
| PINN-MPC [ 6 ] | Feedback | – | – | (2.3%) | |
| RF-FWD (Ours) | Feedforward | 0.995 | 1.14 (2.53) | 4.3–6.4 (0.96–1.42%) | 20 |
Robot Dynamics Learning
Robot dynamics learning builds models that predict how robots and objects move under actions, enabling control, planning, and adaptation.
See all 83 papers