Abstract
This paper introduces Recursive Exponential Mixed Models (REMMs), a framework that simplifies parameter gradient calculation in complex graphical models containing both discrete and continuous variables. We demonstrate that standard probabilistic inference techniques can be repurposed to compute these gradients efficiently, providing a powerful tool for learning model parameters even with missing data or shared parameters.
Introduction
In machine learning and statistics, Maximum Likelihood Estimation (MLE) for models with incomplete data—where some variables are hidden or missing—is a challenging optimization problem. While the Expectation-Maximization (EM) algorithm is a popular choice, gradient-based optimization (such as conjugate gradient descent) is often faster and more robust. However, calculating the gradient of the "incomplete-data likelihood" is computationally grueling for models with mixed data types. This paper presents an efficient, exact method for computing these gradients in Conditional Gaussian (CG) models, which are widely used to represent relationships between categorical and numerical data.
Methods: Recursive Exponential Mixed Models (REMMs)
We define REMMs as a class of directed graphical models where each local conditional distribution belongs to the exponential family. This includes standard CG components, such as multinomial distributions for discrete nodes and linear regressions for continuous nodes, re-parameterized into an exponential form.
The core mathematical contribution is showing that the gradient of the log-likelihood can be expressed in terms of "expected statistics." Crucially, we prove these statistics can be extracted directly from the marginal distributions produced by standard Bayesian network inference algorithms, specifically the Lauritzen and Jensen propagation scheme. This unification implies that if an efficient algorithm exists to compute marginal probabilities in a graphical model, an efficient algorithm to compute gradients is already effectively in hand.
Case Study: The $\sigma$ARMA Model
To illustrate the framework, we apply it to a stochastic ARMA ($\sigma$ARMA) model. This model serves as a running case study for handling complex time-series dependencies and "tied" parameters, where multiple variables in a model share the same underlying parameters.
The $\sigma$ARMA model demonstrates how the REMM framework handles parameters shared across multiple variables in a sequence. The gradient essentially becomes the difference between the statistics observed in the data and the statistics expected by the model. By treating everything as an exponential model, the framework provides a unified language for discrete and continuous variables.
Key Results and Insights
The paper provides explicit, closed-form equations for gradients in CG models. For a continuous variable $X_v$, the gradient involves simple terms like the posterior mean and covariance, which are standard outputs of inference. This reduces the complexity of gradient computation to that of a single round of probabilistic inference, making gradient-based learning feasible for large-scale mixed-variable models.
Furthermore, the exponential re-parameterization naturally enforces certain constraints—such as probabilities summing to one or variances remaining positive—that can be tricky to maintain during standard gradient descent.
Limitations and Future Work
The current REMM framework requires "non-degenerate" distributions; specifically, Gaussian distributions must have a variance $\sigma > 0$. This means the method cannot currently handle purely deterministic relationships (where $\sigma = 0$), such as those found in classic ARMA models. Future research will focus on extending inference to non-positive CG models to bridge this gap.
Conclusion
By unifying discrete and continuous variables under the REMM framework, we provide a powerful tool for learning in complex graphical models. The insight that "inference is enough" for gradient computation simplifies the implementation of learning algorithms, offering a robust and efficient alternative to traditional EM and stochastic methods for large-scale mixed-variable modeling.
Summary updated