JaxMARL-HFT: GPU-Accelerated Large-Scale Multi-Agent Reinforcement Learning for High-Frequency Trading

Valentin Mohl, Sascha Frey, Reuben Leyland, Kang Li, George Nigmatulin +4 more
11/3/2025
q-fin.TRcs.MA

No official code found. Best implementation: vmohl/JaxMARL-HFT (70 stars, Apache-2.0, last commit 2026-03-16).

Abstract

Agent-based modelling (ABM) approaches for high-frequency financial markets are difficult to calibrate and validate, partly due to the large parameter space created by defining fixed agent policies. Multi-agent reinforcement learning (MARL) enables more realistic agent behaviour and reduces the number of free parameters, but the heavy computational cost has so far limited research efforts. To address this, we introduce JaxMARL-HFT (JAX-based Multi-Agent Reinforcement Learning for High-Frequency Trading), the first GPU-accelerated open-source multi-agent reinforcement learning environment for high-frequency trading (HFT) on market-by-order (MBO) data. Extending the JaxMARL framework and building on the JAX-LOB implementation, JaxMARL-HFT is designed to handle a heterogeneous set of agents, enabling diverse observation/action spaces and reward functions. It is designed flexibly, so it can also be used for single-agent RL, or extended to act as an ABM with fixed-policy agents. Leveraging JAX enables up to a 240x reduction in end-to-end training time, compared with state-of-the-art reference implementations on the same hardware. This significant speed-up makes it feasible to exploit the large, granular datasets available in high-frequency trading, and to perform the extensive hyperparameter sweeps required for robust and efficient MARL research in trading. We demonstrate the use of JaxMARL-HFT with independent Proximal Policy Optimization (IPPO) for a two-player environment, with an order execution and a market making agent, using one year of LOB data (400 million orders), and show that these agents learn to outperform standard benchmarks. The code for the JaxMARL-HFT framework is available on GitHub.

View on arXivView PDF

Code Implementations(1)

vmohl/JaxMARL-HFTCommunity74%
Apache-2.0

GPU-Accelerated Multi-Agent Reinforcement Learning for High-Frequency Trading

7021Python, MakefileOct 10, 20257 months agoApache-2.0

Similar Papers

Cite this paper

@article{mohl2025jaxmarlhft,
  title  = {JaxMARL-HFT: GPU-Accelerated Large-Scale Multi-Agent Reinforcement Learning for High-Frequency Trading},
  author = {Valentin Mohl and Sascha Frey and Reuben Leyland and Kang Li and George Nigmatulin and Mihai Cucuringu and Stefan Zohren and Jakob Foerster and Anisoara Calinescu},
  year   = {2025},
  eprint = {2511.02136},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.02136v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.02136.svg)](https://codeofpaper.com/paper/2511.02136)

Discussion