Representations for Stable Off-Policy Reinforcement Learning

Dibya Ghosh, Marc G. Bellemare

Introduction

Off-policy reinforcement learning (RL) is a powerful paradigm that allows agents to learn from data generated by arbitrary policies, enabling better data efficiency and exploration. However, it is notoriously susceptible to the "deadly triad": the combination of bootstrapping (updating estimates based on other estimates), function approximation (using models like neural networks), and off-policy data (learning from a distribution different from the target policy). This combination often leads to divergent value estimates, where the agent's predictions grow without bound, a phenomenon that has plagued RL research for decades.

While empirical techniques like auxiliary tasks—such as predicting future rewards or pixel changes—are frequently used in deep RL to stabilize training, the theoretical underpinnings of why certain representations promote stability have remained elusive. This work formalizes the link between state representation and the stability of temporal-difference (TD) learning, identifying specific feature constructions that mathematically guarantee convergence even in the presence of the deadly triad.

Theoretical Framework: Stability via Representation

The stability of TD(0) learning is fundamentally governed by the spectral properties of its iteration matrix. For the algorithm to converge to a fixed point, the eigenvalues of this matrix must reside in the right half-plane (i.e., have positive real parts). The authors demonstrate a surprising insight: stability is not merely a function of the information contained within a representation (the subspace it spans), but critically depends on its specific parametrization. Two sets of features can represent the exact same information, yet one can lead to stable convergence while the other causes divergence.

The paper identifies three primary classes of stable representations:

  1. Invariant Representations (Schur Basis): Derived from the Schur decomposition of the transition matrix $P^\pi$, these features span a subspace that is closed under the environment's dynamics. This invariance ensures that the bootstrapping step does not amplify errors.
  2. Approximately Invariant Representations (Krylov Basis): These features span the Krylov subspace generated by the reward function, effectively encoding the ability to predict sequences of future rewards.
  3. Positive-Definite Representations (Safe Laplacian): These utilize the eigenvectors of a symmetrized transition matrix, incorporating a thresholding mechanism to discard unstable spectral components that exceed specific bounds.
Table of representations and their corresponding mathematical decompositions.

In contrast, popular methods like Singular Value Decomposition (SVD) and Successor Representations (SR), while optimal for data compression or capturing certain structural properties, do not inherently satisfy these stability conditions. They often ignore the temporal structure of the RL problem, which can lead to instability in off-policy settings.

Experimental Evaluation

The proposed representations were evaluated in the Four-room domain, a classic 104-state gridworld benchmark. To simulate a challenging off-policy environment, data was collected using a uniform random policy, which is highly divergent from the optimal policy being evaluated. The researchers compared "exact" representations, computed via direct matrix decomposition, against representations learned by neural networks using auxiliary losses designed to mimic the theoretical bases.

Key Results

The empirical results strongly confirm the theoretical predictions. As illustrated in the performance profiles, the Schur and Krylov bases maintain stability across a wide range of feature counts. In contrast, SVD and SR frequently exhibit instability, with value estimates diverging as the number of features is adjusted.

Stability and Policy Error comparison across different representation methods in the Four-room domain.

Notably, the Schur basis achieves a policy error comparable to SVD, suggesting that stability does not necessarily require a significant sacrifice in approximation accuracy. Furthermore, the authors demonstrated the feasibility of learning these stable representations using standard deep learning tools. By training neural networks to predict future latent states—an auxiliary task that encourages invariance—the resulting features naturally inherited the stability properties of the Schur basis, showing a clear path for applying these theories to large-scale deep RL.

Discussion and Conclusion

This research provides a formal justification for the common practice of using auxiliary tasks in deep RL. Predicting future rewards or states is not just a heuristic for better feature learning; it serves as a mathematical anchor that stabilizes the bootstrapping process by forcing the network to learn the "stable" parts of the environment's transition dynamics.

However, several challenges remain. The current analysis focuses primarily on policy evaluation with a fixed policy. Extending these guarantees to the control setting, where the policy evolves during training and creates a moving target for the representation, is a critical area for future work. Additionally, there exists a fundamental three-way tradeoff between stability, approximation error, and sample complexity. While the Schur basis is highly stable and accurate, it can be more difficult to estimate from limited samples than simpler symmetric decompositions like the Laplacian.

In conclusion, by carefully designing the geometry of the feature space, it is possible to mitigate the risks of the deadly triad and ensure robust convergence in off-policy reinforcement learning.

Summary updated

BibTeX
@inproceedings{ghosh2020representations,
  author = {Dibya Ghosh and Marc G. Bellemare},
  title = {{Representations for Stable Off-Policy Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure