SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.20047 · 2025

Med3DVLM: An Efficient Vision-Language Model for 3D Medical Image Analysis

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 2 failures of our instrument; 5 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/2503.20047.json · badge: /api/ran/2503.20047.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
mirthai/med3dvlm canonical (classifier label)
classifier basis not recorded on the link
7 ran · 5 no recorded run
FunctionStatusWhere it lives
calculate_precision Ran
ran on a synthesized input
mirthai/med3dvlm/src/eval/eval_clip.py
code served (permissive licence) · get_code("4a4895248ff31778")
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 0, dtype family float, shape () 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

torch.manual_seed(0)

# Create a small similarity matrix
# Shape: (batch_size=2, similarity_dim=3)
# The function uses topk(k, dim=1), so we need enough columns
# It also checks if topk indices match diagonal indices (batch_size)
similarity_matrix = torch.randn(2, 3)

# k must be <= number of columns in similarity_matrix
k = 2

ARGS = {
    "similarity_matrix": similarity_matrix,
    "k": k,
}
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 Tensor, ndim 0, dtype family float, shape () — shape () 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
calculate_recall Ran
ran on a synthesized input
mirthai/med3dvlm/src/eval/eval_clip.py
code served (permissive licence) · get_code("347df39071b0661a")
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 0, dtype family float, shape () 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

torch.manual_seed(0)

# Create a small similarity matrix
# Shape: (batch_size=2, num_items=3)
# The diagonal should contain the highest similarity scores for recall calculation
similarity_matrix = torch.tensor([
    [0.9, 0.2, 0.1],
    [0.1, 0.95, 0.05]
], dtype=torch.float32)

k = 2

ARGS = {
    "similarity_matrix": similarity_matrix,
    "k": k,
}
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 Tensor, ndim 0, dtype family float, shape () — shape () 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
compute_metrics Ran
ran on a synthesized input
mirthai/med3dvlm/src/train/train_clip.py
code served (permissive licence) · get_code("220b7697c5a0d40e")
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 dict. 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

torch.manual_seed(0)

# Create a small stand-in class for eval_pred
class EvalPrediction:
    def __init__(self, predictions, label_ids):
        self.predictions = predictions
        self.label_ids = label_ids

# Create predictions and labels
# predictions: shape (2, 4) - 2 samples, 4 classes
predictions = np.array([[0, 1, 2, 3],
                        [3, 2, 1, 0]], dtype=np.int64)

# labels: shape (2, 4) - corresponding labels
label_ids = np.array([[0, 1, 2, 3],
                      [3, 2, 1, 0]], dtype=np.int64)

# Create the eval_pred object
eval_pred = EvalPrediction(predictions=predictions, label_ids=label_ids)

