Literature
Display
← All papers

Learning Contracting Vector Fields For Stable Imitation Learning

Vikas Sindhwani · Stephen Tu · Mohi Khansari

Preprint posted · arXiv ↗

Robotics5 min text · CondensedOriginal paper ↗
Contents

At a glance

CVF learns smooth autonomous vector fields from demonstrations using matrix-valued kernels, prescribed equilibria, and convex constraints on the Jacobian. Random features make fitting and rollout faster. Curl-free kernels additionally yield gradient flows of learned potentials. Handwriting benchmarks show competitive accuracy and recovery, but the fitted contraction constraints are sampled locally rather than a global certificate over all states.

I Introduction

Fitting observed velocities alone can produce divergent rollouts from slightly different initial conditions. The proposed approach controls the geometry of the learned field around demonstrations, seeking a region in which neighboring trajectories draw together and recover toward the demonstrated behavior. Desired equilibrium locations are enforced exactly by construction.

Refer to caption
Refer to caption
Refer to caption
Fig. 1: ”S”-shape demonstration trajectories (top), naive regression-based vector-field (middle) and incrementally stable vector field learnt using our methods (bottom), with corresponding trajectories from three initial points (green squares).
Equation
𝐱˙=d​𝐱d​t=f⁡(𝐱),𝐱∈ℝn,f:ℝn→ℝn\dot{\mathbf{x}}=\frac{d\mathbf{x}}{dt}=f(\mathbf{x}),~~~\mathbf{x}\in\mathbb{R}^{n},~~~f:\mathbb{R}^{n}\to\mathbb{R}^{n}

I-A Preview

The objective combines squared velocity error and RKHS regularization. Linear matrix inequalities constrain the symmetric Jacobian at selected points. A modified kernel makes every candidate field vanish at the chosen equilibria, while a representer theorem converts functional optimization to a finite convex problem. Random-feature approximations reduce its size and evaluation cost.

Equations 1–2
minf:ℝn→ℝn∈ℋZ\displaystyle\min_{f:\mathbb{R}^{n}\to\mathbb{R}^{n}\in{\cal H}^{Z}} ∑i,t‖f⁡(𝐱ti)−𝐱˙ti‖22+λ​‖f‖ℋZ2\displaystyle\sum_{i,t}\|f(\mathbf{x}^{i}_{t})-\dot{\mathbf{x}}_{t}^{i}\|^{2}_{2}+\lambda\|f\|^{2}_{\mathcal{H}^{Z}} (1)
subject to:\displaystyle\textrm{subject to}: 12​[𝐉f​(𝐱ti)+𝐉f​(𝐱ti)T]⪯−τ⁡(𝐱ti)​𝐈,∀i,t\displaystyle~\frac{1}{2}\Big[\mathbf{J}_{f}(\mathbf{x}^{i}_{t})+\mathbf{J}_{f}(\mathbf{x}^{i}_{t})^{T}\Big]\preceq-\tau(\mathbf{x}^{i}_{t})\mathbf{I},~\forall i,t (2)

II Background: Stability of Dynamical Systems

The paper distinguishes convergence to an equilibrium from convergence between neighboring trajectories, then relates these properties to existing imitation methods.

II-A Notions of Stability and Lyapunov Analysis

A Lyapunov function decreases along a trajectory and can certify local or global asymptotic stability under the appropriate positivity and domain conditions. Finding such a function for general nonlinear dynamics is difficult. Linear systems and some polynomial systems admit specialized searches, but these do not cover every stable nonlinear system.

Equation 3
V˙(𝐱)=d​V​(𝐱⁡(t))d​t=∇V(𝐱)Tf(𝐱)<0\dot{V}(\mathbf{x})=\frac{dV(\mathbf{x}(t))}{dt}=\nabla V(\mathbf{x})^{T}f(\mathbf{x})<0 (3)

II-B Incremental Stability and Contraction Analysis

Contraction concerns the separation between trajectories. A uniformly negative symmetric Jacobian in a suitable invariant region makes infinitesimal Euclidean distances shrink exponentially. If contraction holds throughout the state space and an equilibrium exists, that equilibrium is unique and globally attracting. A more general state-dependent metric can certify contraction when the Euclidean test fails. [18]

