mlsanityData to 14 Oct 2026

Contrastive Attraction and Contrastive Repulsion for Representation Learning

arXiv 2105.03746 ↗First posted 8 May 2021cs.LG cs.CV stat.MLcited by 13

Not on the map. Why?

Abstract (arXiv)

Contrastive learning (CL) methods effectively learn data representations in a self-supervision manner, where the encoder contrasts each positive sample over multiple negative samples via a one-vs-many softmax cross-entropy loss. By leveraging large amounts of unlabeled image data, recent CL methods have achieved promising results when pretrained on large-scale datasets, such as ImageNet. However, most of them consider the augmented views from the same instance are positive pairs, while views from other instances are negative ones. Such binary partition insufficiently considers the relation between samples and tends to yield worse performance when generalized on images in the wild. In this paper, to further improve the performance of CL and enhance its robustness on various datasets, {we propose a doubly CL strategy that separately compares positive and negative samples within their own groups, and then proceeds with a contrast between positive and negative groups}. We realize this strategy with contrastive attraction and contrastive repulsion (CACR), which makes the query not only exert a greater force to attract more distant positive samples but also do so to repel closer negative samples. Theoretical analysis reveals that CACR generalizes CL's behavior by positive attraction and negative repulsion, and it further considers the intra-contrastive relation within the positive and negative pairs to narrow the gap between the sampled and true distribution, which is important when datasets are less curated. With our extensive experiments, CACR not only demonstrates good performance on CL benchmarks, but also shows better robustness when generalized on imbalanced image datasets. Code and pre-trained checkpoints are available at https://github.com/JegZheng/CACR-SSL.

Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 67 of its 113 references that are in the map. First posted on arXiv 8 May 2021.

Builds on

67 of 113 references.

References · 67

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  5. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  6. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,639
  7. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  8. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
  9. 2017Mask R-CNNcited by 7,277
  10. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  11. 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,750
  12. 2020Exploring Simple Siamese Representation Learningcited by 2,866
38 more
  1. 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,857
  2. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,849
  3. 2020Supervised Contrastive Learningcited by 2,829
  4. 2020Improved Baselines with Momentum Contrastive Learningcited by 2,287
  5. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
  6. 2018Unsupervised Feature Learning via Non-Parametric Instance-level Discriminationcited by 1,845
  7. 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,838
  8. 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,616
  9. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
  10. 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
  11. 2020Big Self-Supervised Models are Strong Semi-Supervised Learnerscited by 1,380
  12. 2019Contrastive Multiview Codingcited by 1,301
  13. 2018Learning deep representations by mutual information estimation and maximizationcited by 1,273
  14. 2018Deep Graph Infomaxcited by 1,106
  15. 2020What Makes for Good Views for Contrastive Learning?cited by 846
  16. 2019Self-Supervised Learning of Pretext-Invariant Representationscited by 808
  17. 2020CURL: Contrastive Unsupervised Representations for Reinforcement Learningcited by 760
  18. 2019Contrastive Representation Distillationcited by 748
  19. 2019Learning Representations by Maximizing Mutual Information Across Viewscited by 734
  20. 2019Data-Efficient Image Recognition with Contrastive Predictive Codingcited by 673
  21. 2020Contrastive Multi-View Representation Learning on Graphscited by 652
  22. 2020Prototypical Contrastive Learning of Unsupervised Representationscited by 640
  23. 2020Contrastive Learning with Hard Negative Samplescited by 628
  24. 2019Cluster-GCN: An Efficient Algorithm for Training Deep and Large Graph Convolutional Networkscited by 541
  25. 2019A Theoretical Analysis of Contrastive Unsupervised Representation Learningcited by 530
  26. 2019InfoGraph: Unsupervised and Semi-supervised Graph-Level Representation Learning via Mutual Information Maximizationcited by 441
  27. 2014Deep metric learning using Triplet networkcited by 422
  28. 2020Circle Loss: A Unified Perspective of Pair Similarity Optimizationcited by 403
  29. 2020Hard Negative Mixing for Contrastive Learningcited by 402
  30. 2019Multi-Similarity Loss with General Pair Weighting for Deep Metric Learningcited by 368
  31. 2020Debiased Contrastive Learningcited by 356
  32. 2021With a Little Help from My Friends: Nearest-Neighbor Contrastive Learning of Visual Representationscited by 326
  33. 2019On Mutual Information Maximization for Representation Learningcited by 316
  34. 2021Cross-Modal Contrastive Learning for Text-to-Image Generationcited by 259
  35. 2020DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representationscited by 251
  36. 2018Cooperative Learning of Audio and Video Models from Self-Supervised Synchronizationcited by 249
  37. 2017NormFace: L2 Hypersphere Embedding for Face Verificationcited by 237
  38. 2019Graph Matching Networks for Learning the Similarity of Graph Structured Objectscited by 205

50 most cited of 67 All 67 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 1; 2022: 2; 2023: 1; 2024: 4; 2025: 2; 2026: 3.

13 papers.

Sort:

By area: