Flexible Tails for Normalising Flows, with Application to the Modelling of Financial Return Data

Tennessee Hickling, Dennis Prangle

Abstract

Standard Normalising Flows (NFs) often fail to capture heavy-tailed distributions characteristic of financial data due to the thin tails of their Gaussian base distributions. We propose a novel transformation layer motivated by Extreme Value Theory (EVT) that explicitly parameterizes heavy tails. This "Flexible Tail Transformation" allows NFs to learn asymmetric tail heaviness, significantly improving density estimation for high-dimensional financial returns. Our results on S&P 500 data demonstrate that our proposed Extreme Flow (EXF) consistently outperforms standard NF architectures across various dimensions.

Introduction

Normalising Flows are powerful tools for modeling complex probability distributions by transforming a simple base (usually a Gaussian) into something more intricate. However, a theoretical "tail" problem exists: if a Gaussian base is used with a Lipschitz-continuous transformation—the standard building block for NFs—the resulting distribution will always exhibit Gaussian-like "light" tails.

In fields like finance, climate science, or epidemiology, the most critical events are often "extremes," such as the 2008 financial crisis. If a model assumes Gaussian tails, it systematically underestimates the probability of these "Black Swan" events. While some researchers employ heavy-tailed base distributions (e.g., Student’s T), this work proposes a more flexible approach: maintaining the Gaussian base while appending a specialized final layer to model the tails explicitly.

Methodology

The authors introduce the Flexible Tail Transformation ($R$), a mapping motivated by Extreme Value Theory (EVT).

The Core Transformation

The transformation is defined as: $$R(z; \mu, \sigma, \lambda_+, \lambda_-) = \mu + \sigma \frac{s}{\lambda_s} [\text{erfc}(|z|/\sqrt{2})^{-\lambda_s} - 1]$$ Where $\mu$ and $\sigma$ control location and scale, $s = \text{sign}(z)$ determines the upper or lower tail, and $\lambda_+, \lambda_-$ are the "tail indices." These indices allow the model to learn different "heaviness" for gains versus losses, capturing the inherent asymmetry in financial data.

Model Architectures

Several architectures were evaluated:

  • TTF (Tail Transforming Flow): A multivariate version where tail parameters are determined by an autoregressive neural network.
  • TTF_m: A simplified version where the tail transformation is applied to each dimension (marginal) independently.
  • EXF (Extreme Flow): A version restricted specifically to heavy (GPD) tails.
  • Baselines: Standard Rational Quadratic Splines (RQS) and gTAF (which uses a Student’s T base).

Experimental Setup

The models were evaluated on financial log-returns from the S&P 500, covering the top $d$ most traded stocks ($d \in \{10, 100, 200, 300\}$) from January 2010 to October 2022. Returns were treated as independent observations (i.i.d.) to focus specifically on the distribution's shape rather than time-series dynamics.

Results

The EXF (Extreme Flow) model consistently achieved the best performance (lowest negative log-likelihood) across all tested dimensions.

Table 1: Negative Log-Likelihood (NLL) results across different dimensions and flow models. Lower values indicate better performance.

The results demonstrate that "naive" NFs like RQS perform poorly on financial data because they cannot account for the heavy tails present in market returns. As the dimensionality $d$ increases, the performance gap between tail-aware models and standard NFs becomes more pronounced.

Discussion

A key finding is the "Final Layer" hypothesis: by handling extremes in the very last layer of the flow, the earlier layers of the neural network can more effectively learn the "body" of the distribution. Furthermore, the dual $\lambda$ parameters proved essential for capturing the asymmetry between market crashes and rallies.

Figure 1: Comparison of test negative log-likelihood distributions for various models at d=100 and d=300.

Interestingly, the simpler marginal version (TTF_m) often outperformed the complex autoregressive TTF. This suggests that passing raw extreme values through a conditioner neural network complicates optimization, supporting the strategy of modeling marginals separately.

Conclusion

This work demonstrates the efficacy of EVT-motivated layers in extending Normalising Flows to heavy-tailed data. While the current model cannot represent "light" tails and faces theoretical optimization discontinuities at regime boundaries, it provides a robust framework for modeling financial extremes. Future work includes integrating these transformations into models that account for temporal dynamics, such as volatility clustering.

Summary updated

BibTeX
@inproceedings{hickling2023flexible,
  author = {Tennessee Hickling and Dennis Prangle},
  title = {{Flexible Tails for Normalising Flows, with Application to the Modelling of Financial Return Data}},
  booktitle = {PKDD/ECML Workshops},
  year = {2023},
  doi = {10.1007/978-3-031-74643-7\_27},
}
Figure