E$^2$M: Double Bounded $α$-Divergence Optimization for Tensor-based Discrete Density Estimation

Kazu Ghalamkari, Jesper Løve Hinrich, Morten Mørup

TL;DR

The paper introduces E$^2$M, a novel optimization framework for estimating discrete probability distributions using low-rank tensors. By employing a clever "double-bounding" technique, the authors derive closed-form update rules for $\alpha$-divergence—a flexible family of distance measures—allowing for robust, scalable, and hyperparameter-free learning across various tensor formats like CP, Tucker, and Tensor Train.

What Problem Does This Paper Address?

Estimating the probability distribution of discrete, categorical data (like "color," "location," or "label") is a fundamental task in machine learning. Tensors—multi-dimensional arrays—are excellent for this because they can naturally capture complex, high-order interactions between variables.

However, two major hurdles exist:

  1. Flexible Modeling: Real-world data often doesn't fit a single simple structure. Researchers often have to choose between different tensor formats (like CP or Tensor Train) without knowing which is best.
  2. Optimization Challenges: To train these models, we need to minimize the "distance" between the model and the observed data. While the standard Kullback-Leibler (KL) divergence is common, the broader $\alpha$-divergence family is often preferred because it allows practitioners to tune the model's sensitivity to outliers. Unfortunately, $\alpha$-divergence involves non-linear power terms that make deriving simple, "closed-form" update rules nearly impossible. Most existing methods fall back on gradient descent, which requires tedious tuning of learning rates.

Methods

The authors propose the E$^2$M (Double Bounded EM) algorithm. It generalizes the classic Expectation-Maximization (EM) algorithm by applying Jensen’s inequality twice to create a "double bound" on the objective function.

The E$^2$M algorithm uses two E-steps to create a tractable upper bound for the complex $\alpha$-divergence objective.
  • The E1-step: Relaxes the $\alpha$-divergence optimization into a more manageable KL-divergence problem.
  • The E2-step: Further relaxes the model into a "many-body approximation." This essentially decouples the complex interactions between variables into independent parts.
  • The M-step: Because the problem is now decoupled, the authors derive exact, closed-form solutions for the model parameters. This means the algorithm is "step-size free"—you don't have to tune a learning rate.

Crucially, the framework supports mixtures of different tensor structures (CP, Tucker, and Tensor Train) and includes an adaptive background term (a learnable uniform distribution) that prevents the model from crashing when it encounters data points it hasn't seen before.

Datasets

The effectiveness of E$^2$M was tested on a wide variety of data:

  • Synthetic Data: 1D Gaussian mixtures and a noisy "half-moon" dataset to test robustness.
  • Real-World Tabular Data: 34 discrete datasets from the UCI, OpenML, and PMLB repositories, ranging from medical data (AsiaLung) to social data (Income).
  • Image Data: The SIPI House color image, treated as a high-dimensional tensor to evaluate optimization speed and convergence.

Key Insights and Ideas

  • Robustness via $\alpha$: The parameter $\alpha$ acts as a "knob" for noise sensitivity. A smaller $\alpha$ makes the model "mass-covering," meaning it focuses on the dominant patterns and ignores outliers. This is clearly visible in the noisy half-moon experiments.
Reconstructions of noisy data show that lower $\alpha$ values (left) are much more robust to mislabeled points and outliers than higher $\alpha$ values (right).
  • The "Aha!" of Decoupling: The core mathematical breakthrough is moving the summations outside the logarithm. By doing this, a non-convex, coupled optimization problem turns into a series of independent, convex problems that can be solved perfectly in one step.
  • Hybrid Strength: The paper shows that you don't have to pick just one tensor format. A mixture (e.g., CP + Tensor Train) often outperforms any single format by leveraging the intuitive simplicity of CP and the latent interaction-capturing power of Tensor Train.

Key Results

  • No Tuning Required: E$^2$M achieves convergence speeds and costs comparable to state-of-the-art gradient optimizers like Adam or RMSprop, but without the need to tune learning rates.
  • Superior Density Estimation: On the 34 real-world datasets, the E$^2$M mixture model (E$^2$MCPTTB) consistently outperformed prominent baselines in both classification accuracy and negative log-likelihood.
  • Scalability: The algorithm is designed to exploit sparsity. Its computational complexity scales linearly with the number of observed samples ($N$), making it efficient even for tensors that theoretically contain trillions of elements.

Limitations and Future Work

While E$^2$M is a significant step forward, the authors note a few areas for further exploration:

  • Local Optima: Like all EM-based methods, the algorithm is guaranteed to converge, but it might get stuck in a local optimum rather than finding the global best solution.
  • Rank Selection: While you don't have to tune the learning rate, you still need to choose the "rank" (complexity) of the tensor components, which usually requires cross-validation.
  • Mini-batching: For truly massive datasets that don't fit in memory, the authors suggest that a mini-batched version of E$^2$M is possible, but they leave the full theoretical analysis of that for future work.

Summary updated

Abstract

Tensor-based discrete density estimation requires flexible modeling and proper divergence criteria to enable effective learning; however, traditional approaches using $α$-divergence face analytical challenges due to the $α$-power terms in the objective function, which hinder the derivation of closed-form update rules. We present a generalization of the expectation-maximization (EM) algorithm, called the E$^2$M algorithm. It circumvents this issue by first relaxing the optimization into the minimization of a surrogate objective based on the Kullback-Leibler (KL) divergence, which is tractable via the standard EM algorithm, and subsequently applying a tensor many-body approximation in the M-step to enable simultaneous closed-form updates of all parameters. Our approach offers flexible modeling for not only a variety of low-rank structures, including the CP, Tucker, and Tensor Train formats, but also their mixtures, thus allowing us to leverage the strengths of different low-rank structures. We evaluate the effectiveness of our approach on synthetic and real datasets, highlighting its comparable convergence to gradient-based procedures, robustness to outliers, and favorable density estimation performance compared to prominent existing tensor-based methods.
BibTeX
@article{ghalamkari2025e,
  author = {Kazu Ghalamkari and Jesper Løve Hinrich and Morten Mørup},
  title = {{E$^2$M: Double Bounded $α$-Divergence Optimization for Tensor-based Discrete Density Estimation}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=954CjhXSXL},
}
Figure