Negative Mixture Models via Squaring: Representation and Learning

Lorenzo Loconte, Stefan Mengel, Nicolas Gillis, Antonio VergariTPM @ UAI 2023

TL;DR

This paper introduces a novel method for creating more expressive probabilistic models by "squaring" existing ones. This technique allows for negative coefficients in mixture models, leading to significantly more compact representations for complex distributions, especially in deep architectures. The authors demonstrate this by developing "squared probabilistic circuits" (PCs) that are both theoretically sound and empirically effective.

What Problem Does This Paper Address?

Finite Mixture Models (MMs) are a cornerstone of probabilistic reasoning, but their expressiveness is limited by the constraint that mixture weights must be non-negative. This often requires a large number of components to model complex data distributions. While "negative mixture models" (NMMs) that allow negative weights can be more expressive and require fewer parameters, ensuring they represent valid probability distributions and are efficiently learnable has been a significant challenge. This paper tackles the problem of how to effectively model and learn NMMs, particularly in deep, hierarchical structures, while maintaining tractability.

Methods

The core contribution of this paper is the squaring technique applied to probabilistic models, specifically probabilistic circuits (PCs). Instead of directly modeling NMMs, the authors propose modeling their square. This is based on the observation that if $p(X)$ is a valid probability distribution, then $p(X)^2$ is also non-negative, and can be represented by a mixture of products of base distributions.

Key methodological aspects include:

  • Probabilistic Circuits (PCs): The paper leverages PCs, which are structured computational graphs that ensure tractability for probabilistic inference.
  • Squared NMMs: They define a "squared NMM" as the square of a mixture where base components can be any function (not necessarily probability densities) and mixture parameters can be negative. The resulting squared mixture is guaranteed to be non-negative.
  • Tractable Squaring of Circuits: A crucial theoretical contribution is showing how to efficiently compute the square of a structured-decomposable PC, resulting in a new, also structured-decomposable PC. This is achieved through a recursive algorithm (Algorithm 1).
  • Exponential Separation: The authors theoretically prove that for certain function classes, squared non-monotonic PCs (which allow negative parameters) can be exponentially more compact than their monotonic counterparts (which only allow non-negative parameters). This is demonstrated using a variant of the unique disjointness problem.
  • Signed Log-Sum-Exp Trick: To handle potential numerical underflow/overflow issues in deep circuits, especially with negative values, they introduce a "signed log-sum-exp trick" that allows computations in log-space while preserving sign information.

Datasets

The paper uses the following datasets for evaluation:

  • Synthetic Datasets:
    • Rings
    • Banana
    • Spiral
    • Wave
  • UCI Repository Datasets:
    • POWER
    • GAS
    • HEPMASS
    • MINIBOONE

These datasets are standard benchmarks for evaluating probabilistic models. The paper does not introduce new datasets.

Key Insights and Ideas

  • Squaring as a General Mechanism for NMMs: The paper elegantly sidesteps the direct modeling of negative mixture models by focusing on their squares. This simplifies the problem of ensuring non-negativity and integrability, as the square of any valid function (or even many invalid ones) is non-negative.
  • Negative Parameters Enable Exponential Compactness: The most striking insight is the theoretical demonstration that allowing negative parameters in PCs (i.e., non-monotonic PCs) and then squaring them can lead to models that are exponentially more compact than monotonic PCs for certain complex functions. This means fewer parameters are needed to represent the same expressive power.
  • Deep NMMs via Squared PCs: The squaring technique naturally extends to deep architectures by applying it to PCs. This allows for the construction of deep, expressive models that were previously intractable or required significantly more parameters.
  • Tractability is Preserved: A key achievement is showing that the squaring operation, when applied to structured-decomposable PCs, results in a new PC that is also structured-decomposable and thus amenable to efficient inference.

Key Results

  • Theoretical Result (Theorem 3.1): The paper proves that there exists a class of functions that can be compactly represented by shallow squared NMMs (and thus squared non-monotonic PCs), but for which the smallest structured-decomposable monotonic PC requires exponential size. This highlights the superior representational power of squared non-monotonic models.
  • Empirical Results (Figure 2 & 3, Table G.2): Experiments show that squared non-monotonic PCs significantly outperform monotonic PCs in terms of log-likelihood on various synthetic and UCI datasets, even when using the same number of parameters. For instance, on the "Wave" dataset, a squared non-monotonic PC achieved a log-likelihood of -1.869, compared to -1.922 for a squared monotonic PC and -2.045 for a standard monotonic PC.
  • Scalability of Squared PCs: While the paper notes that direct computation of partition functions for squared PCs can lead to overflow issues (Figure F.1), the signed log-sum-exp trick allows for computations in log-space, enabling scalability to larger models.

Limitations and Future Work

  • Computational Cost of Squaring: While the squaring operation is theoretically tractable, the paper notes that squaring tensorized layers that compute cross-wise products is more computationally expensive (O(k^5)) than element-wise products (O(k^3)).
  • Learning Structure: The paper focuses on learning parameters for a given PC structure. Future work could involve learning the structure of these squared NMMs and PCs.
  • Distilling Large Models: The theoretical result on exponential separation suggests the possibility of distilling large monotonic PCs into much smaller non-monotonic ones, which is an avenue for future research.
  • EM Training and Sampling: The authors plan to investigate EM training and efficient sampling from these models.
  • Relationship to PSD Models: The paper suggests that non-monotonic PCs are at least as expressive as Positive Semi-Definite (PSD) models, which are a class of shallow mixture models. Further exploration of this relationship is a potential future direction.

Summary updated

BibTeX
@inproceedings{loconte2023negative,
  author = {Lorenzo Loconte and Stefan Mengel and Nicolas Gillis and Antonio Vergari},
  title = {{Negative Mixture Models via Squaring: Representation and Learning}},
  booktitle = {TPM @ UAI},
  year = {2023},
  url = {https://openreview.net/forum?id=uTAzte88a2},
}
Figure