TL;DR
Evaluating the prior distribution on the number of clusters in Gibbs-type Bayesian nonparametric models is notoriously difficult due to extreme numerical overflows. This paper introduces a fast recursive approximation based on predictive cluster ratios that bypasses unwieldy integral evaluations, comparing it against finite-dimensional multinomial models and stick-breaking/Ferguson–Klass truncations relative to an exact arbitrary-precision baseline.
What Problem Does This Paper Address?
Bayesian nonparametric (BNP) models—such as the Pitman–Yor (PY) process and Normalized Generalized Gamma (NGG) process—are widely used in mixture models where data points are partitioned into clusters. To set sensible hyperparameters, practitioners must understand the prior distribution induced on the number of clusters, $K_n$, for a sample of size $n$.
Analytically, the probability mass function $P(K_n = k)$ depends on two triangular arrays: the generalized factorial coefficients $C_{n,k}$ and process-specific integral coefficients $V_{n,k}$. In practice, computing these terms leads to catastrophic floating-point underflow and overflow even for modest sample sizes ($n \approx 10^2 - 10^3$). Because summands alternate in sign, standard log-sum-exp stabilization tricks fail.
Methods
The authors analyze four statistical approximation strategies and release implementations in Julia and R (GibbsTypePriors):
- Predictive Distribution Approximation (Novel): Leverages second-order large-$n$ asymptotics of the predictive probability ratio. By focusing on the ratio of consecutive weights, $p_{n+1,k+1} / p_{n+1,k}$, the arduous $V_{n,k}$ integrals cancel out, leaving a simple correction term $\beta_{n,k}/\sigma$ and generalized factorial ratios $C_{n+1,k+1}/C_{n+1,k}$ with an $O(1/n)$ error term. The full distribution is then recovered via a 1D recursive normalization.
- Finite-Dimensional Multinomial Approximation: Approximates the infinite-dimensional BNP prior with an $H$-dimensional multinomial counterpart.
- Stick-Breaking Truncation: Truncates constructive stick-breaking representations at a finite level $H$.
- Ferguson–Klass Truncation: Represents normalized random measures with independent increments (NRMI) by ordering jumps via Poisson process inversion, truncated at level $H$.
- Exact Arithmetic Baseline: Implements the exact combinatorial and integral formulations using arbitrary-precision arithmetic to serve as ground truth.
Datasets
The paper does not use real-world datasets. The approximations are evaluated on synthetic simulation experiments across varying sample sizes ($n = 100$ and $n = 1000$), truncation levels ($H = 250$ and $H = 1000$), and comprehensive grids of hyperparameters: discount $\sigma \in (0, 1)$ and scale/concentration $\tau, \alpha \in [1, 200]$.
Key Insights and Ideas
- Ratio Formulation Circumvents Integrals: Instead of evaluating the intractable $V_{n,k}$ coefficients individually, computing the ratio of successive prior probabilities isolates the dominant term and yields an accurate closed-form recursion.
- Ordered Truncation Matters: Ferguson–Klass truncation substantially outperforms standard stick-breaking truncation at identical truncation levels ($H = 250$). This is because Ferguson–Klass produces weights in strict, non-increasing order, whereas stick-breaking weights are only stochastically decreasing.
- Prior Calibration Geometry: Plotting prior expectation against standard deviation reveals that as $\sigma$ increases, standard deviation exhibits an inverted U-shaped (almost parabolic) curve. Furthermore, substantial portions of the $(\mathbb{E}[K_n], \mathrm{std}[K_n])$ space are mathematically unreachable, cautioning practitioners against arbitrary moment-matching during prior elicitation.
Key Results
- Predictive Approximation Accuracy: For $n = 100$ and $n = 1000$, the predictive distribution approximation closely tracks the exact ground-truth distribution for most parameter regimes, particularly for larger discount values ($\sigma = 0.75$) and smaller scale values ($\tau = 1$).
- Regime Complementarity: The predictive approximation degrades when $\sigma$ is small ($\sigma \approx 0.25$) and $\tau$ is large ($\tau \approx 10$). In this specific regime, the finite-dimensional multinomial approximation performs best.
- Truncation Failures: Stick-breaking and Ferguson–Klass truncations at $H = 250$ severely deteriorate as $\sigma \to 1$, requiring impractically large truncation levels ($H \gg 1000$) to achieve reasonable fidelity.
Limitations and Future Work
- Asymptotic Regime Limitations: The predictive approximation relies on large-$n$ expansions and exhibits approximation error when $\sigma$ is near zero and $\tau$ is large.
- Theoretical Guarantees: While finite-dimensional and truncation approximations offer weak convergence guarantees as $H \to \infty$, the predictive method provides an asymptotic guarantee only in sample size $n$ ($O(1/n)$), lacking an adjustable precision knob like $H$.
- Computational Benchmarking: Quantitative comparisons of computational efficiency, runtime, and memory overhead across the different approximations remain for future work.
Summary updated