Switching Koopman Latent World Model
Implementation & benchmark of arXiv:2607.11344 — Learning to control switching nonlinear systems with Koopman operator regression
Source paper: Learning to control switching nonlinear systems with Koopman operator regression arXiv:2607.11344 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Encode observations into a latent state in which each discrete action applies a separate linear Koopman transition matrix. Train the encoder and matrices from replay data, then use repeated matrix multiplication for multi-step prediction instead of recursively evaluating a nonlinear dynamics network. This is especially suitable for discrete-action model-based RL, where action-conditioned linear operators provide cheap rollouts and expose unstable action/state combinations.
Formulas
Mathematical statement
The paper starts from the controlled discrete-time system $x_{t+1}=\mathfrak{f}(x_t,u_t)$, where $x_t$ is the state, $u_t$ is the control, and $\mathfrak{f}$ is an unknown nonlinear flow map. Its Koopman construction represents observables of the state with linear operators, with the operator selected by the finite action $u_t$. The adapted finite-dimensional model is $z_t=\phi_\theta(o_t)\in\mathbb{R}^d$ and $z_{t+1}\approx K_{u_t}z_t$, where $o_t$ is an observation, $\phi_\theta$ is a neural encoder, and $K_a\in\mathbb{R}^{d\times d}$ is the learned Koopman matrix for discrete action $a$. The paper's optimal-control objective is $\min_{u_0,u_1,\ldots}\sum_{t=0}^{\infty}g(t,x_t,u_t)$ subject to the dynamics; for training, use a finite rollout surrogate with latent prediction loss. The mathematical benefit is that, conditional on an action sequence, prediction is a product of linear operators $z_{t+H}=K_{u_{t+H-1}}\cdots K_{u_t}z_t$, so spectral radius and singular values directly diagnose and regularize long-horizon stability. If $\rho(K_a)<1$ for all actions, repeated application of a fixed action is contractive in the latent linear model; more generally, penalizing $\|K_a\|_2$ controls worst-case one-step amplification.
Implementation notes
Integrate this at the world-model component of a discrete-action model-based RL agent, or immediately after a visual encoder in a video-prediction model. The encoder maps an observation batch to $z_t=\phi_\theta(o_t)\in\mathbb{R}^d$; maintain one trainable matrix $K_a$ for every action $a\in\{1,\ldots,A\}$. For a replay sequence $(o_t,u_t,o_{t+1},\ldots,o_{t+H})$, compute $z_t=\phi_\theta(o_t)$ and recursively set z_pred = K[u[t]] @ z_pred for each step. Minimize the sum of squared errors between each predicted latent and the encoded target latent, optionally add a decoder reconstruction loss, and add the spectral-norm penalty from the formula above. Pseudocode: z = encoder(o[t]); loss = 0; for h in 1..H: z = K[u[t+h-1]] @ z; loss += mse(z, encoder(o[t+h])); for a in actions: loss += lambda_K * relu(power_spectral_norm(K[a])-tau)**2; backprop(loss). The paper supplies the switching linear-operator structure; the neural encoder, finite rollout loss, and spectral regularizer are the adaptation. Estimate each $\|K_a\|_2$ with one or two power iterations per update rather than an expensive SVD; optionally estimate $\rho(K_a)$ offline from eigenvalues. Start with CartPole or Acrobot using an MLP encoder and compare against a standard nonlinear MLP one-step world model at equal latent dimension and parameter count. Evaluate one-step and 20-step prediction error, model-based planning reward, gradient stability, and rollout divergence. A successful signal is substantially lower long-horizon latent error or higher planning reward at equal rollout FLOPs, with fewer exploding imagined trajectories.
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.