In reinforcement learning (RL), representation learning (how the agent perceives the world) and exploration (how the agent discovers the world) are often treated as two separate problems. Practitioners might use a contrastive loss to learn features and then rely on $\epsilon$-greedy or curiosity-driven methods to explore.
The paper "Spectral Bellman Method: Unifying Representation and Exploration in RL" argues that this separation is fundamentally flawed. By analyzing the spectral properties of the Bellman operator, the authors propose a unified framework to learn features that are inherently designed for both accurate value estimation and strategic exploration. The resulting Spectral Bellman Method (SBM) aligns representation learning with the structure of Bellman updates, learning a feature covariance structure that naturally drives efficient, structured exploration via Thompson Sampling.
The Problem: Misaligned Representations
Most representation learning methods in RL are "misaligned" with the core objective of the agent. Techniques borrowed from computer vision (like VAEs or contrastive learning) or based on predicting the next state (model-based) help the agent "see," but they do not necessarily help the agent "solve" the RL task, which fundamentally involves estimating values and exploring unknown areas.
The authors focus on the Inherent Bellman Error (IBE). IBE measures how well a feature space can represent the result of a Bellman update. If your features have high IBE, your value function will always be slightly inaccurate, regardless of how much data you collect. Furthermore, standard exploration methods often rely on arbitrary definitions of "uncertainty." The authors argue that uncertainty should be tied directly to how the Bellman operator transforms our features.
The Spectral Bellman Method (SBM)
The core of the paper is the Spectral Bellman Method. It moves away from fitting a single Q-function and instead looks at how the Bellman operator acts on a distribution of possible value functions.
- The Spectral Insight: The authors prove that under an ideal condition (zero IBE), the Bellman operator's action on value functions is mathematically linked to the covariance structure of the features. Specifically, the features and parameters correspond to the singular vectors of the Bellman transformation.
- SBM Loss: Instead of the standard Mean Squared Error (MSE) used in Q-learning, SBM uses a theoretically grounded objective that decomposes the problem into two parts:
- Representation Loss: Updates the features ($\phi$) to align with Bellman-transformed values.
- Parameter Objective: Updates the weights ($\theta$) to best represent those transformations.
- Power Iteration: The learning process is inspired by the "Power Method" (a classic algorithm for finding eigenvalues), alternating between updating features and updating the parameter distribution.
- Thompson Sampling (TS): Because the learned feature covariance ($\Sigma$) is now "Bellman-aligned," the agent can use it to perform Thompson Sampling. It adds noise to its value estimates based on this covariance, leading to exploration that is strategically targeted toward areas where the Bellman updates are most uncertain.
Key Insights
- Closure is Key: A good representation should be "closed" under the Bellman operator. If you take a linear combination of your features and apply a Bellman update, the result should still be representable as a linear combination of those same features.
- Distribution over Policies: Standard RL fits the Q-value of the current policy. SBM fits the Bellman operator across a distribution of possible policies/parameters, making the representation much more robust.
- Covariance as a Bridge: The same covariance matrix used to stabilize the spectral learning of features is exactly what is needed to drive Bayesian exploration (Thompson Sampling). Representation and exploration become two sides of the same spectral coin.
Experimental Results
The researchers evaluated SBM on the Atari 2600 benchmark (ALE), a standard suite of 55 games. They paid special attention to a subset called "Atari Explore," consisting of notorious hard-exploration tasks with sparse rewards or long horizons (e.g., Montezuma’s Revenge, Pitfall!).
The authors integrated SBM into two popular algorithms: DQN and the more advanced R2D2.
- Overall Performance: On the full Atari suite, SBM + DQN with Thompson Sampling achieved a median Human Normalized Score (HNS) of 0.85, significantly outperforming vanilla DQN (0.52).
- Hard Exploration: In the "Atari Explore" subset, the gains were even more dramatic. SBM + DQN (TS) reached a mean HNS of 0.45, nearly doubling the performance of vanilla DQN (0.24).
- Scaling to R2D2: When added to the state-of-the-art R2D2 agent, SBM improved the median HNS from 1.14 to 1.37, demonstrating that the method scales effectively to complex, distributed architectures.
- Ablation: Learning over a distribution of value functions (the SBM approach) performed significantly better than just minimizing the standard Bellman MSE, proving the value of the spectral framework.
Limitations and Future Work
While highly effective, SBM introduces some challenges. The method relies on a parameter distribution $\nu(\theta)$, and the variance of this distribution ($\sigma^2_{rep}$) requires careful tuning. Additionally, SBM introduces a roughly 20% increase in compute time per step, primarily due to training the auxiliary network and computing matrix inverses for Thompson Sampling.
Future work will look toward extending this framework to continuous control tasks (like MuJoCo) and exploring more formal theoretical bounds for environments where the Inherent Bellman Error is low but not perfectly zero.
Summary updated