SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.15911 · 2023

NexToU: Efficient Topology-Aware U-Net for Medical Image Segmentation

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 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 3 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/2305.15911.json · badge: /api/ran/2305.15911.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
pengchengshi1220/nextou canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
PengchengShi1220/AortaSeg24 community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
remove_small_objects_binary Ran
ran on a synthesized input
PengchengShi1220/AortaSeg24/inference.py
code served (permissive licence) · get_code("a4f73e274bd69624")
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 2, dtype family float, shape (8, 8) 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 scipy.ndimage import label

np.random.seed(0)

# Create a small binary array with some connected components
# Mix of objects with different sizes
binary_data = np.zeros((8, 8), dtype=bool)

# Create a large object (should be kept)
binary_data[1:4, 1:4] = True

# Create a medium object (should be kept if min_size <= 5)
binary_data[5:7, 5:7] = True

# Create small objects (should be removed if min_size=10)
binary_data[1, 6] = True
binary_data[2, 6] = True
binary_data[3, 6] = True
binary_data[7, 2] = True

ARGS = {
    "binary_data": binary_data,
    "min_size": 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (8, 8) — shape (8, 8) 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
window_partition Ran
ran on a synthesized input
pengchengshi1220/nextou/network_architecture/NexToU_Encoder_Decoder.py
code served (permissive licence) · get_code("395cca4bcd0dd20e")
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 (8, 4, 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
import numpy as np
from einops import rearrange

torch.manual_seed(0)

# Test case 1: 4D tensor (B, C, H, W)
x_4d = torch.randn(2, 4, 8, 8)
window_size_4d = (4, 4)

# Test case 2: 5D tensor (B, C, S, H, W)
x_5d = torch.randn(2, 4, 8, 8, 8)
window_size_5d = (4, 4, 4)

# We'll use the 4D case as the primary test
ARGS = {
    "x": x_4d,
    "window_size": window_size_4d
}
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 (8, 4, 4, 4) — shape (8, 4, 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
window_reverse Ran
ran on a synthesized input
pengchengshi1220/nextou/network_architecture/NexToU_Encoder_Decoder.py
code served (permissive licence) · get_code("f7b31847e963c5c3")
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, 8, 8) 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
from einops import rearrange

torch.manual_seed(0)

# Test case 1: 4D case (2D windows)
# windows shape: (num_windows*B, C, window_size, window_size)
# For 4D case: H=8, W=8, window_size=(4, 4)
# num_windows = (H/window_size[0]) * (W/window_size[1]) = 2*2 = 4
# B = 2, so windows.shape[0] = 4*2 = 8

C = 3
H_4d = 8
W_4d = 8
window_size_4d = (4, 4)
num_windows_4d = (H_4d // window_size_4d[0]) * (W_4d // window_size_4d[1])
B_4d = 2
windows_4d = torch.randn(num_windows_4d * B_4d, C, window_size_4d[0], window_size_4d[1])
size_tuple_4d = (H_4d, W_4d)

# Test case 2: 5D case (3D windows)
# windows shape: (num_windows*B, C, window_size, window_size, window_size)
# For 5D case: S=4, H=8, W=8, window_size=(2, 2, 2)
# num_windows = (S/window_size[0]) * (H/window_size[1]) * (W/window_size[2]) = 2*4*4 = 32
# B = 1, so windows.shape[0] = 32*1 = 32

S_5d = 4
H_5d = 8
W_5d = 8
window_size_5d = (2, 2, 2)
num_windows_5d = (S_5d // window_size_5d[0]) * (H_5d // window_size_5d[1]) * (W_5d // window_size_5d[2])
B_5d = 1
windows_5d = torch.randn(num_windows_5d * B_5d, C, window_size_5d[0], window_size_5d[1], window_size_5d[2])
size_tuple_5d = (S_5d, H_5d, W_5d)

# Use 4D case for the main test
ARGS = {
    'windows': windows_4d,
    'window_size': window_size_4d,
    'size_tuple': size_tuple_4d
}
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 (2, 3, 8, 8) — shape (2, 3, 8, 8) 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

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 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 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.

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

Convolutional neural networks (CNN) and Transformer variants have emerged as the leading medical image segmentation backbones. Nonetheless, due to their limitations in either preserving global image context or efficiently processing irregular shapes in visual objects, these backbones struggle to effectively integrate information from diverse anatomical regions and reduce inter-individual variability, particularly for the vasculature. Motivated by the successful breakthroughs of graph neural networks (GNN) in capturing topological properties and non-Euclidean relationships across various fields, we propose NexToU, a novel hybrid architecture for medical image segmentation. NexToU comprises improved Pool GNN and Swin GNN modules from Vision GNN (ViG) for learning both global and local topological representations while minimizing computational costs. To address the containment and exclusion relationships among various anatomical structures, we reformulate the topological interaction (TI) module based on the nature of binary trees, rapidly encoding the topological constraints into NexToU. Extensive experiments conducted on three datasets (including distinct imaging dimensions, disease types, and imaging modalities) demonstrate that our method consistently outperforms other state-of-the-art (SOTA) architectures. All the code is publicly available at https://github.com/PengchengShi1220/NexToU.

For agents

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

get_harvested_code_for_paper("2305.15911")
get_code_for_paper("2305.15911")
have("2305.15911")

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

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

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

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

Connect an agent — have() is free.