Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StaQ: a Finite Memory Approach to Discrete Action Policy Mirror Descent

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

Overview of the StaQ policy evaluation and stacked policy update

StaQ is a finite-memory approach to Policy Mirror Descent (PMD) for discrete action spaces. It retains the last $M$ Q-functions in a stacked neural network, giving an optimization-free policy update that retains PMD's error-averaging effect. In the paper, increasing $M$ improves performance up to a point where finite-memory StaQ closely matches exact PMD.

MinAtar learning curves comparing StaQ with M-DQN, DQN, TRPO, PPO, and NatGrad with line search

Setup

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.txt

Running Experiments

The 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 12345

These paper scripts run for 5M timesteps. The StaQ memory size $M$ is controlled by --memory-size and defaults to $M=300$. The environments benchmarked in the paper are:

CartPole-v1
Acrobot-v1
LunarLander-v2
MountainCar-v0

MinAtar/Asterix-v1
MinAtar/Breakout-v1
MinAtar/Freeway-v1
MinAtar/Seaquest-v1
MinAtar/SpaceInvaders-v1

Citations

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}
}

About

Official codebase for StaQ

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages