Abstract
Approximate Policy Iteration (API) often relies on extensive simulations to evaluate policies, leading to high computational costs. This paper introduces Rollout Sampling Approximate Policy Iteration (RSPI), a framework that treats state selection for policy evaluation as a multi-armed bandit problem. By adaptively allocating simulation resources to states with high uncertainty or potential, RSPI significantly reduces sample complexity. Experiments on classic control tasks demonstrate that RSPI can achieve a 10-fold reduction in rollouts compared to uniform sampling methods while maintaining high policy quality.
Introduction
In Reinforcement Learning (RL), Rollout Classification Policy Iteration (RCPI) frames policy improvement as a supervised classification task. It uses "rollouts"—simulated trajectories from a given state—to identify the optimal action, which then serves as a label for training a classifier. However, traditional RCPI is computationally expensive because it allocates a fixed, large number of rollouts to every state in the training set, regardless of the difficulty in distinguishing between actions. This "naïve" allocation leads to wasted resources on states where the best action is obvious or where actions are nearly identical in value.
Methodology
The core innovation of RSPI is the application of bandit-inspired heuristics to manage simulation resources. The authors propose viewing the collection of training states as a multi-armed bandit problem where each state is a "lever" that can be "pulled" (simulated) to gain information.
Adaptive State Selection
RSPI employs several selection rules to prioritize states:
- COUNT: A baseline that prioritizes states with the fewest samples.
- SUCB1/SUCB2: Based on Upper Confidence Bounds, these rules prioritize states where the empirical gap between actions is large but uncertainty remains high.
- SUCCE: A successive elimination strategy that discards states where actions appear indifferent, focusing resources elsewhere.
Early Stopping and Dynamic Pooling
To further optimize efficiency, RSPI utilizes Hoeffding bounds to implement early stopping. Sampling for a specific state ceases once the empirical difference between the best action and others is statistically significant at a confidence level $1-\delta$. Once a state is labeled, it is moved to the training set and replaced in the active pool by a new state drawn from the state space, ensuring continuous exploration.
Experimental Evaluation
The framework was tested on two standard RL benchmarks:
- Inverted Pendulum: A balancing task made more difficult with stochastic action noise.
- Mountain-Car: A sparse-reward task requiring the agent to build momentum to reach a goal.
The performance of RSPI variants was compared against the standard RCPI baseline, focusing on the number of samples required to reach a target success rate.
Results and Discussion
The experimental results highlight a dramatic improvement in efficiency. In the Inverted Pendulum domain, RSPI variants—most notably SUCB1—produced optimal policies using approximately 10% of the samples required by RCPI. SUCB1 consistently outperformed other selection rules; for instance, at a fixed budget of 4,000 samples, it was six times more likely to have converged to a successful policy than the baseline.
Crucially, this reduction in sample complexity did not come at the cost of policy quality. The "smoothing" effect of the underlying classifier (a Multi-Layer Perceptron) helped mitigate occasional labeling errors from the bandit selection process, resulting in policies that were practically indistinguishable from those trained with full sampling.
Conclusion and Future Work
RSPI demonstrates that intelligent resource allocation can drastically lower the barrier to entry for rollout-based policy iteration. While the current implementation shows promise in low-dimensional control tasks, future work will focus on scaling these bandit-style strategies to high-dimensional state spaces and refining hyperparameter selection. Additionally, extending the adaptive logic to the action level within each state could yield further efficiency gains.
Summary updated