Depth-Guided Contrastive Learning for 2D Representations with 3D Spatial Awareness
Abstract
Standard contrastive learning frameworks are mainly designed from a semantic perspective, yet learning 2D visual representations that preserve 3D spatial structure is also important for scene understanding. In this work, we propose Depth-Guided Contrastive Learning (DGCL), a simple auxiliary objective that injects 3D spatial awareness into 2D contrastive representation learning. Our key idea is to use depth to convert local 3D proximity into contrastive similarity: pixels that are closer in 3D space are encouraged to have more similar representations than pixels that are farther apart. Instead of relying on absolute depth values, DGCL formulates supervision through relative 3D distance comparisons among randomly sampled pixels, making the objective invariant to depth scale, efficient to compute, and easy to integrate into existing contrastive frameworks. Experiments across different datasets and models show that DGCL consistently improves 2D representation learning and benefits semantic downstream tasks by stronger spatial and geometric understanding. The code is available on https://github.com/LeungTsang/DGCL.
Create a lesson
Related papers
Enhancing Maritime Domain Awareness using Latent Space Representations
Shared title terminologycs.CVRikard Vinge, Miguel A. Belenguer-Plomer, Isabelle Wittmann et al.
Variation-aware Temporal Correspondence for Self-Supervised Video Representation Learning
Shared title terminologycs.CVYang Liu, Qianqian Xu, Peisong Wen et al.
Small yet Assistive: Spatially-Aware Post-Training for Low Vision
Shared title terminologycs.CVRishabh Choudhary, Shreyansh Raj, Umesh Goyal et al.
Anatomy-Aware Synthesis of Post-Contrast Breast MRI from Pre-Contrast Images
Shared title terminologycs.CVZhengbo Zhou, Dooman Arefan, Lin Gu et al.
DocDUR-Net: Degradation-Aware Unified Document Image Restoration
Shared title terminologycs.CVHaowei Xu, Peirong Zhang, Xuhan Zheng et al.
Motion Beyond Pixels: Learning Future Visual Representations for Object-Centric Dynamics
Shared title terminologycs.CVChengzhi Zhao, Juelin Li, Zhennan Wang et al.