Provably efficient representation selection in Low-rank Markov Decision Processes: from online to offline RL

Weitong Zhang, Jiafan He, Dongruo Zhou, Amy Zhang, Quanquan Gu

Abstract

The success of deep reinforcement learning (DRL) lies in its ability to learn a representation that is well-suited for the exploration and exploitation task. To understand how the choice of representation can improve the efficiency of reinforcement learning (RL), we study representation selection for a class of low-rank Markov Decision Processes (MDPs) where the transition kernel can be represented in a bilinear form. We propose an efficient algorithm, called ReLEX, for representation learning in both online and offline RL. Specifically, we show that the online version of ReLEX, called ReLEX-UCB, always performs no worse than the state-of-the-art algorithm without representation selection, and achieves a strictly better constant regret if the representation function class has a "coverage" property over the entire state-action space. For the offline counterpart, ReLEX-LCB, we show that the algorithm can find the optimal policy if the representation class can cover the state-action space and achieves gap-dependent sample complexity. This is the first result with constant sample complexity for representation learning in offline RL.

The Challenge of Representation Selection

In modern deep RL, neural networks are typically tasked with extracting features or representations from complex environments. In real-world scenarios like robotics, an agent might have access to multiple sensors—such as cameras, LIDAR, and accelerometers—each providing a distinct representation of the same state.

While traditional research focuses on learning a single "correct" representation that works universally, this paper addresses Representation Selection. The accuracy and robustness of different representations often vary across the state-action space; for instance, a camera may be highly effective in well-lit areas but fail in the dark, where an ultrasonic sensor excels. The authors investigate whether sample efficiency can be improved by adaptively selecting the best representation for specific scenarios rather than forcing a one-size-fits-all approach.

The ReLEX Framework

The authors focus on Bilinear MDPs, a class of low-rank Markov Decision Processes where transition dynamics decompose into a bilinear form of features. They propose two versions of their algorithm:

  1. ReLEX-UCB (Online): Utilizing the "Optimism in the Face of Uncertainty" principle, this version calculates an optimistic Q-value (upper confidence bound) for every representation in a candidate set. It selects the representation yielding the smallest optimistic estimate, providing the tightest possible bound on the true value function and effectively picking the representation with the least uncertainty.
  2. ReLEX-LCB (Offline): In the offline setting (learning from a fixed dataset), the algorithm employs a "Pessimism" approach. It calculates lower confidence bounds and selects the representation yielding the largest pessimistic estimate, ensuring robust decision-making given the available data.

Unlike previous methods seeking a universal representation, ReLEX allows the agent to switch representations "on the fly." This enables success even if every individual representation in the pool is imperfect, provided their union provides sufficient coverage.

Empirical Results

The paper validates these theoretical claims using synthetic environments consisting of a discrete MDP with 20 states, 3 actions, and a feature dimension of 5. They compared an "oracle" representation against two imperfect representations ($ϕ^{(1)}$ and $ϕ^{(2)}$) that only satisfy coverage requirements when combined.

Online Performance

In simulations, ReLEX-UCB significantly outperformed UC-MatrixRL (a state-of-the-art algorithm for bilinear MDPs) when using imperfect representations. While standard algorithms struggled with the "holes" in individual representations, ReLEX-UCB successfully switched between them to achieve much lower cumulative regret.

Cumulative regret comparison in the online setting. ReLEX-UCB with the union of representations significantly outperforms standard algorithms using single imperfect representations.

Offline Performance

In the offline setting, ReLEX-LCB using a union of two imperfect representations nearly matched the performance of the Oracle algorithm. Using either imperfect representation in isolation resulted in nearly triple the sub-optimality error, demonstrating the power of the "stitching" approach.

Final sub-optimality in the offline setting. The union of imperfect representations achieves performance comparable to the oracle.

Key Insights and Theoretical Significance

  • Constant Regret: Most RL algorithms exhibit regret that grows indefinitely with time. This work proves that if a representation class has a "coverage" property over the optimal policy, the regret eventually hits a ceiling and stops growing entirely.
  • Relaxed Assumptions: Traditional theory requires a single representation to cover the entire state-action space. ReLEX relaxes this, requiring only that for any given state-action pair, at least one representation in the library is sufficient.
  • Constant Sample Complexity: This is the first work to establish constant sample complexity for representation learning in offline RL, meaning an agent can find the optimal policy using a fixed number of samples regardless of additional data collection.

Limitations and Future Work

While the current theory handles a finite set of candidate representations within Bilinear/Low-rank MDPs, practical implementation for massive neural network ensembles remains a challenge. Future directions include combining ReLEX with representation learning algorithms (like FLAMBE), where an agent learns a library of representations and then uses ReLEX to select the optimal one for specific tasks.

Summary updated

BibTeX
@inproceedings{zhang2023provably,
  author = {Weitong Zhang and Jiafan He and Dongruo Zhou and Amy Zhang and Quanquan Gu},
  title = {{Provably efficient representation selection in Low-rank Markov Decision Processes: from online to offline RL}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=Zibg0Y4Udd},
}
Figure