Lune

ICML2023Top-tier venue

Patch-level Contrastive Learning via Positional Query for Visual Pre-training

Shaofeng Zhang, Qiang Zhou, Zhibin Wang, Fan Wang, Junchi Yan

Abstract

Dense contrastive learning (DCL) has been recently explored for learning localized information for dense prediction tasks (e.g., detection and segmentation). It still suffers the difficulty of mining pixels/patches correspondence between two views. A simple way is inputting the same view twice and aligning the pixel/patch representation. However, it would reduce the variance of inputs, and hurts the performance. We propose a plug-in method PQCL (Positional Query for patch-level Contrastive Learning), which allows performing patch-level contrasts between two views with exact patch correspondence. Besides, by using positional queries, PQCL increases the variance of inputs, to enhance training. We apply PQCL to popular transformer-based CL frameworks (DINO and iBOT, and evaluate them on classification, detection and segmentation tasks, where our method obtains stable improvements, especially for dense tasks. It achieves new state-of-the-art in most settings. Code is available at https://github. com/Sherrylone/Query_Contrastive .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Hierarchical Object-Aware Dual-Level Contrastive Learning for Domain Generalized Stereo Matching cites A Simple Framework for Contrastive Learning of Visual Representations
  • Emerging Properties in Self-Supervised Vision Transformers cites Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
  • Emerging Properties in Self-Supervised Vision Transformers cites A Simple Framework for Contrastive Learning of Visual Representations
  • Emerging Properties in Self-Supervised Vision Transformers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Emerging Properties in Self-Supervised Vision Transformers cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • Unsupervised Learning of Visual Features by Contrasting Cluster Assignments cites A Simple Framework for Contrastive Learning of Visual Representations
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites A Simple Framework for Contrastive Learning of Visual Representations
  • Cross-view Masked Diffusion Transformers for Person Image Synthesis cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • SaCo Loss: Sample-Wise Affinity Consistency for Vision-Language Pre-Training cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • SaCo Loss: Sample-Wise Affinity Consistency for Vision-Language Pre-Training cites Continuous-Multiple Image Outpainting in One-Step via Positional Query and A Diffusion-based Approach
  • Continuous-Multiple Image Outpainting in One-Step via Positional Query and A Diffusion-based Approach cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Continuous-Multiple Image Outpainting in One-Step via Positional Query and A Diffusion-based ApproachShaofeng Zhang, Jinfa Huang, Qiang Zhou, Zhibin Wang et al.ICLR 2024 · 24 citations
  2. Cross-view Masked Diffusion Transformers for Person Image SynthesisTrung X. Pham, Kang Zhang, Chang D. YooICML 2024 · 12 citations
  3. Towards Effective Usage of Human-Centric Priors in Diffusion Models for Text-based Human Image GenerationJunyan Wang, Zhenhong Sun, Zhiyu Tan, Xuanbai Chen et al.CVPR 2024 · 8 citations
  4. Hierarchical Object-Aware Dual-Level Contrastive Learning for Domain Generalized Stereo MatchingYikun Miao, Meiqing Wu, Siew Kei Lam, Changsheng Li et al.NeurIPS 2024 · 5 citations
  5. SaCo Loss: Sample-Wise Affinity Consistency for Vision-Language Pre-TrainingSitong Wu, Haoru Tan, Zhuotao Tian, Yukang Chen et al.CVPR 2024 · 5 citations

Builds on27

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  3. Bootstrap Your Own Latent - A New Approach to Self-Supervised LearningJean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec et al.NeurIPS 2020 · 9,171 citations
  4. Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations
  5. Unsupervised Learning of Visual Features by Contrasting Cluster AssignmentsMathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal et al.NeurIPS 2020 · 5,249 citations

Related papers

  1. Patch-Level Contrasting without Patch Correspondence for Accurate and Dense Contrastive Representation LearningShaofeng Zhang, Feng Zhu, Rui Zhao, Junchi YanICLR 2023 · 8 citations
  2. CR2PQ: Continuous Relative Rotary Positional Query for Dense Visual Representation LearningShaofeng Zhang, Qiang Zhou, Sitong Wu, Haoru Tan et al.ICLR 2025
  3. Dense Contrastive Learning for Self-Supervised Visual Pre-TrainingXinlong Wang, Rufeng Zhang, Chunhua Shen, Tao Kong et al.CVPR 2021
  4. DisCo DETR: Distance-aware Multi-view Contrastive Learning for DETR Pre-trainingChao Ouyang, Yuyang Bai, Jun Zhang, Tianlu Gao et al.AAAI 2026
  5. Calibration-based Dual Prototypical Contrastive Learning Approach for Domain Generalization Semantic SegmentationMuxin Liao, Shishun Tian, Yuhang Zhang, Guoguang Hua et al.ACM MM 2023 · 14 citations
Dusk over the sea between two cliffs drawn in fine vertical lines