SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.11739 · 2023

Data-efficient Large Scale Place Recognition with Graded Similarity Supervision

arXiv · PDF · Open in the Atlas

Code that ran

6 of 12 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; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 1 failure of our instrument; 6 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/2303.11739.json · badge: /api/ran/2303.11739.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
marialeyvallina/generalized_contrastive_loss canonical (classifier label)
classifier basis not recorded on the link
6 ran · 6 no recorded run
FunctionStatusWhere it lives
cholesky Ran
ran on a synthesized input
marialeyvallina/generalized_contrastive_loss/apply_pca.py
code served (permissive licence) · get_code("f19f103c49750b67")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import numpy as np

# Create a small symmetric positive definite matrix
# Use a simple construction: A @ A.T where A is random
np.random.seed(0)
A = np.random.randn(4, 4)
S = A @ A.T  # This is guaranteed to be symmetric positive definite

ARGS = {
    "S": S
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pcawhitenlearn Ran
ran on a synthesized input
marialeyvallina/generalized_contrastive_loss/apply_pca.py
code served (permissive licence) · get_code("b670a3e0a24da63b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

np.random.seed(0)

# X should be a 2D numpy array where:
# - axis=0 represents features/dimensions
# - axis=1 represents samples/observations
# The function computes mean along axis=1, then covariance, eigendecomposition, etc.

# Create a small data matrix: 4 features × 3 samples
X = np.random.randn(4, 3).astype(np.float64)

ARGS = {
    "X": X
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
reflection_matrix Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
marialeyvallina/generalized_contrastive_loss/src/labeling/transformations.py
code served (permissive licence) · get_code("c5aeb2054758da8f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy
import math

# Construct arguments for reflection_matrix function
# The function expects:
# - point: a vector with at least 3 elements (uses point[:3])
# - normal: a vector with at least 3 elements (uses normal[:3])

# Create a point vector (4D homogeneous coordinate)
point = numpy.array([1.0, 2.0, 3.0, 1.0], dtype=numpy.float64)

# Create a normal vector (3D, will be normalized internally)
normal = numpy.array([0.5, 0.5, 0.707], dtype=numpy.float64)

ARGS = {
    "point": point,
    "normal": normal,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
translation_from_matrix Ran
ran on a synthesized input
marialeyvallina/generalized_contrastive_loss/src/labeling/transformations.py
code served (permissive licence) · get_code("77cb383b0cd2a54e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (3,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy

def translation_matrix(direction):
    """Helper function to create a translation matrix from a direction vector."""
    matrix = numpy.eye(4)
    matrix[:3, 3] = direction
    return matrix

# Create a small translation vector
v0 = numpy.array([0.1, 0.2, 0.3])

# Create a translation matrix (4x4 homogeneous transformation matrix)
matrix = translation_matrix(v0)

ARGS = {
    "matrix": matrix
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (3,) — shape (3,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
translation_matrix Ran
ran on a synthesized input
marialeyvallina/generalized_contrastive_loss/src/labeling/transformations.py
code served (permissive licence) · get_code("edeb1406911ce025")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (4, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy

numpy.random.seed(0)

# The function expects a direction vector with at least 3 elements
# It accesses direction[:3] to extract the first 3 components
direction = numpy.random.random(3) - 0.5

ARGS = {
    "direction": direction
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
world_to_camera Ran
ran on a synthesized input
marialeyvallina/generalized_contrastive_loss/extract_predictions.py
code served (permissive licence) · get_code("b89a2ef89d4c38b5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from scipy.spatial.transform import Rotation as R

# Create a valid pose argument
# pose should be a list/array of 7 elements: [w_qw, w_qx, w_qy, w_qz, w_tx, w_ty, w_tz]
# where the first 4 are quaternion components and the last 3 are translation components

# Create a valid quaternion (normalized)
quat = np.array([1.0, 0.0, 0.0, 0.0])  # identity quaternion [qw, qx, qy, qz]
w_qw, w_qx, w_qy, w_qz = quat

# Create translation components
w_tx, w_ty, w_tz = 1.5, 2.0, 3.5

# Combine into pose
pose = [w_qw, w_qx, w_qy, w_qz, w_tx, w_ty, w_tz]

ARGS = {
    "pose": pose
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_dataloader Not yet run
unverified (harvested, no recorded run)
marialeyvallina/generalized_contrastive_loss/src/factory.py
code served (permissive licence) · get_code("f88006d744a236e4")
How it ran

no invocation recorded.

create_msls_dataloader Not yet run
unverified (harvested, no recorded run)
marialeyvallina/generalized_contrastive_loss/src/factory.py
code served (permissive licence) · get_code("0db924181fa592d8")
How it ran

no invocation recorded.

extract_msls_top_k Not yet run
unverified (harvested, no recorded run)
marialeyvallina/generalized_contrastive_loss/extract_predictions.py
code served (permissive licence) · get_code("9fa8fdaa4ee659f1")
How it ran

no invocation recorded.

get_backbone Not yet run
unverified (harvested, no recorded run)
marialeyvallina/generalized_contrastive_loss/src/factory.py
code served (permissive licence) · get_code("5572e0bfa73789d7")
How it ran

no invocation recorded.

load_index Not yet run
unverified (harvested, no recorded run)
marialeyvallina/generalized_contrastive_loss/extract_predictions.py
code served (permissive licence) · get_code("30fa3d61f30e3927")
How it ran

no invocation recorded.

whitenapply Not yet run
unverified (harvested, no recorded run)
marialeyvallina/generalized_contrastive_loss/apply_pca.py
code served (permissive licence) · get_code("f2f12a45b4e7b8f4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 9 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
reflection_matrix 14 other papers
12 dated earlier, 1 later, 1 same year, order not determinable
1612.00593 (2016-12)
PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation
1803.04996 (2018-03)
Comparing Task Simplifications to Learn Closed-Loop Object Picking Using Deep Reinforcement Learning
1805.01026 (2018-05)
Computing CNN Loss and Gradients for Pose Estimation with Riemannian Geometry
and 11 more not named here
translation_from_matrix 14 other papers
12 dated earlier, 1 later, 1 same year, order not determinable
1612.00593 (2016-12)
PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation
1803.04996 (2018-03)
Comparing Task Simplifications to Learn Closed-Loop Object Picking Using Deep Reinforcement Learning
1805.01026 (2018-05)
Computing CNN Loss and Gradients for Pose Estimation with Riemannian Geometry
and 11 more not named here
translation_matrix 14 other papers
12 dated earlier, 1 later, 1 same year, order not determinable
1612.00593 (2016-12)
PointNet: Deep Learning on Point Sets for 3D Classification and Segmentation
1803.04996 (2018-03)
Comparing Task Simplifications to Learn Closed-Loop Object Picking Using Deep Reinforcement Learning
1805.01026 (2018-05)
Computing CNN Loss and Gradients for Pose Estimation with Riemannian Geometry
and 11 more not named here

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

Visual place recognition (VPR) is a fundamental task of computer vision for visual localization. Existing methods are trained using image pairs that either depict the same place or not. Such a binary indication does not consider continuous relations of similarity between images of the same place taken from different positions, determined by the continuous nature of camera pose. The binary similarity induces a noisy supervision signal into the training of VPR methods, which stall in local minima and require expensive hard mining algorithms to guarantee convergence. Motivated by the fact that two images of the same place only partially share visual cues due to camera pose differences, we deploy an automatic re-annotation strategy to re-label VPR datasets. We compute graded similarity labels for image pairs based on available localization metadata. Furthermore, we propose a new Generalized Contrastive Loss (GCL) that uses graded similarity labels for training contrastive networks. We demonstrate that the use of the new labels and GCL allow to dispense from hard-pair mining, and to train image descriptors that perform better in VPR by nearest neighbor search, obtaining superior or comparable results than methods that require expensive hard-pair mining and re-ranking techniques. Code and models available at: https://github.com/marialeyvallina/generalized_contrastive_loss

For agents

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

get_harvested_code_for_paper("2303.11739")
get_code_for_paper("2303.11739")
have("2303.11739")

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

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

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

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

Connect an agent — have() is free.