Randomized Exploration for Reinforcement Learning with General Value Function Approximation

Haque Ishfaq, Qiwen Cui, Viet Nguyen, Alex Ayoub, Zhuoran Yang, Zhaoran Wang, Doina Precup, Lin YangOpenReview 2021

Abstract

We propose a model-free reinforcement learning algorithm inspired by the popular randomized least squares value iteration (RLSVI) algorithm as well as the optimism principle. Unlike existing upper-confidence-bound (UCB) based approaches, which are often computationally intractable, our algorithm drives exploration by simply perturbing the training data with judiciously chosen i.i.d. scalar noises. To attain optimistic value function estimation without resorting to a UCB-style bonus, we introduce an optimistic reward sampling procedure. When the value functions can be represented by a function class $\mathcal{F}$, our algorithm achieves a worst-case regret bound of $\widetilde{O}(\mathrm{poly}(d_EH)\sqrt{T})$ where $T$ is the time elapsed, $H$ is the planning horizon and $d_E$ is the $\textit{eluder dimension}$ of $\mathcal{F}$. In the linear setting, our algorithm reduces to LSVI-PHE, a variant of RLSVI, that enjoys an $\widetilde{\mathcal{O}}(\sqrt{d^3H^3T})$ regret. We complement the theory with an empirical evaluation across known difficult exploration tasks.

Introduction

In Reinforcement Learning (RL), agents must navigate the fundamental trade-off between exploration and exploitation. The "Optimism in the Face of Uncertainty" (OFU) principle provides a robust framework for exploration, typically implemented by adding an upper-confidence-bound (UCB) bonus to value estimates. However, calculating these bonuses is often computationally intractable for complex function approximators like neural networks, which require tracking large covariance matrices or solving complex quadratic programs.

This paper introduces LSVI-PHE (Least Squares Value Iteration with Perturbed History Exploration), a model-free algorithm that achieves efficient exploration through randomized data perturbation. By taking the maximum of several randomly perturbed value function estimates, LSVI-PHE induces optimism without explicit bonus calculations, bridging the gap between the theoretical guarantees of OFU and the practical simplicity of Thompson Sampling.

Methodology: Perturbed History Exploration

The core mechanism of LSVI-PHE involves driving exploration by injecting noise into the agent's transition history. Instead of a single value estimate, the algorithm maintains an ensemble of $M$ estimates:

  1. Data Perturbation: For each of the $M$ models, the rewards in the agent's transition history (replay buffer) are perturbed with i.i.d. Gaussian noise.
  2. Value Estimation: A standard least-squares regression (or gradient descent for neural networks) is performed on each perturbed dataset to estimate the Q-value function.
  3. Optimistic Selection: The agent selects the maximum value across these $M$ estimates: $Q_h^k(\cdot, \cdot) \leftarrow \max_{m \in [M]} \{Q_h^{k,m}(\cdot, \cdot)\}$.

Statistically, taking the maximum over multiple random perturbations ensures that the agent is likely to pick an optimistic estimate in regions with high uncertainty (low data density), effectively simulating a UCB bonus without ever needing to explicitly define a "width" or "bonus" function.

Empirical Evaluation

The authors evaluated LSVI-PHE on several challenging exploration benchmarks, including RiverSwim, DeepSea, and Sparse MountainCar.

Deep RL Scaling

In the Sparse MountainCar environment—a continuous control task where rewards are only granted upon reaching the goal—LSVI-PHE was implemented using neural networks. As shown in Figure 4, LSVI-PHE significantly outperforms standard DQN and Noisy-Nets, demonstrating that the perturbed history approach scales effectively to deep learning architectures where traditional UCB bonuses are impossible to compute.

Performance on Sparse MountainCar comparing LSVI-PHE with deep RL baselines.

Sensitivity to Perturbations

A key hyperparameter in LSVI-PHE is $M$, the number of random perturbations. Theory suggests $M$ should scale with the feature dimension. Empirical results in the DeepSea environment (Figure 3) confirm that increasing $M$ leads to faster convergence and higher returns, as a larger ensemble provides a more reliable optimistic estimate.

Sensitivity analysis of the number of perturbations M in the DeepSea environment.

Key Insights and Theoretical Results

  • Theoretical Parity: For linear models, LSVI-PHE achieves a regret bound of $\widetilde{O}(d^{3/2}H^{3/2}\sqrt{T})$. This matches the performance of the best UCB-style algorithms and beats standard Thompson Sampling approaches by a factor of $\sqrt{d}$.
  • General Function Approximation: Using the "eluder dimension" metric, the authors prove that LSVI-PHE maintains statistical efficiency for general function classes $\mathcal{F}$, making it one of the first algorithms to be both statistically and computationally efficient for general value function approximation.
  • Computational Efficiency: By replacing complex quadratic programming with standard regression, LSVI-PHE offers a practical path for implementing theoretically-grounded exploration in deep RL.

Limitations

While LSVI-PHE is powerful, it faces some practical challenges. The computational cost scales linearly with $M$, which may become a bottleneck in very high-dimensional spaces. Additionally, the algorithm requires tuning the noise variance ($\sigma$), and its theoretical guarantees rely on Bellman completeness—an assumption that is often only approximately satisfied in real-world neural network applications. Future work may explore ensemble methods or dropout to generate perturbations more efficiently.

Summary updated

BibTeX
@misc{ishfaq2021randomized,
  author = {Haque Ishfaq and Qiwen Cui and Viet Nguyen and Alex Ayoub and Zhuoran Yang and Zhaoran Wang and Doina Precup and Lin Yang},
  title = {{Randomized Exploration for Reinforcement Learning with General Value Function Approximation}},
  year = {2021},
  eprint = {2106.07841},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.07841},
  howpublished = {OpenReview},
}
Figure