Stochastic Q-learning for Large Discrete Action Spaces
Fares Fourati, Vaneet Aggarwal, Mohamed-Slim Alouini
TL;DR
This work tackles the computational bottleneck of value-based RL in large discrete action spaces by introducing stochastic maximization, which searches for maxima within sublinear action subsets of size $O(\log(n))$. By replacing $\max$ and $\arg\max$ with $\text{stoch\,max}$ and $\text{stoch\,arg\,max}$, the authors develop Stochastic Q-learning, Stochastic Double Q-learning, StochDQN, and StochDDQN, with convergence guarantees and substantial wall-time speedups demonstrated in Gymnasium and MuJoCo benchmarks. They also provide a memory-based variant that improves approximation and show that a stable Q-function enables eventual convergence to the exact maximum, supported by contraction analyses. Overall, the methods deliver exponential reductions in computation with competitive or superior performance, enabling practical RL in large or unstructured action spaces and broad applicability across value-based algorithms.
Abstract
In complex environments with large discrete action spaces, effective decision-making is critical in reinforcement learning (RL). Despite the widespread use of value-based RL approaches like Q-learning, they come with a computational burden, necessitating the maximization of a value function over all actions in each iteration. This burden becomes particularly challenging when addressing large-scale problems and using deep neural networks as function approximators. In this paper, we present stochastic value-based RL approaches which, in each iteration, as opposed to optimizing over the entire set of $n$ actions, only consider a variable stochastic set of a sublinear number of actions, possibly as small as $\mathcal{O}(\log(n))$. The presented stochastic value-based RL methods include, among others, Stochastic Q-learning, StochDQN, and StochDDQN, all of which integrate this stochastic approach for both value-function updates and action selection. The theoretical convergence of Stochastic Q-learning is established, while an analysis of stochastic maximization is provided. Moreover, through empirical validation, we illustrate that the various proposed approaches outperform the baseline methods across diverse environments, including different control problems, achieving near-optimal average returns in significantly reduced time.
