Papers › Transformers as Policies for Variable Action Environments

Transformers as Policies for Variable Action Environments

9 Jan 2023arXiv:2301.03679archive 2025-07-28

Niklas Zwingenberger

In this project we demonstrate the effectiveness of the transformer encoder as a viable architecture for policies in variable action environments. Using it, we train an agent using Proximal Policy Optimisation (PPO) on multiple maps against scripted opponents in the Gym-μRTS environment. The final agent is able to achieve a higher return using half the computational resources of the next-best RL agent, which used the GridNet architecture. The source code and pre-trained models are available here: https://github.com/NiklasZ/transformers-for-variable-action-envs

PaperPDFCode

Code

niklasz/transformers-for-variable-action-envs officialmentioned in papermentioned on GitHubpytorch report
farama-foundation/microrts-py mentioned on GitHubpytorch report
vwxyzjn/gym-microrts mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections