Introduction
In Reinforcement Learning (RL), the quality of the "features"—the representation of the state—largely determines how well an agent can learn a value function or policy. Historically, researchers either hand-crafted expert features or used linear value function approximation on raw states. Deep RL revolutionized this by using neural networks to automatically learn features, typically ending in a linear output layer.
However, the field has lacked a complete theoretical understanding of why certain learned features work better than others, particularly in the controlled case (where the agent actively chooses actions). This paper bridges the gap between classical linear RL and modern deep RL by providing a theoretical foundation for linear feature encoding. The authors demonstrate that if a linear encoder can compress raw, high-dimensional inputs (like images) into a representation that accurately predicts both the next raw state and the reward, it is theoretically guaranteed to support an accurate linear value function.
Methods: Predictively Optimal Feature Encoding
The authors propose a theory of Predictively Optimal Feature Encoding to answer what properties a feature encoder must have to ensure an accurate linear value function across different policies.
- The Theoretical Condition: They prove that if an encoder $E$ and a decoder $D$ can reconstruct the expected next raw features ($A'$) and rewards ($R$) from the current encoded features ($\Phi = AE$), then the Bellman error for the linear value function approximation will be zero.
- Linear Encoder-Decoder Model: Focusing on the linear case where $\Phi = AE$, the goal is to find an encoder matrix $E$ such that $AE D \approx [A', R]$.
- Algorithm (Linear Feature Discovery): To solve this, the authors use a coordinate descent approach. They alternatingly update the encoder $E$ and the decoder $D$ to minimize the reconstruction error (measured by the Frobenius norm).
- Regularization: They employ Truncated Singular Value Decomposition (SVD) during the pseudoinverse calculation. This discards noise and focuses on the most informative "directions" in the raw data.
Datasets
The authors evaluated their approach on two classic RL domains, intentionally modified to use high-dimensional visual inputs to test the encoder's capabilities:
- Inverted Pendulum: Instead of using the true low-dimensional state (angle and velocity), the agent was fed two successive $35 \times 52$ grayscale images, resulting in a 3,640-dimensional raw vector.
- Blackjack: The 203 possible states were rendered using three concatenated MNIST digits. For example, a hand totaling 16 versus a dealer's 2 might be rendered as the images for "1", "6", and "2". This resulted in a 2,352-dimensional raw vector.
Key Insights
- Prediction is the Key: The core insight is that features must be "predictively optimal." If you can predict the future (the next state and reward) from your compressed features, you inherently have enough information to calculate the value of the current state.
- The Non-Linear Surprise: Interestingly, the authors provide a negative result (Theorem 8). They show that while a linear encoder that predicts the next state is sufficient for a linear value function, the same isn't automatically true for a non-linear encoder. This suggests that the success of deep RL relies on additional properties (like invariant subspaces) beyond just state prediction.
- SVD as a Feature Selector: By using truncated SVD, the algorithm automatically performs a form of "denoising." In the Blackjack task, this allowed the linear encoder to outperform the "gold standard" indicator features when training data was scarce by effectively managing the bias-variance tradeoff.
Key Results
Empirical evaluations demonstrated the strength of the linear feature encoding approach, particularly when dealing with raw image pixels.
- Performance on Images: In the Inverted Pendulum task, the linear encoder achieved a higher probability of success and more balancing steps than Radial Basis Functions (RBFs). This is notable because the RBFs had direct access to the underlying low-dimensional state (angle/velocity), while the encoder only saw raw pixels.
- Robustness: In the Blackjack/MNIST task, the proposed encoder was significantly more robust to noise than standard techniques like Random Projections.
- Efficiency: Despite dealing with thousands of dimensions, the coordinate descent algorithm was highly efficient, taking less than 30 minutes to run on a standard CPU for the test problems.
Limitations and Future Work
The most powerful theoretical guarantees in the paper apply specifically to linear encoders. While the authors discuss non-linear encoders (like those used in Deep RL), they show that simply predicting the next state is not a sufficient condition for them to work perfectly with a linear head. Furthermore, while the coordinate descent/SVD approach worked well for MNIST-sized images, scaling it to modern, high-resolution 3D environments might encounter computational bottlenecks.
Future work should focus on identifying the additional conditions needed to make the theory of predictive optimality hold for non-linear encoders, paving the way for a deeper theoretical understanding of deep reinforcement learning architectures.
Summary updated