fix(pu): stabilize MuZero RND KeyCorridor minigrid reproduction - #497
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MiniGrid-KeyCorridorS3R3-v0with the intended MuZero+SSL+RND setup, and add a separate 1M-step config with temperature/RND annealingReproduction status
This work was prompted by a community report that the checked-in config trained on Empty/DoorKey but did not reproduce the KeyCorridorS3R3 curve.
With the repaired 2M baseline, learning is no longer stalled: at 1.158M env steps, the latest collector reward was 0.661 (recent-10 mean 0.604, peak 0.832). Evaluation remained around 0.318 because only one of the three deterministic evaluation layouts was solved. The run also showed that the original temperature threshold was expressed in learner iterations and therefore kept collection temperature at 1.0 throughout this window. RND predictor error fell substantially, while batch-normalized novelty remained non-zero.
The added 1M config addresses those observations by lowering the temperature threshold, linearly annealing the intrinsic-reward coefficient to zero, using
td_steps=20, and limiting replay to 300k recent transitions. Full performance validation of that config is still pending GPU availability; this PR does not claim that the paper's ~0.8 score has already been reproduced.Tests
17 passed: RND schedule, observation preparation, MLP representation, KeyCorridor config, FlatObs space, horizon, and reward shape/dtype