TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Hyperbolic Vision Transformers: Combining Improvements in ...

Hyperbolic Vision Transformers: Combining Improvements in Metric Learning

Aleksandr Ermolov, Leyla Mirvakhabova, Valentin Khrulkov, Nicu Sebe, Ivan Oseledets

2022-03-21CVPR 2022 1Metric Learning
PaperPDFCodeCode(official)

Abstract

Metric learning aims to learn a highly discriminative model encouraging the embeddings of similar classes to be close in the chosen metrics and pushed apart for dissimilar ones. The common recipe is to use an encoder to extract embeddings and a distance-based loss function to match the representations -- usually, the Euclidean distance is utilized. An emerging interest in learning hyperbolic data embeddings suggests that hyperbolic geometry can be beneficial for natural data. Following this line of work, we propose a new hyperbolic-based model for metric learning. At the core of our method is a vision transformer with output embeddings mapped to hyperbolic space. These embeddings are directly optimized using modified pairwise cross-entropy loss. We evaluate the proposed model with six different formulations on four datasets achieving the new state-of-the-art performance. The source code is available at https://github.com/htdt/hyp_metric.

Results

TaskDatasetMetricValueModel
Metric LearningCARS196R@192.8Hyp-DINO 8x8
Metric LearningCARS196R@189.2Hyp-DINO
Metric LearningCARS196R@186.5Hyp-ViT
Metric Learning CUB-200-2011R@185.6Hyp-ViT
Metric LearningCUB-200-2011R@180.9Hyp-DINO
Metric LearningIn-ShopR@192.5Hyp-ViT
Metric LearningIn-ShopR@192.4Hyp-DINO
Metric LearningStanford Online ProductsR@185.9Hyp-ViT
Metric LearningStanford Online ProductsR@185.1Hyp-DINO

Related Papers

Unsupervised Ground Metric Learning2025-07-17Are encoders able to learn landmarkers for warm-starting of Hyperparameter Optimization?2025-07-16$\texttt{Droid}$: A Resource Suite for AI-Generated Code Detection2025-07-11Grid-Reg: Grid-Based SAR and Optical Image Registration Across Platforms2025-07-06Dare to Plagiarize? Plagiarized Painting Recognition and Retrieval2025-06-29Multimodal Information Retrieval for Open World with Edit Distance Weak Supervision2025-06-25Offline Goal-Conditioned Reinforcement Learning with Projective Quasimetric Planning2025-06-23AbRank: A Benchmark Dataset and Metric-Learning Framework for Antibody-Antigen Affinity Ranking2025-06-21