SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.12393 · 2026

Reproducing DragDiffusion: Interactive Point-Based Editing with Diffusion Models

Ali Subhan, Ashir Raza

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2602.12393.json · badge: /api/ran/2602.12393.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
AliSubhan5341/DragDiffusion-TMLR-Reproducibility-Challenge canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
list_matching_filenames Ran
ran; our contract draft was wrong, not the code
AliSubhan5341/DragDiffusion-TMLR-Reproducibility-Challenge/drag_bench_evaluation/run_eval_image_fidelity.py
code served (permissive licence) · get_code("1a3e5c45f58b9d76")
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 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 os
import tempfile
import shutil

# Create temporary directories with test files
temp_dir = tempfile.mkdtemp()
original_dir = os.path.join(temp_dir, "original")
edited_dir = os.path.join(temp_dir, "edited")

os.makedirs(original_dir, exist_ok=True)
os.makedirs(edited_dir, exist_ok=True)

# Create some test files in original_dir
with open(os.path.join(original_dir, "file1.txt"), "w") as f:
    f.write("content1")
with open(os.path.join(original_dir, "file2.txt"), "w") as f:
    f.write("content2")
with open(os.path.join(original_dir, "file3.txt"), "w") as f:
    f.write("content3")

# Create some test files in edited_dir (overlapping and unique)
with open(os.path.join(edited_dir, "file1.txt"), "w") as f:
    f.write("edited_content1")
with open(os.path.join(edited_dir, "file2.txt"), "w") as f:
    f.write("edited_content2")
with open(os.path.join(edited_dir, "file4.txt"), "w") as f:
    f.write("unique_to_edited")

