Self-supervised learning (SSL) has become an effective approach for learning visual representations without manual annotations. Among SSL approaches, contrastive learning has been widely used for visual representation learning. However, existing contrastive SSL methods have focused primarily on image-level or pixel-level representation learning, while region-level representation learning remains less explored. We propose SPARC, a region-level contrastive learning framework that leverages superpixels to establish explicit correspondence between augmented image views. SPARC introduces a region contrastive branch that performs superpixel-based feature pooling and optimizes a region-level contrastive objective jointly with a global image-level objective. Under identical settings, SPARC consistently outperforms previous methods such as MoCo-v2 and DenseCL, achieving improvements of up to +9.79 mIoU for semantic segmentation and +4.88 AP for object detection. Ablation studies further demonstrate that region-level objectives produce the strongest performance. Thus, region-level contrastive learning is an effective approach for improving self-supervised visual pretraining for dense prediction tasks. Code repository can be accessed at https://github.com/xRIPEIx/SPARC.
Figures & tables
Figure 1: SPARC Framework Overview. SPARC’s framework is inspired by DenseCL’s double-branch design [ 19 ] . We reframe it to adapt the region-level contrastive learning objective by introducing SLIC pre-segmentation, superpixel mask alignment, and superpixel pooling. Overall, SPARC performs feature and mask preparation through data preprocessing, dense feature encoding, and superpixel mask alignment, followed by contrastive learning branches. The global branch learns image-level representations, while the region branch uses superpixels to guide feature extraction and learn region-level representations.
Training Epochs
Method
Segmentation
Detection
mIoU
Acc
AP
AP 50
Pre-train: 50 Finetune: 10
MoCo-v2
15.74 ± 0.09
78.12 ± 0.18
20.04 ± 0.34
41.97 ± 0.55
DenseCL
20.21 ± 0.41
79.63 ± 0.25
20.97 ± 0.06
42.83 ± 0.23
SPARC
24.13 ± 0.56
80.78 ± 0.28
24.00 ± 0.17
47.18 ± 0.29
Pre-train: 100 Finetune: 10
MoCo-v2
18.01 ± 0.19
79.08 ± 0.26
20.63 ± 0.26
43.09 ± 0.43
DenseCL
21.92 ± 0.75
80.42 ± 0.28
21.59 ± 0.16
43.59 ± 0.18
Table 1: Transfer performance on PASCAL VOC (in %). Pre-trained on COCO with ResNet-18. SPARC consistently outperforms MoCo-v2 and DenseCL across all configurations.
Training Epochs
Method
Segmentation
Detection
mIoU
Acc
AP
AP 50
Pre-train: 50 Finetune: 10
MoCo-v2
13.68 ± 0.47
76.74 ± 0.22
18.73 ± 0.37
39.97 ± 0.54
DenseCL
17.70 ± 0.63
78.24 ± 0.35
20.20 ± 0.20
41.53 ± 0.23
SPARC
21.48 ± 0.35
79.86 ± 0.31
23.38 ± 0.38
46.06 ± 0.64
Pre-train: 100 Finetune: 10
MoCo-v2
15.00 ± 0.61
77.56 ± 0.14
19.15 ± 0.25
40.66 ± 0.29
DenseCL
18.61 ± 0.53
78.80 ± 0.18
20.41 ± 0.19
41.80 ± 0.35
Table 2: Same as Table 1 , but pretrained on ImageNet100.
Figure 2: Semantic Segmentation and Object Detection Performance between SPARC and DenseCL across different λ values. At λ=0 , both methods use only the image-level contrastive objective, corresponding to the MoCo-v2 baseline. At λ=1 , only the region-level or pixel-level contrastive objective is used for the proposed SPARC and DenseCL, respectively. The proposed SPARC’s pure region-level contrastive learning significantly outperforms pure pixel-level and image-level contrastive learning frameworks.
Existing self-supervised learning (SSL) methods primarily learn object-invariant representations but often neglect the spatial structure and relationships among object parts. To address this limitation, we introduce Spatial Prediction (SP), a spatially aware pretext regression task that predicts the relative position and scale between a pair of disentangled local views from the same image. By modeling part-to-part relationships in a continuous geometric space, SP encourages representations to capture fine-grained spatial dependencies beyond invariant categorical semantics, thereby learning the compositional structure of visual scenes. SP is implemented as a decoupled plug-in and can be seamlessly integrated into diverse SSL frameworks. Extensive experiments show consistent improvements across image recognition, fine-grained classification, semantic segmentation, and depth estimation, as well as substantial gains in out-of-distribution robustness for object recognition. To evaluate spatial reasoning, we introduce (1) a position and scale prediction task on image patch pairs and (2) a jigsaw understanding task requiring patch reordering and recognition after reconstruction. Strong performance on these tasks indicates improved spatial structure and geometric awareness. Overall, explicitly modeling spatial information provides an effective inductive bias for SSL, leading to more structured representations and better generalization. Code and models will be released.
Yang Shen, Yusen Cai, Weronika Hryniewska-Guzik +2
Nanyang Technological University, Singapore · Warsaw University of Technology, Poland
Self-supervised learning (SSL) at scale produces powerful visual representations. However, most scalable SSL methods rely on ad hoc combinations of multiple objectives and stabilization mechanisms. Taking a step back, we ask if we can design a high-performing, yet principled SSL algorithm. Starting from the multi-view assumption, stipulating that task-relevant content is captured by the information common to different views, we construct an information-theoretic objective decomposing into interpretable terms. This derivation yields JEM, a student-teacher method that learns by aligning corresponding patch representations across views, explicitly regularized by information and structure preservation losses. JEM trains stably from 300M to 7B parameters, and, to our knowledge, is the first latent-space patch-level method demonstrated at 7B scale. Across all scales, JEM reaches strong performance on both global and dense probing tasks, on segmentation benchmarks consistently surpassing the DINOv2 algorithm, an influential foundation for today's strongest visual SSL methods. Notably, at 7B parameters, it exceeds the performance of DINOv3 on panoptic segmentation, despite being trained on 12× less data without refinement stages. These results demonstrate that we can indeed design an SSL algorithm that learns strong representations, is principled and stable.
Maximilian Seitzer, Gabriele Trivigno, Antonín Vobecký +5
Accurately segmenting objects without any manual annotations remains one of the core challenges in computer vision. In this work, we introduce Selfment, a fully self-supervised framework that segments foreground objects directly from raw images without human labels, pretrained segmentation models, or any post-processing. Selfment first constructs patch-level affinity graphs from self-supervised features and applies NCut to obtain an initial coarse foreground--background separation. We then introduce Iterative Patch Optimization (IPO), a feature-space refinement procedure that progressively enforces spatial coherence and semantic consistency through iterative patch clustering. The refined masks are subsequently used as supervisory signals to train a lightweight segmentation head with contrastive and region-consistency objectives, allowing the model to learn stable and transferable object representations. Despite its simplicity and complete absence of manual supervision, Selfment sets new state-of-the-art (SoTA) results across multiple benchmarks. It achieves substantial improvements on Fmax over previous unsupervised saliency detection methods on ECSSD (+4.0%), HKUIS (+4.6%), and PASCAL-S (+5.7%). Moreover, without any additional fine-tuning, Selfment demonstrates remarkable zero-shot generalization to camouflaged object detection tasks (e.g., 0.910Sm on CHAMELEON and 0.792Fβω on CAMO), outperforming all existing unsupervised approaches and even rivaling the SoTA fully supervised methods.