SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.01118 · ICML · 2023

CSP: Self-Supervised Contrastive Spatial Pre-Training for Geospatial-Visual Representations

Stefano Ermon, Jiaming Song, Gengchen Mai, Ni Lao, Yutong He

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2305.01118.json · badge: /api/ran/2305.01118.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
gengchenmai/csp community
Papers with Code archive
4 ran · 1 no recorded run
FunctionStatusWhere it lives
embed_l2_normalize Ran
ran; our contract draft was wrong, not the code
gengchenmai/csp/main/losses.py
pointer only (licence: NONE) · get_code("96cda1aea7b63917")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gengchenmai/csp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

encode_loc_time Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gengchenmai/csp/main/losses.py
pointer only (licence: NONE) · get_code("e48912ff8b1bd157")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gengchenmai/csp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_spa_enc_list Ran
ran on a synthesized input
gengchenmai/csp/main/losses.py
pointer only (licence: NONE) · get_code("f52db84260e2e400")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gengchenmai/csp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rand_samples Ran
ran, honoured the contract we drafted
gengchenmai/csp/main/losses.py
pointer only (licence: NONE) · get_code("f8dfc3ef0600fe52")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gengchenmai/csp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

contsoftmax_loss Not yet run
unverified (harvested, no recorded run)
gengchenmai/csp/main/losses.py
pointer only (licence: NONE) · get_code("bd753361ca20fe21")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gengchenmai/csp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
embed_l2_normalize
brick of this paper's assembly: helper
1 other paper
1 later
2406.15658 (2024-06)
TorchSpatial: A Location Encoding Framework and Benchmark for Spatial Representation Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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 selfsupervised 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 dataset. Especially, on iNat2018, CSP significantly boosts the model performance with 10-34% relative improvement with various labeled training data sampling ratios 1 .

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2305.01118")
get_code_for_paper("2305.01118")
have("2305.01118")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2305.01118.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2305.01118.svg)](https://syntology.ai/paper/2305.01118)

Connect an agent — have() is free.