ARGS = {
    "original_dir": original_dir,
    "edited_dir": edited_dir,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, 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
mask_image Ran
ran; our contract draft was wrong, not the code
AliSubhan5341/DragDiffusion-TMLR-Reproducibility-Challenge/drag_bench_evaluation/labeling_tool.py
code served (permissive licence) · get_code("ce0fe39e4583a703")
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 (4, 3, 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 cv2
import numpy as np
from copy import deepcopy

# Create a small test image (H=4, W=3, 3 channels)
image = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)

# Create a binary mask (H=4, W=3)
mask = np.zeros((4, 3), dtype=np.uint8)
mask[1:3, 1:2] = 1

# Define the arguments dictionary
ARGS = {
    "image": image,
    "mask": mask,
    "color": [255, 0, 0],
    "alpha": 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, 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 (4, 3, 3) — shape (4, 3, 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
preprocess_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AliSubhan5341/DragDiffusion-TMLR-Reproducibility-Challenge/drag_bench_evaluation/run_drag_diffusion.py
code served (permissive licence) · get_code("b6f9c54d3eaa1c8a")
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) and returned Tensor, ndim 4, dtype family float, shape (1, 3, 4, 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 torch
import numpy as np

torch.manual_seed(0)

# Create a small test image as numpy array
# Shape: (height, width, channels) with values in range [0, 255]
image = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8).astype(np.float32)

# Determine device
device = torch.device('cpu')

ARGS = {
    'image': image,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
einops, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (1, 3, 4, 3) — shape (1, 3, 4, 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
preprocess_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AliSubhan5341/DragDiffusion-TMLR-Reproducibility-Challenge/drag_bench_evaluation/run_eval_image_fidelity.py
code served (permissive licence) · get_code("4994d000c3197df6")
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 4, dtype family float, shape (1, 3, 4, 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 as np
import torch

torch.manual_seed(0)

# Create a small HWC uint8 image array
# H=4, W=3, C=3 (RGB image)
image = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)

# Create a CPU device
device = torch.device('cpu')

ARGS = {
    'image': image,
    'device': device,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (1, 3, 4, 3) — shape (1, 3, 4, 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
preprocess_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AliSubhan5341/DragDiffusion-TMLR-Reproducibility-Challenge/drag_bench_evaluation/run_eval_similarity.py
code served (permissive licence) · get_code("45d032d395c815e4")
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 4, dtype family float, shape (1, 2, 4, 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 torch
import numpy as np

torch.manual_seed(0)

# Create a small image as a numpy array (height=4, width=3, channels=2)
image = np.random.randint(0, 256, size=(4, 3, 2), dtype=np.uint8).astype(np.float32)

device = 'cpu'

ARGS = {
    'image': image,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (1, 2, 4, 3) — shape (1, 2, 4, 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
store_img Ran
ran; our contract draft was wrong, not the code
AliSubhan5341/DragDiffusion-TMLR-Reproducibility-Challenge/drag_bench_evaluation/labeling_tool.py
code served (permissive licence) · get_code("09a03c76f61637c9")
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 cv2
import numpy as np
import PIL
from PIL import Image
from PIL.ImageOps import exif_transpose
from copy import deepcopy

# Create a minimal img dict with required 'image' and 'mask' keys
# image: (H, W, 3) RGB array
# mask: (H, W, 1) grayscale mask array

height, width = 256, 384
image_array = np.random.randint(0, 256, (height, width, 3), dtype=np.uint8)
mask_array = np.random.randint(0, 2, (height, width, 1), dtype=np.uint8) * 255

img_dict = {
    'image': image_array,
    'mask': mask_array
}

ARGS = {
    'img': img_dict,
    'length': 512
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, cv2, 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
get_sample_folders_for_category Not yet run
unverified (harvested, no recorded run)
AliSubhan5341/DragDiffusion-TMLR-Reproducibility-Challenge/drag_bench_evaluation/copy_sample_images.py
code served (permissive licence) · get_code("e29b4cf30d0d68ca")
How it ran

no invocation recorded.

override_forward Not yet run
unverified (harvested, no recorded run)
AliSubhan5341/DragDiffusion-TMLR-Reproducibility-Challenge/drag_pipeline.py
code served (permissive licence) · get_code("347292f773a27470")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 0 later) and 3 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
preprocess_image 4 other papers
4 dated earlier
2305.10973 (2023-05)
Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold
2404.01050 (2024-04)
Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation
2405.15769 (2024-05)
FastDrag: Manipulate Anything in One Step
and 1 more not named here
mask_image 3 other papers
3 dated earlier
2401.06442 (2024-01)
RotationDrag: Point-based Image Editing with Rotated Diffusion Features
2404.01050 (2024-04)
Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation
2407.17843 (2024-07)
DragText: Rethinking Text Embedding in Point-based Image Editing
store_img 2 other papers
2 dated earlier
2404.01050 (2024-04)
Drag Your Noise: Interactive Point-based Editing via Diffusion Semantic Propagation
2407.17843 (2024-07)
DragText: Rethinking Text Embedding in Point-based Image Editing
override_forward 1 other paper
1 dated earlier
2407.17843 (2024-07)
DragText: Rethinking Text Embedding in Point-based Image Editing

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

DragDiffusion (Shi et al., 2024) is a diffusion-based method for interactive point-based image editing that enables users to manipulate images by directly dragging selected points. The method claims that accurate spatial control can be achieved by optimizing a single diffusion latent at an intermediate timestep, together with identity-preserving fine-tuning and spatial regularization. This work presents a reproducibility study of DragDiffusion using the authors' released implementation and the DragBench benchmark. We reproduce the main ablation studies on diffusion timestep selection, LoRA-based fine-tuning (Hu et al., 2022), mask regularization strength, and UNet feature supervision, and observe close agreement with the qualitative and quantitative trends reported in the original work. At the same time, our experiments show that performance is sensitive to a small number of hyperparameter assumptions, particularly the optimized timestep and the feature level used for motion supervision, while other components admit broader operating ranges. We further evaluate a multi-timestep latent optimization variant and find that it does not improve spatial accuracy while substantially increasing computational cost. Overall, our findings support the central claims of DragDiffusion while clarifying the conditions under which they are reliably reproducible. Our code is available at https: //github.com/AliSubhan5341/DragDiffusion-TMLR-Reproducibility-Challenge.

For agents

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

get_harvested_code_for_paper("2602.12393")
get_code_for_paper("2602.12393")
have("2602.12393")

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

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

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

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

Connect an agent — have() is free.