Official code for the paper accepted at the Reinforcement Learning Conference (RLC), 2026.
Alex Davey, Alena Shilova, Brahim Driss, Riad Akrour
Paper: RLC (coming soon) | arXiv
StaQ is a finite-memory approach to Policy Mirror Descent (PMD) for discrete action spaces. It retains the last
Create a Python 3.10 Conda environment and install the project dependencies:
conda create -n staq python=3.10
conda activate staq
pip install -r requirements.txtThe run/ directory contains the configurations used for the paper. Each command below takes an environment and seed. For example:
# Classic control
run/staq_classic.sh CartPole-v1 12345
# MinAtar
run/staq_minatar.sh MinAtar/Asterix-v1 12345These paper scripts run for 5M timesteps. The StaQ memory size --memory-size and defaults to
CartPole-v1
Acrobot-v1
LunarLander-v2
MountainCar-v0
MinAtar/Asterix-v1
MinAtar/Breakout-v1
MinAtar/Freeway-v1
MinAtar/Seaquest-v1
MinAtar/SpaceInvaders-v1
To cite the paper and/or this repository:
@inproceedings{davey2026staq,
title = {StaQ: a Finite Memory Approach to Discrete Action Policy Mirror Descent},
author = {Alex Davey and Alena Shilova and Brahim Driss and Riad Akrour},
booktitle = {Proceedings of the Reinforcement Learning Conference (RLC)},
year = {2026}
}