Discriminative Bayesian Nonparametric Clustering

Vu Nguyen, Dinh Q. Phung, Trung Le, Hung Bui

Introduction

Traditional clustering algorithms generally fall into two categories: generative and discriminative. Generative Bayesian Nonparametric (BNP) models, such as the Dirichlet Process Mixture (DPM), are powerful because they automatically determine the number of clusters ($K$) as they process more data. However, these models primarily focus on intra-cluster similarity—grouping points that look alike—and often fail to explicitly model inter-cluster discrimination. This can result in overlapping clusters or a failure to identify clear boundaries in complex data.

Conversely, discriminative clustering focuses on finding boundaries that best separate groups. While effective at separation, these methods often struggle to determine the "correct" number of clusters automatically and lack a formal probabilistic generative framework. This paper bridges this gap by introducing a framework that integrates discriminative loss functions (like those in SVMs or Logistic Regression) directly into the generative process of BNP models.

Proposed Framework

The authors propose a framework that "glues" a generative BNP component to a discriminative one using a consistency variable ($c_i$). This approach is applied to two fundamental models: the Discriminative Dirichlet Process Mixture (DDPM) for independent data and the Discriminative-state Infinite Hidden Markov Model (DIH) for sequential data.

The consistency variable $c_i$ is the key innovation. It is defined to be "true" only when the latent cluster index assigned by the generative process matches the label predicted by the discriminative model. By "clamping" this variable to be true during inference, the model forces the resulting clusters to be both internally similar and externally discriminative. To handle non-smooth loss functions like the hinge-loss of SVMs within a Bayesian framework, the authors utilize data augmentation, introducing auxiliary variables that transform complex likelihoods into a form suitable for efficient Gibbs sampling.

Experimental Evaluation

The models were evaluated on several diverse benchmarks, including synthetic 2D data, image clustering (NUS Wide, Fifteen Scenes, MNIST), and time-series data (Mobile Data Challenge WiFi logs).

  • Image Clustering: On datasets like NUS Wide and MNIST, the SVM and Logistic Regression variants (DDPM-S and DDPM-L) consistently outperformed standard DPM and other baselines (e.g., K-means, GMM) in terms of Normalized Mutual Information (NMI) and F1-score.
  • Sequential Data: For the WiFi location task, the DIH models outperformed the standard iHMM. For example, on the MDC dataset, DIH-S achieved an F1-score of 0.559 compared to the iHMM's 0.481.
  • Efficiency: Despite the added complexity of discriminative hyperplanes, the DIH model reached stable, high-quality results in less CPU time than the standard iHMM, suggesting superior mixing properties in the Gibbs sampler.

Key Insights and Discussion

A major advantage of this framework is its robustness to hyperparameters. In synthetic experiments, while standard DPMs required perfectly tuned covariance parameters to function, DDPM recovered correct clusters easily because the discriminative requirement "pushed" the clusters apart regardless of density shape. Furthermore, by forcing discrimination, the model tends to converge to a smaller, more interpretable number of clusters compared to purely generative models, which may over-fragment data.

Limitations include the current reliance on MCMC methods, which may struggle with massive scales; the authors suggest Stochastic Variational Inference (SVI) as a promising future direction. Additionally, while the current work focuses on linear discriminative models, extending this to non-linear kernels or deep neural network embeddings could further enhance performance on highly complex, non-linearly separable data.

Summary updated

BibTeX
@inproceedings{nguyen2017discriminative,
  author = {Vu Nguyen and Dinh Q. Phung and Trung Le and Hung Bui},
  title = {{Discriminative Bayesian Nonparametric Clustering}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/355},
}
Figure