SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.17584 · 2026

Root-Selecting Fixed-Point Inversion for Rectified Flows via Trajectory Straightness

Seunghoon Hong, Semin Kim, Jihwan Yoon

arXiv · PDF · Open in the Atlas

Code that ran

6 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 4 failures of our instrument; 8 no recorded run), measured 2026-11-24; 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/2606.17584.json · badge: /api/ran/2606.17584.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
seminkim/selfix community
Papers with Code archive
6 ran · 8 no recorded run
FunctionStatusWhere it lives
EmbedND Ran
ran on a synthesized input · constructed an object; no result was computed
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("5178fdd6859e13c2")
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 an instance of its own class, EmbedND: the run constructed the object and did not call it, so no result was computed. 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
from torch import nn

torch.manual_seed(0)

ARGS = {
    "dim": 64,
    "theta": 10000,
    "axes_dim": [32, 32]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EmbedND — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a EmbedND 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
build_selfix_anchor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("9bdc709d18d53c26")
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 (2, 3, 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 torch

torch.manual_seed(0)

# Create small tensors for image history (batch=2, channels=3, height=4, width=4)
img1 = torch.randn(2, 3, 4, 4)
img2 = torch.randn(2, 3, 4, 4)
img3 = torch.randn(2, 3, 4, 4)
img4 = torch.randn(2, 3, 4, 4)

final_img_history = [img1, img2, img3, img4]

# Create dt history (one less element than image history)
final_dt_history = [0.1, 0.15, 0.2]

# Parameters
dt = 0.05
window_size = 3

ARGS = {
    "dt": dt,
    "final_img_history": final_img_history,
    "final_dt_history": final_dt_history,
    "window_size": window_size,
}
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 4, dtype family float, shape (2, 3, 4, 4) — shape (2, 3, 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
ensure_trajectory_trace Ran
ran; our contract draft was wrong, not the code
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("47b22f016f97675d")
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

torch.manual_seed(0)

ARGS = {
    'info': {
        'save_trace': True,
        'trace': {
            'trajectory_straightness': 0.5,
            'generation_trajectory_straightness': 0.3
        }
    }
}
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 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
rope Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("002c583990a22f88")
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 5, dtype family float, shape (2, 3, 2, 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
from torch import Tensor

torch.manual_seed(0)

# pos: Tensor - position indices, shape should be compatible with einsum '...n,d->...nd'
# Looking at the function, pos is used in einsum with omega (shape d,)
# The output shape suggests pos should have shape like (batch, seq_len) or similar
pos = torch.arange(0, 6, dtype=torch.float64).reshape(2, 3)  # shape: (2, 3)

# dim: int - dimension parameter, must be even (asserted in function)
# Used to create scale and omega, and in rearrange as 'd'
dim = 4

# theta: int - base for the exponential decay in RoPE
# Used as divisor in omega calculation
theta = 10000

ARGS = {
    "pos": pos,
    "dim": dim,
    "theta": theta,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 5, dtype family float, shape (2, 3, 2, 2, 2) — shape (2, 3, 2, 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
selfix_alpha Ran
ran, honoured the contract we drafted
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("1cf7c50df1445c34")
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 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:
# - k: int, must be >= 0
# - alpha1: float, must satisfy 0 < alpha1 < 1
# - delta: float, must be > 0
# The function performs a simple arithmetic calculation with these parameters

ARGS = {
    'k': 5,
    'alpha1': 0.7,
    'delta': 2.5
}
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 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
update_trajectory_straightness Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("a9582679966b70d1")
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

torch.manual_seed(0)

# Create tiny tensors for current_img and next_img
# Shape: (batch=2, dim=4)
current_img = torch.randn(2, 4)
next_img = torch.randn(2, 4)

# Create prev_velocity tensor with same shape as images
prev_velocity = torch.randn(2, 4)

# Create a trace dict with the metric_name key initialized
trace = {
    'trajectory_straightness': 0.0,
    'generation_trajectory_straightness': 0.0
}

# dt parameter for time step
dt = 0.1

# inverse flag to control which metric name is used
inverse = True

ARGS = {
    'trace': trace,
    'prev_velocity': prev_velocity,
    'current_img': current_img,
    'next_img': next_img,
    'dt': dt,
    'inverse': inverse
}
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
DoubleStreamBlock Not yet run
unverified (harvested, no recorded run)
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("d65024541e358923")
How it ran

no invocation recorded.

Flux Not yet run
unverified (harvested, no recorded run)
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("3df4544ac81c813f")
How it ran

no invocation recorded.

SelfAttention Not yet run
unverified (harvested, no recorded run)
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("0b8453ea4488f39a")
How it ran

no invocation recorded.

SingleStreamBlock Not yet run
unverified (harvested, no recorded run)
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("509e32cf1aee04b7")
How it ran

no invocation recorded.

attention Not yet run
unverified (harvested, no recorded run)
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("9060f70adf38d1aa")
How it ran

no invocation recorded.

denoise_selfix Not yet run
unverified (harvested, no recorded run)
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("a80fa6c7644f1679")
How it ran

no invocation recorded.

record_latent_trajectory Not yet run
unverified (harvested, no recorded run)
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("d3ce3416d7783d35")
How it ran

no invocation recorded.

timestep_embedding Not yet run
unverified (harvested, no recorded run)
seminkim/selfix/src/flux/sampling.py
code served (permissive licence) · get_code("ed9c768b107b4796")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 0 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
rope
brick of this paper's assembly: helper
8 other papers
8 dated earlier · 2 only as an assembly brick
2409.00587 (2024-09)
FLUX that Plays Music
2411.04746 (2024-11)
Taming Rectified Flow for Inversion and Editing
2412.07517 (2024-12)
FireFlow: Fast Inversion of Rectified Flow for Image Semantic Editing
and 5 more not named here
attention
brick of this paper's assembly: helper
6 other papers
6 dated earlier · 1 only as an assembly brick
2409.00587 (2024-09)
FLUX that Plays Music
2411.04746 (2024-11)
Taming Rectified Flow for Inversion and Editing
2412.07517 (2024-12)
FireFlow: Fast Inversion of Rectified Flow for Image Semantic Editing
and 3 more not named here
timestep_embedding
brick of this paper's assembly: helper
5 other papers
5 dated earlier · 1 only as an assembly brick
2412.07517 (2024-12)
FireFlow: Fast Inversion of Rectified Flow for Image Semantic Editing
2502.01105 (2025-02)
LayerTracer: Cognitive-Aligned Layered SVG Synthesis via Diffusion Transformer
2502.17363 (2025-02)
KV-Edit: Training-Free Image Editing for Precise Background Preservation
and 2 more not named here
EmbedND
brick of this paper's assembly: helper
4 other papers
4 dated earlier · 2 only as an assembly brick
2502.01105 (2025-02)
LayerTracer: Cognitive-Aligned Layered SVG Synthesis via Diffusion Transformer
2502.17363 (2025-02)
KV-Edit: Training-Free Image Editing for Precise Background Preservation
2504.02160 (2025-04)
Less-to-More Generalization: Unlocking More Controllability by In-Context Generation
and 1 more not named here
SelfAttention
brick of this paper's assembly: helper
3 other papers
3 dated earlier
2502.01105 (2025-02)
LayerTracer: Cognitive-Aligned Layered SVG Synthesis via Diffusion Transformer
2502.04320 (2025-02)
ConceptAttention: Diffusion Transformers Learn Highly Interpretable Features
2502.17363 (2025-02)
KV-Edit: Training-Free Image Editing for Precise Background Preservation

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 the initial noise that generates a given data sample, known as inversion, is a key component for downstream applications such as training-free image editing. Existing fixed-point inversion methods improve inversion accuracy by formulating each inversion step as a fixed-point problem, but they lack a principled mechanism for selecting among multiple fixed-point solutions that can arise in practice. We observe that different selections induce different inversion trajectories, leading to substantial variation in reconstruction and editing quality. For rectified flows, we further find that this variation is closely associated with trajectory straightness, motivating straightness as a principled selection criterion. We propose SelFix, a fixed-point inversion method that selects fixed-point solutions inducing straighter inverse trajectories while retaining convergence to an exact inverse root under standard local assumptions. Experiments on FLUX.1-dev and PIE-Bench show that SelFix improves fixed-point inversion, achieving stronger real-image reconstruction and better source-preserving prompt-based editing than prior inversion baselines. The code is available at https://github.com/seminkim/selfix.

For agents

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

get_harvested_code_for_paper("2606.17584")
get_code_for_paper("2606.17584")
have("2606.17584")

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

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

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

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

Connect an agent — have() is free.