The Distribution Family of Similarity Distances

Gertjan J. Burghouts, Arnold W. M. Smeulders, Jan-Mark Geusebroek

In computer vision, tasks like object recognition, clustering, and scene categorization fundamentally rely on measuring the "distance" or similarity between feature vectors (such as SIFT descriptors). To determine if two features are a genuine match or just coincidentally close, researchers must understand the underlying probability distribution of these distances.

Historically, the field has leaned heavily on the Central Limit Theorem, assuming these distances follow a Gaussian (normal) distribution. However, this assumption requires feature values to be independent and identically distributed (i.i.d.). In real-world images, pixels and features are highly correlated, meaning the i.i.d. condition rarely holds true. This paper challenges the Gaussian assumption and, using Extreme Value Theory, proves that $L_p$-norm distances actually follow the Weibull distribution family.

The Problem with the Gaussian Assumption

The paper highlights that assuming a Gaussian distribution for image features is fundamentally flawed. Because features at different indices within an image are almost always correlated and non-identically distributed, the Central Limit Theorem does not apply. Furthermore, similarity distances are essentially searches for "minima" (the closest match) among bounded values. The symmetric nature of a Gaussian curve fails to account for the heavy tails and skewness typically observed in the distance histograms of real image data.

A New Foundation: Extreme Value Theory

To provide a theoretically sound model, the authors turn to Extreme Value Statistics. Their approach follows a rigorous mathematical progression:

  1. Statistics of Sums: They utilize a lemma demonstrating that the sum of non-identical and correlated random variables follows a Generalized Extreme Value (GEV) distribution, which includes the Gumbel, Frechet, and Weibull distributions.
  2. The Boundedness Argument: Image features are derived from finite measurements, such as pixel intensities, meaning they are strictly "upper-bounded." Statistical theory dictates that sums of upper-bounded variables specifically converge to the Weibull distribution.
  3. $L_p$-norm Derivation: The authors prove that if the sum of feature differences is Weibull-distributed, the $L_p$-norm (the standard distance metric used in vision tasks) also adheres to the Weibull family through a change of variables.
The Weibull distribution family with varying shape parameters ($\gamma$). Notice how it naturally models skewness, unlike a symmetric Gaussian curve.

Experimental Validation and Mixture Models

The authors validated their theory using the COREL dataset, extracting popular feature types (SIFT, GLOH, SPIN, PCA-SIFT) across various interest regions (Harris-affine, Hessian-affine, MSER, IBR).

The experimental results were striking: for most feature types, over 90% of distance distributions were accurately fitted by a single Weibull function.

However, real-world images are often heterogeneous—for example, an image might contain both a smooth natural scene and a highly textured man-made object. In these complex scenarios, the distance distribution becomes multimodal. The paper extends its theory to show that a mixture of just two Weibull functions can accurately model these complex, heterogeneous scenes, providing a good fit in $\ge$ 97% of cases where a single distribution failed.

Real-world distance distributions fitted with Weibull models. Homogeneous images (a, b) are well-modeled by a single Weibull distribution, while a heterogeneous image (c) with distinct textures requires a mixture of two Weibull distributions.

Implications for Computer Vision

Understanding the true distribution of similarity distances unlocks significant algorithmic potential:

  • Speed-ups in Image Search: By knowing the exact distribution parameters (mean, standard deviation, and skewness), algorithms can identify statistically unlikely matches much earlier, effectively pruning search trees and accelerating retrieval.
  • Better Clustering: Algorithms like K-means often rely on Gaussian assumptions to determine cluster sizes and centroids. Using the true Weibull distribution shape allows for more accurate and natural clustering of image features.

Limitations and Future Work

While the paper establishes a robust theoretical foundation, it stops short of benchmarking a specific "Weibull-optimized" recognition algorithm against current state-of-the-art Gaussian-based methods. Additionally, the authors hypothesize that Mahalanobis distances will also prove to be Weibull-distributed, but they leave the formal proof for future research. Finally, optimizing the parameter estimation process—specifically, finding ways to estimate Weibull parameters efficiently from very few samples—remains an open challenge for the community.

Summary updated

BibTeX
@inproceedings{burghouts2007distribution,
  author = {Gertjan J. Burghouts and Arnold W. M. Smeulders and Jan-Mark Geusebroek},
  title = {{The Distribution Family of Similarity Distances}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2007},
}
Figure