Can a neural network learn the entire volatility surface?
Can a neural network learn the entire volatility surface?
I trained two from scratch and ran them side by side on the same implied vol surface.
Each network takes five raw inputs (moneyness, time to expiry, and a few polynomial interactions) and has to discover the smile shape on its own. No baked in Black Scholes structure, no pre engineered features. Just gradient descent over a noisy training set, with Adam optimization and ReLU layers, written in pure numpy.
The first model has only 49 parameters. The second has 17,409.
The small model learns the bulk of the surface quickly but never reaches the wings. The deep out of the money corners near expiry stay flat where the real surface curls up violently. It simply does not have enough capacity to bend that hard.
The big model has the capacity to capture every corner, including the OTM put curl. But watch the validation curve at the bottom. As training continues, validation error stops dropping and starts climbing again. That is overfitting in real time. The network is no longer learning structure. It is memorizing noise from the training set.
The lesson: more parameters do not mean a better fit. They just shift where the model fails. Too few, and you under represent the smile. Too many, and you memorize noise that does not generalize.
Code and the interactive notebook in bio.
Comments
Comments from the original post on Instagram
No comments yet
