Contraction-Regularized Latent Dynamics
Implementation & benchmark of arXiv:2607.29538 — Tube MPC for Bilinear Koopman Models using Robust Control Contraction Metrics
Source paper: Tube MPC for Bilinear Koopman Models using Robust Control Contraction Metrics arXiv:2607.29538 ⓘ · analyzed Aug 31, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Equip a latent world model with a learned positive-definite state-dependent metric and penalize violations of one-step contraction under the predicted dynamics. Use the paper's metric-geodesic energy as an auxiliary consistency loss between clean and perturbed latent rollouts, making the model more robust to observation noise and compounding prediction errors.
Formulas
Mathematical statement
The paper parameterizes a geodesic between endpoints in lifted state space as \(\gamma(s)\approx \mathbf{C}\mathbf{T}(s)\), with derivative \(d\gamma(s)/ds\approx \mathbf{C}\mathbf{T}_d(s)\), where \(s\in[0,1]\), \(\mathbf{T}(s)\in\mathbb{R}^{N_\gamma}\) is a vector of basis functions, \(\mathbf{T}_d(s)\) contains their derivatives, and \(\mathbf{C}\in\mathbb{R}^{n_z\times N_\gamma}\) contains path coefficients. Problem 4 minimizes the discretized Riemannian path energy \(\sum_{\ell=0}^{N_w}\mathbf{T}_d(s_\ell)^\top\mathbf{C}^\top W_{\theta_w^*}^{-1}(\mathbf{C}\mathbf{T}(s_\ell))\mathbf{C}\mathbf{T}_d(s_\ell)w_\ell\), subject to endpoint constraints \(\mathbf{C}\mathbf{T}(0)=\bar z^*_{0|k}\) and \(\mathbf{C}\mathbf{T}(1)=\bar\phi_{\theta^*}(x_k)\). Here \(W_{\theta_w^*}(z)\succ0\) is the learned metric, \(s_\ell,w_\ell\) are quadrature nodes and weights, \(\bar z^*_{0|k}\) is the initial lifted state, and \(\bar\phi_{\theta^*}(x_k)\) is the target lifted state. Adapt this to a latent predictor \(z_{t+1}=f_\theta(z_t,a_t)\) by defining \(J_t=\partial f_\theta/\partial z_t\), \(M_\psi(z)=L_\psi(z)L_\psi(z)^\top+\epsilon I\), and enforcing the discrete contraction condition \(J_t^\top M_\psi(z_{t+1})J_t\preceq\rho^2M_\psi(z_t)\), with \(0<\rho<1\). A differentiable penalty is \(\|[J_t^\top M_\psi(z_{t+1})J_t-\rho^2M_\psi(z_t)]_+\|_F^2\), where \([A]_+\) replaces negative eigenvalues of symmetric matrix \(A\) by zero.
Implementation notes
Integrate the method into a recurrent or transformer-based latent world model immediately after its latent transition function. Let an encoder produce \(z_t\), let the model predict \(\hat z_{t+1}=f_\theta(z_t,a_t)\), and add a small metric network \(L_\psi(z)\) whose diagonal is softplus, giving \(M_\psi(z)=L_\psi(z)L_\psi(z)^\top+\epsilon I\) with \(\epsilon=10^{-4}\). For each minibatch sequence, compute \(J_t=\partial f_\theta(z_t,a_t)/\partial z_t\) using automatic differentiation; initially use a 4--16 dimensional latent state so the full Jacobian is affordable. Pseudocode: encode \(z_{0:H}\); predict \(\hat z_{t+1}\); compute \(M_t=M_\psi(z_t)\) and \(M_{t+1}=M_\psi(\hat z_{t+1})\); form \(A_t=J_t^\top M_{t+1}J_t-\rho^2M_t\); eigendecompose the symmetric part of \(A_t\), retain positive eigenvalues, and add \(\lambda_c\|[A_t]_+\|_F^2\) to the prediction loss. Set \(\rho\) between 0.90 and 0.99 and warm up \(\lambda_c\) for 10% of training. Optionally select two latent endpoints, evaluate Chebyshev basis values \(\mathbf T(s_\ell)\) and derivatives \(\mathbf T_d(s_\ell)\), and solve the paper's endpoint-constrained metric-energy problem every 100 updates as a diagnostic or auxiliary loss. The formulas determine the metric construction, contraction residual, and geodesic energy; Jacobians and largest eigenvalues are estimated empirically by autodiff and eigendecomposition. First test on Pendulum or CartPole with a GRU/MLP world model, comparing the baseline against the regularized model under Gaussian observation noise, action perturbations, and 50-step imagined rollouts. Success requires lower long-horizon latent error, fewer exploding trajectories, and improved model-based control reward at equal parameter count; also report wall-clock overhead and reject the method if one-step accuracy improves while long-horizon stability does not.
Verification
This idea has not been verified yet.
Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.
Artifacts
Artifacts unavailable.