A nonparametric variable clustering model

David A. Knowles, Konstantina Palla, Zoubin GhahramaniNeurIPS 2012

In the analysis of high-dimensional data, understanding how variables relate to one another is a fundamental challenge. Standard tools like Factor Analysis (FA) or Principal Component Analysis (PCA) are highly effective at summarizing covariance. However, they often produce dense, "messy" results where every variable has a fractional influence on every latent factor, making interpretation a nightmare for domain experts.

To address this, Palla, Knowles, and Ghahramani introduce a cleaner alternative: Dirichlet Process Variable Clustering (DPVC). By combining the flexibility of Bayesian nonparametrics with the structure of factor analysis, DPVC automatically groups variables into distinct, highly correlated "buckets."

The Interpretability Problem

When dealing with thousands of variables—such as gene expression levels in bioinformatics—researchers often want to find groups of variables that move together. Traditional Factor Analysis suffers from an interpretability problem because a single variable can load onto multiple factors simultaneously. Conversely, standard clustering algorithms (like k-means) typically group variables based on Euclidean distance rather than correlation, missing the underlying structural dynamics.

The DPVC model bridges this gap by:

  1. Clustering variables based on their correlation structure.
  2. Ensuring each variable belongs to exactly one cluster (a disjoint partition).
  3. Automatically inferring the number of clusters ($K$) from the data, removing the need for user guesswork.

The DPVC Model

The core of the DPVC model relies on the Chinese Restaurant Process (CRP), a standard prior in Bayesian nonparametrics. In this analogy, variables act as "customers" who sit at "tables" (clusters). The CRP allows the model to potentially create an infinite number of clusters, letting the data dictate the actual number needed.

Graphical representation of the DPVC model

The Generative Process: * Partitioning: Variables are assigned to disjoint clusters using the CRP. * Latent Factors: Each cluster $k$ is assigned a single latent factor $x_k$. * Observation: The observed value of a variable is generated as a scaled version of its cluster's latent factor, plus some Gaussian noise.

Mathematically, this disjoint assignment results in a block-diagonal covariance matrix. If two variables are in the same cluster, they are correlated; if they are in different clusters, their covariance is strictly zero.

To perform inference, the authors implemented two approaches:

  • MCMC (Gibbs Sampling): Highly accurate but computationally intensive.
  • Variational Inference (VB): Faster and more scalable, though more prone to getting stuck in local optima compared to MCMC.

Experimental Evaluation

The model was evaluated across three distinct datasets:

  1. Synthetic Data: 20 dimensions partitioned into 5 clusters to test ground-truth recovery.
  2. Breast Cancer Dataset: 226 genes across 251 individuals.
  3. Yeast Dataset: A larger set of 6,152 genes across 175 experiments.

A key insight from the evaluation is that DPVC scales efficiently. It has a computational complexity of $O(DKN)$ (where $D$ is variables, $K$ is clusters, and $N$ is samples). This makes it significantly cheaper than more complex non-parametric factor models, which often scale cubically with the number of factors ($K^3$). Furthermore, DPVC naturally handles variables that are perfectly correlated but far apart in Euclidean space (e.g., $y_1 = -y_2$), a scenario where standard distance-based clustering fails.

Key Results

On synthetic data, the MCMC implementation of DPVC consistently outperformed k-means at recovering the true cluster assignments. Notably, DPVC achieved this superior recovery even when k-means was given the unfair advantage of knowing the correct number of clusters in advance.

Performance comparison of DPVC and K-means on synthetic data

On real-world genomic data, DPVC demonstrated better predictive log-likelihood than standard Dirichlet Process Mixtures and finite (non-sparse) factor analysis models. When applied to the breast cancer dataset, the model successfully identified clusters enriched for genes involved in cell cycle regulation and cell division—findings that are highly consistent with established cancer biology.

Limitations and Future Work

The primary limitation of DPVC is its strict "one-factor-per-variable" constraint. While this disjoint partitioning maximizes interpretability, it may be overly simplistic for complex biological systems where a single gene might genuinely participate in multiple distinct pathways.

Additionally, while the Variational Bayes implementation is fast, it underperformed the MCMC version in finding the global optimum. The authors suggest that using Expectation Propagation or more sophisticated damping techniques might help alleviate issues with multimodality in the posterior distribution. Finally, they propose that the inferred latent factors ($X$) could be utilized in downstream tasks, such as principal components regression, to predict external clinical outcomes.

Summary updated

BibTeX
@inproceedings{knowles2012nonparametric,
  author = {David A. Knowles and Konstantina Palla and Zoubin Ghahramani},
  title = {{A nonparametric variable clustering model}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2012},
  url = {https://openreview.net/forum?id=HyWxNuWO-H},
}
Figure