Abstract: Policy optimization in unknown, sparse-reward environments with expensive and limited interactions is challenging, and poses a need for effective exploration. Motivated by complex navigation tasks that require real-world training (when cheap simulators are not available), we consider an agent that faces an unknown distribution of environments and must decide on an exploration strategy, through a series of training environments, that can benefit policy learning in a test environment drawn from the environment distribution. Most existing approaches focus on fixed exploration strategies, while the few that view exploration as a meta-optimization problem tend to ignore the need for cost-efficient exploration. We propose a cost-aware Bayesian optimization approach that efficiently searches over a class of dynamic subgoal-based exploration strategies. The algorithm adjusts a variety of levers -- the locations of the subgoals, the length of each episode, and the number of replications per trial -- in order to overcome the challenges of sparse rewards, expensive interactions, and noise. Our experimental evaluation demonstrates that, when averaged across problem domains, the proposed algorithm outperforms the meta-learning algorithm MAML by 19%, the hyperparameter tuning method Hyperband by 23%, BO techniques EI and LCB by 24% and 22%, respectively. We also provide a theoretical foundation and prove that the method asymptotically identifies a near-optimal subgoal design from the search space.
1. Introduction
Reinforcement learning (RL) agents often struggle in environments where rewards are sparse. In such scenarios, an agent may explore randomly for extended periods without ever encountering a reward signal, leading to failure in learning effective policies. This challenge is compounded in real-world applications, such as robotics, where interactions are expensive in terms of time, energy, and hardware wear.
This paper introduces Bayesian Exploratory Subgoal Design (BESD), a framework designed to automate the discovery of intermediate subgoals. By treating exploration as a meta-optimization problem, BESD identifies strategies that guide agents toward goals efficiently while minimizing the total cost of training interactions.
2. Methodology: The BESD Framework
BESD operates as a two-level optimization process. At the lower level, a standard RL agent (such as a Q-learning agent) functions within an environment augmented by subgoals. Reaching these subgoals provides the agent with intrinsic rewards via potential-based reward shaping, maintaining motivation throughout the task.
At the upper level, a Bayesian Optimization (BO) loop searches for the optimal configuration of these subgoals. A key innovation of BESD is its cost-aware acquisition function. Unlike traditional BO, which focuses solely on performance, BESD optimizes the "gain in performance per unit of effort." It dynamically adjusts the episode length ($\tau$) and the number of replications ($q$) per trial. This allows the system to utilize short, noisy trials early in the search to prune poor designs, reserving expensive, high-fidelity trials for the most promising candidates.
3. Key Insights
The effectiveness of BESD stems from several core design choices:
- Learning Curve Surrogates: The framework employs a Gaussian Process (GP) to model performance as a function of both subgoal design and training time, allowing it to predict future performance gains.
- Dimensionality Reduction: By focusing on the spatial coordinates of subgoals rather than the entire policy space, BESD leverages the strengths of BO in low-to-medium dimensional spaces.
- Theoretical Guarantees: The authors provide proofs showing that BESD is asymptotically optimal, ensuring it will eventually identify the best subgoal design within the defined search space.
4. Experimental Evaluation
The authors tested BESD across various challenging domains, including Windy Gridworlds (GW10 & GW20), Mountain Car, and complex Key-Door tasks. In the Key-Door environments, the agent must locate a key in a variable position before a door can be opened. BESD successfully learned to place subgoals near likely key locations, demonstrating an "intelligent" exploration strategy.
Quantitatively, BESD showed significant efficiency gains, enabling test-time learning that was 3x to 20x faster than learning from scratch. Averaged across domains, the algorithm outperformed:
- MAML (Meta-Learning) by 19%
- Hyperband (Hyperparameter Tuning) by 23%
- Standard BO (EI and LCB) by 24% and 22%, respectively.
5. Conclusion and Future Directions
BESD provides a robust, sample-efficient method for designing exploration strategies in sparse-reward settings. While the current implementation uses a discretized search space and a fixed number of subgoals, future work could extend the framework to continuous control tasks and dynamic subgoal counts. Additionally, incorporating task-specific identifiers could allow the agent to specialize its exploration strategy for specific environment instances within a distribution.
Summary updated