SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.20741 · 2025

OTSurv: A Novel Multiple Instance Learning Framework for Survival Prediction with Heterogeneity-aware Optimal Transport

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2506.20741.json · badge: /api/ran/2506.20741.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
y-research-sbu/otsurv canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
sigmoid_rampup Ran
ran, honoured the contract we drafted
y-research-sbu/otsurv/src/mil_models/otsurv_component/ot_attn.py
pointer only (licence: NONE) · get_code("3fb68ed6809a8085")
How it ran

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

collate_fn_list Ran
ran; our contract draft was wrong, not the code
y-research-sbu/otsurv/src/training/main_survival.py
pointer only (licence: NOASSERTION) · get_code("c381715d8e412203")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, y-research-sbu/otsurv (NOASSERTION). 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.

linear_rampup Ran
ran, honoured the contract we drafted
y-research-sbu/otsurv/src/mil_models/otsurv_component/ot_attn.py
pointer only (licence: NOASSERTION) · get_code("069122bd5268cc56")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, y-research-sbu/otsurv (NOASSERTION). 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.

load_pkl Ran
ran; our contract draft was wrong, not the code
y-research-sbu/otsurv/src/utils/file_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from mahmoodlab/Panther, is pointer only (licence: NOASSERTION) · get_code("369ca48ec835bd84")
How it ran

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

partial_ll_loss Ran
ran; our contract draft was wrong, not the code
y-research-sbu/otsurv/src/utils/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from mahmoodlab/MMP, is pointer only (licence: NOASSERTION) · get_code("4dd75c9172f12cfb")
How it ran

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

replace_nan Ran
ran; our contract draft was wrong, not the code
y-research-sbu/otsurv/src/mil_models/components.py
pointer only (licence: NOASSERTION) · get_code("bcb725cf13db9ecc")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, y-research-sbu/otsurv (NOASSERTION). 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.

series_diff Ran
ran; our contract draft was wrong, not the code
y-research-sbu/otsurv/src/utils/pandas_helper_funcs.py
pointer only (licence: NOASSERTION) · get_code("25813e63e72777b3")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, y-research-sbu/otsurv (NOASSERTION). 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.

set_rho Ran
ran, honoured the contract we drafted
y-research-sbu/otsurv/src/mil_models/otsurv_component/ot_attn.py
pointer only (licence: NOASSERTION) · get_code("038288e1b90357fa")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, y-research-sbu/otsurv (NOASSERTION). 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.

df_sdir Not yet run
unverified (harvested, no recorded run)
y-research-sbu/otsurv/src/utils/pandas_helper_funcs.py
pointer only (licence: NOASSERTION) · get_code("99d41e1333192c87")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, y-research-sbu/otsurv (NOASSERTION). 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.

nll_loss Not yet run
unverified (harvested, no recorded run)
y-research-sbu/otsurv/src/utils/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from mahmoodlab/MMP, is pointer only (licence: NOASSERTION) · get_code("15821d5a95c321e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, y-research-sbu/otsurv 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 10 samples lifted from this paper's linked repositories, 10 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, 0 the same month, 0 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
sigmoid_rampup 19 other papers
19 dated earlier
1806.04606 (2018-06)
Knowledge Distillation by On-the-Fly Native Ensemble
1904.04717 (2019-04)
Label Propagation for Deep Semi-supervised Learning
1904.09058 (2019-04)
Feature Fusion for Online Mutual Knowledge Distillation
and 16 more not named here
linear_rampup 16 other papers
16 dated earlier
1904.04717 (2019-04)
Label Propagation for Deep Semi-supervised Learning
1907.07034 (2019-07)
Uncertainty-aware Self-ensembling Model for Semi-supervised 3D Left Atrium Segmentation
1911.08177 (2019-11)
Rethinking deep active learning: Using unlabeled data at model training
and 13 more not named here
load_pkl 6 other papers
5 dated earlier, 1 same year, order not determinable
2403.06800 (2024-03)
MambaMIL: Enhancing Long Sequence Modeling with Sequence Reordering in Computational Pathology
2405.09851 (2024-05)
Region of Interest Detection in Melanocytic Skin Tumor Whole Slide Images -Nevus & Melanoma
2405.11618 (2024-05)
Transcriptomics-guided Slide Representation Learning in Computational Pathology
and 3 more not named here
nll_loss 1 other paper
1 dated earlier
2407.00224 (2024-07)
Multimodal Prototyping for cancer survival prediction
partial_ll_loss 1 other paper
1 dated earlier
2407.00224 (2024-07)
Multimodal Prototyping for cancer survival prediction

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

Survival prediction using whole slide images (WSIs) can be formulated as a multiple instance learning (MIL) problem. However, existing MIL methods often fail to explicitly capture pathological heterogeneity within WSIs, both globally -- through long-tailed morphological distributions, and locally through -- tile-level prediction uncertainty. Optimal transport (OT) provides a principled way of modeling such heterogeneity by incorporating marginal distribution constraints. Building on this insight, we propose OTSurv, a novel MIL framework from an optimal transport perspective. Specifically, OTSurv formulates survival predictions as a heterogeneity-aware OT problem with two constraints: (1) global long-tail constraint that models prior morphological distributions to avert both mode collapse and excessive uniformity by regulating transport mass allocation, and (2) local uncertainty-aware constraint that prioritizes high-confidence patches while suppressing noise by progressively raising the total transport mass. We then recast the initial OT problem, augmented by these constraints, into an unbalanced OT formulation that can be solved with an efficient, hardware-friendly matrix scaling algorithm. Empirically, OTSurv sets new state-of-the-art results across six popular benchmarks, achieving an absolute 3.6% improvement in average C-index. In addition, OTSurv achieves statistical significance in log-rank tests and offers high interpretability, making it a powerful tool for survival prediction in digital pathology. Our codes are available at https://github.com/Y-Research-SBU/OTSurv.

For agents

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

get_harvested_code_for_paper("2506.20741")
get_code_for_paper("2506.20741")
have("2506.20741")

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

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

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

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

Connect an agent — have() is free.