SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.19835 · 2025

MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration

arXiv · PDF · Open in the Atlas

Code that ran

11 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 0 have no contract verdict; 11 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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.19835.json · badge: /api/ran/2506.19835.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
yczhou001/mam canonical (classifier label)
classifier basis: census
11 ran · 1 no recorded run
FunctionStatusWhere it lives
final_diagnosis Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yczhou001/mam/pipeline/diagnosis.py
code served (permissive licence) · get_code("29e49122fb6492d3")
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 str. 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 torch.nn as nn
from unittest.mock import Mock, patch

torch.manual_seed(0)

# Mock the model classes since they're imported dynamically
class MockHuatuoChatbot:
    def chat(self, images, text):
        return "Mock image diagnosis result"

class MockAudioChatbot:
    def chat(self, audio, text):
        return "Mock audio diagnosis result"

class MockVideoLLaMAChatbot:
    def chat(self, paths, text, modal_type):
        return "Mock video diagnosis result"

class MockMedicalAssistant:
    def generate_response(self, query):
        return "Mock text diagnosis result"

# Patch the imports at module level
import sys
from types import ModuleType

mock_image_model = ModuleType('model.image_model')
mock_image_model.HuatuoChatbot = MockHuatuoChatbot

mock_audio_model = ModuleType('model.audio_model')
mock_audio_model.AudioChatbot = MockAudioChatbot

mock_video_model = ModuleType('model.video_model')
mock_video_model.VideoLLaMAChatbot = MockVideoLLaMAChatbot

mock_language_model = ModuleType('model.language_model')
mock_language_model.MedicalAssistant = MockMedicalAssistant

sys.modules['model.image_model'] = mock_image_model
sys.modules['model.audio_model'] = mock_audio_model
sys.modules['model.video_model'] = mock_video_model
sys.modules['model.language_model'] = mock_language_model

