SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.03881 · NeurIPS · 2023

Emergent Correspondence from Image Diffusion

Perng Cheng, Bharath Phoo, Hariharan, Luming Tang, Menglin Jia, Qianqian Wang

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 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 3 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-24; 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/2306.03881.json · badge: /api/ran/2306.03881.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
Tsingularity/dift community (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
FunctionStatusWhere it lives
generate_read_function Ran
ran on a synthesized input
Tsingularity/dift/eval_homography.py
code served (permissive licence) · get_code("d4504f24084fa259")
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 function. 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
import os
import tempfile
import shutil

# Create a temporary directory structure with sample .npz files
temp_dir = tempfile.mkdtemp()

# Create a sequence directory
seq_name = 'test_sequence'
seq_path = os.path.join(temp_dir, seq_name)
os.makedirs(seq_path, exist_ok=True)

# Create sample .npz files with required keys
# Case 1: with scores (2D shape)
keypoints_1 = np.array([[10.5, 20.3], [15.1, 25.2], [30.0, 40.5]], dtype=np.float32)
descriptors_1 = np.random.randn(3, 128).astype(np.float32)
scores_1 = np.array([[0.9, 0.8, 0.7]], dtype=np.float32)

npz_path_1 = os.path.join(seq_path, '0.ppm.method1')
np.savez(npz_path_1, keypoints=keypoints_1, descriptors=descriptors_1, scores=scores_1)

# Case 2: with scores (1D shape)
keypoints_2 = np.array([[5.0, 15.0], [12.3, 18.5]], dtype=np.float32)
descriptors_2 = np.random.randn(2, 128).astype(np.float32)
scores_2 = np.array([0.85, 0.75], dtype=np.float32)

npz_path_2 = os.path.join(seq_path, '1.ppm.method1')
np.savez(npz_path_2, keypoints=keypoints_2, descriptors=descriptors_2, scores=scores_2)

# Case 3: with empty scores
keypoints_3 = np.array([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]], dtype=np.float32)
descriptors_3 = np.random.randn(3, 128).astype(np.float32)
scores_3 = np.array([], dtype=np.float32)

npz_path_3 = os.path.join(seq_path, '2.ppm.method1')
np.savez(npz_path_3, keypoints=keypoints_3, descriptors=descriptors_3, scores=scores_3)

ARGS = {
    'save_path': temp_dir,
    'method': 'method1',
    'extension': 'ppm',
    'top_k': 2
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
interpolate_pos_encoding Ran
ran on a synthesized input
Tsingularity/dift/src/models/clip.py
code served (permissive licence) · get_code("fb8cfa5fec0b7558")
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 Tensor, ndim 3, dtype family float, shape (1, 26, 8) 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 torch
import torch.nn as nn
import math

torch.manual_seed(0)

class MockCLIPModel(nn.Module):
    def __init__(self):
        super().__init__()
        # positional_embedding: [1 + num_patches, dim]
        # For a 4x4 patch grid: 1 class token + 16 patches = 17 tokens
        num_patches = 16  # 4x4 grid
        dim = 8
        self.positional_embedding = torch.randn(1 + num_patches, dim)
        self.patch_size = [16, 16]  # patch size in pixels

clip_model = MockCLIPModel()

# embeddings: [batch, num_patches + 1, dim]
# We want num_patches to be different from the model's positional embeddings
# so the interpolation actually happens
batch_size = 2
num_tokens = 26  # different from 17, so interpolation will trigger
dim = 8
embeddings = torch.randn(batch_size, num_tokens, dim)

# Higher resolution image: 64x64
# With patch_size 16x16: 64/16 = 4, so we'd get 4x4 = 16 patches
# But embeddings has 26 patches, so height and width must be larger
# 26 patches need sqrt(26) ≈ 5.1, so we need a grid that gives us 25 patches
# Let's use 80x80: 80/16 = 5, so 5x5 = 25 patches (total 26 with class token)
height = 80
width = 80

ARGS = {
    "clip_model": clip_model,
    "embeddings": embeddings,
    "height": height,
    "width": width,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (1, 26, 8) — shape (1, 26, 8) 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
mnn_matcher Ran
ran on a synthesized input
Tsingularity/dift/eval_homography.py
code served (permissive licence) · get_code("7ae0014e69c4f92c")
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 int, shape (2, 2) 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create small descriptor tensors
# descriptors_a: shape (2, 4) - 2 descriptors of dimension 4
descriptors_a = torch.randn(2, 4)

# descriptors_b: shape (3, 4) - 3 descriptors of dimension 4
descriptors_b = torch.randn(3, 4)

# metric: string parameter
metric = 'cosine'

ARGS = {
    'descriptors_a': descriptors_a,
    'descriptors_b': descriptors_b,
    'metric': metric
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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 int, shape (2, 2) — shape (2, 2) 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
norm_mask Ran
ran; our contract draft was wrong, not the code
Tsingularity/dift/eval_davis.py
pointer only (licence: MIT); the stored copy get_code serves, from mahmoodlab/HIPT, is pointer only (licence: NOASSERTION) · get_code("e015f2c93c762aff")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from mahmoodlab/HIPT, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

label_propagation Not yet run
unverified (harvested, no recorded run)
Tsingularity/dift/eval_davis.py
code served (permissive licence) · get_code("c204ffb4194a785f")
How it ran

no invocation recorded.

restrict_neighborhood Not yet run
unverified (harvested, no recorded run)
Tsingularity/dift/eval_davis.py
pointer only (licence: MIT); the stored copy get_code serves, from mahmoodlab/HIPT, is pointer only (licence: NOASSERTION) · get_code("efc78e753491eeab")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from mahmoodlab/HIPT, and GitHub could not classify the licence of that repository (NOASSERTION). 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 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 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
norm_mask 3 other papers
2 dated earlier, 1 later
2106.09681 (2021-06)
XCiT: Cross-Covariance Image Transformers
2109.13228 (2021-09)
PASS: An ImageNet replacement for self-supervised pretraining without humans
2602.01951 (2026-02)
Enabling Progressive Whole-slide Image Analysis with Multi-scale Pyramidal Network
restrict_neighborhood 3 other papers
2 dated earlier, 1 later
2106.09681 (2021-06)
XCiT: Cross-Covariance Image Transformers
2109.13228 (2021-09)
PASS: An ImageNet replacement for self-supervised pretraining without humans
2602.01951 (2026-02)
Enabling Progressive Whole-slide Image Analysis with Multi-scale Pyramidal Network

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-24.

Repositories linked to this paper

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

Abstract

Finding correspondences between images is a fundamental problem in computer vision. In this paper, we show that correspondence emerges in image diffusion models without any explicit supervision. We propose a simple strategy to extract this implicit knowledge out of diffusion networks as image features, namely DIffusion FeaTures (DIFT), and use them to establish correspondences between real images. Without any additional fine-tuning or supervision on the task-specific data or annotations, DIFT is able to outperform both weakly-supervised methods and competitive off-the-shelf features in identifying semantic, geometric, and temporal correspondences. Particularly for semantic correspondence, DIFT from Stable Diffusion is able to outperform DINO and OpenCLIP by 19 and 14 accuracy points respectively on the challenging SPair-71k benchmark. It even outperforms the state-of-the-art supervised methods on 9 out of 18 categories while remaining on par for the overall performance. Project page: https://diffusionfeatures. github.io.

For agents

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

get_harvested_code_for_paper("2306.03881")
get_code_for_paper("2306.03881")
have("2306.03881")

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

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

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

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

Connect an agent — have() is free.