The learning formulation enforces inequalities at finitely many samples. Smoothness may extend the behavior around those samples, but sampled constraints alone do not certify every point in the surrounding region or the entire state space.

Equations 4
δ​𝐱˙=𝐉f​(𝐱)​δ​𝐱​where​𝐉f=∂f∂𝐱\dot{\delta\mathbf{x}}=\mathbf{J}_{f}(\mathbf{x}){\delta\mathbf{x}}~~~\textrm{where}~~\mathbf{J}_{f}=\frac{\partial f}{\partial\mathbf{x}}
dd​t​(δ​𝐱T​δ​𝐱)=2​δ​𝐱T​δ​𝐱˙=δ​𝐱T​𝐉f​(𝐱)​δ​𝐱\frac{d}{dt}(\delta\mathbf{x}^{T}\delta\mathbf{x})=2\delta\mathbf{x}^{T}\dot{\delta\mathbf{x}}=\delta\mathbf{x}^{T}\mathbf{J}_{f}(\mathbf{x})\delta\mathbf{x}
12​[𝐉f​(𝐱)+𝐉f​(𝐱)T]⪯−τ⁡(𝐱)​𝐈\frac{1}{2}\Big[\mathbf{J}_{f}(\mathbf{x})+\mathbf{J}_{f}(\mathbf{x})^{T}\Big]\preceq-\tau(\mathbf{x})\mathbf{I} (4)
dd​t​(δ​𝐱T​δ​𝐱)≤−2​τ​(𝐱)​δ​𝐱T​δ​𝐱\frac{d}{dt}(\delta\mathbf{x}^{T}\delta\mathbf{x})\leq-2\tau(\mathbf{x})\delta\mathbf{x}^{T}\delta\mathbf{x}
∥δ𝐱t∥22≤∥δ𝐱0∥e−∫0tτ(𝐱)dt\|\delta\mathbf{x}_{t}\|^{2}_{2}\leq\|\delta\mathbf{x}_{0}\|e^{-\int_{0}^{t}\tau(\mathbf{x})dt}

II-C Prior Work in Learning Stable Dynamical Systems

DMPs combine a phase-dependent nonlinear motion component with an attracting linear system. SEDS constrains a Gaussian-mixture field using a fixed quadratic Lyapunov function. CLF-DM fits a more flexible potential and uses it to stabilize a regression model. The latter two involve nonconvex fitting; CVF instead solves a convex constrained regression problem for fixed features and hyperparameters. [11], [14], [15]

III Learning Contracting Vector Fields

Vector-valued RKHS methods provide a smooth, regularized function class with direct control of field values and derivatives.

III-A Vector Fields generated by Matrix-valued Kernels

A matrix-valued kernel couples the output components of the vector field. The reproducing property makes point evaluation continuous and yields finite representations for regularized learning. Because contraction constraints depend on derivatives, an extended representer theorem includes both kernel sections and their derivatives. The resulting finite optimization has linear matrix inequalities in its coefficients.