# Define arguments for final_diagnosis function
ARGS = {
    'question': 'What is the patient diagnosis based on the medical records?',
    'file_name': '/path/to/medical/file.jpg',
    'modality_type': 'text',
    'type_name': 'diagnosis_type',
    'meeting_record': 'Patient presented with symptoms of fever and cough. Duration: 5 days. Temperature: 38.5°C. Chest X-ray shows mild infiltration in right upper lobe.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
model, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
generate_role Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yczhou001/mam/pipeline/role_generation.py
code served (permissive licence) · get_code("fd78af923d0ea260")
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 str. 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 torch.nn as nn

class MedicalAssistant(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(10, 5)
    
    def generate_response(self, prompt):
        # Mock implementation that returns a simulated response
        return f"Generated role assignment for: {prompt[:100]}..."

# Patch the import to use our mock
import sys
from types import ModuleType

model_module = ModuleType('model')
language_model_module = ModuleType('language_model')
language_model_module.MedicalAssistant = MedicalAssistant
model_module.language_model = language_model_module
sys.modules['model'] = model_module
sys.modules['model.language_model'] = language_model_module

ARGS = {
    'disease_type': 'Pneumonia',
    'modality_type': 'Chest X-Ray',
    'question': 'Patient presents with persistent cough and fever for 3 days. What diagnostic approach should be taken?',
    'file_name': 'patient_case_001.txt'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
model, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_diagnosis_prompt Ran
ran; our contract draft was wrong, not the code
yczhou001/mam/pipeline/diagnosis.py
code served (permissive licence) · get_code("c7a6850f9c6bbf12")
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 str. 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 torch.nn as nn

torch.manual_seed(0)

# Construct arguments for get_diagnosis_prompt
ques = "What is the patient's diagnosis based on the meeting record?"
record = "Patient presented with fever, cough, and fatigue for 3 days. Chest X-ray shows mild infiltration. Blood work indicates elevated WBC count."

ARGS = {
    "ques": ques,
    "record": record
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_discuss_prompt Ran
ran; our contract draft was wrong, not the code
yczhou001/mam/pipeline/meeting.py
code served (permissive licence) · get_code("9ed7060ec4c112c9")
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 str. 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)

ARGS = {
    "role_name": "Medical Doctor",
    "role_responsibilities": "Evaluate patient symptoms, order diagnostic tests, and provide clinical recommendations",
    "question": "What is the differential diagnosis for a 45-year-old patient presenting with chest pain and shortness of breath?",
    "disease_type": "Cardiovascular"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_review_prompt Ran
ran; our contract draft was wrong, not the code
yczhou001/mam/pipeline/review.py
code served (permissive licence) · get_code("994211ad4c8cdf07")
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 str. 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)

# Analyzing the function:
# - get_review_prompt takes two parameters: ques and record
# - Both are used in f-string interpolation, so they need to be strings or have __str__ methods
# - ques is a question string
# - record is an answer/record string

ARGS = {
    "ques": "What is the patient's blood pressure reading?",
    "record": "The patient's blood pressure is 120/80 mmHg, which is within normal range."
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_summarize_prompt Ran
ran; our contract draft was wrong, not the code
yczhou001/mam/pipeline/meeting.py
code served (permissive licence) · get_code("6cdb9df2960b6e19")
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 str. 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

torch.manual_seed(0)

ARGS = {
    "question": "What are the treatment options for hypertension?",
    "discussion": "Dr. Smith suggested medication as first-line treatment. Dr. Johnson emphasized lifestyle modifications including diet and exercise. Dr. Lee mentioned the importance of regular monitoring and follow-up. The team agreed that a combination approach would be most effective for patient outcomes."
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_vote_prompt Ran
ran; our contract draft was wrong, not the code
yczhou001/mam/pipeline/meeting.py
code served (permissive licence) · get_code("903964d493cf4c43")
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 str. 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)

ARGS = {
    "role_name": "Senior Analyst",
    "role_responsibilities": "Review summaries and provide voting decisions on agreement with discussion conclusions",
    "question": "Does the summary accurately represent the key discussion points?",
    "summary": "The team discussed the quarterly results and concluded that performance improved by 15% compared to last quarter due to increased market engagement and operational efficiency improvements."
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
load_history Ran
ran; our contract draft was wrong, not the code
yczhou001/mam/inference.py
code served (permissive licence) · get_code("65fadffaf83373ed")
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 str. 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 json
import os
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
history_dir = os.path.join(temp_dir, 'history')
os.makedirs(history_dir, exist_ok=True)

# Create sample history JSON files
text_history_file = os.path.join(history_dir, 'text_history.json')
image_history_file = os.path.join(history_dir, 'image_history.json')
video_history_file = os.path.join(history_dir, 'video_history.json')
audio_history_file = os.path.join(history_dir, 'audio_history.json')

# Write sample data to text_history.json
text_data = [
    {'question': 'What is AI?', 'answer': 'AI is artificial intelligence'},
    {'question': 'What is ML?', 'answer': 'ML is machine learning'},
    {'question': 'What is DL?', 'answer': 'DL is deep learning'},
    {'question': 'What is NLP?', 'answer': 'NLP is natural language processing'}
]
with open(text_history_file, 'w', encoding='utf-8') as f:
    json.dump(text_data, f)

# Write sample data to image_history.json
image_data = [
    {'question': 'What is in this image?', 'answer': 'A cat'},
    {'question': 'Describe the scene', 'answer': 'A cat sitting on a mat'}
]
with open(image_history_file, 'w', encoding='utf-8') as f:
    json.dump(image_data, f)

# Write sample data to video_history.json
video_data = [
    {'question': 'What happens in this video?', 'answer': 'A dog runs'}
]
with open(video_history_file, 'w', encoding='utf-8') as f:
    json.dump(video_data, f)

# Write empty data to audio_history.json
audio_data = []
with open(audio_history_file, 'w', encoding='utf-8') as f:
    json.dump(audio_data, f)

# Patch the HISTORY_DIR and HISTORY_FILES in the module
import sys
import types

# Create a mock module to hold the function
mock_module = types.ModuleType('mock_history')
mock_module.HISTORY_DIR = history_dir
mock_module.HISTORY_FILES = {
    'text': text_history_file,
    'image': image_history_file,
    'video': video_history_file,
    'audio': audio_history_file
}

# Execute the function code with the patched globals
exec('''
def load_history(modality_type):
    """Load relevant history records as context string."""
    history_file = HISTORY_FILES.get(modality_type)
    if history_file and os.path.exists(history_file):
        with open(history_file, 'r', encoding='utf-8') as f:
            data = json.load(f)
        if data:
            recent = data[-3:]
            items = []
            for item in recent:
                items.append(f"Q: {item.get('question', '')} A: {item.get('answer', '')}")
            return '\\n'.join(items)
    return ''
''', {
    'os': os,
    'json': json,
    'HISTORY_DIR': history_dir,
    'HISTORY_FILES': mock_module.HISTORY_FILES
}, mock_module.__dict__)

load_history = mock_module.load_history

# Define ARGS
ARGS = {
    'modality_type': 'text'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
modality_selection Ran
ran; our contract draft was wrong, not the code
yczhou001/mam/pipeline/modality_selection.py
code served (permissive licence) · get_code("6a34190e1793681b")
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 str. 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 torch.nn as nn

torch.manual_seed(0)

# The function modality_selection takes:
# - question: a string (used in the function body, but not actually used in the logic)
# - file_name: a string that is checked with .endswith() calls

question = "What is in this image?"
file_name = "sample.jpg"

ARGS = {
    "question": question,
    "file_name": file_name
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
parse_type_result Ran
ran; our contract draft was wrong, not the code
yczhou001/mam/inference.py
code served (permissive licence) · get_code("314f530e9a96dcc2")
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 str. 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

torch.manual_seed(0)

# The function parse_type_result takes a type_result parameter
# and normalizes it to a single string.
# It handles two cases:
# 1. If type_result is a tuple, it joins the string representations with ', '
# 2. Otherwise, it converts it to a string

# Test case 1: tuple input
type_result_tuple = (int, str, float)

# Test case 2: single value input
type_result_single = int

# We'll use the tuple case as the main test
ARGS = {
    "type_result": (int, str, float)
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
review_all Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yczhou001/mam/pipeline/review.py
code served (permissive licence) · get_code("656a03356c53125b")
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 str. 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)

# Mock chatbot classes that implement the interface used by review_all
class MockHuatuoChatbot:
    def chat(self, images, text):
        return "yes"

class MockAudioChatbot:
    def chat(self, audio, text):
        return "yes"

class MockVideoLLaMAChatbot:
    def chat(self, paths, text, modal_type):
        return "yes"

class MockMedicalAssistant:
    def generate_response(self, text):
        return "yes"

# Patch the imports to use our mock classes
import sys
from unittest.mock import MagicMock

mock_image_model = MagicMock()
mock_image_model.HuatuoChatbot = MockHuatuoChatbot

mock_audio_model = MagicMock()
mock_audio_model.AudioChatbot = MockAudioChatbot

mock_video_model = MagicMock()
mock_video_model.VideoLLaMAChatbot = MockVideoLLaMAChatbot

mock_language_model = MagicMock()
mock_language_model.MedicalAssistant = MockMedicalAssistant

sys.modules['model'] = MagicMock()
sys.modules['model.image_model'] = mock_image_model
sys.modules['model.audio_model'] = mock_audio_model
sys.modules['model.video_model'] = mock_video_model
sys.modules['model.language_model'] = mock_language_model

ARGS = {
    "question": "Is this patient's blood pressure normal?",
    "file_name": "/path/to/file.jpg",
    "modality_type": "text",
    "type_name": "blood_pressure",
    "result_diagnosis": "The patient has hypertension with systolic pressure of 150 mmHg."
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
model, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
memory Not yet run
unverified (harvested, no recorded run)
yczhou001/mam/pipeline/memory.py
code served (permissive licence) · get_code("2b3be5367be96643")
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, 12 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 0 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
final_diagnosis 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration
generate_role 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration
get_diagnosis_prompt 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration
get_discuss_prompt 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration
get_review_prompt 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration
get_summarize_prompt 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration
get_vote_prompt 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration
load_history 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration
memory 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration
modality_selection 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration
parse_type_result 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration
review_all 1 other paper
1 same year, order not determinable
2025.findings-acl.1298 (2025 (year only))
MAM: Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis via Role-Specialized Collaboration

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-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent advancements in medical Large Language Models (LLMs) have showcased their powerful reasoning and diagnostic capabilities. Despite their success, current unified multimodal medical LLMs face limitations in knowledge update costs, comprehensiveness, and flexibility. To address these challenges, we introduce the Modular Multi-Agent Framework for Multi-Modal Medical Diagnosis (MAM). Inspired by our empirical findings highlighting the benefits of role assignment and diagnostic discernment in LLMs, MAM decomposes the medical diagnostic process into specialized roles: a General Practitioner, Specialist Team, Radiologist, Medical Assistant, and Director, each embodied by an LLM-based agent. This modular and collaborative framework enables efficient knowledge updates and leverages existing medical LLMs and knowledge bases. Extensive experimental evaluations conducted on a wide range of publicly accessible multimodal medical datasets, incorporating text, image, audio, and video modalities, demonstrate that MAM consistently surpasses the performance of modality-specific LLMs. Notably, MAM achieves significant performance improvements ranging from 18% to 365% compared to baseline models. Our code is released at https://github.com/yczhou001/MAM.

For agents

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

get_harvested_code_for_paper("2506.19835")
get_code_for_paper("2506.19835")
have("2506.19835")

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

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

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

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

Connect an agent — have() is free.