SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.13010 · September 2026

Dual-guided Hierarchical Edge Localization for Large-scale Optimal Transport Across Dimensions

Jingwei Liang, Xiaoqun Zhang, Qiaoqiao Ding, Wenzhou Xia

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 3 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/2609.13010.json · badge: /api/ran/2609.13010.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
WenzhouXia/hello-ot canonical (classifier label)
classifier basis: census
8 ran · 3 no recorded run
FunctionStatusWhere it lives
evaluate_pair_costs Ran
ran; our contract draft was wrong, not the code
WenzhouXia/hello-ot/src/hello_ot/cost.py
code served (permissive licence) · get_code("023091745d6abbdd")
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 1, dtype family float, shape (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 numpy as np
from dataclasses import dataclass
from typing import Literal

# Define the cost runtime classes
@dataclass(frozen=True)
class _BilinearCostRuntime:
    source_points: np.ndarray
    target_points: np.ndarray
    source_offset: np.ndarray
    target_offset: np.ndarray
    dot_scale: float
    cost_type: Literal['l2^2', 'factorized']

    def __post_init__(self) -> None:
        scale = float(self.dot_scale)
        if scale not in {1.0, 2.0}:
            raise ValueError('dot_scale must be exactly 1 or 2')
        object.__setattr__(self, 'dot_scale', scale)

@dataclass(frozen=True)
class _NormCostRuntime:
    source_points: np.ndarray
    target_points: np.ndarray
    cost_type: Literal['l1', 'l2', 'linf']

# Create test data for BilinearCostRuntime
np.random.seed(0)
source_points_bilinear = np.random.randn(5, 4).astype(np.float32)
target_points_bilinear = np.random.randn(3, 4).astype(np.float32)
source_offset_bilinear = np.random.randn(5).astype(np.float64)
target_offset_bilinear = np.random.randn(3).astype(np.float64)

bilinear_runtime = _BilinearCostRuntime(
    source_points=source_points_bilinear,
    target_points=target_points_bilinear,
    source_offset=source_offset_bilinear,
    target_offset=target_offset_bilinear,
    dot_scale=1.0,
    cost_type='factorized'
)

# Create test indices
rows = np.array([0, 1, 2, 3], dtype=np.int64)
cols = np.array([0, 1, 2, 0], dtype=np.int64)

ARGS = {
    'runtime': bilinear_runtime,
    'rows': rows,
    'cols': cols
}
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 1, dtype family float, shape (4,) — shape (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
finest_stopping_norm Ran
ran; our contract draft was wrong, not the code
WenzhouXia/hello-ot/src/hello_ot/config.py
code served (permissive licence) · get_code("9c514ee00cac1d8d")
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 str. 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

# The function finest_stopping_norm takes a single parameter 'policy'
# of type StoppingNormPolicy (which is a Literal['l2', 'finest_linf'])
# and returns a Literal['l2', 'linf']

# Test with 'l2' policy
ARGS = {
    'policy': 'l2'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
level_kind Ran
ran; our contract draft was wrong, not the code
WenzhouXia/hello-ot/src/hello_ot/progress.py
code served (permissive licence) · get_code("349a555128a0be89")
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 str. 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 torch.nn as nn

# Create a minimal execution object with perturbation attribute
class Perturbation:
    def __init__(self, phase):
        self.phase = phase

class Execution:
    def __init__(self, perturbation=None):
        self.perturbation = perturbation

# Test case 1: execution with perturbation phase='original_final'
execution_final = Execution(perturbation=Perturbation(phase='original_final'))

# Test case 2: execution with perturbation phase='refined'
execution_refined = Execution(perturbation=Perturbation(phase='refined'))

# Test case 3: execution with no perturbation (defaults to 'original')
execution_no_perturbation = Execution(perturbation=None)

# The ARGS dict with parameters for the function
ARGS = {
    'execution': execution_final,
    'coarsest': False
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
level_stopping_norm Ran
ran; our contract draft was wrong, not the code
WenzhouXia/hello-ot/src/hello_ot/config.py
code served (permissive licence) · get_code("c7ee11bcbbbbeac1")
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 str. 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
from typing import Literal

torch.manual_seed(0)

# Construct arguments for level_stopping_norm function
ARGS = {
    'policy': 'l2',
    'level_index': 0
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
normalize_cpu_warm_start Ran
ran; our contract draft was wrong, not the code
WenzhouXia/hello-ot/src/hello_ot/state.py
code served (permissive licence) · get_code("cc98599d02e254d6")
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 WarmStartState. 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
from dataclasses import dataclass
from typing import Optional

torch.manual_seed(0)

@dataclass
class WarmStartState:
    """
    CN: CPU 侧稀疏 OT 状态;主要用于公开结果与设备边界。
    EN: CPU sparse-OT state used primarily at result and device boundaries.
    """
    rows: np.ndarray
    cols: np.ndarray
    x_prev: np.ndarray
    dual_uv: Optional[np.ndarray]
    n_source: int
    n_target: int
    northwest_positions: Optional[np.ndarray] = None

# Create test data with distinct dimensions
rows_data = np.array([0, 1, 2, 0], dtype=np.int32)
cols_data = np.array([1, 2, 0, 2], dtype=np.int32)
x_prev_data = np.array([1.5, 2.3, 0.7, 1.2], dtype=np.float64)
dual_uv_data = np.array([0.1, 0.2, 0.3, 0.4], dtype=np.float64)
northwest_positions_data = np.array([0, 1, 3], dtype=np.int64)

# Create WarmStartState with numpy arrays
state_numpy = WarmStartState(
    rows=rows_data,
    cols=cols_data,
    x_prev=x_prev_data,
    dual_uv=dual_uv_data,
    n_source=3,
    n_target=4,
    northwest_positions=northwest_positions_data
)

# Create WarmStartState with torch tensors (CPU)
state_torch = WarmStartState(
    rows=torch.tensor([0, 1, 2, 0], dtype=torch.int32),
    cols=torch.tensor([1, 2, 0, 2], dtype=torch.int32),
    x_prev=torch.tensor([1.5, 2.3, 0.7, 1.2], dtype=torch.float64),
    dual_uv=torch.tensor([0.1, 0.2, 0.3, 0.4], dtype=torch.float64),
    n_source=3,
    n_target=4,
    northwest_positions=torch.tensor([0, 1, 3], dtype=torch.int64)
)

# Create WarmStartState with None optional fields
state_no_optionals = WarmStartState(
    rows=np.array([0, 1], dtype=np.int32),
    cols=np.array([1, 0], dtype=np.int32),
    x_prev=np.array([1.5, 2.3], dtype=np.float64),
    dual_uv=None,
    n_source=2,
    n_target=3,
    northwest_positions=None
)

ARGS = {
    "state": state_torch
}
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 WarmStartState — a WarmStartState output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a WarmStartState 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
stage_name Ran
ran; our contract draft was wrong, not the code
WenzhouXia/hello-ot/src/hello_ot/progress.py
code served (permissive licence) · get_code("cd4f6d5b54e38d8d")
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 str. 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 torch.nn as nn

class MockPerturbation:
    def __init__(self, phase):
        self.phase = phase

class MockExecution:
    def __init__(self, perturbation):
        self.perturbation = perturbation

# Test case 1: execution with perturbation.phase = 'original_final'
execution_1 = MockExecution(MockPerturbation('original_final'))

# Test case 2: execution with perturbation.phase = 'original'
execution_2 = MockExecution(MockPerturbation('original'))

# Test case 3: execution with perturbation.phase = some other phase
execution_3 = MockExecution(MockPerturbation('augmented'))

# Test case 4: execution with no perturbation attribute
execution_4 = MockExecution(None)

# Test case 5: execution with perturbation but no phase attribute
execution_5 = MockExecution(MockPerturbation.__new__(MockPerturbation))
execution_5.perturbation = type('obj', (object,), {})()

ARGS = {
    'execution': execution_1
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
warm_start_from_gpu Ran
ran; our contract draft was wrong, not the code
WenzhouXia/hello-ot/src/hello_ot/state.py
code served (permissive licence) · get_code("8ff257368d491285")
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 WarmStartState. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
from dataclasses import dataclass
from typing import Optional

torch.manual_seed(0)

@dataclass
class GPUWarmStartState:
    rows: torch.Tensor
    cols: torch.Tensor
    x_prev: torch.Tensor
    dual_uv: Optional[torch.Tensor]
    n_source: int
    n_target: int
    device: str = 'cpu'
    keys: Optional[torch.Tensor] = None
    northwest_positions: Optional[torch.Tensor] = None

# Create small tensor data
rows_tensor = torch.tensor([0, 1, 2], dtype=torch.int32)
cols_tensor = torch.tensor([0, 1, 2], dtype=torch.int32)
x_prev_tensor = torch.tensor([0.1, 0.2, 0.3], dtype=torch.float64)
dual_uv_tensor = torch.tensor([0.5, 0.6, 0.7], dtype=torch.float64)
northwest_positions_tensor = torch.tensor([0, 1, 2], dtype=torch.int64)

state = GPUWarmStartState(
    rows=rows_tensor,
    cols=cols_tensor,
    x_prev=x_prev_tensor,
    dual_uv=dual_uv_tensor,
    n_source=3,
    n_target=3,
    device='cpu',
    keys=None,
    northwest_positions=northwest_positions_tensor
)

ARGS = {
    'state': state
}
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 WarmStartState — a WarmStartState output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a WarmStartState 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
warm_start_to_gpu Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
WenzhouXia/hello-ot/src/hello_ot/state.py
code served (permissive licence) · get_code("8273d26d73472e43")
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 GPUWarmStartState. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
from dataclasses import dataclass
from typing import Optional

torch.manual_seed(0)

@dataclass
class WarmStartState:
    """
    CN: CPU 侧稀疏 OT 状态;主要用于公开结果与设备边界。
    EN: CPU sparse-OT state used primarily at result and device boundaries.
    """
    rows: np.ndarray
    cols: np.ndarray
    x_prev: np.ndarray
    dual_uv: Optional[np.ndarray]
    n_source: int
    n_target: int
    northwest_positions: Optional[np.ndarray] = None

@dataclass
class GPUWarmStartState:
    """
    CN: initialization 与 refinement 之间传递的 Torch-device 稀疏 OT 状态。
    EN: Torch-device sparse-OT state passed from initialization to refinement.
    """
    rows: torch.Tensor
    cols: torch.Tensor
    x_prev: torch.Tensor
    dual_uv: Optional[torch.Tensor]
    n_source: int
    n_target: int
    device: str = 'cuda'
    keys: Optional[torch.Tensor] = None
    northwest_positions: Optional[torch.Tensor] = None

# Create a minimal WarmStartState for testing
n_source = 4
n_target = 3
n_nonzero = 5

rows_np = np.array([0, 1, 2, 3, 1], dtype=np.int32)
cols_np = np.array([0, 1, 2, 0, 2], dtype=np.int32)
x_prev_np = np.array([1.5, 2.3, 0.8, 1.2, 0.5], dtype=np.float64)
dual_uv_np = np.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7], dtype=np.float64)
northwest_positions_np = np.array([0, 1, 2], dtype=np.int64)

state = WarmStartState(
    rows=rows_np,
    cols=cols_np,
    x_prev=x_prev_np,
    dual_uv=dual_uv_np,
    n_source=n_source,
    n_target=n_target,
    northwest_positions=northwest_positions_np
)

ARGS = {
    'state': state,
    'device': 'cpu'
}
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 GPUWarmStartState — a GPUWarmStartState output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GPUWarmStartState 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
final_metrics Not yet run
unverified (harvested, no recorded run)
WenzhouXia/hello-ot/src/hello_ot/progress.py
code served (permissive licence) · get_code("7076f54606c8d9a2")
How it ran

no invocation recorded.

finish_original_problem Not yet run
unverified (harvested, no recorded run)
WenzhouXia/hello-ot/src/hello_ot/perturbation.py
code served (permissive licence) · get_code("a8f965e437d1a860")
How it ran

no invocation recorded.

initialize_from_dual Not yet run
unverified (harvested, no recorded run)
WenzhouXia/hello-ot/src/hello_ot/perturbation.py
code served (permissive licence) · get_code("62623ef87693ba29")
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 11 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 11 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

Optimal transport (OT) compares distributions and aligns datasets in machine learning, yet unregularized discrete OT requires a linear program with quadratically many transport variables. We propose HELLO, a hierarchical solver that casts large-scale discrete OT as edge localization and uses dual potentials to guide both coarse-to-fine initialization and within-level refinement. Initialization propagates coarse dual potentials across a recursive subsampling hierarchy to assign candidate edges. Refinement then iteratively inserts the largest dual violators in each row and column until the relative KKT residual meets a prescribed tolerance, while budgeted pruning ensures linear memory complexity. For exact-arithmetic refinement, we prove finite termination at a global optimum under a symbolic lexicographic rule. At the million-point scale, HELLO attains lower transport objectives with order-of-magnitude runtime improvements over strong baselines across feature dimensions from single digits to thousands. It further scales to 1.28 million samples per marginal in 8192 dimensions on a single H100, using 41.6 GiB peak GPU memory while satisfying a full relative KKT residual below $10^{-6}$. Beyond standard discrete OT, the framework supports general pairwise costs and serves as a scalable balanced-OT oracle for semi-discrete OT, Gromov--Wasserstein, unbalanced OT, and OT-based Flow Matching.

For agents

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

get_harvested_code_for_paper("2609.13010")
get_code_for_paper("2609.13010")
have("2609.13010")

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

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

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

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

Connect an agent — have() is free.