quantitative finance

RIDGE: An Autonomous Framework for Validation and Method Discovery in LLM-Generated Option Pricing

arXiv:2607.25199

summary

The paper introduces RIDGE, an autonomous framework that validates and refines option pricing implementations generated by large language models using no‑arbitrage, stress, benchmark, and consistency tests across multiple stochastic volatility models.

Abstract

Automated code generation is becoming an important tool in quantitative finance, where large language models can generate option pricing implementations directly from mathematical model specifications. Validating such implementations, however, requires considerably more than conventional software testing: numerical pricing methods must remain mathematically consistent, numerically stable, and reliable across a wide range of model parameters. We introduce RIDGE, an autonomous validation framework in which generated pricing implementations are subjected to structured no-arbitrage tests, stress tests, benchmark comparisons, and consistency checks. Validation evidence is interpreted diagnostically, while the resulting knowledge is accumulated in a repository and reused across models and successive validation iterations. This enables systematic refinement of both the pricing implementation and the validation methodology. The framework is applied to five stochastic volatility models. Across these studies, all detected implementation defects are removed and, in two cases, the validation process reveals methodological limitations and motivates the development of alternative numerical methods. The supplementary material is available in the GitHub repository: https://github.com/ShQiangLiu/ridge.

33 pages

Topics & keywords

#option pricing#large language models#automated code generation#validation framework#stochastic volatility#numerical methodsno-arbitrage testsstress testingbenchmark comparisonconsistency checksLLM code generationstochastic volatility models
RIDGE: An Autonomous Framework for Validation and Method Discovery in LLM-Generated Option Pricing · wovepaper