Improving Out-of-Distribution Generalization of Learned Dynamics by Learning Pseudometrics and Constraint Manifolds
Yating Lin, Glen Chou, Dmitry Berenson
TL;DR
This work targets the robust generalization of learned robot dynamics to out-of-distribution states by discovering two structural priors: input-space sparsity and nonholonomic constraint manifolds. It jointly learns a sparsity-promoting distance metric $d_f$ via contrastive learning to reduce the dynamics input to a reduced set $x_{red}$, and a constraint manifold by approximating the normal space $N_x\mathcal{M}$ and training per-row GP models of the constraint in a reduced-input space, yielding a learned manifold $\hat{\mathcal{M}}$. During inference, predictions from a nominal GP dynamics model are projected onto $\hat{\mathcal{M}}$ by solving a quadratic program that enforces $\hat{G}(x)\dot{x} + \hat{g}(x) = 0$, thereby enforcing learned physical structure. Experiments on a differential-drive robot and a quadrotor show superior accuracy on OOD data compared with baselines, highlighting the practical impact of data-driven structure discovery for robust dynamics learning in robotics.
Abstract
We propose a method for improving the prediction accuracy of learned robot dynamics models on out-of-distribution (OOD) states. We achieve this by leveraging two key sources of structure often present in robot dynamics: 1) sparsity, i.e., some components of the state may not affect the dynamics, and 2) physical limits on the set of possible motions, in the form of nonholonomic constraints. Crucially, we do not assume this structure is known a priori, and instead learn it from data. We use contrastive learning to obtain a distance pseudometric that uncovers the sparsity pattern in the dynamics, and use it to reduce the input space when learning the dynamics. We then learn the unknown constraint manifold by approximating the normal space of possible motions from the data, which we use to train a Gaussian process (GP) representation of the constraint manifold. We evaluate our approach on a physical differential-drive robot and a simulated quadrotor, showing improved prediction accuracy on OOD data relative to baselines.
