mlsanityData to 14 Oct 2026

Cross-Batch Memory for Embedding Learning

arXiv 1912.06798 ↗First posted 14 Dec 2019cs.LG cs.CVcited by 132

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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 44; 2022: 33; 2023: 30; 2024: 13; 2025: 4; 2026: 8.

132 papers.

Sort:

By area:

  1. 2021Exploring Cross-Image Pixel Contrast for Semantic Segmentationcited by 242
  2. 2022Memorizing Transformerscited by 226
  3. 2022Cross-Image Relational Knowledge Distillation for Semantic Segmentationcited by 118
  4. 2022Hyperbolic Vision Transformers: Combining Improvements in Metric Learningcited by 111
  5. 2021Training Vision Transformers for Image Retrievalcited by 90
  6. 2021Cross Modal Retrieval with Querybank Normalisationcited by 72
  7. 2022Regional Semantic Contrast and Aggregation for Weakly Supervised Semantic Segmentationcited by 64
  8. 2021Instance-level Image Retrieval using Reranking Transformerscited by 63
  9. 2021Group-aware Label Transfer for Domain Adaptive Person Re-identificationcited by 58
  10. 2021IDM: An Intermediate Domain Module for Domain Adaptive Person Re-IDcited by 51
  11. 2021Exploring Classification Equilibrium in Long-Tailed Object Detectioncited by 51
  12. 2021Recall@k Surrogate Loss with Large Batches and Similarity Mixupcited by 49
38 more
  1. 2021Mining Contextual Information Beyond Image for Semantic Segmentationcited by 48
  2. 2021Solving Inefficiency of Self-supervised Representation Learningcited by 41
  3. 2021Deep Learning-based Patient Re-identification Is able to Exploit the Biometric Nature of Medical Chest X-ray Datacited by 38
  4. 2022Online Knowledge Distillation via Mutual Contrastive Learning for Visual Recognitioncited by 36
  5. 2026Your Group-Relative Advantage Is Biasedcited by 34
  6. 2023Contrastive Conditional Latent Diffusion for Audio-visual Segmentationcited by 31
  7. 2022HIER: Metric Learning Beyond Class Labels via Hierarchical Regularizationcited by 26
  8. 2021A Deep Metric Learning Approach to Account Linkingcited by 24
  9. 2021Noise-resistant Deep Metric Learning with Ranking-based Instance Selectioncited by 23
  10. 2021Contrastive Learning with Large Memory Bank and Negative Embedding Subtraction for Accurate Copy Detectioncited by 23
  11. 2023Clustering based Point Cloud Representation Learning for 3D Analysiscited by 23
  12. 2021Duplex Contextual Relation Network for Polyp Segmentationcited by 22
  13. 2022Delving into Semantic Scale Imbalancecited by 22
  14. 2024Historical Test-time Prompt Tuning for Vision Foundation Modelscited by 22
  15. 2021Embedding Transfer with Label Relaxation for Improved Metric Learningcited by 21
  16. 2021Learning with Memory-based Virtual Classes for Deep Metric Learningcited by 21
  17. 2021Towards Discriminative Representation Learning for Unsupervised Person Re-identificationcited by 20
  18. 2021PoseContrast: Class-Agnostic Object Viewpoint Estimation in the Wild with Pose-Aware Contrastive Learningcited by 19
  19. 2021Leveraging EfficientNet and Contrastive Learning for Accurate Global-scale Location Estimationcited by 19
  20. 2021Robust and Decomposable Average Precision for Image Retrievalcited by 19
  21. 2021Hierarchical Proxy-based Loss for Deep Metric Learningcited by 18
  22. 2023ERM++: An Improved Baseline for Domain Generalizationcited by 18
  23. 2022Continual Learning for Visual Search with Backward Consistent Feature Embeddingcited by 17
  24. 2022Learning Equivariant Segmentation with Instance-Unique Queryingcited by 17
  25. 2021Contrastive Quantization with Code Memory for Unsupervised Image Retrievalcited by 16
  26. 2023Camera-Driven Representation Learning for Unsupervised Domain Adaptive Person Re-identificationcited by 16
  27. 2022RecursiveMix: Mixed Learning with Historycited by 15
  28. 2022MemSAC: Memory Augmented Sample Consistency for Large Scale Unsupervised Domain Adaptationcited by 15
  29. 2022COARSE3D: Class-Prototypes for Contrastive Learning in Weakly-Supervised 3D Point Cloud Segmentationcited by 15
  30. 2023Collaborative Group: Composed Image Retrieval via Consensus Learning from Noisy Annotationscited by 14
  31. 2025SMEC: Rethinking Matryoshka Representation Learning for Retrieval Embedding Compressioncited by 14
  32. 2023Identity-Seeking Self-Supervised Representation Learning for Generalizable Person Re-identificationcited by 13
  33. 2024DATR: Unsupervised Domain Adaptive Detection Transformer with Dataset-Level Adaptation and Prototypical Alignmentcited by 13
  34. 2023Density-invariant Features for Distant Point Cloud Registrationcited by 12
  35. 2021InsCLR: Improving Instance Retrieval with Self-Supervisioncited by 11
  36. 2023Black-box Unsupervised Domain Adaptation with Bi-directional Atkinson-Shiffrin Memorycited by 11
  37. 2024Leveraging Large Language Models for Multimodal Searchcited by 11
  38. 2022Spectral, Probabilistic, and Deep Metric Learning: Tutorial and Surveycited by 10

50 most cited of 132 All 132 (JSON)