Equations 5–7
⟨f,K(.,𝐱)𝐲⟩ℋ=f(𝐱)T𝐲{\langle}f,K(.,\mathbf{x})\mathbf{y}{\rangle}_{\mathcal{H}}=f(\mathbf{x})^{T}\mathbf{y} (5)
f∗=argminf∈ℋK​L​(f⁡(𝐱1)​…​f​(𝐱l))+λ​‖f‖ℋK2,f^{*}={\rm argmin}_{f\in\mathcal{H}_{K}}L(f(\mathbf{x}_{1})\ldots f(\mathbf{x}_{l}))+\lambda\|f\|^{2}_{{\mathcal{H}}_{K}},
f∗​(𝐱)=∑i=1lK⁡(𝐱,𝐱i)​𝜶if^{*}(\mathbf{x})=\sum_{i=1}^{l}K(\mathbf{x},\mathbf{x}_{i})\boldsymbol{\alpha}_{i}~~ (6)
f∗=argminf∈ℋ​L​(f⁡(𝐱1)​…​f​(𝐱l),Jf​(𝐱1′)​…​Jf​(𝐱m′))+λ​‖f‖ℋK2,f^{*}={\rm argmin}_{f\in\mathcal{H}}L(f(\mathbf{x}_{1})\ldots f(\mathbf{x}_{l});J_{f}(\mathbf{x}^{\prime}_{1})\ldots J_{f}(\mathbf{x}^{\prime}_{m}))+\lambda\|f\|^{2}_{{\mathcal{H}}_{K}},
f∗​(𝐱)=∑i=1lK⁡(𝐱,𝐱i)​𝜶i+∑j=1m∑k=1n∂K⁡(𝐱,𝐱j′)∂xj​𝜷i​kf^{*}(\mathbf{x})=\sum_{i=1}^{l}K(\mathbf{x},\mathbf{x}_{i})\boldsymbol{\alpha}_{i}+\sum_{j=1}^{m}\sum_{k=1}^{n}\frac{\partial K(\mathbf{x},\mathbf{x}^{\prime}_{j})}{\partial x_{j}}\boldsymbol{\beta}_{ik}~~ (7)

III-B Choice of Matrix-valued Kernels

The Gaussian separable kernel gives each velocity component an ordinary Gaussian-kernel model. The curl-free kernel, obtained from Gaussian derivatives, instead constrains the field to be a gradient flow. It therefore admits a potential and a symmetric Jacobian. These choices impose different geometric biases, visible in the learned streamlines and potential contours.

Equations 8–10
Kσ​(𝐱,𝐲)=kσ​(x,y)​𝐈K_{\sigma}(\mathbf{x},\mathbf{y})=k_{\sigma}(x,y)\mathbf{I} (8)
Kc​f​(𝐱,𝐲)=1σ2​e−‖𝐱−𝐲‖22​σ2​[𝑰−(𝐱−𝐲)​(𝐱−𝐲)Tσ2]K_{cf}(\mathbf{x},\mathbf{y})=\frac{1}{\sigma^{2}}e^{\frac{-\|\mathbf{x}-\mathbf{y}\|^{2}}{2\sigma^{2}}}\left[\boldsymbol{I}-\frac{(\mathbf{x}-\mathbf{y})(\mathbf{x}-\mathbf{y})^{T}}{\sigma^{2}}\right] (9)
𝐱˙=f​(𝐱)=−∇V​(𝐱).\dot{\mathbf{x}}=f(\mathbf{x})=-\nabla V(\mathbf{x}).
f⁡(𝐱)=∑i=1lKc​f​(𝐱,𝐱i)​𝜶i.f(\mathbf{x})=\sum_{i=1}^{l}K_{cf}(\mathbf{x},\mathbf{x}_{i})\boldsymbol{\alpha}_{i}.
V(𝐱)=−∑i=1l∇𝐱kσ(𝐱,𝐱i)T𝜶iV(\mathbf{x})=-\sum_{i=1}^{l}\nabla_{\mathbf{x}}k_{\sigma}(\mathbf{x},\mathbf{x}_{i})^{T}\boldsymbol{\alpha}_{i} (10)

III-C Subspace of RKHS Vector Fields that Vanish on a Point Set

Subtracting the kernel’s projection onto evaluations at the prescribed equilibrium set produces a new kernel that vanishes there. Every field in the corresponding subspace therefore has exactly zero velocity at those locations. This enforces the requested equilibria, without claiming that no other equilibria can exist outside a certified contraction region.

Equations 11
ℋKZ={f∈ℋK:f(𝐱i∗)=0∈ℝn,𝐱i∗∈Z}.{\cal H}^{Z}_{K}=\{f\in{\cal H}_{K}:f(\mathbf{x}^{*}_{i})=0\in\mathbb{R}^{n},\mathbf{x}^{*}_{i}\in Z\}.
KZ​(𝐱,𝐲)=K⁡(𝐱,𝐲)−K⁡(𝐱,Z)​K​(Z,Z)−1​K​(Z,𝐲)K^{Z}(\mathbf{x},\mathbf{y})=K(\mathbf{x},\mathbf{y})-K(\mathbf{x},Z)K(Z,Z)^{-1}K(Z,\mathbf{y}) (11)