ARGS = {
    'eval_pred': eval_pred
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
compute_metrics Ran
ran on a synthesized input
mirthai/med3dvlm/src/train/train_vlm.py
code served (permissive licence) · get_code("05b8d6cd94313722")
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 dict. 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 numpy as np

class EvalPreds:
    def __init__(self, label_ids, predictions):
        self.label_ids = label_ids
        self.predictions = predictions

# Create small test arrays
# label_ids shape: (batch_size=2, seq_length=4)
# predictions shape: (batch_size=2, seq_length=4)
label_ids = np.array([
    [1, 2, 3, -100],
    [4, 5, -100, -100]
], dtype=np.int64)

predictions = np.array([
    [1, 2, 3, 999],
    [4, 5, 999, 999]
], dtype=np.int64)

eval_preds = EvalPreds(label_ids=label_ids, predictions=predictions)

ARGS = {
    'eval_preds': eval_preds
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
postprocess_text Ran
ran; our contract draft was wrong, not the code
mirthai/med3dvlm/src/eval/eval_caption.py
pointer only (licence: MIT); the stored copy get_code serves, from jingyng/label-adaptive-self-rationalization, is pointer only (licence: NONE) · get_code("8b51adb8a6c014e5")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from jingyng/label-adaptive-self-rationalization, and GitHub detected no licence in that repository 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.

preprocess_logits_for_metrics Ran
ran; our contract draft was wrong, not the code
mirthai/med3dvlm/src/train/train_vlm.py
code served (permissive licence) · get_code("0b66a8919774c46f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family int, shape (2, 3) 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

torch.manual_seed(0)

# Create logits tensor: batch_size=2, sequence_length=3, vocab_size=5
logits = torch.randn(2, 3, 5)

# Create labels tensor: batch_size=2, sequence_length=3
labels = torch.randint(0, 5, (2, 3))

ARGS = {
    "logits": logits,
    "labels": labels
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 3) — shape (2, 3) 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
preprocess_logits_for_metrics Ran
ran on a synthesized input
mirthai/med3dvlm/src/train/train_clip.py
code served (permissive licence) · get_code("796e2d1861bc5152")
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 1, dtype family int, shape (2,) 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

torch.manual_seed(0)

# Create small tensors for the function
# logits: shape (batch_size, num_classes) - used with argmax on dim=-1
# labels: shape (batch_size,) - not actually used in the function body, but is a parameter
logits = torch.randn(2, 4)  # batch_size=2, num_classes=4
labels = torch.randint(0, 4, (2,))  # batch_size=2, num_classes=4

ARGS = {
    "logits": logits,
    "labels": labels,
}
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 Tensor, ndim 1, dtype family int, shape (2,) — shape (2,) 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
gather_features Not yet run
unverified (harvested, no recorded run)
mirthai/med3dvlm/src/model/CLIP.py
code served (permissive licence) · get_code("f78bb358bb60eef1")
How it ran

no invocation recorded.

maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
mirthai/med3dvlm/src/train/train_vlm.py
code served (permissive licence) · get_code("616ffbdc154ed2d8")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
mirthai/med3dvlm/src/eval/eval_caption.py
code served (permissive licence) · get_code("9ab24b5ed20f3284")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
mirthai/med3dvlm/src/eval/eval_clip.py
code served (permissive licence) · get_code("c954ff9bd4957277")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
mirthai/med3dvlm/src/eval/eval_vqa.py
code served (permissive licence) · get_code("ee98572d724bc5c7")
How it ran

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, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 1 later) and 9 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
maybe_zero_3 37 other papers
26 dated earlier, 3 the same month, 7 later, 1 same year, order not determinable
2310.01779 (2023-10)
HallE-Control: Controlling Object Hallucination in Large Multimodal Models
2311.16839 (2023-11)
Beyond Hallucinations: Enhancing LVLMs through Hallucination-Aware Direct Preference Optimization
2312.02949 (2023-12)
LLaVA-Grounding: Grounded Visual Chat with Large Multimodal Models
and 34 more not named here
postprocess_text 4 other papers
4 dated earlier
2022.findings-emnlp.174 (2022 (year only))
CodeExp: Explanatory Code Document Generation
2404.05970 (2024-04)
Optimization Methods for Personalizing Large Language Models through Retrieval Augmentation
2406.02888 (2024-06)
HYDRA: Model Factorization Framework for Black-Box LLM Personalization
and 1 more not named here
preprocess_logits_for_metrics 1 other paper
1 dated earlier
2310.02743 (2023-10)
Reward Model Ensembles Help Mitigate Overoptimization

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

Vision-language models (VLMs) have shown promise in 2D medical image analysis, but extending them to 3D remains challenging due to the high computational demands of volumetric data and the difficulty of aligning 3D spatial features with clinical text. We present Med3DVLM, a 3D VLM designed to address these challenges through three key innovations: (1) DCFormer, an efficient encoder that uses decomposed 3D convolutions to capture fine-grained spatial features at scale; (2) SigLIP, a contrastive learning strategy with pairwise sigmoid loss that improves image-text alignment without relying on large negative batches; and (3) a dual-stream MLP-Mixer projector that fuses low- and high-level image features with text embeddings for richer multi-modal representations. We evaluate our model on the M3D dataset, which includes radiology reports and VQA data for 120,084 3D medical images. Results show that Med3DVLM achieves superior performance across multiple benchmarks. For image-text retrieval, it reaches 61.00% R@1 on 2,000 samples, significantly outperforming the current state-of-the-art M3D model (19.10%). For report generation, it achieves a METEOR score of 36.42% (vs. 14.38%). In open-ended visual question answering (VQA), it scores 36.76% METEOR (vs. 33.58%), and in closed-ended VQA, it achieves 79.95% accuracy (vs. 75.78%). These results highlight Med3DVLM's ability to bridge the gap between 3D imaging and language, enabling scalable, multi-task reasoning across clinical applications. Our code is publicly available at https://github.com/mirthAI/Med3DVLM.

For agents

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

get_harvested_code_for_paper("2503.20047")
get_code_for_paper("2503.20047")
have("2503.20047")

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

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

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

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

Connect an agent — have() is free.