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

A Mixture Of Surprises for Unsupervised Reinforcement Learning

Andrew Zhao, Matthieu Gaetan Lin, Yangguang Li, Yong-Jin Liu, Gao Huang

In the quest to build general-purpose AI, researchers have increasingly turned to Unsupervised Reinforcement Learning (URL). The goal is simple: let an agent play in an environment without any specific rewards so it can learn a diverse set of "skills" that can later be quickly adapted to any downstream task. But how do you motivate an agent that has no explicit goal?

Most researchers use "surprise" (entropy) as a compass. However, as a recent paper points out, the field has been stuck in a fundamental dilemma about whether to seek surprise out or try to eliminate it.

TL;DR

MOSS (Mixture Of SurpriseS) is a novel unsupervised RL framework that trains a mixture of policies to simultaneously maximize and minimize surprise. By avoiding a single-minded focus on either exploration or control, MOSS achieves state-of-the-art performance across diverse benchmarks without needing prior knowledge of the environment's complexity.

The Intrinsic Reward Dilemma

The core of the issue lies in how we define "intrinsic reward" for an unsupervised agent:

  1. Surprise Maximization: These methods reward the agent for finding new, unpredictable states. This works great for exploration in static environments but fails in "noisy" ones (often called the "noisy TV" problem). In a noisy environment, an agent might stare at a static-filled screen forever because the random noise is technically "surprising."
  2. Surprise Minimization: Inspired by the "free-energy principle," these methods reward agents for gaining control over their environment to make it more predictable. This is excellent for stabilizing complex systems but can lead to an agent that does absolutely nothing if the environment is already quiet and predictable.

Choosing between these two is a gamble. If you don't know the inherent randomness (entropy) of your environment beforehand, picking the wrong objective can lead to useless behaviors.

Methods: The MOSS Approach

Instead of picking a side, the authors propose MOSS. They leverage competence-based RL, where the agent's policy is conditioned on a "skill" vector ($z$).

The MOSS strategy uses two "toolboxes" of skills: one for maximizing surprise and one for minimizing it.

The key innovations of MOSS include:

  • Dual Skill Sets: MOSS maintains two disjoint sets of skills. One set ($Z_{max}$) is trained to maximize joint entropy (exploration), while the other ($Z_{min}$) is trained to minimize it (control).
  • Simple Heuristic: During pretraining, the agent simply alternates. For the first half of an episode, it tries to be as surprising as possible; for the second half, it tries to be as predictable as possible.
  • Contrastive Learning: It builds on the CIC (Contrastive Intrinsic Control) framework, using Noise Contrastive Estimation (NCE) to learn representations that make different skills easily distinguishable.

By training both types of behaviors in a single network, the agent learns to both explore the far reaches of its world and master the dynamics within it.

Datasets

The authors evaluated MOSS on two major benchmarks:

  • URLB (Unsupervised Reinforcement Learning Benchmark): A suite of continuous control tasks including "Walker," "Quadruped," and "Jaco" (a robotic arm).
  • ViZDoom: A pixel-based environment based on the classic game Doom. This is particularly challenging because it includes stochastic elements and external perturbations (like enemies shooting fireballs), making it a high-entropy environment.

Key Insights

  • Synergy, not Conflict: Surprisingly, maximizing surprise actually helps the agent minimize it later. By exploring widely, the agent finds more effective ways to gain control over different parts of the state space.
  • Robustness to Noise: Pure surprise-maximization methods (like the previous state-of-the-art, CIC) fall apart when random noise is added to the agent's actions. MOSS remains significantly more robust because its "minimization" skills learn to compensate for that noise.
  • Simplicity Wins: MOSS doesn't require complex adversarial games or heavy hyperparameter tuning. It uses a simple sign-flip on the reward function for the two different skill sets.

Key Results

MOSS sets a new high bar for unsupervised RL:

  • URLB Performance: MOSS outperformed all baselines, including CIC, APT, and DIAYN. It achieved a 6% increase in Interquartile Mean (IQM) and a 20% reduction in the Optimality Gap compared to the next best method.
  • Stochastic Dominance: In performance profiles, MOSS "stochastically dominates" other methods, meaning it is consistently better across almost all tasks and seeds.
  • ViZDoom Success: In the high-entropy ViZDoom maps, MOSS significantly outperformed "NegativeCIC" (a pure surprise-minimization baseline), proving its versatility.
Aggregate statistics and performance profiles show MOSS achieving the highest scores and lowest optimality gaps across the benchmark.

Limitations and Future Work

While highly effective, MOSS currently uses a deterministic switching rule (half the episode maximizing, half minimizing). The authors suggest that a "meta-controller" that dynamically decides which objective to pursue based on the current state could be even more powerful.

Additionally, the current work focuses on "competence-based" methods. Extending this "mixture of surprises" philosophy to other types of unsupervised RL, or adding more objectives like "empowerment" (the ability to reach many future states), remains an open and exciting frontier.

Summary updated

BibTeX
@inproceedings{zhao2022mixture,
  author = {Andrew Zhao and Matthieu Gaetan Lin and Yangguang Li and Yong-Jin Liu and Gao Huang},
  title = {{A Mixture Of Surprises for Unsupervised Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=RBvrEjJ_c93},
}
Figure