Generalized Transitive Distance with Minimum Spanning Random Forest

Zhiding Yu, Weiyang Liu, Wenbo Liu, Xi Peng, Zhuo Hui, B. V. K. Vijaya KumarIJCAI 2015

Abstract: Transitive distance is an ultrametric with elegant properties for clustering. Conventional transitive distance can be found by referring to the minimum spanning tree (MST). We show that such distance metric can be generalized onto a minimum spanning random forest (MSRF) with element-wise max pooling over the set of transitive distance matrices from an MSRF. Our proposed approach is both intuitively reasonable and theoretically attractive. Intuitively, max pooling alleviates undesired short links with single MST when noise is present. Theoretically, one can see that the distance metric obtained max pooling is still an ultrametric, rendering many good clustering properties. Comprehensive experiments on data clustering and image segmentation show that MSRF with max pooling improves the clustering performance over single MST and achieves state of the art performance on the Berkeley Segmentation Dataset.

Introduction: The Noise Sensitivity of Transitive Distance

Clustering non-convex shapes, such as interlocking spirals or rings, remains a fundamental challenge in machine learning. While Spectral Clustering is a common choice, it is computationally intensive due to eigendecomposition. Transitive Distance (TD) offers an elegant alternative, defining distance as the "minimum of the maximum hops" along paths connecting two points. However, TD is highly sensitive to noise; a single outlier sitting between two distinct clusters creates a "short link" that causes traditional path-based algorithms to incorrectly merge the groups.

Figure 1: Comparison of clustering results on a noisy dataset. (a) A single MST fails due to bridge noise, while (b) the proposed GTD method maintains cluster separation.

Methodology: Generalized Transitive Distance (GTD)

The proposed Generalized Transitive Distance (GTD) addresses noise sensitivity by moving from a single Minimum Spanning Tree (MST) to a Minimum Spanning Random Forest (MSRF). The process involves three key steps:

  1. Forest Generation: Diversified trees are generated using either Extended Sequential Kruskal’s (which forces mutually exclusive edges) or Random Perturbation (which jitters edge weights to create varied trees).
  2. Max Pooling: Transitive distance matrices are calculated for each tree in the forest. Element-wise max pooling is then applied across these matrices. This acts as a robust filter; a "short link" caused by noise in one tree is unlikely to persist across the entire forest, allowing max pooling to "stretch" those noisy gaps back out.
  3. Top-Down Clustering: The final GTD matrix rows are treated as feature vectors for k-means clustering, often enhanced by Singular Value Decomposition (SVD) for dimensionality reduction.

Mathematically, the authors demonstrate that the result of max-pooling multiple transitive distance matrices remains an ultrametric. This ensures the distance metric remains logically consistent for grouping, satisfying a stronger version of the triangle inequality.

Experimental Results

The framework was evaluated across synthetic toy datasets, large-scale speech data (NIST i-Vector), and image segmentation (BSDS300).

In speech clustering experiments on the i-Vector dataset, GTD with perturbation and SVD achieved a purity of 0.5297, significantly outperforming both standard Transitive Distance (0.498) and Spectral Clustering (0.4898). For image segmentation, the method established state-of-the-art results on the BSDS300 benchmark.

Figure 5: Performance comparison on the BSDS300 image segmentation dataset. GTD (Perturb.) achieves the highest PRI and lowest VoI, GCE, and BDE among compared methods.

Conclusion

GTD provides a robust, theoretically sound extension to transitive distance. By leveraging the diversity of a random forest and the filtering power of max pooling, it overcomes the "short link" problem inherent in path-based clustering. The method achieves state-of-the-art results in complex tasks like image segmentation while maintaining the desirable mathematical properties of ultrametrics.

Summary updated

BibTeX
@inproceedings{yu2015generalized,
  author = {Zhiding Yu and Weiyang Liu and Wenbo Liu and Xi Peng and Zhuo Hui and B. V. K. Vijaya Kumar},
  title = {{Generalized Transitive Distance with Minimum Spanning Random Forest}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2015},
  url = {https://openreview.net/forum?id=HybKYQzdbH},
}
Figure