← Back to research & notes

EXPERIMENT REPORT / REINFORCEMENT LEARNING · OCT–DEC 2025

Can curiosity make
a better agent?

PPO vs. PPO+RND on pixel-based Minesweeper (6×6 board, 6 mines), with invalid-action masking and shaped rewards.

PPORandom Network DistillationPyTorchExploration
PPO+RND win rate at ~100k steps
5.0%
Plain PPO’s best, at ~800k steps
3.2%
fewer steps to beat PPO’s best
8×
evaluation seeds × 10k steps
2

Goal: learn to solve 6×6 Minesweeper with 6 mines from raw pixels using PPO, and measure the impact of Random Network Distillation (RND) as an intrinsic exploration bonus.

Result: across matched evaluations, PPO+RND achieved higher win rates and better average rewards than PPO-only at comparable or fewer environment steps. RND improved early sample-efficiency and kept its lead at ~1.1M steps.

ENVIRONMENT

Environment and observation.

ALGORITHMS

Two agents, one difference.

Training setup

Evaluation protocol

RESULTS

Latest evaluation.

PPO-only checkpoints

StepsWin rateAvg. reward
~400k0.012−1.10
~800k0.0321.16
~1.0M0.017−0.55

PPO+RND checkpoints

StepsWin rateAvg. reward
~100k0.0503.17
~800k0.0432.45
~1.1M0.0493.26

Best checkpoint per agent in bold. RND reaches a win rate of ≈0.05 at 100k steps; PPO-only peaks at ≈0.032 at 800k. At ~1.1M steps, RND still leads (0.049 vs. PPO’s best of 0.032 in this run).

ANALYSIS

What the numbers say.

Qualitative behavior

RND policies open larger zero-regions early and use the mask to avoid futile clicks; PPO-only learns similar behavior later.

Next runs

Limitations and future work

REPRODUCE

Run it yourself.

  1. Train (optional): ppo_rnd_minesweeper_colab.ipynb for PPO+RND and ppo_only_minesweeper_colab.ipynb for the baseline. Both also run locally.
  2. Compare: compare_ppo_vs_rnd_colab.ipynb scans the ppo_only_minesweeper/ and ppo_rnd_minesweeper/ checkpoint folders, evaluates them with shared settings, and plots win rate against steps.
  3. Watch a rollout: make_rollout_gif.py exports short clips of a trained agent.

Keep reading

The theory behind this experiment: policy-gradient methods, PPO’s clipped objective, and the Bellman equations that value functions are built on.