Abstract
We present an efficient algorithm for model-free episodic reinforcement learning on large (potentially continuous) state-action spaces. Our algorithm is based on a novel $Q$-learning policy with adaptive data-driven discretization. The central idea is to maintain a finer partition of the state-action space in regions which are frequently visited in historical trajectories, and have higher payoff estimates. We demonstrate how our adaptive partitions take advantage of the shape of the optimal $Q$-function and the joint space, without sacrificing the worst-case performance. In particular, we recover the regret guarantees of prior algorithms for continuous state-action spaces, which additionally require either an optimal discretization as input, and/or access to a simulation oracle. Moreover, experiments demonstrate how our algorithm automatically adapts to the underlying structure of the problem, resulting in much better performance compared both to heuristics and $Q$-learning with uniform discretization.
Introduction
Reinforcement Learning (RL) has achieved significant success in discrete domains such as Go or Chess. However, real-world applications often involve continuous state-action spaces—for instance, a robotic arm navigating 3D coordinates. In such settings, traditional table-based Q-learning is infeasible as it is impossible to store values for an infinite number of points.
The standard approach to continuous RL is uniform discretization, where a fixed grid (an $\epsilon$-net) is overlaid on the environment. This method is often inefficient: a coarse grid lacks precision, while a fine grid leads to the "curse of dimensionality," exhausting memory and making exploration difficult. Crucially, uniform grids waste computational resources on regions that are rarely visited or where the optimal action is trivial. This paper addresses the challenge of learning an optimal discretization on the fly, balancing exploration with the refinement of high-payoff regions.
Methods: Adaptive Q-Learning
The proposed algorithm, Adaptive Q-Learning, avoids fixed grids by starting with a single large "ball" representing the entire state-action space and refining it based on agent experience.
- Selection Rule: The agent employs an Upper Confidence Bound (UCB) approach, selecting the "ball" in its current state with the highest estimated potential reward, including an uncertainty bonus.
- Refinement (The "Zooming" Step): When a specific ball is visited a sufficient number of times, the algorithm "splits" it into a finer partition.
- Data-Driven Partitioning: Splitting occurs only in regions that are frequently visited or demonstrate high payoff estimates. This results in a non-uniform partition that is fine near the optimal path and coarse in suboptimal or unreachable areas.
The algorithm is generalizable to any metric space where distances between state-action pairs can be defined. A tree-based data structure is used to manage these partitions efficiently.
Experimental Setup
The algorithm was evaluated on two canonical simulated environments designed to test spatial reasoning:
- Oil Discovery: A 1D navigation task where an agent surveys a map for hidden oil deposits, balancing movement costs against noisy rewards.
- Ambulance Relocation: A stochastic problem requiring an ambulance to position itself on a line to minimize travel distance to random service requests, testing the algorithm's ability to handle shifting distributions.
Key Results and Insights
The adaptive algorithm recovers a regret bound of $\tilde{O}(H^{5/2} K^{(d+1)/(d+2)})$, matching theoretical lower bounds for this class of problems. Beyond theoretical guarantees, empirical results show significant advantages:
- Faster Convergence: The adaptive algorithm reaches the optimal policy significantly faster than uniform $\epsilon$-net algorithms.
- Memory Efficiency: In the Oil Discovery task, the adaptive approach achieved superior rewards with a partition size of ~150, whereas a uniform grid required ~850 cells for comparable performance.
- Learning the Q-Function Shape: The algorithm naturally "contours" itself to the optimal policy. It focuses resolution on the "diagonal" of the state-action space where optimal actions lie, leaving irrelevant areas as coarse blocks.
Conclusion and Future Work
Adaptive discretization provides a model-free, computationally efficient way to handle continuous spaces without the overhead of uniform grids. While the algorithm currently assumes a known metric and Lipschitz continuity of the Q-function, future work could explore learning the metric itself or using variance-reduction techniques to further tighten the regret bounds.
Summary updated