Low-Rank Representation of Reinforcement Learning Policies

Bogdan Mazoure, Thang Doan, Tianyu Li, Vladimir Makarenkov, Joelle Pineau, Doina Precup, Guillaume Rabusseau

Abstract

Modern Reinforcement Learning (RL) typically relies on deep neural networks to represent policies. While effective, these models are often computationally intensive, lack theoretical guarantees, and exhibit high variance. This paper introduces a framework for representing RL policies as low-rank embeddings within a Reproducing Kernel Hilbert Space (RKHS). By projecting complex policies into lower-dimensional subspaces, the authors provide strong theoretical bounds on performance while demonstrating that compressed policies can achieve greater stability and lower return variance than their original counterparts.

Introduction

In the current landscape of Reinforcement Learning, the "brain" of an agent is almost exclusively a deep neural network. Despite their success, these "black-box" models come with significant drawbacks: they are memory-heavy, offer few guarantees on final performance, and are prone to high variance during execution. A critical question arises: how can we represent a policy in a way that is both memory-efficient and theoretically sound?

The researchers address this by seeking a representation that allows for bounding the error introduced by approximation. The goal is to ensure that even when an agent's policy is significantly compressed, it remains "rational" and performs reliably.

Methodology

The proposed pipeline transforms a continuous, high-dimensional policy into a low-rank representation through four key stages:

  1. RKHS Formulation: Policy density functions are treated as points in a Reproducing Kernel Hilbert Space (RKHS). Utilizing Mercer’s Theorem, the policy is decomposed into a set of basis functions (e.g., Fourier or Wavelets) and corresponding coefficients.
  2. Quantile Discretization: To handle continuous spaces, the authors employ "quantile binning." Unlike uniform grids, this method creates bins based on the agent's state visitation frequency, ensuring higher resolution in high-probability regions.
  3. State-Space Pruning: States rarely visited by the policy are removed. This is supported by a "Pruning Error Bound" (Theorem 7), which quantifies the potential performance loss from ignoring the "long tail" of the state distribution.
  4. Low-Rank Truncation: The representation is compressed by retaining only the top $K$ basis functions. This process is analogous to JPEG image compression, where only the most significant frequencies are preserved.

The framework was tested using several projection methods, including Singular Value Decomposition (SVD), Discrete Fourier Transform (DFT), and Daubechies Wavelets (DB4).

Experimental Evaluation

The framework was evaluated across three distinct environments:

  • Bandit Turntable: A custom multi-armed bandit task in polar coordinates designed to illustrate the denoising effects of truncation.
  • Pendulum-v0 (OpenAI Gym): A standard control task requiring an agent to swing up and balance a pendulum.
  • Continuous Mountain Car (OpenAI Gym): A task where the agent must build momentum to drive a car up a steep incline.

Key Insights

Truncation as a Denoiser

A significant finding is that truncating the policy embedding serves as a form of denoising. By removing low-magnitude basis functions, the framework filters out high-frequency noise that the agent may have overfitted to during the training phase. This leads to a measurable reduction in return variance.

Efficiency and Robustness

In the Pendulum environment, the authors successfully pruned up to 98% of the parameters from the discretized policy without a substantial drop in returns. This highlights the inherent redundancy in many RL policies. Furthermore, the SVD, DFT, and DB4 projections maintained performance comparable to original neural network models while using an order of magnitude fewer parameters.

Theoretical Safety

Unlike standard deep learning approaches, this RKHS-based framework provides explicit error bounds for truncation, discretization, and pruning. Such theoretical grounding is vital for risk-sensitive applications like autonomous driving or medical robotics.

Conclusion and Future Work

This work demonstrates that RL policies can be robustly represented in low-dimensional spaces, often resulting in more stable performance. However, challenges remain. The current reliance on discretization is a computational bottleneck; future work aims to operate directly in continuous space. Additionally, while the method excels in low-dimensional control tasks, scaling to high-dimensional inputs like raw video frames will likely require integrating learned feature extractors with the RKHS embedding.

Summary updated

BibTeX
@article{mazoure2022low,
  author = {Bogdan Mazoure and Thang Doan and Tianyu Li and Vladimir Makarenkov and Joelle Pineau and Doina Precup and Guillaume Rabusseau},
  title = {{Low-Rank Representation of Reinforcement Learning Policies}},
  journal = {J. Artif. Intell. Res.},
  year = {2022},
  doi = {10.1613/jair.1.13854},
}
Figure