Abstract
Unsupervised partitioning problems, such as clustering, image segmentation, and change-point detection, often rely on minimizing Euclidean distortions. However, the performance of these methods is highly sensitive to the choice of distance metric. We present a supervised framework for learning a Mahalanobis metric tailored for these unsupervised tasks. By casting metric learning as a large-margin structured prediction problem, we derive a convex optimization objective that can be solved efficiently. Our approach enables automated feature weighting and selection, significantly improving performance across diverse domains including bioinformatics and computer vision.
Introduction
Partitioning data into meaningful groups is a core challenge in machine learning, appearing in contexts as varied as genomic analysis and video processing. Algorithms like K-means, spectral clustering, and normalized cuts are standard tools for these tasks. However, these methods typically assume a Euclidean distance metric, which treats all features equally. In high-dimensional datasets where many features may be irrelevant or noisy, this assumption often leads to poor partitioning results.
While metric learning has been studied extensively for supervised classification, applying it to unsupervised partitioning is more complex. This paper addresses the gap by proposing a method to learn a Mahalanobis metric from existing labeled datasets—where the "ground truth" partitions are known—and applying that learned metric to new, unseen data.
Methodology: Metric Learning as Structured Prediction
The authors unify several partitioning algorithms under a single mathematical framework. They demonstrate that K-means, spectral clustering, and change-point detection can all be viewed as maximizing a linear function of a "rescaled equivalence matrix."
Large-Margin Structured SVM
The core of the proposed method is a structured Support Vector Machine (SVM). Unlike standard SVMs that predict a single category, a structured SVM predicts a complex object—in this case, an entire partition of the dataset. The goal is to learn a Mahalanobis metric $M$ such that the "correct" partition (provided in the training data) is separated from all other possible partitions by a large margin.
Loss Function and Inference
A critical component of structured learning is the loss function. The authors introduce a loss based on the Frobenius norm of rescaled equivalence matrices. This loss is particularly effective because it accounts for cluster sizes, making it more robust than the traditional Rand Index for variance-based clustering tasks.
To make the learning process computationally feasible, the authors address the "loss-augmented inference" problem—finding the partition that most strongly violates the current metric constraints. They employ two primary strategies:
- Dynamic Programming: Used for sequential data, such as change-point detection in time series.
- Spectral Relaxation: Used for general clustering and image segmentation, providing a stable approximation for otherwise NP-hard problems.
Experimental Results
The framework was validated across several distinct domains, demonstrating its versatility and effectiveness.
Bioinformatics: DNA Copy Number Changes
In the analysis of Neuroblastoma a-CGH profiles, the goal is to detect change-points in DNA sequences. By learning a metric that incorporates Hermite moments (capturing changes in distribution beyond just the mean), the error rate in identifying these points was reduced from 12% to 6.9%.
Video and Image Segmentation
For video segmentation, the model was tasked with distinguishing between "speaking" and "singing" segments in TV broadcasts. The learned metric significantly outperformed standard PCA-based approaches, reducing loss from 29 to 8.7. In image segmentation using the Weizmann horses dataset, the structured SVM successfully learned feature weightings for normalized cuts that surpassed the performance of manually tuned parameters.
Robustness and Feature Selection
Synthetic experiments confirmed that the model effectively performs automated feature selection. By learning a diagonal Mahalanobis matrix, the framework can identify and zero out irrelevant dimensions in 300-dimensional datasets, maintaining high accuracy even when only a small portion of the training data is labeled.
Discussion and Conclusion
This research provides a stable, convex optimization path for metric learning in partitioning problems. By treating the partitioning algorithm as unsupervised but the metric selection as supervised, the authors bridge the gap between these two paradigms.
While the spectral relaxation used for general clustering is an approximation, and high-dimensional optimization can be computationally intensive, the performance gains are substantial. Future work may explore co-segmentation, where the model learns to partition multiple related data streams simultaneously, further expanding the utility of large-margin metric learning.
Summary updated