paper-with-me

Papers

Cross-Batch Memory for Embedding Learning

2019-12-14 · CVPR 2020 6 · Xun Wang, Haozhi Zhang, Weilin Huang, Matthew R. Scott

Mining informative negative instances are of central importance to deep metric learning (DML), however this task is intrinsically limited by mini-batch training, where only a mini-batch of instances is accessible at each iteration. In this paper, we identify a "slow drift" phenomena by observing that the embedding features drift exceptionally slow even as the model parameters are updating throughout the training process. This suggests that the features of instances computed at preceding iterations can be used to considerably approximate their features extracted by the current model. We propose a cross-batch memory (XBM) mechanism that memorizes the embeddings of past iterations, allowing the model to collect sufficient hard negative pairs across multiple mini-batches - even over the whole dataset. Our XBM can be directly integrated into a general pair-based DML framework, where the XBM augmented DML can boost performance considerably. In particular, without bells and whistles, a simple contrastive loss with our XBM can have large R@1 improvements of 12%-22.5% on three large-scale image retrieval datasets, surpassing the most sophisticated state-of-the-art methods, by a large margin. Our XBM is conceptually simple, easy to implement - using several lines of codes, and is memory efficient - with a negligible 0.2 GB extra GPU memory. Code is available at: https://github.com/MalongTech/research-xbm.

📄 PDF Abstract BibTeX arXiv:1912.06798

Code (5)

MalongTech/research-xbm 공식 구현 pytorch
OML-Team/open-metric-learning pytorch
PaddlePaddle/PaddleClas/blob/develop/docs/zh_CN/training/metric_learning/xbm.md paddle
bnu-wangxun/Deep_Metric pytorch
msight-tech/research-xbm pytorch

Tasks

GPUImage RetrievalMetric LearningRetrieval

Similar Papers 제목 키워드 기반

Heterogeneous Acceleration Pipeline for Recommendation System Training

2022-04-11 · Muhammad Adnan, Yassaman Ebrahimzadeh Maboud, Divya Mahajan, Prashant J. Nair

Recommendation models rely on deep learning networks and large embedding tables, resulting in computationally and memory-intensive processes. These models are typically trained using hybrid CPU-GPU or GPU-only configurat…

CPUGPURecommendation SystemsScheduling

SURGE: SuperBatch Unified Resource-efficient GPU Encoding for Heterogeneous Partitioned Data

2026-05-01 · Shashank Kapadia, Deep Narayan Mishra, Sujal Reddy Alugubelli, Ajay Kumar 외 arxiv

We present SURGE, a streaming GPU encoding system deployed in production to generate embeddings for over 800 million texts across 40,000 logical partitions. Production embedding pipelines face a tension between logical d…

Memory Enhanced Embedding Learning for Cross-Modal Video-Text Retrieval

2021-03-29 · Rui Zhao, Kecheng Zheng, Zheng-Jun Zha, Hongtao Xie 외

Cross-modal video-text retrieval, a challenging task in the field of vision and language, aims at retrieving corresponding instance giving sample from either modality. Existing approaches for this task all focus on how t…

RetrievalText RetrievalVideo-Text Retrieval

IConE: Batch Independent Collapse Prevention for Self-Supervised Representation Learning

2026-03-16 · Konstantinos Almpanakis, Anna Kreshuk arxiv

Self-supervised learning (SSL) has revolutionized representation learning, with Joint-Embedding Architectures (JEAs) emerging as an effective approach for capturing semantic features. Existing JEAs rely on implicit or ex…

Self-Supervised LearningRepresentation Learning

Adaptive Cross Batch Normalization for Metric Learning

2023-03-30 · Thalaiyasingam Ajanthan, Matt Ma, Anton Van Den Hengel, Stephen Gould

Metric learning is a fundamental problem in computer vision whereby a model is trained to learn a semantically useful embedding space via ranking losses. Traditionally, the effectiveness of a ranking loss depends on the …

Image RetrievalMetric LearningRetrieval