Estimating probability distributions from truncated data—where observations are cut off by a boundary—is a notoriously difficult problem in statistics. Whether dealing with species sightings limited by a country’s jagged geographic borders or medical test results constrained by detection limits, standard techniques like Maximum Likelihood Estimation (MLE) often fail. The "normalizing constant" required to ensure probabilities sum to one becomes mathematically intractable over complex, truncated shapes.
While "score-matching" methods can bypass this constant, they rely on a Stein identity that assumes the density vanishes at the boundary. Because truncated densities often hit the boundary at their peak, previous solutions (like TruncSM or bd-KSD) forced the density to zero at the edge using a weighting function. Unfortunately, these functions require knowing the exact mathematical equation of the boundary. If your boundary is the coastline of Maine or a high-dimensional complex manifold, these methods break down.
To address this, researchers have introduced Truncated Kernelised Stein Discrepancy (TKSD), a novel method that learns these densities using only a finite set of sample points from the boundary, effectively relaxing classical identities to work in real-world scenarios.
Relaxing the Rules: Approximate Stein Classes
The core innovation of this paper is a shift from exact mathematical requirements to data-driven approximations:
- Approximate Stein Classes: Instead of demanding that the Stein identity equals zero exactly everywhere on the boundary, the authors define a class of functions where the identity is bounded by a decreasing sequence.
- TKSD (Truncated Kernelised Stein Discrepancy): This new discrepancy measure eliminates the need for a pre-defined weighting function. Instead, it enforces boundary conditions only on a finite set of points sampled from the boundary.
- Lagrangian Dual Solution: By treating these boundary conditions as constraints in an optimization problem, the authors derive a closed-form loss function. This loss resembles the standard Kernelised Stein Discrepancy but includes a "correction term" that accounts for the truncation using kernel-based regression on the boundary points.
Essentially, TKSD learns the "shape" of the truncation from data points rather than requiring a human to derive a complex distance-to-boundary formula.
Empirical Validation
The authors evaluated TKSD across several challenging scenarios, including a 2D Gaussian distribution truncated by the highly irregular U.S. border, geometric benchmarks ($\ell_1$ and $\ell_2$ balls) in dimensions up to $d=12$, complex Gaussian Mixture Models, and a real-world truncated regression dataset of student test scores.
Superiority with Unknown Boundaries
In the U.S. border experiment, TKSD significantly outperformed existing methods like TruncSM when the exact boundary formula was unavailable. By enforcing the Stein identity only at specific boundary samples, the model naturally adapted to the truncation. It achieved lower estimation error with far fewer boundary points.
Computational Efficiency in High Dimensions
For complex shapes like $\ell_1$ balls, calculating the exact distance function required by previous methods is combinatorially explosive. TKSD bypasses this entirely. By relying on boundary samples, it remains significantly faster than "exact" methods in high dimensions while maintaining competitive accuracy.
Limitations and Future Directions
While TKSD offers a powerful, flexible approach to truncated density estimation, it does have limitations:
- Matrix Inversion Bottleneck: The core algorithm requires inverting an $m \times m$ matrix, where $m$ is the number of boundary points. While the authors suggest letting $m$ scale with $d^2$, this could become computationally expensive for extremely complex boundaries in very high dimensions.
- Hyperparameter Sensitivity: Like most kernel methods, TKSD requires carefully choosing a kernel (usually Gaussian), a bandwidth parameter, and the number of boundary points $m$.
- Boundary Point Distribution: The method performs best when boundary points are representative of the entire edge. If boundary samples are clustered in only one area, the approximate identity might not hold well across the entire truncated domain. Future work could explore active learning strategies to select the most informative boundary points.
By moving from rigid mathematical boundaries to flexible, sample-based approximations, TKSD opens the door to modeling complex, real-world truncated data that was previously out of reach.
Summary updated