Abstract
Traditional distance metric learning focuses on point-to-point comparisons, which often fails in real-world scenarios like face recognition where data is naturally grouped into sets. This paper introduces Point-to-Set (PSDML) and Set-to-Set (SSDML) Distance Metric Learning frameworks. By modeling sets as regularized affine hulls and reformulating the metric learning task as a sample-pair classification problem solvable via SVM, the proposed methods achieve significantly higher accuracy and up to a 500x speedup over existing state-of-the-art techniques.
Introduction: Beyond Point-to-Point Metrics
Most machine learning algorithms rely on a "distance metric" to determine similarity. Traditionally, this is Point-to-Point Distance (PPD)—comparing one feature vector directly to another. However, many computer vision tasks involve comparing a single query image to a gallery of images (a set) or comparing video sequences (sets of frames) to each other.
Standard PPD methods struggle in these contexts because they ignore the underlying structure and distribution of image sets. While some "point-to-set" (PSD) and "set-to-set" (SSD) classifiers existed, they lacked a mechanism to learn an optimal discriminative metric, often resulting in lower effectiveness or high computational costs.
Proposed Methodology
The authors propose two new models: Point-to-Set Distance Metric Learning (PSDML) and Set-to-Set Distance Metric Learning (SSDML).
Modeling Sets as Hulls
Instead of treating a set as a simple cloud of points, the framework models it as a "hull" (specifically a Regularized Affine Hull). This approach represents a set as a continuous subspace, providing robustness against noise and missing data. By learning a metric specifically for distances to hulls rather than individual points, the model captures the "manifold" of how an object's appearance changes (e.g., a face turning or lighting shifting).
The SVM Formulation
The core innovation lies in transforming metric learning into a classification problem. The process involves:
- Pair Generation: Constructing "positive" pairs (samples from the same class) and "negative" pairs (different classes).
- Covariance Kernels: Characterizing each pair by a covariance matrix.
- Optimization: Using a specific kernel function to measure similarity between these matrices, allowing the entire metric learning problem to be solved using standard, highly optimized Support Vector Machine (SVM) solvers like LIBSVM.
This formulation avoids complex, custom iterative optimizations, leading to dramatic improvements in training speed.
Experimental Evaluation
The researchers evaluated their approach across a wide variety of benchmarks, including gender classification (AR dataset), digit recognition (MNIST, USPS), object categorization (Oxford Flower 17), and face recognition (Extended YaleB, FERET). For video-based face recognition, the YouTube Celebrities dataset was used to test SSDML.
Key Results
- Accuracy Boost: PSDML consistently outperformed standard Point-to-Point methods (like LMNN and ITML) and non-learning set classifiers. On the Extended YaleB database, PSDML improved recognition rates by approximately 4% over the nearest competitor.
- Superior Video Recognition: In the YouTube Celebrities task, SSDML outperformed all other set-based methods across different frame counts.
- Massive Speedup: On the MNIST dataset, PSDML required only 24.7 seconds to train, compared to 11,825 seconds for MCML—a nearly 500x speedup.
Conclusion and Future Work
The realization that learning a Mahalanobis distance matrix is mathematically equivalent to finding a hyperplane in a high-dimensional space of covariance matrices allows for the efficient use of SVMs for metric learning. While the method assumes that a hull is a good model for the data—which holds true for faces and objects—future work may explore more complex distributions. Additionally, while the framework is efficient, scaling to "infinite" streaming data remains an area for further investigation.
Summary updated