Deep Reinforcement Learning for Optimal Stopping with Application in Financial Engineering

Abderrahim Fathan, Erick Delage

Abstract

This paper investigates the application of advanced Deep Reinforcement Learning (RL) to the Optimal Stopping (OS) problem, a critical challenge in financial engineering exemplified by the timing of Bermudan option exercises. By leveraging distributional RL algorithms—Categorical Distributional RL (C51) and Implicit Quantile Networks (IQN)—integrated with Long Short-Term Memory (LSTM) networks, the researchers developed agents capable of mastering complex timing strategies without pre-defined market models. Evaluations on synthetic Geometric Brownian Motion (GBM) data show that these agents achieve near-theoretical precision. Furthermore, on historical S&P 500 data, the distributional RL approach outperformed traditional binomial tree benchmarks by approximately 8%, demonstrating robustness against real-world market non-stationarity.

Introduction

The Optimal Stopping (OS) problem involves determining the ideal moment to take an action within a volatile system to maximize expected rewards. In finance, this is most prominent in the valuation and exercise of Bermudan options, which allow for exercise at discrete intervals before expiration. Traditional approaches, such as Black-Scholes or binomial trees, often rely on rigid assumptions about market dynamics and struggle with the "curse of dimensionality" in multi-variable scenarios. This research explores whether Deep RL can overcome these limitations by learning directly from raw time-series data.

Methodology

The study adapts three state-of-the-art Deep RL architectures to the financial domain:

  1. Double Deep Q-Learning (DDQN): A baseline approach estimating the expected value of actions.
  2. Categorical Distributional RL (C51): Models the entire probability distribution of rewards across 51 discrete "atoms," providing a more granular view of risk.
  3. Implicit Quantile Networks (IQN): A flexible distributional method that provides a precise representation of the reward distribution via quantile regression.

To handle the temporal dependencies of financial data, Long Short-Term Memory (LSTM) layers were integrated into these architectures, allowing the agents to incorporate historical price movements (e.g., a 15-day lookback) into their decision-making process. Additionally, a custom exploration strategy was employed, where agents occasionally follow random stopping policies to ensure exposure to a diverse set of market scenarios.

Experimental Results

Synthetic Data Performance

The models were first evaluated against synthetic data generated via Geometric Brownian Motion (GBM), where theoretical "ground truth" values are known. As shown in Table 1, the IQN agent achieved a test price of 0.0284, nearly matching the theoretical benchmark (B.M.) of 0.0283. This demonstrates the capacity of distributional RL to recover mathematically optimal strategies in controlled environments.

Performance comparison on synthetic GBM data showing IQN's near-theoretical accuracy.

Real-World Market Performance

Testing on historical S&P 500 data (111 stocks from 2014-2019) highlighted the practical advantages of distributional RL. In this "noisy" environment, the C51 algorithm proved most robust, achieving an 8% higher out-of-sample return compared to the best traditional benchmark. Table 2 details the Expected Outperformance Ratio (EOR), where C51 reached 22.0% compared to the benchmark's baseline of 5.3%.

Performance comparison on historical S&P 500 data highlighting C51's superior outperformance.

Discussion and Conclusion

The results indicate that Distributional RL is superior for financial applications because modeling the full distribution of returns—including the "tails"—allows for more robust decision-making under uncertainty. The inclusion of LSTMs was vital, confirming that financial markets are not strictly Markovian and require historical context for effective strategy formulation.

While promising, the authors noted that these models exhibit high sensitivity to hyperparameters and require significant computational resources compared to traditional methods. Future research will focus on online learning to better handle economic regime shifts in real-time.

Summary updated

BibTeX
@inproceedings{fathan2021deep,
  author = {Abderrahim Fathan and Erick Delage},
  title = {{Deep Reinforcement Learning for Optimal Stopping with Application in Financial Engineering}},
  booktitle = {Les},
  year = {2021},
}
Figure