SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.10270 · ICCV · 2025

EEdit: Rethinking the Spatial and Temporal Redundancy for Efficient Image Editing

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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; 2 honoured the contract we drafted, 2 violated it and 3 have no contract verdict; 2 failures 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/2503.10270.json · badge: /api/ran/2503.10270.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
yuriyanzexuan/eedit canonical (classifier label)
classifier basis not recorded on the link
9 ran · 2 no recorded run
FunctionStatusWhere it lives
attn_score Ran
ran on a synthesized input
yuriyanzexuan/eedit/cache_functions/scores.py
code served (permissive licence) · get_code("c92fb5b26f68b7f1")
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 2, dtype family float, shape (2, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# Build cache_dic with the structure expected by the function
# The function accesses:
# - cache_dic['attn_map'][-1][current['layer']] -> tensor to sum over dim=1
# - cache_dic['cross_attn_map'][-1][current['layer']] -> dict or tensor

# attn_map: list of dicts mapping layer indices to attention tensors
# Shape: (batch_size, seq_len, hidden_dim) - need to sum over dim=1
attn_tensor = torch.randn(2, 5, 4)  # batch=2, seq_len=5, hidden_dim=4
attn_map = [{0: attn_tensor, 1: attn_tensor}]  # list with one dict

# cross_attn_map: list of dicts mapping layer indices to cross-attention tensors or empty dicts
# When not empty, it should be a tensor that supports * and torch.log operations
# and has shape compatible with dim=-2 operations
cross_attn_tensor = torch.rand(2, 6, 4)  # batch=2, num_tokens=6, hidden_dim=4
# Ensure values are in valid range for log (between 0 and 1 approximately)
cross_attn_tensor = F.softmax(cross_attn_tensor, dim=-1)
cross_attn_map = [{0: cross_attn_tensor, 1: cross_attn_tensor}]  # list with one dict

cache_dic = {
    'attn_map': attn_map,
    'cross_attn_map': cross_attn_map
}

# Build current dict with 'layer' key
current = {
    'layer': 0
}

ARGS = {
    'cache_dic': cache_dic,
    'current': current
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
calculate_shift Ran
ran, violated the contract we drafted
yuriyanzexuan/eedit/MyCodes/MyFluxCompositionPipeline.py
code served (permissive licence) · get_code("4e3ad3679e5c37b2")
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 float, ndim 0, dtype family float, shape () 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)

# Analyzing the function:
# - image_seq_len: a numeric value (int or float) representing sequence length
# - base_seq_len: int, default 256
# - max_seq_len: int, default 4096
# - base_shift: float, default 0.5
# - max_shift: float, default 1.16
# The function performs linear interpolation calculations on these numeric values

ARGS = {
    "image_seq_len": 512,
    "base_seq_len": 256,
    "max_seq_len": 4096,
    "base_shift": 0.5,
    "max_shift": 1.16
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () 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
get_next_number Ran
ran on a synthesized input
yuriyanzexuan/eedit/composition_gen.py
code served (permissive licence) · get_code("efac58e9cd4918c9")
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 int, ndim 0, dtype family int, shape () 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 tempfile
import shutil

# Create a temporary directory for testing
test_dir = tempfile.mkdtemp()

# Create some test files with numbered patterns
os.makedirs(test_dir, exist_ok=True)
open(os.path.join(test_dir, "file-1.txt"), 'w').close()
open(os.path.join(test_dir, "file-2.txt"), 'w').close()
open(os.path.join(test_dir, "file-5.txt"), 'w').close()

ARGS = {
    "dirname": test_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 int, ndim 0, dtype family int, shape () — shape () 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_score Ran
ran, violated the contract we drafted
yuriyanzexuan/eedit/cache_functions/scores.py
pointer only (licence: MIT); the stored copy get_code serves, from Shenyi-Z/ToCa, is pointer only (licence: GPL-3.0) · get_code("a2f810a673cf074a")
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 Shenyi-Z/ToCa, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

process_point_pairs Ran
ran on a synthesized input
yuriyanzexuan/eedit/MyCodes/MyFluxDragEditPipeline.py
code served (permissive licence) · get_code("71dad3ca1af30468")
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 3, dtype family int; 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 cv2
import numpy as np
import torch

torch.manual_seed(0)

# Looking at the function, it expects:
# - source_pts: list/array of points (x, y coordinates)
# - target_pts: list/array of points (x, y coordinates)
# - height: integer for image height
# - width: integer for image width
# - kernel_size: integer for morphology kernel (optional, default=3)

# The function divides height and width by 16, so we need values that make sense
# Let's use height=160, width=240 so divided by 16 gives 10x15

source_pts = [
    (2, 3),
    (5, 7),
    (1, 2)
]

target_pts = [
    (3, 4),
    (6, 8),
    (2, 3)
]

height = 160
width = 240
kernel_size = 3

ARGS = {
    'source_pts': source_pts,
    'target_pts': target_pts,
    'height': height,
    'width': width,
    'kernel_size': kernel_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family int — 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
retrieve_latents Ran
ran, honoured the contract we drafted
yuriyanzexuan/eedit/MyCodes/MyFluxCompositionPipeline.py
pointer only (licence: MIT); the stored copy get_code serves, from JS-CHU/RoamScene3D, is pointer only (licence: NONE) · get_code("98bcd15cf273e3b4")
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 JS-CHU/RoamScene3D, and GitHub detected no licence in that repository 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.

retrieve_latents Ran
ran, honoured the contract we drafted
yuriyanzexuan/eedit/MyCodes/MyFluxDragEditPipeline.py
code served (permissive licence) · get_code("259c256f3912d8ec")
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 2, dtype family float, shape (2, 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create a stand-in class for encoder output with latent_dist
class LatentDist:
    def __init__(self):
        self.mean = torch.randn(2, 4)
        self.logvar = torch.randn(2, 4)
    
    def sample(self, generator=None):
        return torch.randn(2, 4, generator=generator)
    
    def mode(self):
        return self.mean

class EncoderOutputWithLatentDist:
    def __init__(self):
        self.latent_dist = LatentDist()

# Create a stand-in class for encoder output with latents attribute
class EncoderOutputWithLatents:
    def __init__(self):
        self.latents = torch.randn(2, 4)

# Test with encoder_output that has latent_dist
encoder_output = EncoderOutputWithLatentDist()
generator = torch.Generator()
generator.manual_seed(42)

ARGS = {
    'encoder_output': encoder_output,
    'generator': generator,
    'sample_mode': 'sample'
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
retrieve_timesteps Ran
ran; our contract draft was wrong, not the code
yuriyanzexuan/eedit/MyCodes/MyFluxCompositionPipeline.py
pointer only (licence: MIT); the stored copy get_code serves, from krafton-ai/Rare-to-Frequent, is pointer only (licence: NONE) · get_code("0b56680ee1708fee")
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 krafton-ai/Rare-to-Frequent, and GitHub detected no licence in that repository 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.

similarity_score Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yuriyanzexuan/eedit/cache_functions/scores.py
pointer only (licence: MIT); the stored copy get_code serves, from Shenyi-Z/ToCa, is pointer only (licence: GPL-3.0) · get_code("195ca5d843403029")
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 Shenyi-Z/ToCa, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

forward Not yet run
unverified (harvested, no recorded run)
yuriyanzexuan/eedit/MyCodes/MyFluxForward.py
code served (permissive licence) · get_code("a9ebe98ae1217a05")
How it ran

no invocation recorded.

score_evaluate Not yet run
unverified (harvested, no recorded run)
yuriyanzexuan/eedit/cache_functions/score_evaluate.py
code served (permissive licence) · get_code("bf94ec7d245afce8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 4 the same month, 3 later) and 5 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
retrieve_timesteps 46 other papers
19 dated earlier, 2 the same month, 22 later, 1 same year, order not determinable, 2 undated
2312.04461 (2023-12)
PhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding
2402.10491 (2024-02)
Make a Cheap Scaling: A Self-Cascade Diffusion Model for Higher-Resolution Adaptation
2405.18991 (2024-05)
EasyAnimate: High-Performance Video Generation Framework with Hybrid Windows Attention and Reward Backpropagation
and 43 more not named here
retrieve_latents 19 other papers
12 dated earlier, 6 later, 1 undated
2401.07519 (2024-01)
InstantID: Zero-shot Identity-Preserving Generation in Seconds
2403.14773 (2024-03)
StreamingT2V: Consistent, Dynamic, and Extendable Long Video Generation from Text
2404.06666 (2024-04)
SafeGen: Mitigating Sexually Explicit Content Generation in Text-to-Image Models
and 16 more not named here
calculate_shift 15 other papers
7 dated earlier, 1 the same month, 6 later, 1 same year, order not determinable
2406.04312 (2024-06)
ReNO: Enhancing One-step Text-to-Image Models through Reward-based Noise Optimization
2410.22376 (2024-10)
Rare-to-Frequent: Unlocking Compositional Generation Power of Diffusion Models on Rare Concepts with LLM Guidance
2411.06558 (2024-11)
Region-Aware Text-to-Image Generation via Hard Binding and Soft Refinement
and 12 more not named here
norm_score 2 other papers
1 dated earlier, 1 the same month · 1 only as an assembly brick
2410.05317 (2024-10)
Accelerating Diffusion Transformers with Token-wise Feature Caching
2503.06923 (2025-03)
From Reusing to Forecasting: Accelerating Diffusion Models with TaylorSeers
similarity_score 2 other papers
1 dated earlier, 1 the same month · 1 only as an assembly brick
2410.05317 (2024-10)
Accelerating Diffusion Transformers with Token-wise Feature Caching
2503.06923 (2025-03)
From Reusing to Forecasting: Accelerating Diffusion Models with TaylorSeers

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

Less modified area, Higher hidden states similarity Hidden states heat map Figure 2. The illustration of motivation. We observe that there are significant computational redundancy during the editing process, which can be classified into spatial redundancy (a) and temporal redundancy (b). For spatial redundancy (a), due to a high background similarity between the source image and the edited results, calculating the entire image in every inversion/denoising step is unnecessary. For temporal redundancy (b), we discover that skipping some steps in inversion/denoising does not degrade the editing performance.

For agents

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

get_harvested_code_for_paper("2503.10270")
get_code_for_paper("2503.10270")
have("2503.10270")

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

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

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

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

Connect an agent — have() is free.