Abstract
In this paper, we introduce a novel reinforcement learning framework for optimal trade execution in a limit order book. We formulate the trade execution problem as a dynamic allocation task whose objective is the optimal placement of market and limit orders to maximize expected revenue. By modeling market and limit order allocations with multivariate logistic-normal distributions, the framework enables efficient training of the reinforcement learning algorithm. Numerical experiments show that the proposed method outperforms traditional benchmark strategies in simulated limit order book environments featuring noise traders submitting random orders, tactical traders responding to order book imbalances, and a strategic trader seeking to acquire or liquidate an asset position.
Introduction: The Trade Execution Problem
Executing large blocks of assets—for instance, selling 60,000 shares—presents a significant challenge known as the "trade execution problem." A trader must navigate the trade-off between execution speed and price impact. Rapid execution can crash the local price (direct market impact), while slow execution exposes the position to unfavorable price movements (opportunity cost).
Most existing models simplify this by considering only market orders or using non-reactive historical data. In reality, the market operates as a Limit Order Book (LOB), a complex queue of buy and sell offers. Large orders are visible to other participants, such as tactical agents, who may adjust their behavior, creating "indirect market impact." This paper addresses the high-dimensional challenge of optimally distributing inventory across various price levels in a reactive LOB environment.
Methodology: Dynamic Allocation on a Simplex
The researchers frame trade execution as a dynamic allocation task. At each discrete time step, the agent decides how to divide its remaining inventory across a "simplex." This allocation represents a distribution among:
- Market orders for immediate execution.
- Limit orders placed at various price levels to wait for counter-parties.
- Holding the inventory for future steps.
A key innovation is the use of the multivariate logistic-normal distribution to model the RL policy. Unlike the Softmax function, which is not bijective, or the Dirichlet distribution, which can be unstable during training, the logistic-normal distribution maps a standard multivariate normal distribution to the simplex. This allows for the use of standard actor-critic policy gradient methods while ensuring that the total allocation always sums to 100% of the available inventory.
Market Simulation and Environment
To capture market reactivity, the study utilizes a high-fidelity stochastic market simulation rather than static historical data. The environment is populated by three distinct agent types:
- Noise Traders: Submit random orders via Poisson processes.
- Tactical Traders: React to order book imbalances (e.g., selling when they detect a surplus of sellers).
- Strategic Traders: Large-scale agents whose consistent buying or selling creates price drift.
This setup ensures the RL agent must account for both direct liquidity consumption and indirect impacts triggered by other market participants.
Results and Key Insights
The proposed Logistic-Normal (LN) algorithm was benchmarked against Time-Weighted Average Price (TWAP), a Submit-and-Leave (SL) strategy, and a Dirichlet-based (DR) RL agent.
- Superior Performance: The LN agent consistently achieved the highest "Implementation Shortfall," outperforming benchmarks particularly in complex "Strategic" market scenarios.
- Feature Importance: Ablation studies identified order book volumes (market depth) as the most critical features for the agent's success. Without these features, performance degraded significantly across all scenarios.
- Strategic Adaptation: The agent learned sophisticated behaviors, such as "front-loading" or "back-loading" trades based on price drift and managing queue positions to capture better prices.
- Stability: The logistic-normal approach demonstrated faster and more reliable convergence compared to the Dirichlet-based RL agent, suggesting it is a more robust choice for financial allocation tasks.
Conclusion
This framework demonstrates that treating trade execution as a multi-level allocation problem using multivariate logistic-normal distributions provides a robust and effective strategy in reactive markets. While the current study relies on stylized simulations and relatively short time horizons, it lays the groundwork for more complex, high-frequency trading applications. Future work may explore the integration of PPO-style clipping for further stability and testing within even higher-fidelity simulators.
Reference: Cheridito, P., & Weiss, M. (2026). Reinforcement Learning for Trade Execution with Market and Limit Orders. arXiv:2507.06345v2.
Summary updated