TL;DR
This paper introduces SKLR (Semi-supervised Kernel Learning with Relative comparisons), a novel framework for learning distance metrics from "triplet" feedback (e.g., "item $i$ is more similar to $j$ than to $k$"). By leveraging log-determinant divergence and an efficient iterative projection algorithm, the authors demonstrate that relative comparisons capture much finer data structures than traditional "must-link/cannot-link" constraints, especially when the true granularity of the data is unknown.
What Problem Does This Paper Address?
In machine learning, "metric learning" is the task of finding a distance function that reflects the true relationships between data points. Often, standard features (like raw pixel values) aren't enough to capture semantic meaning. To fix this, researchers use semi-supervised learning, where a human provides side-information.
Traditionally, this side-information comes as "must-link" (items $i$ and $j$ are in the same cluster) or "cannot-link" (they are in different clusters) constraints. However, these are often too rigid. If you don't know exactly how many clusters exist, or if the data has a hierarchical structure, these binary labels fail.
The authors argue that relative comparisons—asking a human "which of these three items is the least similar to the others?"—are more intuitive for humans and provide a richer, multi-scale signal for the learning algorithm.
Methods
The authors treat metric learning as a kernel-learning problem. They aim to find a kernel matrix $K$ that is "close" to an initial kernel $K_0$ (based on raw features) while satisfying constraints derived from human feedback.
- Log-Determinant Divergence: They use this specific Bregman divergence as their objective function. It's convex and naturally maintains the positive semi-definiteness of the kernel matrix without needing expensive projection steps.
- Triplet Constraints: A triplet $(i, j | k)$ implies that the distance between $i$ and $j$ is significantly smaller than the distance to the "outlier" $k$. This is formulated as a linear constraint on the kernel matrix.
- The "Don't Know" Constraint: A key innovation is handling cases where a labeler can't pick an outlier. Instead of discarding this, the authors treat it as an equidistant constraint, signaling that all three items are roughly the same distance apart.
- Bregman Projections: To solve the optimization, they use an iterative algorithm that picks one unsatisfied constraint at a time and "projects" the current kernel to satisfy it. They use the Sherman-Morrison-Woodbury formula to make these updates extremely efficient.
- Soft-Margin (sSKLR): They introduce a version with slack variables to handle noisy or contradictory human labels, preventing the algorithm from failing when faced with inconsistent data.
Datasets
The authors evaluated their approach on three real-world datasets:
- Vehicle: 846 instances of vehicles from 4 different classes.
- MIT Scene: 2688 images of outdoor scenes across 8 categories (natural vs. man-made).
- USPS Digits: 1100 grayscale images of handwritten digits.
They tested both binary (coarse) and multiclass (fine) clustering scenarios to see if the learned metric could handle different levels of resolution.
Key Insights and Ideas
- Granularity Independence: Unlike must-link constraints, relative comparisons don't force you to commit to a specific number of clusters. A single learned kernel can successfully support both a coarse binary clustering and a fine-grained multiclass clustering simultaneously.
- Information in Ambiguity: The "unspecified" (don't know) labels are surprisingly powerful. They provide a geometric anchor (equidistance) that helps regularize the kernel space.
- Multi-resolution Success: The space learned by SKLR provides much better separation for both high-level and low-level tasks compared to the original input space.
Key Results
- Superior Accuracy: SKLR consistently outperformed state-of-the-art baselines like ITML and LSML. For example, on the USPS Digits binary task, SKLR achieved an Adjusted Rand (AR) index of 0.7147, nearly doubling the performance of ITML (0.3385).
- Robustness to Noise: The soft-margin version (sSKLR) proved highly resilient. While the standard SKLR performance drops sharply when labels are corrupted, sSKLR maintains high accuracy even when up to 40% of the constraints are noisy.
- Generalization: The method generalizes well to "out-of-sample" data—points not seen during the metric learning phase—outperforming baselines in these scenarios as well.
Limitations and Future Work
- Parameter Sensitivity: The algorithm requires a distance factor $\gamma$ and a regularization parameter $\lambda$ for the soft-margin version. These may require tuning for new domains.
- Computational Scaling: Although efficient, the $O(n^2)$ complexity per update might still be a bottleneck for extremely large datasets. The authors suggest using low-rank approximations to mitigate this.
- Future Directions: Incorporating equality/equidistant constraints could be particularly useful in crowdsourcing settings where "I don't know" is a common response.
Summary updated