Class Anchor Margin Loss for Content-Based Image Retrieval

06/01/2023
by   Alexandru Ghita, et al.
0

The performance of neural networks in content-based image retrieval (CBIR) is highly influenced by the chosen loss (objective) function. The majority of objective functions for neural models can be divided into metric learning and statistical learning. Metric learning approaches require a pair mining strategy that often lacks efficiency, while statistical learning approaches are not generating highly compact features due to their indirect feature optimization. To this end, we propose a novel repeller-attractor loss that falls in the metric learning paradigm, yet directly optimizes for the L2 metric without the need of generating pairs. Our loss is formed of three components. One leading objective ensures that the learned features are attracted to each designated learnable class anchor. The second loss component regulates the anchors and forces them to be separable by a margin, while the third objective ensures that the anchors do not collapse to zero. Furthermore, we develop a more efficient two-stage retrieval system by harnessing the learned class anchors during the first stage of the retrieval process, eliminating the need of comparing the query with every image in the database. We establish a set of four datasets (CIFAR-100, Food-101, SVHN, and Tiny ImageNet) and evaluate the proposed objective in the context of few-shot and full-set training on the CBIR task, by using both convolutional and transformer architectures. Compared to existing objective functions, our empirical evidence shows that the proposed objective is generating superior and more consistent results.

READ FULL TEXT
research
06/22/2023

Deep Metric Learning with Soft Orthogonal Proxies

Deep Metric Learning (DML) models rely on strong representations and sim...
research
12/15/2021

Modality-Aware Triplet Hard Mining for Zero-shot Sketch-Based Image Retrieval

This paper tackles the Zero-Shot Sketch-Based Image Retrieval (ZS-SBIR) ...
research
12/01/2019

The Group Loss for Deep Metric Learning

Deep metric learning has yielded impressive results in tasks such as clu...
research
04/26/2023

STIR: Siamese Transformer for Image Retrieval Postprocessing

Current metric learning approaches for image retrieval are usually based...
research
01/27/2022

Dissecting the impact of different loss functions with gradient surgery

Pair-wise loss is an approach to metric learning that learns a semantic ...
research
11/24/2020

A Self-Penalizing Objective Function for Scalable Interaction Detection

We tackle the problem of nonparametric variable selection with a focus o...
research
12/04/2019

Efficient feature embedding of 3D brain MRI images for content-based image retrieval with deep metric learning

Increasing numbers of MRI brain scans, improvements in image resolution,...

Please sign up or login with your details

Forgot password? Click here to reset