Skip to main content
QUICK REVIEW

[Paper Review] CSP: Self-Supervised Contrastive Spatial Pre-Training for Geospatial-Visual Representations

Gengchen Mai, Ni Lao|arXiv (Cornell University)|May 1, 2023
Multimodal Machine Learning ApplicationsComputer Science14 citations
TL;DR

CSP introduces a dual-encoder framework that jointly pre-trains image and location encoders using self-supervised contrastive objectives on geo-tagged data, improving few-shot and fully supervised geospatial image classification.

ABSTRACT

Geo-tagged images are publicly available in large quantities, whereas labels such as object classes are rather scarce and expensive to collect. Meanwhile, contrastive learning has achieved tremendous success in various natural image and language tasks with limited labeled data. However, existing methods fail to fully leverage geospatial information, which can be paramount to distinguishing objects that are visually similar. To directly leverage the abundant geospatial information associated with images in pre-training, fine-tuning, and inference stages, we present Contrastive Spatial Pre-Training (CSP), a self-supervised learning framework for geo-tagged images. We use a dual-encoder to separately encode the images and their corresponding geo-locations, and use contrastive objectives to learn effective location representations from images, which can be transferred to downstream supervised tasks such as image classification. Experiments show that CSP can improve model performance on both iNat2018 and fMoW datasets. Especially, on iNat2018, CSP significantly boosts the model performance with 10-34% relative improvement with various labeled training data sampling ratios.

Motivation & Objective

  • Leverage abundant unlabeled geo-tagged images to learn location representations that complement image features.
  • Develop a dual-encoder framework that encodes locations and images separately and trains them with contrastive objectives.
  • Explore multiple positive/negative sampling strategies and contrastive losses to optimize geospatial representation learning.
  • Show that CSP improves few-shot and fully supervised performance on geospatial classification benchmarks (iNat2018, fMoW).

Proposed method

  • Use a location encoder e(x) for geographic coordinates and an image encoder f(I) for visual features, projected to a common d-dimensional space.
  • Pre-train image and location representations via contrastive loss (NCE or MC) using three sampling strategies: in-batch negatives, random negative locations, and SimCSE-based dropout pairs.
  • Adopt a two-stage training: pre-train image encoder on images, then fix it and pre-train location encoder with a frozen image backbone.
  • Fine-tune image and location encoders separately on labeled data and fuse predictions at inference using a probabilistic combination.
  • Evaluate with few-shot sampling on iNat2018 and fully supervised settings on iNat2018 and fMoW.
  • Provide ablation studies to assess the impact of sampling methods, losses, embedding dimension, and choice of image backbone.
(a) Arctic Fox
(a) Arctic Fox

Experimental results

Research questions

  • RQ1Can geospatial information learned through self-supervised contrastive pre-training improve downstream geospatial image classification, especially in few-shot regimes?
  • RQ2Which sampling strategies and loss functions best leverage geo-tagged data to align location and image representations?
  • RQ3How does CSP perform with different image backbones and location embedding dimensions in both few-shot and full-data settings?

Key findings

  • CSP-HLD with MC loss consistently outperforms baselines, including purely supervised and other CSP variants, across few-shot and full-data regimes on iNat2018.
  • On iNat2018, CSP-MC-BLD achieves up to 10-34% relative improvement in few-shot scenarios (5%, 10%, 20% labeled data) over strong baselines.
  • Combining three sampling strategies and MC loss yields the best location pre-training performance among the tested configurations.
  • CSP improves performance even in fully supervised settings when integrated with the image encoder.
  • Location embeddings exhibit meaningful regional clustering after CSP pre-training, reflecting learned spatial patterns aligned with ecological/climate regions.
  • ViT-backed image backbones benefit from CSP, with consistent gains over CNN-based encoders.
(b) Arctic Fox Locations
(b) Arctic Fox Locations

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.