Skip to content

Latest commit

 

History

53 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emergence of Exploration in Policy Gradient Reinforcement Learning via Retrying

Soichiro Nishimori, Paavo Parmas, Sotetsu Koyamada, Tadashi Kozuno, Toshinori Kitamura, Shin Ishii, Yutaka Matsuo

arXiv

This is the official implementation of the paper Emergence of Exploration in Policy Gradient Reinforcement Learning via Retrying.

ReMax objective

We argue that exploration matters because we are $\color{#C44E52}{\text{uncertain}}$ about the return and are allowed to $\color{#4678C8}{\textbf{retry}}$.

  • If no $\color{#C44E52}{\text{uncertainty}}$, the problem would reduce to pure optimization.
  • If no chance to $\color{#4678C8}{\textbf{retry}}$, only rational action is the current best.

We turn this intuition into an objective for RL, ReMax, where we assume $\color{#C44E52}{\text{distribution over the return}}$ and measure the $\color{#4678C8}{\textbf{best of M retries}}$.

Contents

Especially, all RL codes are implemented as single-file JAX, easy to understand and modify and fast. Our method, ReMax PPO (RePPO) is implemented with the file name reppo.py at each environment directory.

Setup

Please make sure you have installed proper GPU compatible JAX in your environment.

uv sync

For Atari, for the compatibility to the envpool, we recommend to build the docker image with agents/atari/Dockerfile.

Reproduce the results in the paper

Bandit Experiments

In bandit/, we implement the bandit experiments in the paper.

python plot_binary_bandit.py  # Binary bandit plot (Figure 1 (left))
python plot_scaled_bernoulli_bandit.py  # Bernoulli bandit plot (Figure 1 (center))
python plot_fixed_binary_bandit.py  # Fixed binary bandit plot (Figure 1 (right))

python plot_bandit_with_posterior.py --family beta  # for Beta-Bernoulli regret plot (Figure 2 (left))
python plot_bandit_with_posterior.py --family gaussian # for Gaussian-Gaussian regret plot (Figure 2 (right))

RL Experiments

In agents/, we implement the algorithms used in the paper.

At sh/, run

./run_minatar.sh  # for MinAtar
./run_atari.sh  # for Atari
./run_craftax.sh  # for Craftax

Related Work and Extensions

Contributions

See paper for full contributions.

Cite us

@inproceedings{nishimori2026emergence,
    title={Emergence of Exploration in Policy Gradient Reinforcement Learning via Retrying},
    author={Soichiro Nishimori and Paavo Parmas and Sotetsu Koyamada and Tadashi Kozuno and Toshinori Kitamura and Shin Ishii and Yutaka Matsuo},
    booktitle={Forty-third International Conference on Machine Learning},
    year={2026},
    url={https://openreview.net/forum?id=NpvBAOc87E}
}

About

[ICML2026] Official JAX code for Emergence of Exploration in Policy Gradient Reinforcement Learning via Retrying

Topics

Resources

Stars

17 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages