Skip to main content
QUICK REVIEW

[Paper Review] Model-based Reinforcement Learning for Predictions and Control for Limit Order Books

Haoran Wei, Yuanbo Wang|arXiv (Cornell University)|Oct 9, 2019
Stock Market Forecasting MethodsDecision Sciences29 references13 citations
TL;DR

This paper proposes a model-based reinforcement learning framework that trains a trading agent entirely on historical limit order book data, using a learned environment model to simulate market dynamics and optimize trading policies without real-time interaction. The approach achieves profitable, transferable policies in real markets, demonstrating robust performance across diverse market regimes with improved sample efficiency and stability over benchmark strategies.

ABSTRACT

We build a profitable electronic trading agent with Reinforcement Learning that places buy and sell orders in the stock market. An environment model is built only with historical observational data, and the RL agent learns the trading policy by interacting with the environment model instead of with the real-market to minimize the risk and potential monetary loss. Trained in unsupervised and self-supervised fashion, our environment model learned a temporal and causal representation of the market in latent space through deep neural networks. We demonstrate that the trading policy trained entirely within the environment model can be transferred back into the real market and maintain its profitability. We believe that this environment model can serve as a robust simulator that predicts market movement as well as trade impact for further studies.

Motivation & Objective

  • To develop a model-based reinforcement learning framework that learns profitable trading policies without requiring real-time interaction with financial markets.
  • To build a data-driven environment model that captures temporal and causal dynamics of limit order books through self-supervised representation learning in latent space.
  • To enable transfer of policies trained in a simulated environment back to the real market with consistent profitability.
  • To address the limitations of model-free RL in finance, such as high sample complexity and risk from trial-and-error training.
  • To provide a robust, general-purpose simulator for predicting market movements and trade impacts in electronic trading.

Proposed method

  • The framework uses a deep neural network to learn a latent-space representation of the limit order book from historical data, capturing temporal and causal dependencies.
  • A world model is trained in a self-supervised manner using contrastive learning to predict future states and rewards from current observations and actions.
  • The reinforcement learning agent is trained exclusively within the learned environment model, using policy gradient (PG), A2C, or DQN algorithms to optimize trading strategies.
  • The model learns end-to-end representations of both state transitions and reward signals, enabling joint prediction of market evolution and trade impact.
  • The policy is evaluated via transfer to real market data, comparing cumulative PnL across different market regimes.
  • The system is designed to be sample-efficient and robust, minimizing exposure to real-market risks during training.

Experimental results

Research questions

  • RQ1Can a model-based RL agent learn profitable trading policies using only historical limit order book data and no real-time environment interaction?
  • RQ2How well can a self-supervised world model capture the temporal and causal dynamics of limit order books for effective policy training?
  • RQ3To what extent can a policy trained in a simulated environment transfer to real market conditions while maintaining profitability?
  • RQ4How does the performance of the model-based RL agent compare to traditional benchmark strategies (e.g., momentum-based, classifier-based) across different market regimes?
  • RQ5What are the limitations of the approach in low-data regimes, such as oscillating markets with limited trend signals?

Key findings

  • The RL agent trained solely in the environment model achieved cumulative PnL performance within 10%–30% of the greedy-optimal solution and outperformed both momentum-based and classifier-based benchmarks on average.
  • The A2C algorithm showed more stable performance than PG and DQN, with DQN underperforming due to suboptimal state representation.
  • The classifier-based agent underperformed due to class imbalance, frequently misclassifying price movements as 'no change' and taking fewer actions.
  • The RL agent demonstrated strong performance in ascending and descending markets but struggled in oscillating markets due to insufficient training data (~15.8% of total data).
  • The policy trained in the world model successfully transferred to real market conditions, showing asymptotic performance consistency across five randomly selected days.
  • The environment model effectively predicted market movements and trade impacts, validating its use as a robust simulator for future research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.