Tails of Triangular Flows

Priyank Jaini, Ivan Kobyzev, Marcus A. Brubaker, Yaoliang Yu

Introduction

Normalizing flows, such as Real-NVP, MAF, and Glow, are a prominent class of generative models that transform a simple source density—typically a standard Gaussian—into a complex target density through a sequence of invertible mappings. While these models are highly effective at capturing the bulk of a distribution, they frequently struggle to model the "tails"—the extreme regions where rare but significant events occur. In domains like finance or insurance, where heavy-tailed data is common, this limitation can be critical.

This paper identifies a fundamental mathematical barrier: popular flow architectures are often implemented with constraints that make them incapable of stretching a light-tailed Gaussian source into a heavy-tailed target. To address this, the authors propose Tail-Adaptive Flows (TAFs), which utilize a learnable Student-t source distribution to adapt to the tail properties of the data.

The Lipschitz Limitation and the "Affine Trap"

The authors analyze the problem through the lens of triangular maps and density quantile functions. A key theoretical finding is that if a transformation is Lipschitz-continuous (i.e., it has a bounded slope), it cannot transform a light-tailed distribution into a heavy-tailed one.

Many common affine flow implementations fall into what the authors call the "affine trap." By using bounded scaling factors (often constrained by tanh or sigmoid functions in the scaling networks for stability), the entire flow becomes Lipschitz-continuous. This architectural choice inadvertently caps the model's ability to "stretch" probability mass into the tails, regardless of the number of layers used.

Figure 3: Quantile function diagnostic for RealNVP, showing the estimated target (green) failing to reach the true target (blue) in the tails.

The authors advocate for using quantile and log-quantile plots as a diagnostic tool. As seen in the figure above, the estimated target's quantile function remains closer to the source distribution than the true target, signaling a failure to capture heavy-tailed behavior that standard log-likelihood metrics might miss.

Tail-Adaptive Flows (TAFs)

To overcome the Lipschitz limitation without sacrificing training stability, the authors propose TAFs. Instead of a fixed Gaussian source, TAFs employ a Student-t distribution where the degrees of freedom ($\nu$) is a learnable parameter. By optimizing $\nu$ via backpropagation alongside the flow's transformation parameters, the model can learn whether the target distribution is light-tailed (high $\nu$) or heavy-tailed (low $\nu$). This approach shifts the burden of tail modeling from the transformation's complexity to the flexibility of the source distribution.

Experimental Results

The paper evaluates TAFs on synthetic distributions and real-world UCI benchmarks (Power, Gas, Hepmass, MiniBoone, and BSDS300).

In synthetic experiments transforming a 2D Gaussian to a heavy-tailed Student-t target, standard flows failed qualitatively. Even with increasing depth (blocks), the models could not generate samples in the extreme tail regions.

Figure 1: Qualitative failure of standard flows across multiple blocks. The quantile functions (green) remain stuck to the source (orange) rather than matching the target (blue).

In contrast, TAFs successfully captured these tails, with the learnable $\nu$ parameter converging to match the target's characteristics. On real-world datasets like Gas and Hepmass, TAFs achieved superior log-likelihoods compared to state-of-the-art models, suggesting that these datasets possess non-Gaussian tail behaviors that TAFs are uniquely equipped to handle.

Conclusion

The failure of standard normalizing flows to capture heavy tails is not merely a matter of model capacity but a fundamental architectural mismatch. By identifying the Lipschitz limitation and introducing Tail-Adaptive Flows, this work provides a robust framework for modeling distributions with frequent outliers. Future work may extend this approach to asymmetric tails and applications in critical fields like financial risk analysis.

Summary updated

BibTeX
@misc{jaini2019tails,
  author = {Priyank Jaini and Ivan Kobyzev and Marcus A. Brubaker and Yaoliang Yu},
  title = {{Tails of Triangular Flows}},
  year = {2019},
  eprint = {1907.04481},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.04481},
}
Figure