Fast and Robust: Task Sampling with Posterior and Diversity Synergies for Adaptive Decision-Makers in Randomized Environments

Yun Qu, Cheems Wang, Yixiu Mao, Yiqin Lv, Xiangyang Ji

Abstract

Training robust Reinforcement Learning (RL) agents for risk-sensitive applications requires evaluating policies across vast environment distributions, often leading to prohibitive computational costs. This paper presents Posterior and Diversity Synergized Task Sampling (PDTS), an efficient framework that leverages a risk-predictive surrogate model and diversity regularization to select challenging training tasks. By addressing the "concentration issue" inherent in existing surrogate-based methods and employing posterior sampling for efficient exploration, PDTS achieves significant improvements in zero-shot and few-shot adaptation robustness across various robotics benchmarks with minimal overhead.

Introduction

In sequential decision-making paradigms like Domain Randomization (DR) and Meta-RL, the goal is to train agents capable of adapting to unseen environments. For real-world applications such as robotics or autonomous driving, average performance is insufficient; agents must avoid catastrophic failure in edge cases. Researchers often employ risk-averse optimization principles, such as Conditional Value-at-Risk (CVaR), to prioritize training on the most difficult tasks.

However, finding these "hardest" tasks is computationally expensive, requiring simulations across a massive distribution of environments. While surrogate models like Model Predictive Task Sampling (MPTS) attempt to predict task difficulty cheaply, they often suffer from a "concentration issue." When presented with a large pool of candidate tasks, these models tend to select a narrow, unrepresentative cluster of difficult tasks, leading to performance collapse. Furthermore, reliance on Upper Confidence Bound (UCB) strategies often necessitates complex hyperparameter tuning.

Methods: Posterior and Diversity Synergized Task Sampling (PDTS)

The authors frame task selection as an infinitely many-armed bandit (i-MAB) problem and introduce PDTS to overcome the limitations of previous methods. PDTS incorporates two primary innovations:

  1. Posterior Sampling for Efficiency: Unlike UCB, which requires multiple model passes to estimate uncertainty, PDTS samples predicted risk once from the surrogate model. This approach naturally balances exploration and exploitation while reducing computational overhead and hyperparameter sensitivity.
  2. Diversity Regularization: To mitigate the concentration issue, PDTS combines predicted task difficulty with a diversity penalty based on the distance between task identifiers. This allows the model to evaluate a massive "pseudo-batch" of candidate tasks (up to 64x the training batch size) and filter them into a diverse, challenging subset for RL training.
General Framework of RATS and the PDTS Method.

Key Insights and Results

The authors demonstrate that the concentration issue is a mathematically verifiable phenomenon: selecting only the top-$K$ hardest tasks from an increasing pool guarantees a collapse into a tiny, unrepresentative neighborhood. PDTS breaks this "concentration curse" through diversity regularization, allowing for effective "look-ahead" across vast task spaces.

Experimental Performance

PDTS was evaluated across various benchmarks, including MuJoCo Meta-RL, physical robotics (LunarLander, Pusher), and visual robotics (ManiSkill3). Key findings include:

  • Superior Robustness: PDTS consistently outperformed baselines like ERM and MPTS. In CVaR$_{0.9}$ scenarios, it improved performance by over 15% on most Meta-RL benchmarks.
  • Zero-Shot Transfer: On LunarLander, PDTS-trained policies showed up to 73% better performance on out-of-distribution physics parameters compared to standard ERM.
  • Training Acceleration: By focusing on diverse, difficult tasks, PDTS achieved up to 2.4x faster convergence in environments like Pusher.
  • Scalability: The method maintained high efficiency in complex vision-based tasks, requiring similar resources to non-robust training methods.
Performance collapse in Walker2dVel without diversity regularization.

Conclusion

PDTS offers a robust and efficient solution for active task sampling in randomized environments. While it relies on the accuracy of the risk-predictive surrogate model and the availability of continuous task identifiers, it significantly advances the state of risk-averse RL. Future work may involve developing more sophisticated predictive models and integrating these techniques into automated curriculum design.

Summary updated

BibTeX
@inproceedings{qu2025fast,
  author = {Yun Qu and Cheems Wang and Yixiu Mao and Yiqin Lv and Xiangyang Ji},
  title = {{Fast and Robust: Task Sampling with Posterior and Diversity Synergies for Adaptive Decision-Makers in Randomized Environments}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=5UzT2VfPws},
}
Figure