Metric Learning in an RKHS

Gokcan Tatli, Yi Chen, Blake Mason, Robert Nowak, Ramya Korlakai Vinayak
8/6/2025
stat.MLcs.AIcs.LG

Official code: RamyaLab/metric-learning-RKHS (1 star, last commit 2025-05-20).

Abstract

Metric learning from a set of triplet comparisons in the form of "Do you think item h is more similar to item i or item j?", indicating similarity and differences between items, plays a key role in various applications including image retrieval, recommendation systems, and cognitive psychology. The goal is to learn a metric in the RKHS that reflects the comparisons. Nonlinear metric learning using kernel methods and neural networks have shown great empirical promise. While previous works have addressed certain aspects of this problem, there is little or no theoretical understanding of such methods. The exception is the special (linear) case in which the RKHS is the standard Euclidean space $\mathbb{R}^d$; there is a comprehensive theory for metric learning in $\mathbb{R}^d$. This paper develops a general RKHS framework for metric learning and provides novel generalization guarantees and sample complexity bounds. We validate our findings through a set of simulations and experiments on real datasets. Our code is publicly available at https://github.com/RamyaLab/metric-learning-RKHS.

View on arXivView PDF

Code Implementations(1)

This repository provides code for the simulations and experiments in our paper: Metric Learning in an RKHS @ The 41st Conference on Uncertainty in Artificial Intelligence (UAI 2025).

10Python, Jupyter NotebookMay 20, 20251 years ago
metric-learningrkhs

Similar Papers

Cite this paper

@article{tatli2025metric,
  title  = {Metric Learning in an RKHS},
  author = {Gokcan Tatli and Yi Chen and Blake Mason and Robert Nowak and Ramya Korlakai Vinayak},
  year   = {2025},
  eprint = {2508.04476},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.04476v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.04476.svg)](https://codeofpaper.com/paper/2508.04476)

Discussion