Many nonlinear systems become linear when viewed through the right set of measurement functions. The Koopman operator, which advances any function of the state one step forward in time, is linear even when the dynamics are not. If a small set of such functions is closed under that operator (an invariant subspace: every function in the set evolves as a linear combination of functions in the set), then planning reduces to linear algebra. Optimistic reinforcement learning methods exploit this. They keep a statistical confidence set of plausible linear models and act as if the most favorable one were true. If it is true, the agent earns reward; if not, the agent visits exactly the states that disprove it. The catch is that the best such method, KS-LC3 in Koopman Spectrum Nonlinear Regulators and Efficient Online Learning, assumes the invariant subspace is given in advance. The authors name relaxing that assumption as their main open problem.
We propose to extend optimism from the model parameters to the observables themselves. The agent keeps a large library of candidate functions and prunes it online to the largest subset that the data so far is consistent with being closed. It then plans optimistically over both which subspace to trust and which operator within it. The central observation is that the optimistic "win-win" argument also works at the level of subspaces. A candidate observable that only looks linear on visited states (a spurious eigenfunction, in the sense of Efficient Identification of Linear Evolutions in Nonlinear Vector Fields: Koopman Invariant Subspaces) tends to make some optimistic plan look too good. Executing that plan drives the system into states where the false invariance breaks. Exploration therefore does two jobs at once: it shrinks uncertainty about the operator, and it falsifies wrong subspaces.
Core Claim
Exact invariance is a set of linear constraints that every new transition must satisfy. Pruning a fixed library with symmetric subspace decomposition (SSD, Haseli et al.'s iterative null-space procedure that returns the largest invariant subspace a dictionary supports on given data) therefore yields a subspace that can only shrink as data accumulates. Once an observable fails invariance on observed data, it never returns.
This monotonicity gives a nested family of candidate subspaces $V_1 \supset V_2 \supset \dots$, each with an empirical closure residual $\hat\epsilon_j$. The residual is the leftover error when $V_j$ is forced to evolve linearly, as computed by approximate SSD. We build one confidence ellipsoid per subspace and inflate its radius by that residual:
$$\mathcal{M}_t^{(j)} = \{\theta : \|\theta - \hat\theta^{(j)}_t\|_{V^{(j)}_t} \le \beta_t(\delta) + c\,\hat\epsilon_j \sqrt{t}\}.$$
Here $\hat\theta^{(j)}_t$ is the regularized least-squares operator estimate in subspace $j$ after $t$ steps. The norm $\|\cdot\|_{V^{(j)}_t}$ is weighted by the empirical Gram matrix of lifted state-action features, as in the ellipsoids of Abbasi-Yadkori et al.. The term $\beta_t(\delta)$ is the usual statistical radius, and $c$ is a constant. The inflation term follows the standard misspecification argument: a per-step bias of $\epsilon$ accumulates into a least-squares error that grows like $\epsilon\sqrt{t}$. The agent then chooses
$$(j_t, \theta_t, \pi_t) = \arg\max_{j,\ \theta \in \mathcal{M}_t^{(j)},\ \pi} V^\pi_{\theta}.$$
Here $V^\pi_\theta$ is the return of policy $\pi$ under the lifted model $\theta$.
For actuated systems, we use the linear parameter-varying form shown to be exact in Koopman form of nonlinear systems with inputs. In that form the autonomous matrix $A$ is constant and the input matrix $B(z,u)$ is expanded in library products. This avoids building a permanent modeling error into the method by forcing the time-invariant form $Az+Bu$, which all prior optimistic Koopman control assumes.
The theoretical target is a regret bound of order $\widetilde{\mathcal{O}}(\sqrt{K^\star T}) + T\epsilon^\star$, where $K^\star$ is the dimension of the smallest near-invariant subspace in the library and $\epsilon^\star$ is its closure error. This would match KS-LC3's $\widetilde{\mathcal{O}}(\sqrt{T})$ when an exact subspace exists in the library, without knowing which one it is. We state this as a conjecture to be proved, not a result.
Relation to Prior Work
Two papers supply the planning machinery and motivate the gap. KS-LC3 gives optimistic planning over a confidence ball of Koopman operators with sublinear regret, but only for a fixed, known subspace; we remove that assumption. DPCBE and OSCAR in Reinforcement Learning vs Optimal Control: Sparse Nonlinear Dynamical Systems Between Theory and Practice run optimism over sparse coefficients on a SINDy-style library and prove regret that scales with sparsity. However, they regress raw state increments rather than requiring the library to be closed. Their models can therefore be accurate one step ahead yet spurious over long rollouts. They also report that the confidence radius $\lambda$ is brittle. Our residual-driven inflation replaces a hand-tuned radius with a data-measured one.
Three papers supply the subspace tools, all of which work offline on passive data. These are SSD, the sparse-regression view of closure in Koopman Invariant Subspaces and Finite Linear Representations of Nonlinear Dynamical Systems for Control, and the spectral-residual objective of ResKoopNet. We reuse SSD's pruning but run it on data the agent chose to collect. That choice matters because Haseli et al. show spurious invariance comes from limited sampling, and limited sampling is exactly what optimism targets.
Koopman Reduced-Order Modeling with Confidence Bounds selects the number of modes from residual statistics, but has no inputs and no planning. We borrow its idea that the unresolved residual should set the confidence width. No-Regret Model Predictive Control with Online Learning of Koopman Operators learns Koopman matrices online with gradient descent and fixed, handcrafted observables, has no confidence set, and proves $\mathcal{O}(T^{3/4})$ dynamic regret. It is our point-estimate competitor. KARL (Koopman-Assisted Reinforcement Learning) and KFC (Koopman Q-learning) use point-estimate Koopman models without directed exploration, so they inform the architecture but do not compete on the exploration question.
Research Program
The first component is algorithmic. Each episode, we rerun approximate SSD on the full transition buffer over the lifted state-input library. This produces the nested chain and its residuals. Because pruning is monotone, the cost can be amortized by updating null-space projections incrementally rather than recomputing them. We refit linear parameter-varying least-squares operators per subspace and solve the joint optimistic problem. To keep the planner tractable, we search over the discrete index $j$ by enumeration, since the chain is short. Within each ellipsoid, we use the extended-state trick from OSCAR, treating the model parameters as additional state, with a soft actor-critic planner on short model rollouts. As a cheaper oracle, we will compare optimistic Thompson sampling from Efficient Model-Based Reinforcement Learning Through Optimistic Thompson Sampling.
The second component is analysis. We will prove monotone pruning under exact invariance and noise-free transitions. We will then quantify how approximate SSD's tolerance interacts with sub-Gaussian noise, the noise model handled in DPCBE. Finally, we will attempt the regret decomposition above. The hardest step is controlling regret during the transient when a spurious subspace is still trusted. The win-win argument suggests that each spurious observable costs regret only until one optimistic episode exposes it. The number of such episodes is bounded by the library size.
The third component is a diagnostic for the falsification claim itself. We will log which observables are pruned, when they are pruned, and whether the states that exposed them came from optimistic episodes or from random exploration.
Baselines
The naive reference point is soft actor-critic without a model, which is the comparison both OSCAR and KSNR use. It is run with the same environment-step budget and its standard hyperparameter defaults, tuned over the same grid size given to our method.
The strongest existing exploring method on these tasks is OSCAR. It is the only published optimistic method built on the same kind of function library, and on Continuous Mountain Car it is reported as "the only approach that successfully reaches the goal." The file gives no numerical return for OSCAR on any task: no reported result found on Lacuna for OSCAR's scores. We will rerun it ourselves with the identical library, data budget, and planner, and with its $\lambda$ tuned over a grid equal in size to our tuning of $c$. Beating it means reaching the goal in fewer episodes on Mountain Car and Acrobot, with lower long-horizon prediction error, at matched wall-clock time.
KS-LC3 is run in two variants. The first uses the full unpruned library as its "known" subspace, which is the honest naive use when no subspace is known. The second is an oracle given the true invariant subspace on systems where one exists. The oracle is an upper reference, not a competitor. The only number reported for KS-LC3 in the file is a stable spectral radius of 0.990 on DeepMind Control Cartpole, versus 1.003 for a standard MDP approach, from Koopman Spectrum Nonlinear Regulators and Efficient Online Learning. We report spectral radius alongside return so results are comparable. Success means closing most of the gap between full-library KS-LC3 and oracle KS-LC3.
Koopman-MPC with online gradient descent is the point-estimate competitor. It is run with its handcrafted observables and also with our pruned subspace, which isolates whether optimism matters given good observables. On the PyBullet cart-pole, the file reports only qualitative results: it stabilized under 45% parameter error where Gaussian-process MPC and random-Fourier-feature MPC diverged, so no reported number was found on Lacuna. Beating it means equal stabilization on that test plus success on the sparse-reward tasks, where a point estimate has no reason to explore.
Two ablations isolate the key ingredient. The first ablation, "greedy subspace," prunes with SSD but always trusts the current smallest-residual subspace, applying optimism only within it. The second ablation, "no inflation," keeps optimism over subspaces but sets $c=0$. If greedy subspace matches the full method, the claim that optimism over observables drives falsification is wrong.
Why not just…?
Why not just run KS-LC3 on a large fixed polynomial library and widen the radius? If the true subspace lies in the library, the large library contains it, so the confidence set is valid. This is a real threat. Its cost is that regret scales with the full library dimension. Its models are also built on observables that, by the closure cascade in Including inputs and control within equation-free architectures for complex systems, do not close and so leak error over long rollouts. SSD on Van der Pol reduced a candidate library to 24 closed functions with relative error under $6\times10^{-4}$, which suggests pruning removes most of the dimension cost. Our full-library KS-LC3 baseline settles this directly. If it matches us at equal tuning, the pruning machinery is not worth it, and we would report that.
Why not just use OSCAR, which already handles sparsity and approximate sparsity? OSCAR's guarantees concern one-step prediction, and its practical radius $\lambda$ is reported as brittle in both directions. Our measured long-horizon prediction error and $\lambda$-sensitivity sweeps will show whether closure-based inflation removes that brittleness. On short-horizon tasks OSCAR may well match us. We expect our method to pull ahead mainly where plans use long rollouts.
Why not just train an ensemble of deep Koopman autoencoders and explore by disagreement? Learned dictionaries such as EDMD-DL (Extended dynamic mode decomposition with dictionary learning) avoid having to choose a library. Ensemble disagreement gives cheap optimism through Thompson sampling. However, Information Shapes Koopman Representation documents mode collapse in such models, and ensemble spread carries no certificate of closure. We include this baseline with the von Neumann entropy regularizer that paper uses against collapse. On systems where no library contains a good subspace, such as contact-rich Walker2d, we expect it to win. That case is the boundary of our claim.
Why not just use model-free SAC? OSCAR's results already show soft actor-critic failing on Mountain Car. We keep it as the floor rather than as a serious threat.
Proposed Experiments
The first experiment is a controlled identification test. We use actuated systems with a known exact finite invariant subspace inside a polynomial library, starting from the slow-manifold example of Brunton et al. extended with inputs, and include distractor observables that are invariant only on a small region of state space. We measure principal angles between the learned and true subspaces over episodes, the episode at which each distractor is pruned, and cumulative regret against oracle KS-LC3. The decisive check is that distractors are pruned in optimistic episodes earlier than under greedy subspace or random exploration, at equal data.
The second experiment targets exploration on the tasks used by OSCAR: cartpole swing-up, Acrobot, and Continuous Mountain Car. Metrics are episodes to first goal, final return, 50-step prediction error, and sensitivity to $c$ versus OSCAR's $\lambda$.
The third experiment tests robustness on the PyBullet cart-pole at 25% and 45% parameter error, comparing against Koopman-MPC. The fourth reports spectral radius and smoothness on DeepMind Control Cartpole against KSNR's reported 0.990.
The proposal fails if the greedy-subspace ablation matches the full method in the first experiment, or if full-library KS-LC3 matches it in the second experiment at equal tuning budget.
References
- Koopman Spectrum Nonlinear Regulators and Efficient Online Learning
- Efficient Identification of Linear Evolutions in Nonlinear Vector Fields: Koopman Invariant Subspaces
- Regret Bounds for the Adaptive Control of Linear Quadratic Systems
- Koopman form of nonlinear systems with inputs
- Reinforcement Learning vs Optimal Control: Sparse Nonlinear Dynamical Systems Between Theory and Practice
- Koopman Invariant Subspaces and Finite Linear Representations of Nonlinear Dynamical Systems for Control
- ResKoopNet: Learning Koopman Representations for Complex Dynamics with Spectral Residuals
- Koopman Reduced-Order Modeling with Confidence Bounds
- No-Regret Model Predictive Control with Online Learning of Koopman Operators
- Koopman-Assisted Reinforcement Learning
- Koopman Q-learning: Offline Reinforcement Learning via Symmetries of Dynamics
- Efficient Model-Based Reinforcement Learning Through Optimistic Thompson Sampling
- Including inputs and control within equation-free architectures for complex systems
- Extended dynamic mode decomposition with dictionary learning: A data-driven adaptive spectral decomposition of the Koopman operator
- Information Shapes Koopman Representation