III-D Faster Solutions using Random Feature Approximations

The full kernel expansion grows with demonstration count and state dimension, making both training and numerical integration expensive. A low-rank matrix feature map replaces the expansion with a fixed-dimensional parameter vector. Feature count trades approximation quality against optimization and inference cost.

Equations
K⁡(𝐱,𝐲)≈Φ​(𝐱)T​Φ​(𝐲)K(\mathbf{x},\mathbf{y})\approx\Phi(\mathbf{x})^{T}\Phi(\mathbf{y})
f⁡(𝐱)=∑i=1lK⁡(𝐱,𝐱i)​𝜶i≈∑i=1lΦ​(𝐱)T​Φ​(𝐱i)​𝜶𝒊=Φ​(𝐱)T​θ,f(\mathbf{x})=\sum_{i=1}^{l}K(\mathbf{x},\mathbf{x}_{i})\boldsymbol{\alpha}_{i}\approx\sum_{i=1}^{l}\Phi(\mathbf{x})^{T}\Phi(\mathbf{x}_{i})\boldsymbol{\alpha_{i}}=\Phi(\mathbf{x})^{T}\theta,

III-D 1 Matrix-valued Random Feature Maps for Gaussian Separable and Curl-free Kernels

Random Fourier features approximate the Gaussian separable kernel. Differentiated sinusoidal features yield a corresponding curl-free construction. The retained formulas specify the frequency distribution, phases, Kronecker structure, and feature scaling.

Equations 12–14
ϕ⁡(𝐱)=2s​[cos⁡(𝐰1T​𝐱+b1)cos⁡(𝐰sT​𝐱+bs)].\phi(\mathbf{x})=\sqrt{\frac{2}{s}}\begin{bmatrix}\cos(\mathbf{w}_{1}^{T}\mathbf{x}+b_{1})\\ \vdots\\ \cos(\mathbf{w}_{s}^{T}\mathbf{x}+b_{s})\end{bmatrix}\>. (12)
Kσ​(𝐱,𝐲)≈Φσ​(𝐱)T​Φσ​(𝐲),Kc​f​(𝐱,𝐲)≈Φc​f​(𝐱)T​Φc​f​(𝐲),K_{\sigma}(\mathbf{x},\mathbf{y})\approx\Phi_{\sigma}(\mathbf{x})^{T}\Phi_{\sigma}(\mathbf{y}),K_{cf}(\mathbf{x},\mathbf{y})\approx\Phi_{cf}(\mathbf{x})^{T}\Phi_{cf}(\mathbf{y}),
Φσ​(𝐱)\displaystyle\Phi_{\sigma}(\mathbf{x}) =\displaystyle= ϕ⁡(𝐱)⊗𝐈\displaystyle\phi(\mathbf{x})\otimes\mathbf{I} (13)
Φc​f​(𝐱)\displaystyle\Phi_{cf}(\mathbf{x}) =\displaystyle= 2D​[sin⁡(𝐰1T​𝐱+b1)​𝐰1Tsin⁡(𝐰DT​𝐱+bD)​𝐰DT]\displaystyle\sqrt{\frac{2}{D}}\begin{bmatrix}\sin(\mathbf{w}_{1}^{T}\mathbf{x}+b_{1})\mathbf{w}_{1}^{T}\\ \vdots\\ \sin(\mathbf{w}_{D}^{T}\mathbf{x}+b_{D})\mathbf{w}_{D}^{T}\end{bmatrix} (14)

III-D 2 Random Features Vanishing on a Point Set

An orthogonal projection removes the feature directions that produce nonzero values at the desired equilibria. This preserves exact zeros even though the base kernel is only approximated. The resulting kernel need not remain shift invariant.

