SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2507.02581 · ICCV · 2025

Structure-aware Semantic Discrepancy and Consistency for 3D Medical Image Self-supervised Learning

Ai, Yuan Cheng, Dongli Xu, Yuan Qi, Xin Guo, Tan Pan, Kaiyu Guo, Zhaorui Tan, Chen Jiang, Weidi Xu

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 8 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/2507.02581.json · badge: /api/ran/2507.02581.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
Ashespt/S2DC canonical (classifier label)
classifier basis: census
10 ran · 2 no recorded run
FunctionStatusWhere it lives
apply_cached_rotary_emb Ran
ran; our contract draft was wrong, not the code
Ashespt/S2DC/Pretrain/models/modules.py
pointer only (licence: NONE) · get_code("127ac20ae2475310")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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.

compute_tp_fp_fn_tn Ran
ran, honoured the contract we drafted
Ashespt/S2DC/Downstream/RECON/dice_eval.py
pointer only (licence: NONE) · get_code("ab360089ac3497d5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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.

get_3channels_slice Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Ashespt/S2DC/Downstream/BTCV/trainer.py
pointer only (licence: NONE) · get_code("65575f914ba7673c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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.

get_3panels_slice Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Ashespt/S2DC/Downstream/BTCV/trainer.py
pointer only (licence: NONE) · get_code("66ca30fd4bfd9dfa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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.

log_optimal_transport Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Ashespt/S2DC/Pretrain/losses/optimal_transport.py
pointer only (licence: NONE) · get_code("a2ae9d2de09b8a44")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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.

log_sinkhorn_iterations Ran
ran; our contract draft was wrong, not the code
Ashespt/S2DC/Pretrain/losses/optimal_transport.py
pointer only (licence: NONE) · get_code("d5062fac61cbc73f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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.

normalize_keypoints Ran
ran; our contract draft was wrong, not the code
Ashespt/S2DC/Pretrain/models/modules.py
pointer only (licence: NONE); the stored copy get_code serves, from Ashespt/TACO, is pointer only (licence: NONE) · get_code("8e0ae67329911da7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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.

region_or_label_to_mask Ran
ran, violated the contract we drafted
Ashespt/S2DC/Downstream/RECON/dice_eval.py
pointer only (licence: NONE) · get_code("73539e021faa8746")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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.

resize Ran
ran; our contract draft was wrong, not the code
Ashespt/S2DC/Downstream/CC-CCII/trainer.py
pointer only (licence: NONE) · get_code("b78931b304a8a9cb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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.

rotate_half Ran
ran; our contract draft was wrong, not the code
Ashespt/S2DC/Pretrain/models/modules.py
pointer only (licence: NONE) · get_code("a3ec43c12656acbb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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.

concat_all_gather Not yet run
unverified (harvested, no recorded run)
Ashespt/S2DC/Pretrain/models/s2dc_head.py
pointer only (licence: NONE) · get_code("73cecca9f3575f09")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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. No invocation recorded.

val_epoch Not yet run
unverified (harvested, no recorded run)
Ashespt/S2DC/Downstream/CC-CCII/trainer.py
pointer only (licence: NONE) · get_code("5a3488296b4b23cd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Ashespt/S2DC 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. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 6 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 4 later) and 6 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
concat_all_gather 138 other papers
130 dated earlier, 5 later, 3 same year, order not determinable · 33 only as an assembly brick
1710.09412 (2017-10)
mixup: BEYOND EMPIRICAL RISK MINIMIZATION
1905.04899 (2019-05)
CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Features
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 135 more not named here
apply_cached_rotary_emb 2 other papers
1 dated earlier, 1 later
2306.13643 (2023-06)
LightGlue: Local Feature Matching at Light Speed
2605.14654 (2026-05)
Beyond Instance-Level Self-Supervision in 3D Multi-Modal Medical Imaging
rotate_half 2 other papers
1 dated earlier, 1 later
2306.13643 (2023-06)
LightGlue: Local Feature Matching at Light Speed
2605.14654 (2026-05)
Beyond Instance-Level Self-Supervision in 3D Multi-Modal Medical Imaging
log_sinkhorn_iterations 1 other paper
1 dated earlier
2504.09881 (2025-04)
Focus on Local: Finding Reliable Discriminative Regions for Visual Place Recognition
normalize_keypoints 1 other paper
1 later
2605.14654 (2026-05)
Beyond Instance-Level Self-Supervision in 3D Multi-Modal Medical Imaging
region_or_label_to_mask 1 other paper
1 dated earlier
2406.13844 (2024-06)
A large-scale multicenter breast cancer DCE-MRI benchmark dataset with expert segmentations

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

3D medical image self-supervised learning (mSSL) holds great promise for medical analysis. Effectively supporting broader applications requires considering anatomical structure variations in location, scale, and morphology, which are crucial for capturing meaningful distinctions. However, previous mSSL methods partition images with fixed-size patches, often ignoring the structure variations. In this work, we introduce a novel perspective on 3D medical images with the goal of learning structure-aware representations. We assume that patches within the same structure share the same semantics (semantic consistency) while those from different structures exhibit distinct semantics (semantic discrepancy). Based on this assumption, we propose an mSSL framework named S 2 DC, achieving Structure-aware Semantic Discrepancy and Consistency in two steps. First, S 2 DC enforces distinct representations for different patches to increase semantic discrepancy by leveraging an optimal transport strategy. Second, S 2 DC advances semantic consistency at the structural level based on neighborhood similarity distribution. By bridging patch-level and structure-level representations, S 2 DC achieves structure-aware representations. Thoroughly evaluated across 10 datasets, 4 tasks, and 3 modalities, our proposed method consistently outperforms the state-of-the-art methods in mSSL. The code is available at https://github.com/Ashespt/S2DC/.

For agents

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

get_harvested_code_for_paper("2507.02581")
get_code_for_paper("2507.02581")
have("2507.02581")

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

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

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

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

Connect an agent — have() is free.