Spectral Decomposition Representation for Reinforcement Learning

Tongzheng Ren, Tianjun Zhang, Lisa Lee, Joseph E. Gonzalez, Dale Schuurmans, Bo Dai

Introduction

Reinforcement Learning (RL) in high-dimensional spaces often suffers from the "curse of dimensionality." To manage this, researchers rely on representation learning to map complex states into lower-dimensional, tractable features.

SPEDER introduces a novel way to learn state-action representations by factorizing the environment's transition dynamics using spectral decomposition. By moving away from policy-dependent features, it provides a stable, policy-invariant representation that enables provably sample-efficient exploration and state-of-the-art performance in both online and offline reinforcement learning.

The Problem with Existing Spectral Methods

A popular class of methods uses spectral decomposition (like Singular Value Decomposition or Eigen-decomposition) of transition dynamics to find these features. However, existing spectral methods suffer from three major flaws:

  1. Policy Dependence: They usually decompose a transition kernel that depends on a specific "behavior policy," making the learned features brittle when the agent's policy inevitably changes during learning.
  2. State-Only Focus: They often produce features for states alone, ignoring the critical interaction between states and actions.
  3. Exploration Gap: Most existing methods assume a pre-collected dataset and ignore the "chicken-and-egg" problem of RL: you need a good representation to explore effectively, but you need to explore to find a good representation.
Comparison of existing spectral representations and their reliance on policy-dependent dynamics ($P^\pi$)

As seen in the table above, classical representations like Successor Features and Proto-Value Functions explicitly rely on $P^\pi$ (the policy-dependent transition matrix). This bakes the current policy into the representation itself.

The SPEDER Approach

To address these limitations, the authors propose SPEDER (Spectral DEcomposition Representation). Instead of factorizing a policy-dependent transition matrix, SPEDER factorizes the core, underlying transition operator: $P(s'|s, a) \approx \langle \phi(s, a), \mu(s') \rangle$.

Key technical highlights include:

  • Variational SVD Objective: The authors derive a model-free objective based on the dual form of Singular Value Decomposition. This allows them to learn the spectral maps $\phi$ (state-action features) and $\mu$ (next-state features) using stochastic gradient updates, making the method fully compatible with deep neural networks.
  • Policy Invariance: Because it factorizes the dynamics directly rather than a policy-weighted transition, the representation remains valid and stable even as the agent's policy evolves.
  • Optimistic Exploration: SPEDER integrates the learned features into an online RL loop using the principle of "Optimism in the Face of Uncertainty." It uses an elliptical potential bonus (based on the covariance of the learned features) to encourage the agent to visit under-explored parts of the state-action space.
  • Latent Behavioral Cloning: The method can also be extended to imitation learning, using the spectral features as "skills" to mimic expert demonstrations.

Key Insights

  • Duality is the Bridge: The authors demonstrate that learning a representation via SVD is mathematically equivalent to minimizing the $L_2$ model error. This elegantly bridges the gap between "model-free" representation learning and "model-based" RL.
  • Action Matters: By including the action in the spectral map ($\phi(s, a)$), the representation captures how specific interventions change the future. This is far more useful for planning and control than state-only abstractions.
  • Provable Efficiency: Unlike many deep RL papers that rely purely on heuristics, SPEDER comes with PAC (Probably Approximately Correct) guarantees. The authors prove that the number of episodes needed to find a near-optimal policy scales polynomially with the rank of the Markov Decision Process (MDP), rather than the raw size of the state space.

Experimental Results

The paper evaluates SPEDER across three major RL benchmarks, demonstrating its versatility and power:

  1. DeepMind Control Suite (Sparse Reward Mastery): In challenging tasks where the agent only receives a signal upon reaching a specific goal, SPEDER significantly outperformed standard algorithms. For example, in "Walker Run Sparse," SPEDER achieved a score of ~683, while SAC and PPO failed to make significant progress (scores < 55).
  2. MuJoCo (Dense Reward): On standard continuous control tasks (HalfCheetah, Hopper, Ant), SPEDER matched or exceeded the performance of both model-based (PETS, ME-TRPO) and model-free (SAC) baselines.
  3. D4RL AntMaze (Effective Imitation): In this complex navigation task used to test downstream imitation learning from suboptimal data, SPEDER-based latent behavioral cloning achieved results comparable to specialized imitation learning algorithms like OPAL and TRAIL, despite being a more general-purpose representation.

Limitations and Future Work

While SPEDER offers a robust new framework, the authors note a few areas for future improvement:

  • Valid Transition Kernels: The SVD objective doesn't inherently guarantee that the reconstructed transition $P(s'|s, a)$ is a valid probability distribution (e.g., it might not sum to 1). While a regularization term mitigates this, exploring a more fundamental architectural constraint could be beneficial.
  • Computational Overhead: Calculating the elliptical potential bonus involves inverting a covariance matrix. While manageable in the tested dimensions, this could become a bottleneck in extremely high-dimensional feature spaces.
  • Function Approximation Error: The theoretical guarantees assume the "true" transition lies within the function class being optimized. In the real world, model mismatch is inevitable, and further study is needed on how SPEDER handles significant misspecification.

Summary updated

BibTeX
@inproceedings{ren2023spectral,
  author = {Tongzheng Ren and Tianjun Zhang and Lisa Lee and Joseph E. Gonzalez and Dale Schuurmans and Bo Dai},
  title = {{Spectral Decomposition Representation for Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=FBMLeaXpZN},
}
Figure