Learning Intractable Multimodal Policies with Reparameterization and Diversity Regularization

Ziqi Wang, Jiashun Liu, Ling Pan

In the world of continuous deep reinforcement learning (RL), most agents are "one-track minded." Whether they are walking a robot or playing a game, they typically use unimodal Gaussian policies—essentially, they pick one "best" action and add a little bit of noise around it. But what happens when there are two equally good paths to a goal, and one of them suddenly gets blocked? A standard agent often fails catastrophically because it never learned the alternative.

A new paper from researchers at the Hong Kong University of Science and Technology, titled "Learning Intractable Multimodal Policies with Reparameterization and Diversity Regularization," introduces a framework called DrAC (Diversity-regularized Actor-Critic) to solve this. It allows agents to learn complex, multi-option strategies without the mathematical bottlenecks that usually accompany them.

TL;DR

DrAC enables the training of "intractable" multimodal actors (like diffusion models or amortized actors) by using a clever reparameterization trick and a distance-based diversity rule that doesn't require calculating exact probabilities. The result is a set of agents that are not only high-performing but also remarkably robust when their environment changes unexpectedly.

What Problem Does This Paper Address?

Traditional RL agents struggle in "diversity-critical" scenarios. If you're generating a level for a video game or navigating a maze with multiple exits, you want an agent that can explore and master all valid options, not just converge to a single average path.

Training environment and test scenarios demonstrating the need for multimodal policies.

While "multimodal" actors like diffusion models or amortized actors can represent these complex choices, they are "intractable"—meaning we can't easily calculate the exact probability density of any given action. This is a dealbreaker for standard diversity techniques like Maximum Entropy RL, which rely heavily on knowing those exact probabilities to push the agent toward diverse behavior. Existing workarounds often sacrifice the agent's expressivity or become computationally bloated.

Methods

The authors propose a two-pronged solution to balance performance, decision diversity, and efficiency:

The DrAC framework mapping latent noise to actions, optimized by return and diversity gradients.
  1. Unified Stochastic-Mapping Actors: They show that complex actors can be viewed within a single framework: a mapping function that takes a state and some latent noise to produce an action. They prove that these can be optimized directly via Policy Gradient via Reparameterization (PGRT). This bypasses the need to know the probability density of an action; you just need to be able to backpropagate through the mapping function.
  2. Distance-Based Diversity Regularization: Since they can't use entropy, they use distance. Specifically, they regularize the agent using the log-distance between pairs of sampled actions. By maximizing the geometric mean of these distances, they force the agent to spread its "modes" apart, as visualized by the diversity gradients in the Q-landscape.
  3. Automatic Tuning: Similar to the popular Soft Actor-Critic (SAC) algorithm, DrAC automatically adjusts the weight of the diversity term to hit a specific "target diversity," making it easier to tune across different tasks.

Datasets

The researchers evaluated DrAC across three distinct domains:

  • Multi-goal PointMaze: A custom version of the D4RL benchmark where an agent must reach multiple goals in a maze. This specifically tests if the agent can learn to visit all goals rather than just the closest one.
  • Generative RL: Creating game levels (MarioPuzzle and MultiFacet styles). Here, the goal is to produce levels that are both playable (high quality) and varied (high diversity).
  • MuJoCo Benchmarks: Standard locomotion tasks (like Ant and HalfCheetah) to ensure the algorithm still performs well on classic continuous control problems.

Key Insights and Ideas

  • Amortized Actors are the "Secret Sauce": One of the most surprising findings is that amortized actors (which map noise to actions in a single neural network pass) are often superior to diffusion actors. They are faster to train, faster to run, and in many cases, more expressive for RL tasks.
  • Diversity Equals Robustness: The paper demonstrates a "few-shot robustness" effect. When the researchers removed half the goals or added new obstacles to the maze after training, DrAC agents survived because they had already learned alternative routes. Unimodal agents, having only learned one path, failed immediately.
  • Geometric Mean > Arithmetic Mean: When measuring diversity, simply averaging the distance between actions can be misleading if a few actions are extreme outliers. Using the log-scale (geometric mean) makes the optimizer sensitive to actions that are too close together, effectively "pushing" them apart to create distinct behavioral modes.

Key Results

  • Superior Multimodality: In the PointMaze task, the amortized version of DrAC (DrAmort) learned to reach the highest number of unique goals and did so faster than baselines.
  • Generative Excellence: In game level generation, DrAmort dominated the "Hypervolume" metric, which balances the quality of the levels with their variety.
  • Efficiency: DrAmort was found to be even faster than SAC in some locomotion tasks because it avoids certain sequential tensor operations required for calculating log-probabilities.
  • Competitive Performance: On standard MuJoCo tasks, DrAC remained competitive with state-of-the-art unimodal algorithms, proving that you don't have to sacrifice raw performance to gain diversity.

Limitations and Future Work

While DrAC is a powerful baseline, the authors note a few areas for growth. Interestingly, the diffusion-based version of their algorithm didn't always outperform the simpler amortized version, suggesting diffusion actors might need more specialized architectures or hyperparameter tuning to shine in online RL. Furthermore, while it works well on vector-based states, scaling DrAC to high-dimensional visual inputs (like pixels) remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{wang2025learning,
  author = {Ziqi Wang and Jiashun Liu and Ling Pan},
  title = {{Learning Intractable Multimodal Policies with Reparameterization and Diversity Regularization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=b4pEeU44AB},
}
Figure