Computing Gaussian Mixture Models with EM Using Equivalence Constraints

Noam Shental, Aharon Bar-Hillel, Tomer Hertz, Daphna WeinshallNeurIPS 2003

Overview

This paper introduces a method to improve Gaussian Mixture Models (GMMs) by incorporating "equivalence constraints"—simple hints about whether pairs of data points belong to the same group or different groups. By integrating these constraints directly into the Expectation-Maximization (EM) framework, the authors achieve significantly better clustering performance than standard unsupervised methods or heuristic constrained algorithms.

The Problem: Incorporating Side Information

In traditional unsupervised learning, algorithms like GMMs try to find patterns in data using only statistical distributions. However, in many real-world scenarios, we possess "side information" that isn't as complete as a full category label but is still highly informative.

For example, in video processing, we might not know who a person is, but we know that a face in frame 10 and a face in frame 11 are almost certainly the same person (a positive constraint). Conversely, if two faces appear in the exact same frame, they must be different people (a negative constraint). The core challenge is mathematically injecting these "must-link" and "cannot-link" rules into the probabilistic framework of EM without breaking the algorithm.

Comparison of unconstrained and constrained clustering on a 2D dataset.

Methods: Extending the EM Algorithm

The authors extend the standard EM algorithm to handle two distinct types of constraints:

  1. Positive Constraints ("Is-Equivalent"): The authors group points linked by positive constraints into "chunklets" using transitive closure (if A=B and B=C, then A=C). They derive a closed-form EM procedure where each chunklet is essentially treated as a single, weighted data point during the update step. This keeps the algorithm highly efficient and easy to implement.
  2. Negative Constraints ("Not-Equivalent"): These are trickier because they aren't transitive (if A!=B and B!=C, A and C might still be the same). To handle them, the authors use a Markov Network (a type of graphical model). The hidden labels of the data points become nodes in the network, and negative constraints are represented as edges that penalize the model if two constrained points are assigned to the same Gaussian. Because this makes the math more complex, they use a Generalized EM procedure to update the parameters.

Key Insights

  • Constraints as Likelihood Shifters: A major insight of this work is that constraints don't just help the algorithm converge faster; they actually change the underlying likelihood function. This allows the model to "ignore" a statistically likely but physically incorrect solution in favor of one that respects the constraints.
  • Positive vs. Negative Utility: The authors found that positive constraints (chunklets) provide the lion's share of the performance boost and are computationally easier to handle. Negative constraints add value but require more "heavy-duty" inference machinery via the Markov Net.
  • Probabilistic Rigor: Unlike previous heuristic approaches (like constrained K-means), this method maintains the probabilistic semantics of GMMs, making it more robust to noise and better at handling overlapping clusters.

Key Results and Performance

The researchers evaluated their approach on several well-known benchmarks, including UCI Repository Datasets (Balance, Boston Housing, Ionosphere, Protein, and Wine) and the YaleB Facial Image Database. The YaleB dataset, containing 640 images of 10 different subjects under varying lighting conditions, was used to simulate a "distributed learning" scenario where multiple "teachers" provide partial constraints.

Clustering performance across multiple datasets (Balance, Boston, Ionosphere, Protein, Wine, YaleB) with varying amounts of side information.
  • Superior Accuracy: The constrained EM algorithm outperformed both constrained K-means and constrained complete linkage clustering across almost all datasets.
  • Performance Scaling: Performance typically improved as the amount of side information increased (tested at "little" vs. "much" side information, representing 15% and 30% of data points constrained, respectively).
  • The "Wine" Exception: On the "Wine" dataset, constrained complete linkage actually performed better. The authors attribute this to the dataset's high dimensionality ($R^{12}$) and small sample size (168 points), which makes it difficult for EM to accurately estimate the large number of covariance parameters.

Limitations and Future Work

While highly effective, the method has a few limitations. First, the computational complexity of negative constraints can be high. While positive constraints lead to a simple closed-form solution, negative constraints require inference on a Markov Network, which could become expensive in very dense constraint networks. Second, as seen with the Wine dataset, the method struggles with small sample sizes in high dimensions when the number of parameters to be estimated is large relative to the available data points.

Future directions point toward approximating the normalization factor ($Z$) in the negative constraint formulation, which is a promising area for making the algorithm scale to even larger, more complex constraint networks.

Summary updated

BibTeX
@inproceedings{shental2003computing,
  author = {Noam Shental and Aharon Bar-Hillel and Tomer Hertz and Daphna Weinshall},
  title = {{Computing Gaussian Mixture Models with EM Using Equivalence Constraints}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2003},
  url = {https://openreview.net/forum?id=H1b_-_-OWB},
}
Figure