Skip to content
/ ETD Public

Episodic Novelty Through Temporal Distance (ICLR 2025)

License

Notifications You must be signed in to change notification settings

Jackory/ETD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This repository implements Episodic Novelty Through Temporal Distance(ETD), an exploration method for reinforcement learning that has been found to be particularly effective in Contextual MDPs(CMDP). More details can be found in the original paper(ICLR 2025 Accepted). In case you are mainly interested in the implementation of ETD, its major components can be found at src/algo/intrinsic_rewards/tdd.py. We also provide a reproduction of the temporal distance learning in maze, please refer to maze/train_cmd1.py.

Install

Basic Installation

conda create -n etd python=3.9
conda activate etd
pip install -r requirements.txt

Miniworld

git submodule init
git submodule update
cd src/env/gym_miniworld
pip install pyglet==1.5.11
pip install -e .

Usage

Reproduce Temporal Distance Learning in Maze

cd maze
python train_cmd1.py

Train ETD on MiniGrid

Run the below command in the root directory of this repository to train a ETD agent in the standard DoorKey-8x8 (MiniGrid) environment.

PYTHONPATH=./ python3 src/train.py \\
  --int_rew_source=TDD \\
  --env_source=minigrid \\
  --game_name=DoorKey-8x8 \\
  --int_rew_coef=1e-2

We also provide scripts(*.sh) to run the experiments of our method. The hyperparameter setup can be found in our paper.

About

Episodic Novelty Through Temporal Distance (ICLR 2025)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published