Fenchel-Young Variational Learning

Sophia Sklaviadis, Sweta Agrawal, António Farinhas, André F. T. Martins, Mário A. T. Figueiredo · DOI

Introduction

In Bayesian machine learning, variational inference (VI) is a cornerstone for approximating complex posterior distributions. However, traditional VI is often constrained by a "Gaussian-everything" approach, relying heavily on the Kullback-Leibler (KL) divergence and the exponential family of distributions. While mathematically convenient, these distributions have full support, meaning they assign non-zero probability to every possible outcome. In scenarios involving sparse data or extreme outliers, this "infinite tail" can lead to fragile models that fail to capture the underlying data structure accurately.

This paper introduces Fenchel-Young Variational Inference (FYVI), a framework that generalizes VI by replacing the KL divergence with Fenchel-Young losses. This shift allows for the use of flexible posterior distributions that can exhibit sparse support—assigning exactly zero probability to unlikely regions—or heavy tails, leading to more robust and representative models.

The Fenchel-Young Framework

The core innovation of FYVI is the "coupling" of the divergence and the distribution family. Instead of selecting these components independently, the authors derive them from a single regularizer $\Omega$ (such as an entropy function) and its Fenchel conjugate.

Distributions with varying sparsity parameters $\rho$.

By choosing $\Omega$ to be the Tsallis negentropy, the framework unlocks a new class of $(2-\rho)$-exponential families. As shown in the figure above, tuning the parameter $\rho$ directly controls the support of the distribution. When $\rho=2$, the model utilizes a "sparsemax" instead of a standard "softmax," allowing it to ignore regions with large loss by assigning them zero probability. This property is particularly useful for handling outliers that would otherwise skew a standard Gaussian model.

Practical Algorithms: FYEM and FYVAE

The authors derive two primary tools within this framework:

  1. FYEM (Fenchel-Young Expectation-Maximization): A robust clustering algorithm. By using sparse distributions, FYEM can effectively ignore noise points by assigning them zero probability for certain clusters, acting as a principled middle ground between the rigid "winner-take-all" approach of Hard EM and the overly sensitive soft assignments of Standard EM.
  2. FYVAE (Fenchel-Young Variational Autoencoder): A generative model that incorporates sparse distributions in both the latent space and the output. This allows the model to make definitive "zero probability" claims about certain reconstructions, improving clarity and accuracy.

Experimental Evaluation

Robust Clustering in GMMs

The effectiveness of Sparse EM was tested on a synthetic 2D Gaussian Mixture Model (GMM) dataset containing four overlapping clusters and uniform noise.

Comparison of Standard, Sparse (FYVI), and Hard EM on a noisy GMM dataset.

As illustrated in the comparison above, Standard EM is easily distracted by noise points, leading to poorly centered and overly broad cluster estimates. Hard EM is too restrictive, often failing to capture the overlap between true clusters. Sparse EM ($\rho=2$) successfully ignores the noise while maintaining the flexibility to model overlapping regions. Quantitatively, Sparse EM outperformed both variants in Adjusted Mutual Information (0.636 vs. 0.606 for standard) and Silhouette scores.

Image and Text Modeling

On image benchmarks like MNIST and FashionMNIST, the FYVAE using an Epanechnikov posterior ($\rho=2$) achieved significantly lower $\ell_1$ reconstruction errors than the standard Gaussian VAE. For instance, on MNIST, the error was reduced from 13.236 to 9.144.

In the domain of natural language processing, the framework was applied to the 20NewsGroups dataset using a Neural Variational Document Model (NVDM). The FY-NVDM improved reconstruction error by over 10% and produced more semantically coherent topics, demonstrating that probability sparsity is a powerful inductive bias for text data.

Conclusion and Future Directions

Fenchel-Young Variational Inference provides a mathematically principled way to move beyond the limitations of standard exponential families. By enabling probability sparsity, it offers a robust alternative for clustering and generative modeling in the presence of noise. While the current work focuses on the sparse case ($\rho > 1$), the framework theoretically supports heavy-tailed distributions ($\rho < 1$), which remains an area for future exploration. Additionally, developing generalized natural gradient descent methods will be essential to fully leverage the unique geometry of these deformed exponential families.

Summary updated

BibTeX
@misc{sklaviadis2025fenchel,
  author = {Sophia Sklaviadis and Sweta Agrawal and António Farinhas and André F. T. Martins and Mário A. T. Figueiredo},
  title = {{Fenchel-Young Variational Learning}},
  year = {2025},
  eprint = {2502.10295},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.10295},
}
Figure