Abstract
This paper introduces a computationally efficient framework for unsupervised representation learning using Minimax distances. By leveraging the equivalence between Minimax distances and Minimum Spanning Trees (MSTs), the proposed method reduces the complexity of computing all-pairs distances from $O(N^3)$ to $O(N^2)$ and enables an $O(N)$ K-Nearest Neighbor search. This makes path-based distance measures practical for large-scale datasets while maintaining their ability to capture complex, manifold-valued data structures.
Introduction
In machine learning, the choice of distance measure is critical. Standard measures like Euclidean distance assume a "global" structure, expecting data to reside in spherical clusters. However, real-world data is often manifold-valued or elongated. In such cases, two points might be physically close in Euclidean space but belong to different clusters, or far apart but connected by a dense path of intermediate points.
Minimax distance (also known as path-based distance) addresses this by defining the distance between two points as the minimum possible "maximum jump" required to travel between them along any path. This property allows the distance to adapt to the local density and shape of the data automatically.
Methodology
The proposed framework makes Minimax distances both computationally feasible and compatible with standard vector-based algorithms through several key innovations:
1. The MST Shortcut
The paper proves that the Minimax distance between any two nodes in a graph is identical to the Minimax distance between them on the graph’s Minimum Spanning Tree (MST). Since an MST can be constructed in $O(N^2)$ time (or faster for sparse graphs), this bypasses the expensive $O(N^3)$ Floyd-Warshall approach traditionally required for all-pairs path distances.
2. Ultrametric Embedding
Minimax distances satisfy the ultrametric inequality, a stronger version of the triangle inequality. The author utilizes this property to perform an Euclidean embedding. By centering the Minimax distance matrix and performing an Eigenvalue Decomposition (EVD), the distances are transformed into a set of "Minimax features" (vectors). These vectors can then be used as inputs for standard models like SVMs or Logistic Regression.
3. Collective Embedding and PTMM
To handle noise, the "Collective Minimax" approach sums multiple centered Minimax matrices from different subspaces before embedding. Additionally, the paper introduces PTMM, an incremental algorithm for K-Nearest Neighbor search that runs in $O(N)$ time, achieving parity with the asymptotic complexity of standard Euclidean K-NN.
Experimental Results
The framework was evaluated on synthetic data (Gaussian and non-spherical shapes), the UCI repository, text data (20 Newsgroups), and image datasets (faces and digits).
- Accuracy: On complex non-spherical synthetic datasets, a Minimax-based SVM achieved 99.5% accuracy, significantly outperforming RBF kernel SVMs (92.9%) and linear SVMs (56.5%).
- Computational Speed: The MST-based method was orders of magnitude faster than the traditional Floyd-Warshall approach. For a dataset of 2,000 points, the MST-MM approach took 0.54 seconds compared to 127.12 seconds for the baseline.
- Scalability: The PTMM algorithm for K-NN was shown to be approximately 250 times faster than Laplacian-based link measures on a 10,000-object dataset.
Conclusion
One of the primary contributions of this work is demonstrating that path-based learning does not have to be computationally prohibitive. By utilizing the MST and the PTMM algorithm, the authors achieve the same asymptotic complexity as standard Euclidean methods while providing superior performance on manifold-structured data. Future work may involve integrating Minimax loss functions directly into deep learning architectures to further automate feature extraction in high-dimensional spaces.
Summary updated