Equations 15
Φ⁡(X)=[Φ⁡(𝐱1),…,Φ⁡(𝐱X)]∈ℝD×n​l\Phi(X)=\begin{bmatrix}\Phi(\mathbf{x}_{1}),...,\Phi(\mathbf{x}_{X})\end{bmatrix}\in{\mathbb{R}}^{D\times nl}
KZ​(𝐱,𝐲)\displaystyle K^{Z}(\mathbf{x},\mathbf{y}) =K⁡(𝐱,𝐲)−K⁡(𝐱,Z)​K​(Z,Z)−1​K​(Z,𝐲)\displaystyle=K(\mathbf{x},\mathbf{y})-K(\mathbf{x},Z)K(Z,Z)^{-1}K(Z,\mathbf{y})
=Φ​(𝐱)T​Φ​(𝐲)−Φ​(𝐱)T​Φ​(Z)​(Φ​(Z)T​Φ​(Z))−1​Φ​(Z)T​Φ​(𝐲)\displaystyle=\Phi(\mathbf{x})^{T}\Phi(\mathbf{y})-\Phi(\mathbf{x})^{T}\Phi(Z)(\Phi(Z)^{T}\Phi(Z))^{-1}\Phi(Z)^{T}\Phi(\mathbf{y})
=Φ​(𝐱)T​[I−Φ⁡(Z)​(Φ​(Z)T​Φ​(Z))−1​Φ​(Z)T]​Φ​(𝐲)\displaystyle=\Phi(\mathbf{x})^{T}[I-\Phi(Z)(\Phi(Z)^{T}\Phi(Z))^{-1}\Phi(Z)^{T}]\Phi(\mathbf{y})
=Φ​(𝐱)T​[I−PΦ⁡(Z)]​Φ​(𝐲)\displaystyle=\Phi(\mathbf{x})^{T}[I-P_{\Phi(Z)}]\Phi(\mathbf{y})
=Φ​(𝐱)T​PΦ⁡(Z)⟂​Φ​(𝐲).\displaystyle=\Phi(\mathbf{x})^{T}P^{\perp}_{\Phi(Z)}\Phi(\mathbf{y})\>.
ΦZ​(𝐱)=LT​Φ​(𝐱),\displaystyle\Phi^{Z}(\mathbf{x})=L^{T}\Phi(\mathbf{x})\>, (15)

III-E Regression with LMI Constraints

The finite model is linear in its coefficients, so squared-error fitting with coefficient regularization and sampled Jacobian inequalities remains convex. The implementation uses the SCS conic solver with an ADMM-based first-order method and direct linear solves. Constraints can be imposed on a subset of points; slack variables can relax infeasible specifications.

Equations 16–18
𝐱˙=ΦZ​(𝐱)T​θ=∑i=1DΦiZ​(𝐱)​θi\dot{\mathbf{x}}=\Phi^{Z}(\mathbf{x})^{T}\theta=\sum_{i=1}^{D}\Phi^{Z}_{i}(\mathbf{x})\theta_{i} (16)
min⁡∑i,tθ∈ℝD⁡‖ΦZ​(𝐱ti)−𝐱˙ti‖22\displaystyle\min_{\theta\in\mathbb{R}^{D}}\sum_{i,t}\|\Phi^{Z}(\mathbf{x}^{i}_{t})-\dot{\mathbf{x}}^{i}_{t}\|^{2}_{2} +\displaystyle+ λ​‖θ‖22\displaystyle\lambda\|\theta\|^{2}_{2} (17)
subject to:\displaystyle\textrm{subject to}:~~~~~~~~~~~~~~~~~~~~~~~~
12​∑j=1D[𝑱ΦjZ​(𝐱ti)+𝑱ΦjZT​(𝐱ti)]​θj\displaystyle\frac{1}{2}\sum_{j=1}^{D}\Big[\boldsymbol{J}_{\Phi^{Z}_{j}}(\mathbf{x}^{i}_{t})+\boldsymbol{J}^{T}_{\Phi^{Z}_{j}}(\mathbf{x}^{i}_{t})\Big]\theta_{j} ⪯\displaystyle\preceq −τ⁡(𝐱ti)​𝑰\displaystyle-\tau(\mathbf{x}^{i}_{t})\boldsymbol{I} (18)

IV Empirical Analysis

Experiments evaluate reproduction, convergence from unfamiliar starts, and computational scaling. The main comparison uses four planar handwriting shapes.

