Introduction
Normalizing Flows (NFs) have emerged as a powerful class of generative models, capable of learning complex data distributions by transforming them into a simple, tractable base distribution—typically an isotropic Gaussian. However, a significant limitation arises when the target data exhibits "heavy tails," where extreme values occur more frequently than in a normal distribution. Forcing these "fat-tailed" real-world distributions into "thin-tailed" Gaussian boxes requires the neural network to excessively stretch the latent space, leading to numerical instability and poor generalization.
The Tail-End Problem in Normalizing Flows
The mathematical requirement for NFs to be invertible and differentiable (diffeomorphisms) imposes constraints on the learned transformation $T$. When there is a mismatch between the tail behavior of the target distribution $P_x$ and the base distribution $P_z$, the transformation must have a very large Lipschitz constant. In practice, this manifests as "exploding" gradients during training and inversion, making the model difficult to optimize and prone to failure.
Copula-Based Normalizing Flows
To address this, we propose Copula-Based Normalizing Flows. This approach replaces the standard Gaussian base distribution with a more flexible framework based on copulas. According to Sklar’s Theorem, any multivariate joint distribution can be decomposed into its marginal distributions and a copula that describes the dependency structure between variables.
By leveraging this framework, we can:
- Incorporate Heavy-Tailed Marginals: Instead of Gaussians, we can use Student-t or Laplace distributions as the marginals for the base space.
- Decouple Dependency from Tail Behavior: The model can learn the relationship between variables independently of the "fatness" of their tails.
In our experiments, we focus on the Independence Copula—where base variables are independent—but equipped with heavy-tailed marginals that better align with the target data's characteristics.
Empirical Evaluation
We evaluated the performance of Copula-based NFs against vanilla Gaussian NFs using synthetic 2D heavy-tailed datasets.
Stability and Convergence
The choice of base distribution significantly impacts training dynamics. As shown in the loss curves, the standard Gaussian base (normal) exhibits high variance and frequent spikes, indicating numerical instability. In contrast, models using heavy-tailed marginals (exactMarginals) converge much faster and remain remarkably stable throughout training.
Transformation Smoothness
A key insight is that matching the "tailedness" of the data leads to a "smoother" learned transformation. We visualized the transformations $T_\theta$ and their inverses. The vanilla NF produces highly irregular surfaces with sharp transitions, corresponding to large local Lipschitz constants. The Copula-based NF, by matching the tail behavior, learns a much more regular and well-behaved mapping.
Key Results
- Reliability: In 100 trials, the vanilla Gaussian NF failed to converge 17% of the time, while Copula-based NFs achieved 100% stability.
- Accuracy: Copula-based models achieved significantly lower negative log-likelihoods (approx. 3.39 vs. 4.00 for the baseline).
- Quantile Modeling: Our method accurately captured empirical quantiles, whereas vanilla NFs consistently underestimated tail heaviness.
Conclusion
Copula-Based Normalizing Flows provide a robust solution for modeling heavy-tailed data. By simply choosing a base distribution with the appropriate tail behavior, we can achieve faster convergence, superior numerical stability, and more accurate density estimation. Future work will explore extending this framework to high-dimensional real-world datasets and more complex dependency structures.
Summary updated