Skip to main content
QUICK REVIEW

[Paper Review] Reinforcement Learning for Optimal Execution when Liquidity is Time-Varying

Andrea Macrì, Fabrizio Lillo|arXiv (Cornell University)|Feb 19, 2024
Scheduling and Optimization AlgorithmsEngineering5 citations
TL;DR

The paper applies Double Deep Q-Learning to optimal execution in an Almgren-Chriss framework with time-varying liquidity, showing model-agnostic policy learning that matches known solutions and outperforms benchmarks when dynamics are unknown.

ABSTRACT

Optimal execution is an important problem faced by any trader. Most solutions are based on the assumption of constant market impact, while liquidity is known to be dynamic. Moreover, models with time-varying liquidity typically assume that it is observable, despite the fact that, in reality, it is latent and hard to measure in real time. In this paper we show that the use of Double Deep Q-learning, a form of Reinforcement Learning based on neural networks, is able to learn optimal trading policies when liquidity is time-varying. Specifically, we consider an Almgren-Chriss framework with temporary and permanent impact parameters following several deterministic and stochastic dynamics. Using extensive numerical experiments, we show that the trained algorithm learns the optimal policy when the analytical solution is available, and overcomes benchmarks and approximated solutions when the solution is not available.

Motivation & Objective

  • Motivate the need for robust optimal execution under dynamic, latent liquidity conditions.
  • Develop a model-agnostic RL framework to learn execution policies without precise impact parameter knowledge.
  • Evaluate-DDQL performance against analytic solutions and benchmarks under deterministic and stochastic liquidity dynamics.
  • Demonstrate that DDQL can recover TWAP-like strategies in constant markets and improve performance when impacts vary.

Proposed method

  • Use Almgren-Chriss baseline with time-varying permanent and temporary impact parameters (deterministic and stochastic dynamics).
  • Implement Double Deep Q-Learning with two neural networks (Q-main and Q-target) and experience replay for stability.
  • Define states as (q_t, t) or (q_t, t, S_{t-1}) and actions as sell quantities v_t within remaining inventory.
  • Train over M episodes with exploration-exploitation (epsilon-greedy) and update using TD targets with gamma=1 (risk-neutral).
  • Compare DDQL results to analytic solutions (when known) and TWAP benchmarks across constant, deterministic time-varying, and stochastic impact settings.

Experimental results

Research questions

  • RQ1Can DDQL learn optimal execution policies when liquidity is time-varying and impacts are latent?
  • RQ2Does DDQL recover the known optimal strategies in constant-impact settings and outperform benchmarks when impact dynamics are unknown or complex?
  • RQ3How does incorporating price and other features into the state affect DDQL performance under different liquidity dynamics?
  • RQ4To what extent can a model-agnostic DDQL agent adapt to deterministic and stochastic impact paths to produce robust liquidation strategies.

Key findings

  • In constant-impact settings, DDQL reproduces near-TWAP costs with small delta P&L (e.g., -0.455 bp with Q,T and 2.5 std. dev.).
  • Including mid-price as a feature does not significantly outperform TWAP in constant impact scenarios (Delta P&L around -0.225 to -0.455 bp).
  • Under increasing deterministic impacts, DDQL with Q,T,S features nearly matches the theoretical optimum, with Delta P&L around 2 bp (vs. theory).
  • Under decreasing deterministic impacts, DDQL with Q,T,S features improves over TWAP and approaches the theoretical optimum; using price feature yields further gains but remains slightly suboptimal.
  • Overall, DDQL demonstrates model-robust learning, adapting to time-varying liquidity and outperforming benchmarks when impact dynamics are not fully known.

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.