NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sample Efficient Myopic Exploration Through Multitask Reinforcement Learning with Diverse Tasks

Ziping Xu, Zifan Xu, Runxuan Jiang, Peter Stone, Ambuj Tewari

Introduction

In Reinforcement Learning (RL), the challenge of exploration—discovering rewards in unknown environments—remains a central hurdle. While "strategic" exploration algorithms, such as those based on the principle of "Optimism in the Face of Uncertainty," offer theoretical guarantees of efficiency, they are often computationally intractable in complex, high-dimensional spaces. Conversely, "myopic" strategies like $\epsilon$-greedy are computationally simple and widely used in practice, yet they are theoretically inefficient, often requiring exponential time to solve tasks where rewards are sparse or distant.

This paper bridges this gap by demonstrating that myopic exploration can be made sample-efficient through the lens of Multitask Reinforcement Learning (MTRL). The authors provide the first theoretical proof that if an agent is trained on a sufficiently diverse set of tasks, simple exploration strategies can achieve polynomial sample complexity. By sharing policies across tasks, the agent effectively uses the optimal behavior from one task as a "stepping stone" to explore others.

The Myopic Exploration Challenge

Standard myopic exploration involves an agent following its current best policy while occasionally taking random actions. In environments like a "long hallway" where the goal is at the far end, the probability of a random walk reaching the goal decreases exponentially with the distance. This is known as the "Myopic Exploration Gap" (MEG). While strategic exploration solves this by systematically visiting under-explored states, these methods often require solving complex non-convex optimization problems that are difficult to scale.

Proposed Method: Policy-Sharing MTRL

The authors introduce a generic MTRL algorithm centered on the concept of Policy-Sharing. Unlike traditional multitask approaches that focus on parameter sharing (e.g., shared neural network layers), this framework focuses on sharing the behavioral knowledge across the task distribution.

The Mixture Policy

The core of the algorithm is the use of a Mixture Policy during data collection. To explore a target Task A, the agent does not rely solely on Task A's current policy. Instead, it employs a random mixture of the current best policies for all tasks in its repertoire. This ensures that if any task in the set has already "covered" a specific region of the state space, that knowledge is immediately available to help explore Task A.

The Diversity Condition

The success of this approach hinges on the diversity of the task set. The authors extend the MEG framework to the multitask setting, proving that if the tasks collectively cover the state or feature space—a condition termed $(\tilde{\alpha}, \tilde{c})$-diversity—the exploration gap remains large enough to guarantee that the agent will find near-optimal policies in a polynomial number of steps relative to the horizon and number of tasks.

Theoretical Guarantees

The paper provides rigorous proofs for several fundamental settings, including Tabular MDPs, Linear MDPs, and Linear Quadratic Regulators (LQR). The key theoretical contribution is a Polynomial Bound on sample complexity. This represents an exponential separation from single-task learning: for certain task distributions, MTRL with myopic exploration is exponentially faster than single-task learning using the same exploration strategy.

In linear settings, this diversity translates to maintaining a full-rank feature covariance matrix. If the tasks are diverse enough to push the agent into all relevant corners of the feature space, myopic exploration becomes a powerful tool rather than a liability.

Empirical Evidence: BipedalWalker

To validate the theory, the authors conducted experiments using the BipedalWalker environment, a standard continuous control benchmark. They modified the environment to create a task space defined by two parameters: stump height and stump spacing.

Key Findings:

  • Performance and Diversity: Agents trained on a "diverse" range of stump heights (1.3 to 1.6) mastered significantly more tasks (41.6) compared to those trained on ranges that were too easy (28.1) or too hard (11.5).
  • Feature Coverage: Visualization of the feature covariance confirmed that intermediate task difficulty provided the most diverse feature coverage. This aligns with the behavior of state-of-the-art Automatic Curriculum Learning (ACL) algorithms, such as ALP-GMM, which naturally select tasks at the "frontier" of an agent's capability.

Discussion and Limitations

This research shifts the focus of MTRL from statistical efficiency (learning faster due to task similarity) to exploration benefit (learning at all because tasks provide coverage). It suggests that the success of simple exploration in practice may be due to the implicit multitask nature of many real-world problems or the use of curricula.

However, several limitations remain. The theory relies on "Realizability and Completeness" assumptions, requiring the function class to be expressive enough to contain the optimal value functions. Furthermore, while the exploration is simple, the computational overhead of maintaining and sampling from a mixture of many policies may grow with the number of tasks. Future work will focus on how to automatically generate these diverse intermediate tasks when only a single, difficult target task is provided.

Summary updated

BibTeX
@inproceedings{xu2024sample,
  author = {Ziping Xu and Zifan Xu and Runxuan Jiang and Peter Stone and Ambuj Tewari},
  title = {{Sample Efficient Myopic Exploration Through Multitask Reinforcement Learning with Diverse Tasks}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=YZrg56G0JV},
}
Figure