The Challenge of Unnormalized Densities
In Bayesian statistics, researchers frequently encounter "unnormalized" density functions—mathematical expressions that indicate the relative likelihood of different parameters but do not sum to one. To utilize these functions effectively, one must calculate the normalization constant (the "evidence") and compute expectations or draw samples (the "posterior").
Traditional tools for this task come with significant trade-offs:
- Markov Chain Monte Carlo (MCMC): Provides samples but does not yield a functional form of the density. It can also struggle with multi-modal distributions (distributions with multiple "peaks").
- Variational Inference (VI): Fast, but typically requires the density to be differentiable (providing gradients) and forces the solution into a specific, often overly simplistic, family of shapes (like a Gaussian).
- Quadrature: Highly accurate for low dimensions but suffers from the "curse of dimensionality," becoming exponentially expensive as variables are added.
To bridge these gaps, researchers have introduced DEFER (DEnsity Function Estimation using Recursive partitioning), a "black-box" algorithm that approximates complex probability distributions without requiring gradients or problem-specific tuning.
How DEFER Works: Recursive Partitioning
Unlike standard methods that only output discrete samples, DEFER builds a complete, piecewise-constant function approximation. It does this by intelligently carving up the sample space into a tree of hyper-rectangles.
Imagine the entire parameter space as a single large box. The algorithm evaluates the density at the center, then decides whether to split that box into smaller sub-boxes. At each step, the algorithm chooses which existing partitions to refine using three criteria:
- Mass Potential (CR1): Based on a re-interpretation of Lipschitzian optimization, this identifies regions that could contain significant probability mass, even if the current center point evaluates poorly.
- Linear Correlation (CR2): Looks for "high mass" partitions and checks if they align along a linear subspace, helping the algorithm follow diagonal correlations in the data.
- Spatial Proximity (CR3): Prioritizes refining areas near known high-density regions.
These partitions are organized in a search tree structure. This allows for sub-millisecond lookups to find the density at any point and enables "constant-time" sampling using the alias method. As sampling continues, the approximation is mathematically proven to converge to the true density function.
Key Insights: From Samples to Functions
The most profound shift introduced by DEFER is moving from "sampling to get points" to "sampling to build a function." Because DEFER outputs a tree-structured function, complex downstream tasks like marginalization (collapsing dimensions) or calculating mutual information can be performed simply by summing up the volumes of the boxes in the tree.
Furthermore, because it does not rely on gradients, DEFER is remarkably robust to "jagged" or discontinuous density surfaces that would cause Hamiltonian Monte Carlo (HMC) or Variational Inference to fail.
To keep the algorithm fast, the authors employ a "Convex Hull Trick." To implement the division criteria efficiently, partitions are mapped to a 2D space (volume vs. density) and a convex hull calculation is used. Only partitions on the "upper-right quadrant" of this hull are candidates for splitting, drastically reducing computational overhead.
Performance and Results
The authors evaluated DEFER against synthetic benchmarks (like a 5D highly curved "Canoe" and a 10D "Cigar") and real-world tasks, including a 6D parameter inference problem in Gravitational-Wave physics and time-series forecasting.
- Efficiency: On challenging distributions, DEFER successfully located concentrated mass after 100k evaluations, whereas baselines like Dynamic Nested Sampling (DNS) missed it entirely.
- Accuracy: In evidence estimation (calculating $\log Z$), DEFER consistently matched or outperformed state-of-the-art DNS and PTMCMC, often requiring orders of magnitude fewer function evaluations to reach the same precision.
- Speed: The "decision time" (the time taken to choose the next sample point) remained between 0.3 to 0.5 milliseconds even after millions of evaluations, proving the scalability of the tree structure.
- Real-World Utility: In the gravitational-wave experiment, DEFER produced marginal distributions visually indistinguishable from expensive MCMC runs, while providing a reusable functional approximation.
Limitations and Future Directions
While DEFER handles "moderate" dimensions (up to ~10 variables) exceptionally well, it is still subject to the curse of dimensionality. Scaling to 50 or 100 variables remains a significant challenge for any partitioning-based method. Additionally, storing a massive tree of partitions is more memory-intensive than simply storing a list of MCMC samples.
Despite these constraints, DEFER represents a powerful new building block for Bayesian computation, offering a robust, gradient-free path for active learning and propagating uncertainty through non-linear functions.
Summary updated