Robust Metric Learning by Smooth Optimization

Kaizhu Huang, Rong Jin, Zenglin Xu, Cheng-Lin Liu · OpenReview

TL;DR: Most distance metric learning algorithms assume training data is perfect, but real-world "side information" is often noisy. This paper introduces Robust Metric Learning (RML), a framework that treats noisy constraints as a worst-case optimization problem and solves it efficiently using Nesterov’s smooth optimization, offering significantly better performance and faster convergence than standard methods.

Introduction

Distance metric learning (DML) is a fundamental task in machine learning, aimed at learning a distance function that reflects the underlying similarity between data points. Most existing DML algorithms, such as Large Margin Nearest Neighbor (LMNN), rely on "side information" in the form of triplet constraints (e.g., "point A should be closer to B than to C"). However, these methods typically assume that the provided constraints are perfectly accurate. In real-world applications, side information is often derived from noisy sources like user clicks or automated links, leading to significant performance degradation when standard DML algorithms are applied.

This paper introduces Robust Metric Learning (RML), a framework designed to handle noisy constraints by treating them as a worst-case optimization problem. By leveraging Nesterov’s smooth optimization, the proposed method achieves both robustness to outliers and superior computational efficiency.

Methodology

The authors formulate RML as a robust optimization problem that accounts for potential errors in the training triplets.

  1. Robust Formulation: The problem is initially modeled using binary indicator variables to distinguish between "clean" and "noisy" triplets. To overcome the NP-hardness of this combinatorial approach, the authors transform it into a convex-concave optimization problem via semi-infinite programming.
  2. Smooth Optimization: The core of the RML solver is Nesterov’s smooth optimization method. Unlike traditional sub-gradient methods that exhibit a convergence rate of $O(1/\epsilon^2)$, Nesterov’s approach provides a worst-case convergence rate of $O(1/\sqrt{\epsilon})$. This theoretical advantage translates to significantly faster convergence in practice.
  3. Generalization: The robust framework is versatile and can be integrated with other metric learning objectives, such as the large-margin framework used in LMNN, to enhance their resilience to noise.

Experimental Evaluation

Datasets

The performance of RML was evaluated on five benchmark datasets from the UCI Machine Learning Repository. These datasets vary in dimensionality and sample size, providing a comprehensive testbed for the algorithm's robustness.

Characteristics of the five UCI benchmark datasets used for evaluation.

To simulate noisy environments, the researchers corrupted 20% of the training triplets (setting the noise parameter $\eta = 0.8$) and compared RML against state-of-the-art baselines.

Results and Discussion

The experimental results highlight three key advantages of the RML framework: accuracy, stability, and convergence speed.

Accuracy and Stability: RML consistently outperforms standard methods in the presence of noise. For instance, on the Sonar dataset with 20% noise, RML achieved a test error of approximately 17.4%, whereas LMNN's error rate spiked to 36.5%. While standard methods often perform worse than simple Euclidean distance when faced with high noise, RML remains stable and provides a reliable metric.

Convergence Speed: As shown in the convergence curves, Nesterov’s method reaches the optimal objective value in significantly fewer epochs compared to the sub-gradient method across all tested datasets.

Convergence curves across five datasets and test error rate vs. noise level ($\eta$) on the Wine dataset.

Limitations: Despite its strengths, RML has limitations. If the noise level exceeds a certain threshold, the "signal" may be entirely buried, preventing the model from recovering the latent metric. Additionally, the model requires tuning of the trade-off parameter $\lambda$ and an estimate of the noise level $\eta$.

Conclusion

Robust Metric Learning offers a principled and efficient solution to the problem of noisy side information in DML. By combining a robust optimization objective with Nesterov’s smooth optimization, the framework provides a practical tool for learning meaningful distance metrics from imperfect real-world data.

Summary updated

BibTeX
@misc{huang2010robust,
  author = {Kaizhu Huang and Rong Jin and Zenglin Xu and Cheng-Lin Liu},
  title = {{Robust Metric Learning by Smooth Optimization}},
  year = {2010},
  eprint = {1203.3461},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1203.3461},
}
Figure