Gated Neural Networks for Option Pricing: Rationality by Design

Yongxin Yang, Yu Zheng, Timothy M. Hospedales

Introduction

This research introduces a novel gated neural network architecture for European call option pricing that is "rational by design." By integrating economic axioms directly into the network's structure, the model guarantees predictions that adhere to no-arbitrage principles. This approach combines a "divide-and-conquer" architecture with architectural constraints and virtual training data, significantly outperforming traditional econometric formulas and previous machine learning models on a massive 20-year dataset of S&P 500 options.

The Challenge of Option Pricing

Option pricing involves determining the fair value of a contract that grants the right to buy or sell an asset at a specific price in the future. Traditional econometric models, such as the Black-Scholes formula, are mathematically elegant but rely on oversimplified assumptions that fail to capture real-world market behaviors like the "volatility smile."

Conversely, standard Machine Learning (ML) models often act as "black boxes." While they can fit historical data with high precision, they frequently produce "irrational" predictions that allow for arbitrage—risk-free profit—which is economically impossible in a functioning market. Furthermore, a single ML model often struggles to handle the diverse behaviors of options across different levels of "moneyness" (the relationship between the strike price and current asset price) and time-to-maturity.

Methodology: Rationality by Design

The proposed Gated Neural Network architecture integrates economic principles directly into the learning process through several key innovations:

Architectural Constraints

The network uses specific activation functions, such as Softplus and Sigmoid, and constrained weights to ensure the model obeys economic laws. For instance, it guarantees that option prices never increase as the strike price rises, maintaining mathematical consistency with market reality.

Multi-Model Gating

Rather than employing a single monolithic network, the authors use a "mixture of experts" approach. A gating network automatically learns to categorize different types of options and assigns them to specialized sub-networks. This allows for a "divide-and-conquer" strategy that adapts to changing market conditions without requiring manual grouping by human experts.

The Gated Neural Network architecture, featuring a gating mechanism that weights specialized expert sub-networks to handle diverse market conditions.

Virtual Options and Learning from Hints

To enforce boundary conditions—such as an option's value at the exact moment of expiration—the authors synthesize "virtual" data points where the true price is known by definition. Additionally, they utilize a specialized loss function penalty to ensure the model's second derivative remains positive. This ensures the model implies a valid Risk Neutral Density (RND), providing a mathematically sound probability distribution of future stock prices.

Empirical Evaluation

The study utilizes a massive dataset of S&P 500 index options sourced from OptionMetrics and Bloomberg, covering January 1996 to May 2016. With over 3 million option quotes, this dataset is roughly 70 times larger than those used in previous landmark studies. The authors used put-call parity to convert put options into call options, significantly increasing the volume of available training data.

Key Results

The authors compared their "Multi" gated model against five baselines, including traditional econometric models (Black-Scholes, Kou Jump) and previous neural network attempts (PSSF, MNN).

  • Accuracy: The Multi model achieved a Mean Absolute Percentage Error (MAPE) of 6.84% on the test set, significantly outperforming the best econometric model (Kou Jump at 9.90%) and proving nearly three times more accurate than previous modular neural networks (MNN at 18.22%).
  • Robustness: While all models experienced error spikes during major financial crises (such as the 1998 Dot-com bubble and the 2008 Global Financial Crisis), the gated network remained significantly more stable and recovered faster than its competitors.
Comparison of Test MAPE across 20 years of S&P 500 option data, showing the superior stability and consistently lower error of the Multi-model approach compared to traditional and ML baselines.

Conclusion and Future Work

The core insight of this research is that economic axioms should serve as an inductive bias during training rather than just a post-training check. This prevents overfitting and ensures the model generalizes better to sparse or noisy parts of the market. By enforcing mathematical convexity, the model is the first learning-based approach to produce a valid probability distribution for future asset prices, making it valuable for both pricing and risk management.

Future work aims to account for asset dividends and apply similar rationality constraints to other financial problems, such as modeling the implied volatility surface. Given its computational efficiency, the model is also well-suited for high-frequency trading environments.

Summary updated

BibTeX
@inproceedings{yang2017gated,
  author = {Yongxin Yang and Yu Zheng and Timothy M. Hospedales},
  title = {{Gated Neural Networks for Option Pricing: Rationality by Design}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10505},
}
Figure