IV-A Imitating Human Handwriting Motions

LASA contains thirty motions with seven demonstrations each and one thousand position–velocity samples per demonstration. The quantitative comparison selects Angle, CShape, GShape, and JShape. Four demonstrations train each model and three are held out; CVF and DMP train on the average training trajectory.

Refer to caption
Fig. 2: 7 demonstrations for 4 shapes

.

IV-B Qualitative Results

Plots show the largest symmetric-Jacobian eigenvalue around an S-shaped demonstration and compare separable and curl-free fields on other shapes. Both can form sizeable local contraction regions. The curl-free model also exposes a learned potential. These visualizations illustrate local geometry rather than establish a global convergence certificate.

Refer to caption
Fig. 3: Contracting Vector Field 𝐱˙=f⁡(𝐱)\dot{\mathbf{x}}=f(\mathbf{x}) and associated contraction tube learnt on “S”-shape data; contours correspond to the largest eigenvalue of the Jacobian of ff.
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Refer to caption
Fig. 4: Contracting Vector Fields learnt for Gaussian Separable (top), and Curl-free random feature maps (bottom). For the latter, the contours correspond to the associated potential field and streamlines are gradient flows.

IV-C Comparison Metrics

Trajectory and velocity errors measure reproduction over the demonstrated duration. Goal distance, time to enter a one-millimeter goal ball, and success over a horizon thirty times longer distinguish accurate paths from slow convergence. Sixteen grid starts per shape test broader recovery; DTW compares their paths with demonstrations. Training and integration times measure computational cost.

Equations 19–20
TrajectoryError=1m​∑i=1m1Ti​∑t=0Ti‖𝐱ti−𝐱^ti‖2\displaystyle\textrm{TrajectoryError}=\frac{1}{m}\sum_{i=1}^{m}\frac{1}{T_{i}}\sum_{t=0}^{T_{i}}\|\mathbf{x}^{i}_{t}-\hat{\mathbf{x}}^{i}_{t}\|_{2} (19)
VelocityError=1m​∑i=1m1Ti​∑t=0Ti‖𝐱˙ti−𝐱˙^ti‖2\displaystyle\textrm{VelocityError}=\frac{1}{m}\sum_{i=1}^{m}\frac{1}{T_{i}}\sum_{t=0}^{T_{i}}\|\dot{\mathbf{x}}^{i}_{t}-\hat{\dot{\mathbf{x}}}^{i}_{t}\|_{2} (20)

IV-D Comparison with DMP, SEDS and CLFDM

CVF-CF and CVF-GS use 100 or 200 random features, bandwidth 5 or 10, and contraction constraints at 250 points. Crucially, the quantitative comparison sets the contraction margin τ to zero; the separate S-shaped visualization uses a positive margin. Thus the benchmark constraints impose nonexpansion at samples rather than strict contraction everywhere.

Across the four shapes, CVF is among the two lowest mean trajectory errors on three and gives the best mean grid-start DTW on all four. The authors report one failed convergence case among the tested CVF starts. Training can cost more than the baselines, while inference remains comparable; looser solver stopping criteria reduce fitting cost. The four original tables retain all metrics and method-specific tradeoffs.

