TL;DR
This paper provides the rigorous mathematical "missing links" that connect complex hierarchical Bayesian models to simple, scalable clustering algorithms. By taking the limit as noise goes to zero—a technique called Small-Variance Asymptotics (SVA)—the authors derive intuitive, k-means-like objective functions for the Hierarchical Dirichlet Process (HDP) and the HDP Hidden Markov Model.
What Problem Does This Paper Address?
In the world of machine learning, there is often a trade-off between the elegance of Bayesian Nonparametrics (BNP) and the raw speed of simple optimization algorithms like k-means. BNP models, such as the Dirichlet Process, are powerful because they can automatically determine the number of clusters in a dataset. However, performing inference on these models usually requires computationally expensive sampling (like MCMC) or complex variational methods.
Years ago, researchers discovered that k-means is actually a special "limit" case of a Gaussian Mixture Model where the variance of the clusters is pushed to zero. Recently, this idea was extended to BNP models to create "hard" clustering algorithms that are as fast as k-means but retain the ability to discover new clusters. While the high-level idea was clear, the specific mathematical derivations for hierarchical models—where clusters are shared across different groups—were subtle and scattered across the literature. This paper acts as a self-contained technical reference to fill that gap.
Methods
The authors employ Small-Variance Asymptotics (SVA). The core logic follows these steps:
- Start with a Joint Density: Write out the full probabilistic model (e.g., an HDP mixture model).
- Reparameterize for Noise: Define the cluster variance $\sigma^2$ and a corresponding parameter $\beta = 1/(2\sigma^2)$.
- Take the Limit: As $\sigma^2 \to 0$ (or $\beta \to \infty$), the probabilistic model collapses into a deterministic optimization problem.
- Asymptotic Expansion: Use tools like Stirling’s approximation for Gamma functions to handle the combinatorial terms (like the Chinese Restaurant Franchise probabilities) that arise in nonparametric models.
The paper specifically derives objective functions for two major models:
- HDP Mixture Models: Used for clustering data that belongs to multiple related groups.
- HDP-HMM (Infinite HMM): Used for time-series data where the number of hidden states is unknown.
Datasets
Not discussed in the paper. This is a purely theoretical mathematical note. The authors provide derivations and objective functions but do not perform empirical tests on specific datasets.
Key Insights and Ideas
- The "Penalty" Intuition: The derived objective functions look remarkably like the standard k-means objective (minimizing squared Euclidean distance) but with added "penalty" terms.
- In the HDP case, one term ($\lambda_1$) penalizes the total number of global clusters, while another ($\lambda_2$) penalizes the number of clusters used within a specific group.
- Combinatorial vs. Direct Approaches: For the HDP-HMM, the authors show two ways to reach the limit. The "Combinatorial" approach integrates out the underlying weights, leading to a penalty on the number of distinct transitions. The "Direct" approach keeps the weights, resulting in a KL-divergence penalty that biases transition probabilities toward a global shared prior.
- Hyperparameter Scaling: To ensure the nonparametric nature of the model doesn't vanish in the limit, the authors show that hyperparameters (like the concentration parameters $\alpha$ and $\gamma$) must be scaled exponentially with respect to the variance.
Key Results
The primary results are the final SVA objective functions. For the HDP mixture model, the optimization goal becomes: $$\min_{K, Z, \mu} \left\{ \sum \text{Distances} + \lambda_1(K-1) + \lambda_2 \sum (\text{local clusters} - 1) + \lambda_3 \sum \|\mu_k\|^2 \right\}$$
This formula gives practitioners a clear recipe: to cluster hierarchical data, you don't necessarily need a complex sampler; you can minimize this cost function using iterative, k-means-style updates. The paper provides similar concrete formulas for the HDP-HMM (Equations 29 and 36), which allow for "hard" state assignments in infinite hidden Markov models.
Limitations and Future Work
- Spherical Variance: The derivations assume "spherical" Gaussian noise (variance is the same in all directions). Extending this to non-spherical or non-Gaussian distributions would require significantly more complex math.
- Local Optima: Like k-means, the resulting objective functions are non-convex. While the derivations are mathematically sound, the paper does not discuss the algorithmic challenges of avoiding poor local minima during optimization.
- Implementation: As a theoretical note, the paper leaves the development of specific, high-performance software implementations of these derived objectives to future work or other researchers.
Summary updated