Podcast: Lyashenko, Mercurio and Sokol’s adventures in autoencoding

Trio of senior quants explain how autoencoders can reduce dimensionality in yield curves

Alexander Sokol, Andrei Lyashenko and Fabio Mercurio
Alexander Sokol, Andrei Lyashenko and Fabio Mercurio

Any quant will tell you that modelling multiple yield curves is no easy task. Most fixed income instruments have numerous term structures, each with 10–15 maturities, that share a hard-to-model, non-linear co-dependence structure.

Two years ago, a trio of quants set out to simplify the problem using autoencoders, a type of generative neural network.

In this episode of Quantcast, they discuss their solution, which was published in Risk.net earlier this month.

The technique can be compared to compression algorithms that are used to reduce the size of files, such as digital images. But unlike standard compression algorithms, autoencoders provide a compression that is specific to a dataset. This makes them much more powerful, says Alexander Sokol, founder and head of quant research at CompatibL – one of the authors of the paper – and well-suited to reducing the dimensionality of yields curves to a handful of variables, or factors.

 

The approach is built on the risk-neutral Q-measure and relied on historical data to derive the key factors that drive yield curves. The theoretical framework for this solution was previously published by another of the authors, Andrei Lyashenko, head of market pricing and risk models at QRM, and his colleague Yevgeny Goncharov in 2023.

As Fabio Mercurio, global head of quant analytics at Bloomberg and co-author of the paper, explains, this is a significant theoretical departure from parametric models, such as the ubiquitous Nelson-Siegel model, and other approaches such as principal component analysis.

“Compared to other existing approaches, our framework has the advantage that it is able to incorporate historical yield curve behaviour by construction,” says Mercurio. “We take the behaviour that we learn from the history through the autoencoder modelling and we insert that behaviour mathematically into our framework.”

This, he says, allows the algorithm to produce more realistic yields curves and, by extension, cheaper hedging strategies.

Under this approach, autoencoders are fed the full-dimensional representation of the yield curve. The encoder compresses the data into a small number of latent variables. Then, the decoder reproduces the yield curve from these variables. This process allows the model to learn the underlying structure of the data, capturing its essential features while discarding noise.

A key concept used in the paper is that of autoencoder manifolds – low-dimensional representations of the data fed to the model. The manifolds contain information on the relationships between the main points of a yield curve. “[What] we found is that when you build the model on the manifold, then you observe that … the curves you produce are automatically following these relationships,” says Sokol.

Another key element is the enforcement of arbitrage-free conditions, which proved to be a challenging exercise in this case. The data transformation involved in this approach makes it generally arbitrageable. To make the model arbitrage-free, constraints had to be enforced on the specification of volatility – a solution inspired by Lyashenko’s previous paper with Goncharov.

The authors see this framework as naturally applicable to the pricing of interest rate products such as swaptions, constant maturity swaps or spread options. It can also be used to hedge products exposed to the correlation between different rates.

Mercurio sees other uses beyond pricing and hedging of single instruments. “At portfolio level the applications are many,” he says. “For example, you can use this approach for portfolio valuation, but also simulation… XVA, scenario analysis and asset liability management.”

Seven-year itch

The foundations for the paper were laid by the authors themselves and others over the past seven years. Alexei Kondratyev, now a professor at Imperial College London, was the first to propose the use of autoencoders to model yield curves, an idea that gained him Risk.net’s award for quant of the year in 2018.

Sokol and Lyashenko have also made prior contributions to this stream of research. In 2022,  Sokol investigated the optimal way to capture the state variables of yield curves using autoencoders and showed how they generated a low-dimensional representation of rates. And in 2023, Lyashenko and Goncharov introduced the innovative idea of a risk-neutral framework based on a factor representation. The most desirable features of that approach, namely ease of use and no-arbitrage, formed the basis of the latest paper.

But while Sokol and Lyashenko have been studying the use of autoencoders to model rates for some time, it was a 2023 presentation by Jesper Andreasen, head of quantitative analytics at Verition Fund Management, that brought them and Mercurio together. The trio were in the audience for Andreasen’s presentation, which provided empirical confirmation of the ideas expressed by Kondratyev years earlier were valid and close to arbitrage-free. That prompted the three of them to join forces to develop the idea further.

While previous uses of autoencoders were an intermediate step, generating outputs that had to be processed by a separate model to build yield curves, Lyashenko, Mercurio and Sokol show how autoencoders can directly extrapolate full yield curves. This, they explain in the podcast, is crucial for their arbitrage conditions to hold and, ultimately, for the framework to be implemented for pricing and hedging.

The next step is to put the framework into production. The authors concede more work must be done before their theoretical advances can be translated into real-world applications. Still, Sokol is confident CompatibL will have it in production soon. Lyashenko and Mercurio are more cautious on timing, but share Sokol’s optimism on future adoption. 

Index

00:00 Introduction

02:12 Genesis of the project

06:45 Interest rate models

11:52 Factors that drive yield curves

14:06 Autoencoders and manifolds

21:48 No-arbitrage condition

32:38 A risk-neutral approach

36:06 An analogy to topology

42:12 Applications to rates and derivative portfolios

50:00 Roadmap for implementation 

To hear the full interview, listen in the player above, or download. Future podcasts in our Quantcast series will be uploaded to Risk.net. You can also visit the main page here to access all tracks, or go to Spotify, Amazon Music or the iTunes store to listen and subscribe.

Only users who have a paid subscription or are part of a corporate subscription are able to print or copy content.

To access these options, along with all other subscription benefits, please contact info@risk.net or view our subscription options here: http://subscriptions.risk.net/subscribe

You are currently unable to copy this content. Please contact info@risk.net to find out more.

Most read articles loading...

You need to sign in to use this feature. If you don’t have a Risk.net account, please register for a trial.

Sign in
You are currently on corporate access.

To use this feature you will need an individual account. If you have one already please sign in.

Sign in.

Alternatively you can request an individual account here