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

Multitask Soft Option Learning

Maximilian Igl, Andrew Gambardella, Jinke He, Nantas Nardelli, N. Siddharth, Wendelin Boehmer, Shimon Whiteson

Abstract

We present Multitask Soft Option Learning (MSOL), a hierarchical multitask framework based on Planning as Inference. MSOL extends the concept of options by using separate variational posteriors for each task, regularized by a shared global prior. This "soft" approach allows individual tasks to deviate from shared skills during training, effectively avoiding the local optima traps common in hard-coded hierarchies. Our results demonstrate that MSOL enables the autonomous discovery of reusable, temporally extended skills and achieves superior transfer performance across diverse environments.

The Challenge: The Local Optimum Trap in Hierarchical RL

Hierarchical Reinforcement Learning (HRL) aims to solve complex tasks by decomposing them into "options"—sub-routines or reusable skills. While promising, training these hierarchies in multitask settings often fails due to what we term the Local Optimum Trap.

In traditional "hard" HRL, multiple tasks share identical sub-policies. If two options initially learn the same simple skill (e.g., moving left), a master policy may become dependent on both. If one option then attempts to learn a more complex, task-relevant skill (e.g., moving right), the immediate performance drop in tasks relying on that option creates a negative gradient. This optimization pressure prevents the agent from discovering more sophisticated behaviors, leaving it stuck with redundant, suboptimal skills.

Visualizing the Local Optimum Trap: Hard options (a) get stuck in redundant configurations, while Soft options (b) allow for task-specific exploration that eventually pulls the global prior (c) toward optimal, distinct skills.

Multitask Soft Option Learning (MSOL)

MSOL addresses this by framing Reinforcement Learning as a variational inference problem (Planning as Inference). Instead of forcing all tasks to use a single rigid policy for each option, MSOL maintains task-specific posteriors ($q$) regularized against a shared global prior ($p$) via Kullback-Leibler (KL) divergence.

Hierarchical Architecture

The MSOL framework consists of three primary learned components:

  1. Master Policy ($q^T$): Selects which option to execute based on the current task and state.
  2. Intra-option Policy ($q^L$): Determines primitive actions. Crucially, this policy is task-agnostic, forcing it to learn general-purpose skills.
  3. Termination Policy ($q^H$): Decides when to end an option and return control to the master policy.
The MSOL architecture showing the hierarchical flow for two tasks. Task-specific posteriors (left and right) are regularized by shared priors (center) for the master policy, termination, and intra-option skills.

By allowing task-specific "drift" through the soft posterior, MSOL provides a smoother optimization landscape. Individual tasks can experiment with skill variations without immediately degrading performance for other tasks, eventually pulling the global prior toward better, more distinct behaviors.

Experimental Evaluation

We evaluated MSOL across several challenging domains:

  • Moving Bandits: Designed to trigger the local optimum trap. While hard-option baselines like MLSH often failed to distinguish between targets, MSOL consistently discovered optimal, distinct skills.
  • Taxi & Directional Taxi: MSOL demonstrated superior performance in these classic benchmarks, particularly in "Directional Taxi" where orientation makes consistent behavior harder to maintain without a true hierarchy.
  • Out-of-Distribution Adaptation: MSOL showed significantly faster adaptation when fine-tuning on new tasks compared to flat transfer-learning baselines like DISTRAL.

Key Insights

  • Flexibility Enhances Stability: The "soft" regularization allows for a more robust training process where global skills evolve through the collective experience of task-specific variations.
  • Information Asymmetry: Restricting the intra-option policy's access to task-specific goals ensures that learned skills remain general and reusable.
  • Autonomous Temporal Abstraction: By penalizing frequent option switching through the termination prior, MSOL naturally learns skills that persist over meaningful time horizons.

Conclusion and Future Work

MSOL provides a robust framework for learning hierarchical skills in multitask environments. By replacing rigid "hard" options with regularized "soft" ones, it overcomes fundamental optimization hurdles in HRL. Future work will explore scaling MSOL to high-dimensional continuous control tasks and investigating learned priors for the master policy to further accelerate complex task acquisition.

Summary updated

BibTeX
@inproceedings{igl2020multitask,
  author = {Maximilian Igl and Andrew Gambardella and Jinke He and Nantas Nardelli and N. Siddharth and Wendelin Boehmer and Shimon Whiteson},
  title = {{Multitask Soft Option Learning}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2020},
  url = {https://openreview.net/forum?id=FGgn84yflYQ},
}
Figure