SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.11925 · NeurIPS · 2023

LVM-Med: Learning Large-Scale Self-Supervised Vision Models for Medical Imaging via Second-order Graph Matching

Nhat Ho, Paul Swoboda, Austin, Mathias Niepert, Pengtao Xie, Binh Nguyen, Shadi Albarqouni, Duy Nguyen, Hoang Nguyen, Nghiem Diep, Tan Pham, Tri Cao, and 1 more

arXiv · PDF · Open in the Atlas

Code that ran

4 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 9 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/2306.11925.json · badge: /api/ran/2306.11925.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
duyhominhnguyen/LVM-Med canonical (classifier label)
classifier basis: classifier_2025
4 ran · 9 no recorded run
FunctionStatusWhere it lives
AugmentedSegmentationDataset Ran
ran on a synthesized input · constructed an object; no result was computed
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("1640f7756e6b5338")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

ResizeLongestSide Ran
ran on a synthesized input · constructed an object; no result was computed
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("9263ddc9515cd3c4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

SegmentationDataset Ran
ran on a synthesized input · constructed an object; no result was computed
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("6add128632e047e5")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

get_bbox_from_mask Ran
ran, honoured the contract we drafted
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("4718de1f1b711ea6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

_build_sam Not yet run
unverified (harvested, no recorded run)
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("427563d49b1f88e6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

build_sam_vit_b Not yet run
unverified (harvested, no recorded run)
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("5bb7ac2f77d822c6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

build_sam_vit_h Not yet run
unverified (harvested, no recorded run)
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("6437df869de8de01")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

build_sam_vit_l Not yet run
unverified (harvested, no recorded run)
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("eaf0e28351ecdc2c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

compute_dice_coefficient Not yet run
unverified (harvested, no recorded run)
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("b8f454a90cb08622")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

eval_dice Not yet run
unverified (harvested, no recorded run)
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("69289493b44ac63d")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

fit Not yet run
unverified (harvested, no recorded run)
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("5da7a0e57d058010")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

lvm_medsam_2d Not yet run
unverified (harvested, no recorded run)
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("7322cdd668805472")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

sam_dataloader Not yet run
unverified (harvested, no recorded run)
duyhominhnguyen/LVM-Med/segmentation_2d/LVMMed_SAM_2d.py
pointer only (licence: NOASSERTION) · get_code("0f117394dc788ff6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, duyhominhnguyen/LVM-Med (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.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 3 the same month, 3 later) and 10 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
build_sam_vit_h
brick of this paper's assembly: helper
37 other papers
3 dated earlier, 2 the same month, 32 later · 2 only as an assembly brick
2304.06790 (2023-04)
Inpaint Anything: Segment Anything Meets Image Inpainting
2304.12306 (2023-04)
Segment Anything in Medical Images
2305.01586 (2023-05)
An Alternative to WSSS? An Empirical Study of the Segment Anything Model (SAM) on Weakly-Supervised Semantic Segmentation Problems
and 34 more not named here
build_sam_vit_b
brick of this paper's assembly: helper
34 other papers
3 dated earlier, 2 the same month, 29 later
2304.06790 (2023-04)
Inpaint Anything: Segment Anything Meets Image Inpainting
2304.12306 (2023-04)
Segment Anything in Medical Images
2305.01586 (2023-05)
An Alternative to WSSS? An Empirical Study of the Segment Anything Model (SAM) on Weakly-Supervised Semantic Segmentation Problems
and 31 more not named here
build_sam_vit_l
brick of this paper's assembly: helper
34 other papers
3 dated earlier, 2 the same month, 29 later
2304.06790 (2023-04)
Inpaint Anything: Segment Anything Meets Image Inpainting
2304.12306 (2023-04)
Segment Anything in Medical Images
2305.01586 (2023-05)
An Alternative to WSSS? An Empirical Study of the Segment Anything Model (SAM) on Weakly-Supervised Semantic Segmentation Problems
and 31 more not named here

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

Obtaining large pre-trained models that can be fine-tuned to new tasks with limited annotated samples has remained an open challenge for medical imaging data. While pre-trained deep networks on ImageNet and vision-language foundation models trained on web-scale data are prevailing approaches, their effectiveness on medical tasks is limited due to the significant domain shift between natural and medical images. To bridge this gap, we introduce LVM-Med, the first family of deep networks trained on large-scale medical datasets. We have collected approximately 1.3 million in medical images from 55 publicly available datasets, covering a large number of organs and modalities such as CT, MRI, X-ray, and Ultrasound. We benchmark several state-of-the-art self-supervised algorithms on this dataset and propose a novel self-supervised contrastive learning algorithm using a graph matching formulation. The proposed approach makes three contributions: (i) it integrates prior pair-wise image similarity metrics based on local and global information; (ii) it captures the structural constraints of feature embeddings through a loss function constructed via a combinatorial graph-matching objective; and (iii) it can be trained efficiently end-to-end using modern gradient-estimation techniques for black-box solvers. We thoroughly evaluate the proposed LVM-Med on 15 downstream medical tasks ranging from segmentation and classification to object detection, and both for the in and out-of-distribution settings. LVM-Med empirically outperforms a number of state-of-the-art supervised, self-supervised, and foundation models. For challenging tasks such as Brain Tumor Classification or Diabetic Retinopathy Grading, LVM-Med improves previous vision-language models trained on 1 billion masks by 6-7% while using only a ResNet-50. We release pre-trained models at this link https://github.com/duyhominhnguyen/LVM-Med.

For agents

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

get_harvested_code_for_paper("2306.11925")
get_code_for_paper("2306.11925")
have("2306.11925")

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

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

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

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

Connect an agent — have() is free.