Robust Structural Metric Learning

Daryl Lim, Gert R. G. Lanckriet, Brian McFeeICML 2013

Introduction

Metric learning is the art of finding a mathematical "distance" that makes sense for a specific task—for example, ensuring that two songs by the same artist are "closer" together than songs from different genres. Most existing algorithms (like LMNN or ITML) focus on output sparsity: they try to project data into a lower-dimensional space after the transformation.

However, they often ignore input sparsity. If your raw data contains 1,000 features but only 10 are actually useful, standard algorithms struggle. They try to incorporate the 990 noisy features into the metric, leading to overfitting and a massive drop in performance as the "noise-to-signal" ratio increases.

Robust Structural Metric Learning (R-MLR) is a novel framework designed to learn distance metrics from data plagued by irrelevant or noisy features. By combining group-sparsity regularization with a structural SVM ranking objective, the algorithm automatically identifies informative features and suppresses "junk" inputs, outperforming state-of-the-art methods in both accuracy and computational efficiency.

The R-MLR Approach

The authors build upon the Metric Learning to Rank (MLR) algorithm, which optimizes a Positive Semidefinite (PSD) matrix $W$ to minimize ranking loss. Their key innovation is the introduction of a group-sparsity penalty ($L_{2,1}$ mixed-norm) on the learned transformation.

  • Group Sparsity ($L_{2,1}$): Instead of penalizing individual elements of the matrix $W$, they penalize the $L_2$ norm of entire rows. This encourages the model to set entire rows and columns to zero. If a row in $W$ is zeroed out, the corresponding input feature is effectively ignored.
  • Dual Regularization: The model uses a trace penalty to promote low-rank solutions (output sparsity) and the $L_{2,1}$ penalty to promote feature selection (input sparsity).
  • Optimization via ADMM: Solving this is computationally taxing because of the non-smooth $L_{2,1}$ norm and the requirement that $W$ remains a PSD matrix. The authors derive an efficient solver using the Alternating Direction Method of Multipliers (ADMM). This allows them to break the complex problem into smaller, easier-to-solve sub-steps, including a "proximal operator" for the sparsity and an "eigenvalue thresholding" step for the PSD constraint.

Key Insights

Input Sparsity vs. Element-wise Sparsity: The authors show that $L_1$ regularization (element-wise) is often too aggressive; it tends to produce diagonal matrices that fail to capture correlations between informative features. The $L_{2,1}$ "group" approach is the "Goldilocks" solution—it kills off noisy features entirely but allows the informative ones to interact freely.

The "Effective Dimensionality" Trap: For traditional methods, the "effective dimensionality" of the learned metric explodes as you add noise. R-MLR, however, keeps the metric's rank low and stable, proving it isn't getting "distracted" by the noise.

Effective dimensionality across varying noise dimensions.

Efficiency through Early Stopping: By using ADMM within a 1-slack structural SVM framework, the authors found they could stop the internal optimization early without losing much accuracy, leading to massive speedups over traditional projected gradient descent.

Experimental Results

The authors evaluated R-MLR across three distinct domains: standard UCI datasets padded with synthetic noise, music similarity datasets (CAL10K and Million Song Dataset), and image classification (ImageNet).

  • Robustness to Noise: On UCI datasets padded with up to 256 noisy dimensions, R-MLR maintained high accuracy while competitors like LMNN and ITML saw their error rates nearly double.
KNN error rates as synthetic noise dimensions increase.
  • Music Retrieval: In the music similarity task, R-MLR successfully identified that "MSD-33" features were less reliable than audio/lyrical features, suppressing them to improve ranking AUC.
  • ImageNet Performance: R-MLR achieved the highest 3-NN accuracy (38.7%) while being significantly faster than the original MLR implementation. Specifically, R-MLR trained in 1.55 hours, compared to 12.62 hours for the standard projected sub-gradient descent method (MLR-Proj).

Limitations and Future Work

While the ADMM approach is much faster, the "Z-update" step still requires an eigenvalue decomposition, which scales at $O(d^3)$. For extremely high-dimensional feature spaces (e.g., millions of features), this would still be a bottleneck.

The authors suggest that future work could involve parallelizing the constraint generation process or using sampling techniques to approximate the most-violated constraints, which would further scale the algorithm for "Big Data" applications.

Summary updated

BibTeX
@inproceedings{lim2013robust,
  author = {Daryl Lim and Gert R. G. Lanckriet and Brian McFee},
  title = {{Robust Structural Metric Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2013},
}
Figure