DMP SEDS CLFDM
TrainingTrajectoryError 4.10 7.18 4.93
TrainingVelocityError 7.40 14.62 10.99
TestTrajectoryError 5.53 4.58 12.24
TestVelocityError 8.74 11.43 15.50
DistanceToGoal 3.59 3.25 6.70
DurationToGoal - 3.89 4.34
NumberReachedGoal 0.00 7.00 7.00
GridDuration 5.91 3.72 9.73
GridFractionReachedGoal 0.06 1.00 1.00
GridDistanceToGoal 3.33 1.00 1.00
GridDTWD 24493.27 13865.75 14503.13
TrainingTime 0.05 2.10 2.82
IntegrationSpeed 0.21 0.06 0.15
CVF-CF CVF-GS
5.44 5.21
11.92 10.45
4.17 3.19
11.27 9.05
3.69 2.04
3.29 3.01
7.00 7.00
1.73 2.30
1.00 1.00
1.00 1.00
12837.89 9451.88
23.64 23.90
0.04 0.04
TABLE I: Angle
DMP SEDS CLFDM
TrainingTrajectoryError 4.40 8.29 6.90
TrainingVelocityError 7.32 14.73 12.65
TestTrajectoryError 6.99 9.08 5.82
TestVelocityError 9.43 12.59 10.89
DistanceToGoal 3.76 1.30 1.92
DurationToGoal - 3.71 3.39
NumberReachedGoal 0.00 7.00 2.00
GridDuration - 2.08 1.40
GridFractionReachedGoal 0.00 1.0 0.38
GridDistanceToGoal 3.96 1.0 2.22
GridDTWD 25679.59 14652 121312.43
TrainingTime 0.02 5.34 6.11
IntegrationSpeed 0.21 0.03 0.04
CVF-CF CVF-GS
12.00 8.87
19.93 15.55
8.13 11.17
11.83 16.40
0.27 3.00
3.00 3.46
6.00 7.00
1.38 3.33
1.00 1.00
1.00 1.00
15251.28 10944.76
24.59 24.01
0.05 0.03
TABLE II: CShape
DMP SEDS CLFDM
TrainingTrajectoryError 3.81 7.84 6.41
TrainingVelocityError 5.85 12.12 9.83
TestTrajectoryError 5.56 10.44 11.00
TestVelocityError 7.04 14.84 16.07
DistanceToGoal 1.63 0.18 3.72
DurationToGoal - 4.86 15.08
NumberReachedGoal 0.00 7.00 7.00
GridDuration - 2.78 12.68
GridFractionReachedGoal 0.00 1.00 1.00
GridDistanceToGoal 1.71 1.00 1.00
GridDTWD 19085.48 11493 10928.89
TrainingTime 0.02 14.43 3.01
IntegrationSpeed 0.18 0.08 0.10
CVF-CF CVF-GS
10.07 6.83
16.38 11.71
5.82 6.29
8.90 10.04
0.18 0.11
4.24 4.91
7.00 7.00
1.74 3.07
0.94 1.00
2.93 1.00
17767.83 10637.81
23.23 22.85
0.10 0.03
TABLE III: GShape
DMP SEDS CLFDM
TrainingTrajectoryError 3.09 14.37 4.96
TrainingVelocityError 6.05 22.88 9.60
TestTrajectoryError 5.47 16.85 4.95
TestVelocityError 8.49 25.76 9.81
DistanceToGoal 2.24 0.00 6.07
DurationToGoal - 2.05 3.49
NumberReachedGoal 0.00 7.00 5.00
GridDuration 100.73 1.21 2.18
GridFractionReachedGoal 0.44 1.00 0.69
GridDistanceToGoal 1.42 1.00 3.61
GridDTWD 29568.10 12866 15403.52
TrainingTime 0.01 18.15 2.66
IntegrationSpeed 0.19 0.11 0.09
CVF-CF CVF-GS
8.62 4.10
14.78 9.31
4.89 5.42
11.28 11.51
4.07 2.28
3.49 3.79
7.00 7.00
1.56 3.62
0.94 1.00
3.21 1.00
19610.23 10009.24
22.59 25.20
0.04 0.02
TABLE IV: JShape

IV-E Scalability wrt Dimensions and Random Features

A planar S trajectory is embedded in dimensions 2, 4, 8, 16, and 32 with 300 curl-free features. A second sweep fixes dimension four and varies feature count from 100 to 500. With 6,000 SCS iterations, the reported residuals and gaps are approximately 10⁻⁶–10⁻⁴. Training scales roughly linearly with feature count and superlinearly with dimension in these tests; embedding planar data is not equivalent to learning arbitrary high-dimensional robot behavior.

[Uncaptioned image]

IV-F Conclusion

The framework combines kernel regression, exact equilibrium placement, sampled contraction conditions, and convex optimization. Promising extensions include learned contraction metrics, modular composition, obstacle avoidance, and perception. The evidence here is handwriting simulation, with no physical-robot or global state-space safety evaluation.

Concept demonstration

Open image ↗