Estimating Density Models with Complex Truncation Boundaries

Song Liu, Takafumi KanamoriarXiv 2019

Introduction

Estimating probability distributions from data that is artificially cut off, or truncated, is a significant challenge in statistical modeling. Truncated densities share the same parametric form as their non-truncated counterparts but are defined over a restricted domain. The primary obstacle in fitting these models is the computation of the normalizing constant—an integral over the domain that ensures the total probability equals one. For complex or irregular boundaries, such as city limits or sensor ranges, this integral is often computationally intractable, rendering standard Maximum Likelihood Estimation (MLE) impractical.

Truncated Score Matching (TruncSM)

To address this, we propose Truncated Score Matching (TruncSM). Score Matching (SM) is a powerful alternative to MLE that avoids normalizing constants by matching the gradients of the log-density. However, standard SM relies on boundary conditions—specifically, that the density vanishes at the boundary—which are violated in truncated domains.

The core innovation of TruncSM is the introduction of a weight function based on the shortest distance from a data point to the truncation boundary. By weighting the score matching objective with this distance, the problematic boundary terms mathematically vanish, resulting in a tractable and computable objective.

Distance weight functions for various truncation boundaries.

We utilize two primary weight functions:

  1. Distance Weight ($g_0$): The Euclidean distance to the boundary.
  2. Capped Weight ($\bar{g}_L$): A distance weight that caps at a value of 1 further inside the domain, improving stability for distributions with slow decay.

Experimental Evaluation

The effectiveness of TruncSM was evaluated across synthetic and real-world datasets, demonstrating both computational efficiency and accuracy.

Chicago Crime Data

We applied TruncSM to the 2008 Chicago homicide dataset. The truncation boundary is the irregular, non-convex polygon of the Chicago city limits. While naive MLE incorrectly placed the crime density center in the middle of the city, TruncSM correctly identified the hotspot near the western border, accurately reflecting the actual data distribution within the geographic constraints.

Chicago crime data within city limits.

Correcting Algorithmic Bias

TruncSM also proves useful in correcting biases introduced by aggressive outlier detection. When algorithms like One-class SVMs trim "outliers," they create implicit truncation boundaries. TruncSM can recover the true underlying distribution of the inliers, whereas standard MLE tends to underestimate variance because it is unaware of the missing data. Tests on CIFAR-10 and synthetic data confirmed that TruncSM maintains high accuracy even when 20% of the data is artificially removed.

Conclusion

TruncSM provides a mathematically sound and computationally efficient framework for density estimation in truncated domains. By leveraging the distance to the boundary as a weight function, it bypasses the need for complex normalizing constants. This method is particularly valuable for geographic modeling and for recovering distributions from datasets subjected to aggressive filtering or trimming.

Summary updated

BibTeX
@misc{liu2019estimating,
  author = {Song Liu and Takafumi Kanamori},
  title = {{Estimating Density Models with Complex Truncation Boundaries}},
  year = {2019},
  eprint = {1910.03834},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.03834},
}
Figure