Location-Aware Self-Supervised Transformers for Semantic Segmentation

Mathilde Caron, Neil Houlsby, Cordelia Schmid
12/5/2022
cs.CV
transformer-attentioncontrastive-ssl

Official code: google-research/scenic (3,848 stars, Python, Apache-2.0, JAX, last commit 2026-04-24).

Abstract

Pixel-level labels are particularly expensive to acquire. Hence, pretraining is a critical step to improve models on a task like semantic segmentation.

Show full abstract

However, prominent algorithms for pretraining neural networks use image-level objectives, e.g. image classification, image-text alignment a la CLIP, or self-supervised contrastive learning. These objectives do not model spatial information, which might be sub-optimal when finetuning on downstream tasks with spatial reasoning. In this work, we pretrain network with a location-aware (LOCA) self-supervised method which fosters the emergence of strong dense features. Specifically, we use both a patch-level clustering scheme to mine dense pseudo-labels and a relative location prediction task to encourage learning about object parts and their spatial arrangements. Our experiments show that LOCA pretraining leads to representations that transfer competitively to challenging and diverse semantic segmentation datasets.

View on arXivView PDF

Code Implementations(1)

JAXApache-2.0

Scenic: A Jax Library for Computer Vision Research and Beyond

3,848482Python, Jupyter NotebookJul 12, 20217 months agoApache-2.0
attentioncomputer-visiondeep-learningjaxresearch+2 more

Similar Papers

Cite this paper

@article{caron2022locationaware,
  title  = {Location-Aware Self-Supervised Transformers for Semantic Segmentation},
  author = {Mathilde Caron and Neil Houlsby and Cordelia Schmid},
  year   = {2022},
  eprint = {2212.02400},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.02400}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.02400.svg)](https://codeofpaper.com/paper/2212.02400)

Discussion