Cross-Batch Memory for Embedding Learning
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 132 papers in the map (data through 14 Oct 2026). First posted on arXiv 14 Dec 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 44; 2022: 33; 2023: 30; 2024: 13; 2025: 4; 2026: 8.
132 papers.
Sort:
By area:
- 2021Exploring Cross-Image Pixel Contrast for Semantic Segmentationcited by 242
- 2022Memorizing Transformerscited by 226
- 2022Cross-Image Relational Knowledge Distillation for Semantic Segmentationcited by 118
- 2022Hyperbolic Vision Transformers: Combining Improvements in Metric Learningcited by 111
- 2021Training Vision Transformers for Image Retrievalcited by 90
- 2021Cross Modal Retrieval with Querybank Normalisationcited by 72
- 2022Regional Semantic Contrast and Aggregation for Weakly Supervised Semantic Segmentationcited by 64
- 2021Instance-level Image Retrieval using Reranking Transformerscited by 63
- 2021Group-aware Label Transfer for Domain Adaptive Person Re-identificationcited by 58
- 2021IDM: An Intermediate Domain Module for Domain Adaptive Person Re-IDcited by 51
- 2021Exploring Classification Equilibrium in Long-Tailed Object Detectioncited by 51
- 2021Recall@k Surrogate Loss with Large Batches and Similarity Mixupcited by 49
38 more
- 2021Mining Contextual Information Beyond Image for Semantic Segmentationcited by 48
- 2021Solving Inefficiency of Self-supervised Representation Learningcited by 41
- 2021Deep Learning-based Patient Re-identification Is able to Exploit the Biometric Nature of Medical Chest X-ray Datacited by 38
- 2022Online Knowledge Distillation via Mutual Contrastive Learning for Visual Recognitioncited by 36
- 2026Your Group-Relative Advantage Is Biasedcited by 34
- 2023Contrastive Conditional Latent Diffusion for Audio-visual Segmentationcited by 31
- 2022HIER: Metric Learning Beyond Class Labels via Hierarchical Regularizationcited by 26
- 2021A Deep Metric Learning Approach to Account Linkingcited by 24
- 2021Noise-resistant Deep Metric Learning with Ranking-based Instance Selectioncited by 23
- 2021Contrastive Learning with Large Memory Bank and Negative Embedding Subtraction for Accurate Copy Detectioncited by 23
- 2023Clustering based Point Cloud Representation Learning for 3D Analysiscited by 23
- 2021Duplex Contextual Relation Network for Polyp Segmentationcited by 22
- 2022Delving into Semantic Scale Imbalancecited by 22
- 2024Historical Test-time Prompt Tuning for Vision Foundation Modelscited by 22
- 2021Embedding Transfer with Label Relaxation for Improved Metric Learningcited by 21
- 2021Learning with Memory-based Virtual Classes for Deep Metric Learningcited by 21
- 2021Towards Discriminative Representation Learning for Unsupervised Person Re-identificationcited by 20
- 2021PoseContrast: Class-Agnostic Object Viewpoint Estimation in the Wild with Pose-Aware Contrastive Learningcited by 19
- 2021Leveraging EfficientNet and Contrastive Learning for Accurate Global-scale Location Estimationcited by 19
- 2021Robust and Decomposable Average Precision for Image Retrievalcited by 19
- 2021Hierarchical Proxy-based Loss for Deep Metric Learningcited by 18
- 2023ERM++: An Improved Baseline for Domain Generalizationcited by 18
- 2022Continual Learning for Visual Search with Backward Consistent Feature Embeddingcited by 17
- 2022Learning Equivariant Segmentation with Instance-Unique Queryingcited by 17
- 2021Contrastive Quantization with Code Memory for Unsupervised Image Retrievalcited by 16
- 2023Camera-Driven Representation Learning for Unsupervised Domain Adaptive Person Re-identificationcited by 16
- 2022RecursiveMix: Mixed Learning with Historycited by 15
- 2022MemSAC: Memory Augmented Sample Consistency for Large Scale Unsupervised Domain Adaptationcited by 15
- 2022COARSE3D: Class-Prototypes for Contrastive Learning in Weakly-Supervised 3D Point Cloud Segmentationcited by 15
- 2023Collaborative Group: Composed Image Retrieval via Consensus Learning from Noisy Annotationscited by 14
- 2025SMEC: Rethinking Matryoshka Representation Learning for Retrieval Embedding Compressioncited by 14
- 2023Identity-Seeking Self-Supervised Representation Learning for Generalizable Person Re-identificationcited by 13
- 2024DATR: Unsupervised Domain Adaptive Detection Transformer with Dataset-Level Adaptation and Prototypical Alignmentcited by 13
- 2023Density-invariant Features for Distant Point Cloud Registrationcited by 12
- 2021InsCLR: Improving Instance Retrieval with Self-Supervisioncited by 11
- 2023Black-box Unsupervised Domain Adaptation with Bi-directional Atkinson-Shiffrin Memorycited by 11
- 2024Leveraging Large Language Models for Multimodal Searchcited by 11
- 2022Spectral, Probabilistic, and Deep Metric Learning: Tutorial and Surveycited by 10
50 most cited of 132 All 132 (JSON)
- 2026Dataset-Level Regularization for Joint-Embedding Self-Supervised Learning14 Oct 2026
- 2026TAM: Task-Aware Memory Distillation for Efficient Spatiotemporal Prediction8 Oct 2026
- 2026Region-Aware CLS Token Augmentation for Fine-Grained Image Retrieval7 Oct 2026
- 2026Segmentation-Assisted Brain MRI Synthesis with Cross-Image Multi-Contrast Feature Memory Bank Retrieval Augmentation7 Jun 2026
- 2026Similarity Choice and Negative Scaling in Supervised Contrastive Learning for Deepfake Audio Detection28 Apr 2026
- 2026Policy Improvement Reinforcement Learning1 Apr 2026
- 2026SPOT-Face: Forensic Face Identification using Attention Guided Optimal Transport14 Jan 2026
- 2026Your Group-Relative Advantage Is Biased13 Jan 2026
- 2025Few-Shot Fingerprinting Subject Re-Identification in 3D-MRI and 2D-X-Ray18 Dec 2025
- 2025SMEC: Rethinking Matryoshka Representation Learning for Retrieval Embedding Compression14 Oct 2025
- 2025A Hybrid Cross-Stage Coordination Pre-ranking Model for Online Recommendation Systems14 Feb 2025
- 2025Enhancing Sample Utilization in Noise-Robust Deep Metric Learning With Subgroup-Based Positive-Pair Selection19 Jan 2025
38 more
- 2024Historical Test-time Prompt Tuning for Vision Foundation Models27 Oct 2024
- 2024PReP: Efficient context-based shape retrieval for missing parts18 Oct 2024
- 2024Multi-threshold Deep Metric Learning for Facial Expression Recognition24 Jun 2024
- 2024Supervised Contrastive Learning for Snapshot Spectral Imaging Face Anti-Spoofing29 May 2024
- 2024Instruct-ReID++: Towards Universal Purpose Instruction-Guided Person Re-identification28 May 2024
- 2024DATR: Unsupervised Domain Adaptive Detection Transformer with Dataset-Level Adaptation and Prototypical Alignment20 May 2024
- 2024Leveraging Large Language Models for Multimodal Search24 Apr 2024
- 2024Understanding Hyperbolic Metric Learning through Hard Negative Sampling23 Apr 2024
- 2024Unveiling and Mitigating Generalized Biases of DNNs through the Intrinsic Dimensions of Perceptual Manifolds22 Apr 2024
- 2024End-to-end multi-modal product matching in fashion e-commerce18 Mar 2024
- 2024Dual Pose-invariant Embeddings: Learning Category and Object-specific Discriminative Representations for Recognition and Retrieval1 Mar 2024
- 2024Learning Semantic Proxies from Visual Prompts for Parameter-Efficient Fine-Tuning in Deep Metric Learning4 Feb 2024
- 2024Towards Improved Proxy-based Deep Metric Learning via Data-Augmented Domain Adaptation1 Jan 2024
- 2023Prototype-Guided Text-based Person Search based on Rich Chinese Descriptions22 Dec 2023
- 2023Cached Transformers: Improving Transformers with Differentiable Memory Cache20 Dec 2023
- 2023Transformer-empowered Multi-modal Item Embedding for Enhanced Image Search in E-Commerce29 Nov 2023
- 2023ProcSim: Proxy-based Confidence for Robust Similarity Learning1 Nov 2023
- 2023Retrofitting Light-weight Language Models for Emotions using Supervised Contrastive Learning29 Oct 2023
- 2023Hyp-UML: Hyperbolic Image Retrieval with Uncertainty-aware Metric Learning12 Oct 2023
- 2023Memory-Constrained Semantic Segmentation for Ultra-High Resolution UAV Imagery7 Oct 2023
- 2023Optimization of Rank Losses for Image Retrieval15 Sep 2023
- 2023Introspective Deep Metric Learning11 Sep 2023
- 2023Black-box Unsupervised Domain Adaptation with Bi-directional Atkinson-Shiffrin Memory25 Aug 2023
- 2023DR-Tune: Improving Fine-tuning of Pretrained Visual Models by Distribution Regularization with Semantic Calibration23 Aug 2023
- 2023Towards Privacy-Supporting Fall Detection via Deep Unsupervised RGB2Depth Adaptation23 Aug 2023
- 2023Camera-Driven Representation Learning for Unsupervised Domain Adaptive Person Re-identification23 Aug 2023
- 2023Generalized Sum Pooling for Metric Learning18 Aug 2023
- 2023Identity-Seeking Self-Supervised Representation Learning for Generalizable Person Re-identification17 Aug 2023
- 2023Center Contrastive Loss for Metric Learning1 Aug 2023
- 2023Contrastive Conditional Latent Diffusion for Audio-visual Segmentation31 Jul 2023
- 2023Clustering based Point Cloud Representation Learning for 3D Analysis27 Jul 2023
- 2023Density-invariant Features for Distant Point Cloud Registration19 Jul 2023
- 2023Collaborative Group: Composed Image Retrieval via Consensus Learning from Noisy Annotations3 Jun 2023
- 2023FaceFusion: Exploiting Full Spectrum of Multiple Datasets24 May 2023
- 2023Towards Writer Retrieval for Historical Datasets9 May 2023
- 2023Robust Calibrate Proxy Loss for Deep Metric Learning6 Apr 2023
- 2023ERM++: An Improved Baseline for Domain Generalization4 Apr 2023
- 2023Adaptive Cross Batch Normalization for Metric Learning30 Mar 2023
50 newest of 132 All 132 (JSON)
- 2026Policy Improvement Reinforcement Learningcited by 2
- 2026Policy Improvement Reinforcement Learning1 Apr 2026
- 2026Your Group-Relative Advantage Is Biasedcited by 34
- 2026Your Group-Relative Advantage Is Biased13 Jan 2026
- 2021Exploring Cross-Image Pixel Contrast for Semantic Segmentationcited by 242
- 2022Memorizing Transformerscited by 226
- 2022Hyperbolic Vision Transformers: Combining Improvements in Metric Learningcited by 111
- 2021Training Vision Transformers for Image Retrievalcited by 90
- 2021Cross Modal Retrieval with Querybank Normalisationcited by 72
- 2022Regional Semantic Contrast and Aggregation for Weakly Supervised Semantic Segmentationcited by 64
- 2021Instance-level Image Retrieval using Reranking Transformerscited by 63
- 2021Group-aware Label Transfer for Domain Adaptive Person Re-identificationcited by 58
- 2021IDM: An Intermediate Domain Module for Domain Adaptive Person Re-IDcited by 51
- 2021Exploring Classification Equilibrium in Long-Tailed Object Detectioncited by 51
- 2021Recall@k Surrogate Loss with Large Batches and Similarity Mixupcited by 49
- 2021Mining Contextual Information Beyond Image for Semantic Segmentationcited by 48
12 most cited of 125 All 125 (JSON)
- 2026Dataset-Level Regularization for Joint-Embedding Self-Supervised Learning14 Oct 2026
- 2026Region-Aware CLS Token Augmentation for Fine-Grained Image Retrieval7 Oct 2026
- 2026Segmentation-Assisted Brain MRI Synthesis with Cross-Image Multi-Contrast Feature Memory Bank Retrieval Augmentation7 Jun 2026
- 2026Similarity Choice and Negative Scaling in Supervised Contrastive Learning for Deepfake Audio Detection28 Apr 2026
- 2026SPOT-Face: Forensic Face Identification using Attention Guided Optimal Transport14 Jan 2026
- 2025Few-Shot Fingerprinting Subject Re-Identification in 3D-MRI and 2D-X-Ray18 Dec 2025
- 2025SMEC: Rethinking Matryoshka Representation Learning for Retrieval Embedding Compression14 Oct 2025
- 2025A Hybrid Cross-Stage Coordination Pre-ranking Model for Online Recommendation Systems14 Feb 2025
- 2025Enhancing Sample Utilization in Noise-Robust Deep Metric Learning With Subgroup-Based Positive-Pair Selection19 Jan 2025
- 2024Historical Test-time Prompt Tuning for Vision Foundation Models27 Oct 2024
- 2024PReP: Efficient context-based shape retrieval for missing parts18 Oct 2024
- 2024Multi-threshold Deep Metric Learning for Facial Expression Recognition24 Jun 2024
12 newest of 125 All 125 (JSON)