Abstract
In machine learning, the selection of a loss function is often treated as an empirical heuristic rather than a formal modeling decision. This paper introduces Probabilistic Dependency Graphs (PDGs) as a unified framework where standard objectives—such as Cross-Entropy, Mean Squared Error, and the Evidence Lower Bound (ELBO)—emerge as measures of "inconsistency" within a model's internal beliefs. By shifting the focus from loss function engineering to explicit modeling of dependencies and confidences, we provide a principled foundation for objective functions across diverse domains.
Introduction
The current landscape of machine learning is characterized by a vast "zoo" of loss functions. Practitioners frequently toggle between Cross-Entropy for classification, Mean Squared Error (MSE) for regression, and various regularization terms (L1, L2) to achieve desired performance. While effective, this process often lacks a unified theoretical justification, leading to a trial-and-error approach to optimization.
This work argues that the choice of a loss function should be a rigorous consequence of modeling assumptions. We propose that instead of choosing a loss, researchers should choose a model that explicitly encodes beliefs and their associated confidences. We demonstrate that by using Probabilistic Dependency Graphs (PDGs), we can derive nearly all common loss functions from a single, foundational principle: the minimization of epistemic inconsistency.
Probabilistic Dependency Graphs (PDGs)
The core of this framework is the Probabilistic Dependency Graph. Unlike traditional Bayesian Networks, which associate probability distributions with nodes, PDGs attach conditional probability distributions (CPDs) to the edges. This structural shift allows for the representation of arbitrary and potentially conflicting information.
Each edge in a PDG represents a belief or a source of information, weighted by a confidence parameter $\beta$. The central metric of a PDG $\mathcal{M}$ is its inconsistency $\langle \mathcal{M} \rangle$. Inconsistency quantifies the "total excess cost" or the degree of conflict between the various beliefs encoded in the graph. Mathematically, it is defined through an infimum over joint distributions that attempt to satisfy the constraints imposed by the edges.
Inconsistency as a Universal Objective
The paper proves that by constructing a PDG that represents a specific modeling scenario, the resulting inconsistency formula reduces exactly to familiar loss functions. This provides a "universal" language for loss functions:
- Negative Log-Likelihood (NLL): Arises as the inconsistency of believing a distribution $p$ while observing an event $x$.
- Mean Squared Error (MSE): Emerges when a predictor and a label source are both modeled as having Gaussian noise.
- ELBO: Derived from a latent variable model where an encoder and decoder provide conflicting views of the same data.
A Map of Statistical Divergences
One of the most powerful demonstrations of this framework is its ability to unify disparate statistical divergences. By varying the confidence levels ($\beta_p, \beta_q$) in a simple two-edge graph representing two distributions $p$ and $q$, we can recover a wide array of named measures.
As shown in Figure 1, specific regions and points in the confidence space correspond to well-known divergences. For instance, the KL divergence, Reverse KL, Rényi divergences, and Chernoff divergences are all special cases of PDG inconsistency under different confidence regimes. This visualization highlights that hyperparameters in modern objectives (like the $\beta$ in $\beta$-VAE) are not just arbitrary scaling factors but represent the relative confidence placed in different parts of the model.
Key Insights and Applications
The PDG framework offers several conceptual shifts:
- Loss as Epistemic Conflict: A loss function is reinterpreted as a measure of how much internal model beliefs disagree with observed evidence or with each other.
- Confidence as a Hyperparameter: Hyperparameters like regularization strength map directly to the $\beta$ weights on edges, providing a physical interpretation for these values.
- Visual Proofs: The graphical nature of PDGs allows for "visual proofs" of complex information-theoretic inequalities, such as the data-processing inequality, through simple graph manipulations.
The paper specifically addresses the $\beta$-VAE, providing a grounded defense for its objective. It shows that the $\beta$ factor arises naturally when one places a specific confidence level on the variational prior relative to the reconstruction term.
Conclusion
By treating loss as the inconsistency of a probabilistic dependency graph, we move away from heuristic "fiddling" toward a principled, model-first approach. This framework not only unifies existing objectives but also provides a roadmap for designing new, complex loss functions grounded in explicit modeling assumptions. Future work may extend this to AI alignment, where articulating and combining complex, belief-based objectives is paramount.
Summary updated