Abstract
Bayesian methods are a popular choice for statistical inference in small-data regimes due to the regularization effect induced by the prior. In the context of density estimation, the standard nonparametric Bayesian approach is to target the posterior predictive of the Dirichlet process mixture model. In general, direct estimation of the posterior predictive is intractable and so methods typically resort to approximating the posterior distribution as an intermediate step. The recent development of quasi-Bayesian predictive copula updates, however, has made it possible to perform tractable predictive density estimation without the need for posterior approximation. Although these estimators are computationally appealing, they tend to struggle on non-smooth data distributions. This is due to the comparatively restrictive form of the likelihood models from which the proposed copula updates were derived. To address this shortcoming, we consider a Bayesian nonparametric model with an autoregressive likelihood decomposition and a Gaussian process prior. While the predictive update of such a model is typically intractable, we derive a quasi-Bayesian predictive update that achieves state-of-the-art results on moderate-sized examples.
Introduction
Density estimation—the task of learning the underlying probability distribution of a dataset—remains a cornerstone of machine learning. However, practitioners often face a trade-off between flexibility and robustness. Neural density estimators, such as Masked Autoregressive Flows (MAF), offer immense flexibility but are prone to severe overfitting in small-data settings. Conversely, traditional Bayesian nonparametrics provide robust regularization but are computationally intensive, often requiring slow Markov Chain Monte Carlo (MCMC) simulations.
Recent work introduced Recursive Bayesian Predictives (R-BP) as a faster alternative. R-BP avoids posterior approximation by iteratively updating the predictive density. However, these models often use a fixed scalar bandwidth, leading to over-smoothing and an inability to capture complex dependencies in non-smooth data. This paper introduces AR-BP (Autoregressive Recursive Bayesian Predictives), which bridges this gap by combining the regularization of Bayesian methods with the flexibility of autoregressive modeling through a novel data-dependent update mechanism.
Methodology: Autoregressive Predictive Updates
The core innovation of AR-BP is the transition from static updates to an autoregressive, data-dependent framework.
The Quasi-Bayesian Framework
Instead of the traditional two-step process of estimating a posterior and then a predictive, AR-BP updates the predictive density directly: $p_{i-1}(x) \to p_i(x)$ upon observing a new data point $x_i$. This update is mediated by bivariate copulas, which serve as the mathematical "glue" for the iterative refinement of the distribution. This "Quasi-Bayes" approach sidesteps MCMC, making the model significantly faster while retaining Bayesian properties like coherence.
Data-Dependent Bandwidth
A critical limitation of previous recursive methods was the use of a "one-size-fits-all" bandwidth. AR-BP introduces a bandwidth $\rho$ that is a function of the distance between points in the data space, derived from a Gaussian Process (GP) prior on the autoregressive likelihood. This ensures that the update is strongest and most localized where the new data point resides, effectively centering the probability mass update on the observed data.
For highly non-smooth distributions, the authors propose ARnet-BP. This variant uses a neural network to map observations into a latent space before calculating the bandwidth, providing the non-linear flexibility needed to capture sharp transitions in the data.
Results and Discussion
The performance of AR-BP and its variants was evaluated across a suite of benchmarks, ranging from small UCI datasets to larger datasets like HEPMASS and BSDS300.
Performance in Small-Data Regimes
AR-BP consistently outperforms both traditional Kernel Density Estimators (KDE) and state-of-the-art neural flows (MAF, RQ-NSF) in settings with fewer than 1,000 samples. As shown in the quantitative analysis, the test Negative Log-Likelihood (NLL) for AR-BP variants is significantly lower than competing methods in the low-$n$ regime, demonstrating the effectiveness of the Bayesian prior as a "safety net."
Capturing Non-Smooth Distributions
The "chessboard" distribution serves as a challenging test case for non-smooth data. While standard R-BP produces a blurred approximation, ARnet-BP successfully recovers the underlying grid structure. This qualitative advantage is illustrated in the comparison below, where ARnet-BP's density map closely matches the true data distribution while neural flows like MAF struggle to resolve the boundaries.
Conclusion
AR-BP offers a compelling middle ground for density estimation. By focusing on the predictive update rather than the posterior, it achieves computational tractability without sacrificing the regularization benefits of Bayesian inference. While the $O(n^2)$ scaling presents a challenge for massive datasets, the model's superior performance in small-to-moderate data regimes and its ability to handle non-smooth distributions make it a versatile tool for modern statistical inference.
Summary updated