An impossible triangle
In Part I, we argued that self-supervised learning is learning one object: the spectral decomposition of the pointwise mutual information between two views of the data, with different parametrizations and learning strategies. This post applies the spectral view to reinforcement learning (RL). Taking the current state-action pair and the next state as the two views induces a new decomposition, the spectral decomposition of the transition operator. The full details are in the paper ↗, with code on the project page ↗, and an overview is in the slides ↗.
An RL agent has to do three things well:
- Modeling. Represent the value function, the policy, or the dynamics of a large, nonlinear world.
- Exploration. Know what it does not know, so that it collects the right data.
- Planning. Turn what it knows into a good policy, efficiently and reliably.
Before spectral representations, this was an impossible triangle: existing approaches pick two at best. Concretely, model-free deep RL, such as Q-learning or policy gradients with neural networks, models flexibly, but uncertainty is hard to estimate with arbitrary networks, and there is no guarantee that training finds a good policy. Classic control with linear dynamics, the linear quadratic regulator, has clean uncertainty estimates and an exact planner, but linear dynamics are far too restrictive. Deep model-based RL and world models bring back the flexible model, but planning through a learned nonlinear model is expensive, and uncertainty is again hard to quantify.
| Modeling | Exploration | Planning | |
|---|---|---|---|
| Model-free deep RL | ✓ | ✗ | ✗ |
| Linear quadratic regulator | ✗ | ✓ | ✓ |
| Deep model-based RL, world models | ✓ | ✗ | ✗ |
| Spectral representation | ✓ | ✓ | ✓ |
This post argues that the spectral representation breaks the triangle and gets all three. The representation comes from the dynamics, it is learned with the same tools as in Part I, and it makes the value function of every policy linear.
The spectral view of RL: every Q becomes linear
2.1 Every Q is linear in the spectral representation
Following Part I, take the current state-action pair and the next state as the two views. The spectral decomposition of their PMI is
that is,
This is the spectral decomposition of the transition operator.
The factorization is just an SVD of the dynamics, so it exists, with possibly infinitely many features, whenever the transition operator is compact. For example, take a stochastic nonlinear system with Gaussian noise , for any nonlinear . Its transition is a Gaussian kernel between and ,
which, for any , splits off a density on alone (Ren et al., Eq. 12):
where depends only on and only on . The last factor is a Gaussian kernel, and a Gaussian kernel is an inner product of infinitely many random Fourier features, so , the same form as above with in place of . So general nonlinear control becomes linear in the right feature space, which the spectral dynamics embedding exploits for stochastic nonlinear control.
Why is this the right representation for RL? An RL problem is a Markov decision process: in state the agent takes action , receives reward , and moves to with probability . Its goal is a policy that maximizes the -discounted total return, and the central quantity is the action-value function , which satisfies the Bellman equation
where is the value of the next state.
Represent the reward with the same feature, , plug both into the Bellman equation, and the integral moves inside the inner product:
So the Q-function of every policy is linear in the same feature . Only the weight depends on the policy. The feature itself depends only on the dynamics and the reward, so it can be learned once and reused while the policy changes.
2.2 The parallel with Part I
In Part I, the two views and gave a representation that makes every downstream prediction linear. Here, the two views are and , and every policy's value is the downstream prediction.
| Part I: SSL | Part II: RL | |
|---|---|---|
| Two views | and , e.g., an image and its augmentation | and , the current state-action and the next state |
| What is decomposed | ||
| Representation | ||
| What becomes linear | for every downstream task | for every policy |
| How it is learned | parametrization × fitting rule | the same two knobs |
What a linear Q buys
Once , the hard parts of RL become the easy parts of linear algebra.
Policy. For the KL-regularized policy improvement step,
so the policy is determined by , and therefore by the same representation . Taking to be the current policy, this is a natural policy gradient step: if , the update simply adds to .
Planning. Policy evaluation is a least-squares problem in : regress onto . Nonlinear dynamics no longer make planning nonconvex, because the nonlinearity is absorbed into .
Exploration. With linear features, uncertainty has a closed form, as in linear bandits. Adding the bonus
to the reward gives optimism in the face of uncertainty, with provable sample efficiency, as shown in CTRL and A Free Lunch from the Noise.
Model-based benefits without rollouts. The representation is learned from the dynamics, so it carries what a world model knows. But it is used by a model-free critic, so there is no trajectory synthesis during training and no planning at decision time. That makes it far cheaper than world-model methods, and it avoids compounding errors from long imagined rollouts.
The dual side. The same factorization makes the state-action occupancy of any policy, the distribution of where the policy spends its time, linear in the dual feature , apart from the initial-state term:
where is the normalized discounted occupancy and the initial-state distribution. The primal and the dual occupancy are then both linear, which gives a primal-dual spectral method for off-policy evaluation.
Learning φ: the same two knobs
All of these benefits assume the spectral representation is given. In practice the dynamics are unknown, so has to be learned from transitions . Maximum likelihood under the factorization is intractable. With free features, is an unnormalized density, so the model is
and maximum likelihood needs the partition function :
where is dropped since it does not depend on . Each is an integral over the whole next-state space, and the inner product must also stay positive for the log to be defined. But this is exactly the problem of Part I with and , so the same two knobs apply: how to parametrize the decomposition and how to fit it.
- Linear. with finite-dimensional features, fit by the spectral contrastive (SVD) loss, which has a simple unbiased stochastic gradient. This is Speder.
- Latent-variable. , so , fit by the evidence lower bound as in a variational autoencoder. This is LV-Rep.
- Energy-based. , which again expands into infinitely many random features. It is fit by score matching on noise-perturbed next states, as in diffusion models, which is Diff-SR, or by noise-contrastive estimation, as in CTRL and its ranking-based, noise-perturbed version CTRL-SR.
Each choice gives a complete RL algorithm. The representation loss runs alongside a standard actor-critic: the critic is linear in , or a small head on top of it for energy-based features, the reward is added as a prediction target so that it is linear in too, and the policy maximizes the critic. In practice, keeping the representation loss as a regularizer on top of the critic loss helps. Our conjecture is that a representation learned only by fitting the dynamics is task-agnostic: with limited rank, its top singular subspace can be misaligned with the subspace where lives. The same failure mode, task-agnostic spectral features that miss the target when the rank is insufficient, is analyzed for instrumental variable regression in Meunier et al.
Breaking the triangle in practice
The four algorithms, Speder, LV-Rep, Diff-SR, and CTRL-SR, were run on the same TD3 backbone with fixed hyperparameters on 27 tasks from the DeepMind Control Suite, and compared with TD3, SAC, and TD7. The spectral methods do better on average, and the gap is largest on the hardest dynamics, the dog and humanoid tasks, where the energy-based representations lead.
From pixels, the comparison is with model-based methods, DreamerV3 and TD-MPC2, and the model-free DrQ-v2. The model-free Diff-SR and CTRL-SR match or exceed the model-based methods on average, without any planning at decision time.
The ablations tell a consistent story. Performance improves with the representation dimension, and the energy-based CTRL-SR is better at equal dimension and keeps scaling, since it implicitly learns an infinite-dimensional feature map.
Beyond MDPs
Real agents rarely see the full state. They see images, video, or text. Planning in a general partially observable MDP is intractable, but many practical problems are -decodable: the last observations and actions determine the state, which is what frame stacking assumes in visual RL. Decomposing the dynamics of this window, the Q-function is again linear in a feature of the window , as in the latent-variable version.
The idea also reaches beyond RL benchmarks. The linear Q makes the inverse problem tractable, recovering rewards and motor primitives from demonstrations, which has been used to analyze animal behavior. And the same decomposition applies to a semi-MDP, where the actions are temporally extended skills. Spectral Skills is built on this semi-MDP decomposition: it learns each skill as a spectral representation of how a motion continues, so that one frozen humanoid controller can track, chain, and compose skills, as discussed in our SuperMimic post.
A single structure, the spectral decomposition of the transition operator, gives a representation that makes every policy's value linear. That one fact supports flexible modeling with deep networks, provable exploration, and efficient planning at once, and it is learned with the same tools that self-supervised learning uses. The derivations, the POMDP extension, and the full experiments are in the paper ↗, the code is on the project page ↗, and an overview is in the slides ↗.
Relation to successor features
Click to expand
Successor features are one of several earlier spectral representations for RL. As summarized in Table 1 of Speder, they all decompose a state-to-state operator induced by a policy, :
| Representation | Decomposed dynamics |
|---|---|
| Successor features | |
| Proto-value functions | |
| Krylov basis | |
| Spectral state aggregation | |
| Spectral representation (this post) |
Here is the reward and a diagonal reweighting. Successor features decompose , the discounted visits under . Because mixes in a specific , all of these features carry that policy and have to be relearned when the policy changes. In contrast, the spectral representation decomposes the transition itself, which does not depend on any policy,
and moves the policy into the weight instead. Every policy-induced operator then follows by averaging the feature, .
Acknowledgements
This post is based on joint work with Haotian Sun, Na Li, and Dale Schuurmans. We also thank Feiyang Wu, Anqi Wu, and Ye Zhao for the collaboration on Spectral Skills.
References
- Gao, Sun, Li, Schuurmans, and Dai 2025, Spectral Representation-based Reinforcement Learning
- Spectral-RL project page and code
- Dai 2026, Spectral Representation-based Reinforcement Learning, talk slides
- Spectral Representation I: What Is Self-Supervised Learning Really Learning?
- Zhang et al. 2022, Making Linear MDPs Practical via Contrastive Representation Learning (CTRL)
- Ren et al. 2022, A Free Lunch from the Noise
- Ren et al. 2023, Spectral Decomposition Representation for RL (Speder)
- Ren et al. 2023, Latent Variable Representation for RL (LV-Rep)
- Shribak et al. 2024, Diffusion Spectral Representation for RL (Diff-SR)
- Ren et al. 2025, Stochastic Nonlinear Control via Finite-Dimensional Spectral Dynamics Embedding
- Hu et al. 2024, Primal-Dual Spectral Representation for Off-policy Evaluation
- Zhang et al. 2024, Provable Representation with Efficient Planning for Partially Observable RL
- Efroni et al. 2022, Provable RL with a Short-Term Memory
- Wang et al. 2025, Learning Task-Agnostic Motifs to Capture the Continuous Nature of Animal Behavior
- Barreto et al. 2017, Successor Features for Transfer in RL
- Fujimoto et al. 2018, TD3
- Haarnoja et al. 2018, SAC
- Fujimoto et al. 2023, TD7
- Yarats et al. 2022, DrQ-v2
- Hafner et al. 2023, DreamerV3
- Hansen et al. 2024, TD-MPC2
- Meunier et al. 2025, Demystifying Spectral Feature Learning for Instrumental Variable Regression
- Barreto et al. 2017, Successor Features for Transfer in Reinforcement Learning