SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1808.10584 · 2018

Learning to Describe Differences Between Pairs of Similar Images

arXiv · PDF · Open in the Atlas

Code that ran

6 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 6 have no contract verdict; 0 failures of our instrument; 0 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/1808.10584.json · badge: /api/ran/1808.10584.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
harsh19/spot-the-diff canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
PIL2array Ran
ran on a synthesized input
harsh19/spot-the-diff/code/clustering/utilities.py
code served (permissive licence) · get_code("4cf9d6b0e8185d87")
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
from PIL import Image

# Create a small test image
# Create a simple RGB image (3 channels)
img_array = np.zeros((5, 7, 3), dtype=np.uint8)
img_array[0, 0] = [255, 128, 64]
img_array[2, 3] = [100, 200, 50]
img = Image.fromarray(img_array, mode='RGB')

ARGS = {
    'img': img
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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
changeToBinary Ran
ran on a synthesized input
harsh19/spot-the-diff/code/clustering/utilities.py
code served (permissive licence) · get_code("30d7e616f7567ada")
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 3, dtype family float, shape (4, 3, 1) 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 as np

# Create a sample pixels matrix with RGB values
# Shape: (4, 3, 3) - 4 rows, 3 columns, 3 RGB channels
pixels_matrix_rgb = np.array([
    [[255, 200, 180], [100, 50, 75], [200, 210, 220]],
    [[50, 60, 70], [150, 140, 130], [200, 200, 200]],
    [[120, 130, 140], [80, 90, 100], [240, 250, 245]],
    [[10, 20, 30], [200, 210, 220], [100, 110, 120]]
], dtype=np.uint8)

# Create a sample grayscale pixels matrix
# Shape: (4, 3) - 4 rows, 3 columns, single channel
pixels_matrix_gray = np.array([
    [255, 100, 200],
    [50, 150, 200],
    [120, 80, 240],
    [10, 200, 100]
], dtype=np.uint8)

ARGS = {
    "pixels_matrix": pixels_matrix_rgb,
    "rgb": True
}
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 3, dtype family float, shape (4, 3, 1) — shape (4, 3, 1) 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
findBoxPoints Ran
ran on a synthesized input
harsh19/spot-the-diff/code/clustering/box.py
code served (permissive licence) · get_code("5f8c4e41595a647a")
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 list, ndim 2, 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
import pickle
import tempfile
import os

# Create a temporary directory for pickle files
temp_dir = tempfile.mkdtemp()

# Prepare mock data
np.random.seed(0)

# Create labels: cluster IDs (-1 for noise, 0, 1, 2)
labels = np.array([0, 0, 1, 1, 2, -1])

# Create 2D coordinate data (6 points with 2 dimensions)
X = np.array([
    [1.0, 2.0],
    [1.5, 2.5],
    [5.0, 5.0],
    [5.5, 5.5],
    [10.0, 10.0],
    [15.0, 15.0]
])

# Create core_samples_mask (which samples are core points)
core_samples_mask = np.array([True, True, True, True, False, False])

# Create shap values (placeholder)
shap = np.array([[0.1, 0.2], [0.15, 0.25], [0.3, 0.4], [0.35, 0.45], [0.5, 0.6], [0.7, 0.8]])

# Create the pickle file
vals = (labels, X, core_samples_mask, shap)
cluster_plot_path_prefix = os.path.join(temp_dir, 'test_cluster')
with open(cluster_plot_path_prefix + '_vals.obj', 'wb') as f:
    pickle.dump(vals, f)

# Define ARGS
ARGS = {
    'cluster_plot_path_prefix': cluster_plot_path_prefix,
    'ignore_noise': False
}
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 list, ndim 2, dtype family float — a list 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
findRectangleCoordinates Ran
ran on a synthesized input
harsh19/spot-the-diff/code/clustering/box.py
code served (permissive licence) · get_code("6ad4b197533dceaf")
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 list, ndim 2, 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

# Construct cluster_coords: a dictionary mapping cluster labels to lists of coordinate points
# Each point should be a coordinate pair [x, y]
cluster_coords = {
    0: [[1.0, 2.0], [3.0, 4.0], [2.0, 3.0]],
    1: [[5.0, 6.0], [7.0, 8.0]],
    2: [[0.5, 1.5], [2.5, 3.5], [1.0, 2.5], [3.0, 4.0]]
}

ARGS = {
    "cluster_coords": cluster_coords
}
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 list, ndim 2, dtype family float — a list 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
getMatrixFromIM Ran
ran on a synthesized input
harsh19/spot-the-diff/code/clustering/utilities.py
code served (permissive licence) · get_code("71c404b24fb633ff")
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 3, dtype family int, shape (5, 7, 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.

from PIL import Image
import numpy as np

# Create a small test image
# PIL Image with RGB data
img_array = np.random.randint(0, 256, (5, 7, 3), dtype=np.uint8)
test_image = Image.fromarray(img_array, mode='RGB')

ARGS = {
    'im': test_image,
    'rgb': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (5, 7, 3) — shape (5, 7, 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
loadClusters Ran
ran on a synthesized input
harsh19/spot-the-diff/code/clustering/box.py
code served (permissive licence) · get_code("682f15261bbaf957")
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 dict. 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 torch
import numpy as np

torch.manual_seed(0)

# Construct arguments for loadClusters function
labels = np.array([0, 0, 1, 1, 2, -1])
X = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [1.5, 2.5, 3.5, 4.5],
    [5.0, 6.0, 7.0, 8.0],
    [5.5, 6.5, 7.5, 8.5],
    [9.0, 10.0, 11.0, 12.0],
    [9.5, 10.5, 11.5, 12.5]
])
core_samples_mask = np.array([True, True, True, True, False, False])
shap = None
ignore_noise = True

ARGS = {
    "labels": labels,
    "X": X,
    "core_samples_mask": core_samples_mask,
    "shap": shap,
    "ignore_noise": ignore_noise
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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

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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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.

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

In this paper, we introduce the task of automatically generating text to describe the differences between two similar images. We collect a new dataset by crowd-sourcing difference descriptions for pairs of image frames extracted from video-surveillance footage. Annotators were asked to succinctly describe all the differences in a short paragraph. As a result, our novel dataset provides an opportunity to explore models that align language and vision, and capture visual salience. The dataset may also be a useful benchmark for coherent multi-sentence generation. We perform a firstpass visual analysis that exposes clusters of differing pixels as a proxy for object-level differences. We propose a model that captures visual salience by using a latent variable to align clusters of differing pixels with output sentences. We find that, for both single-sentence generation and as well as multi-sentence generation, the proposed model outperforms the models that use attention alone.

For agents

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

get_harvested_code_for_paper("1808.10584")
get_code_for_paper("1808.10584")
have("1808.10584")

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

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

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

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

Connect an agent — have() is free.