Papers › A Mixture of Surprises for Unsupervised Reinforcement Learning

A Mixture of Surprises for Unsupervised Reinforcement Learning

13 Oct 2022arXiv:2210.06702archive 2025-07-28

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

Unsupervised reinforcement learning aims at learning a generalist policy in a reward-free manner for fast adaptation to downstream tasks. Most of the existing methods propose to provide an intrinsic reward based on surprise. Maximizing or minimizing surprise drives the agent to either explore or gain control over its environment. However, both strategies rely on a strong assumption: the entropy of the environment's dynamics is either high or low. This assumption may not always hold in real-world scenarios, where the entropy of the environment's dynamics may be unknown. Hence, choosing between the two objectives is a dilemma. We propose a novel yet simple mixture of policies to address this concern, allowing us to optimize an objective that simultaneously maximizes and minimizes the surprise. Concretely, we train one mixture component whose objective is to maximize the surprise and another whose objective is to minimize the surprise. Hence, our method does not make assumptions about the entropy of the environment's dynamics. We call our method a Mixture Of SurpriseS (MOSS) for unsupervised reinforcement learning. Experimental results show that our simple method achieves state-of-the-art performance on the URLB benchmark, outperforming previous pure surprise maximization-based objectives. Our code is available at: https://github.com/LeapLabTHU/MOSS.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2210.06702")

Code

Syntology Ran 1 of 12 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · honoured contract.

By repository: official repository: 12 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

leaplabthu/moss officialmentioned in papermentioned on GitHubjaxApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 1 ran; 1 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
11unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from LeapLabTHU/MOSS. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

schedule LeapLabTHU/MOSS/core/calculations/misc.py official repository ran · honoured contract Apache-2.0 (permissive) · ae234269debed3f4 · report
increment_episode LeapLabTHU/MOSS/helpers.py official repository unverified Apache-2.0 (permissive) · 6923cb7ec7ed3f3d · report
increment_step LeapLabTHU/MOSS/helpers.py official repository unverified Apache-2.0 (permissive) · 35febe40098b0a79 · report
l2_loss LeapLabTHU/MOSS/core/calculations/losses.py official repository unverified Apache-2.0 (permissive) · 5435e0ae11d6a827 · report
l2_loss_without_bias LeapLabTHU/MOSS/core/calculations/losses.py official repository unverified Apache-2.0 (permissive) · f9b1c01addee13ef · report
linear_relu LeapLabTHU/MOSS/core/calculations/layers.py official repository unverified Apache-2.0 (permissive) · 55a01c5ebe41e60c · report
mlp LeapLabTHU/MOSS/core/calculations/layers.py official repository unverified Apache-2.0 (permissive) · 8f66a508eba0c6bc · report
random_flip LeapLabTHU/MOSS/core/calculations/augmentations.py official repository unverified Apache-2.0 (permissive) · 694ec6f6ee783784 · report
random_shift_aug LeapLabTHU/MOSS/core/calculations/augmentations.py official repository unverified Apache-2.0 (permissive) · 9953da0307ba0153 · report
reset_episode LeapLabTHU/MOSS/helpers.py official repository unverified Apache-2.0 (permissive) · 1484fd6608b194fc · report
running_stats LeapLabTHU/MOSS/core/calculations/losses.py official repository unverified Apache-2.0 (permissive) · c68193d3061f96e9 · report
trunk LeapLabTHU/MOSS/core/calculations/layers.py official repository unverified Apache-2.0 (permissive) · 69f4a94c5240be35 · report

Tasks

Reinforcement LearningReinforcement Learning (RL)Unsupervised Reinforcement Learningreinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections