Equivalence of the Empirical Risk Minimization to Regularization on the Family of f-Divergences

Francisco Daunas, Iñaki Esnaola, Samir M. Perlaza, H. Vincent Poor · DOI

Introduction

In the field of statistical machine learning, Empirical Risk Minimization (ERM) serves as the standard paradigm for fitting models to data. However, ERM is inherently susceptible to overfitting, where a model captures the stochastic noise of a training set rather than the underlying distribution. To mitigate this, researchers employ regularization, typically by introducing a penalty term that encourages the model to remain close to a reference distribution or prior.

While specific instances of regularization—most notably Relative Entropy (KL divergence)—are well-characterized, the broader family of $f$-divergences (including Hellinger distance and $\chi^2$-divergence) has lacked a unified theoretical treatment. This paper addresses this gap by providing a generalized mathematical solution for ERM regularized by any member of the $f$-divergence family, revealing surprising structural equivalences between seemingly distinct regularizers.

Theoretical Framework

The authors analyze the Empirical Risk Minimization with $f$-Divergence Regularization (ERM-$f$DR) problem using a framework grounded in functional analysis. By employing Gateaux derivatives and vector space methods, they derive the optimal probability measure for a regularized objective.

The study assumes that the regularization function $f$ is strictly convex and differentiable. Under these conditions, the authors demonstrate that the optimal density (the Radon-Nikodym derivative) can be expressed in a closed form. This solution is determined by the inverse of the derivative of the chosen function $f$, effectively mapping the loss function and the regularization strength to a unique probability measure.

Key Findings

1. The General Solution (Theorem 1)

The paper provides a unique analytical solution for the ERM-$f$DR problem. This result generalizes well-known specific cases:

  • KL Divergence: Leads to the classical exponential Gibbs distribution.
  • $\chi^2$-Divergence: Results in a linear solution.
  • Hellinger Distance: Yields a distinct quadratic-related density.

2. Existence and the Normalization Function

A critical insight of the research is that not all $f$-divergences are equally robust. The authors introduce a "normalization function" to evaluate the range of the regularization factor ($\lambda$) for which a valid solution exists.

They find that while KL and Hellinger divergences are "well-behaved" (solutions exist for any $\lambda > 0$), other divergences like Reverse KL or $\chi^2$ have a "breaking point." Below a certain threshold of regularization strength, the problem may have no valid solution depending on the specific loss function and dataset. This suggests that practitioners must be more cautious when implementing non-KL regularizers "out of the box."

3. The Equivalence Principle (Theorem 2)

Perhaps the most significant contribution of the paper is the proof that the choice of a specific $f$-divergence is mathematically interchangeable. The authors develop a transformation function $v$ that can map an ERM problem using one function ($f$) to another ($g$).

This implies that any result achieved with a complex regularizer can be replicated using a simpler one (like KL divergence), provided the underlying loss function is appropriately transformed. This principle suggests that the geometry of the divergence and the shape of the loss function are dual aspects of the same regularization effect.

Implications for Inductive Bias

The research highlights a property referred to as "support matching." In $f$-divergence regularization, the solution is strictly bound by the support of the reference measure. If the prior knowledge (the reference distribution) assigns zero probability to a certain region of the model space, the regularized ERM will never assign probability to that region, regardless of the evidence provided by the training data. This "stubbornness" underscores the power—and the potential risk—of the inductive bias introduced by the choice of a prior.

Limitations and Future Directions

While the paper offers a robust theoretical foundation, it operates under the requirement that $f$ must be strictly convex and differentiable. This excludes certain non-smooth statistical distances. Furthermore, the work remains theoretical; it does not address the computational challenges of calculating normalization constants (partition functions) in high-dimensional spaces, such as those encountered in deep learning.

The authors suggest that these insights could pave the way for new algorithmic designs. Specifically, one might choose a regularizer based on computational efficiency (such as $\chi^2$) and then apply a non-linear transformation to the loss function to achieve the statistical properties of a more complex, but computationally expensive, divergence.

Summary updated

BibTeX
@inproceedings{daunas2024equivalence,
  author = {Francisco Daunas and Iñaki Esnaola and Samir M. Perlaza and H. Vincent Poor},
  title = {{Equivalence of the Empirical Risk Minimization to Regularization on the Family of f-Divergences}},
  booktitle = {ISIT},
  year = {2024},
  doi = {10.1109/isit57864.2024.10619260},
}
Figure