SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2202.10553 · 2022

Guidelines and Evaluation of Clinical Explainable AI in Medical Image Analysis

arXiv · PDF · Open in the Atlas

Code that ran

5 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; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 0 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/2202.10553.json · badge: /api/ran/2202.10553.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
weinajin/multimodal_explanation canonical (classifier label)
classifier basis not recorded on the link
5 ran · 5 no recorded run
FunctionStatusWhere it lives
ce_loss Ran
ran on a synthesized input
weinajin/multimodal_explanation/code/model/loss.py
code served (permissive licence) · get_code("bda86860758146a3")
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
import torch.nn.functional as F

torch.manual_seed(0)

# output: logits tensor with shape (batch_size, num_classes)
# For cross_entropy, output should be (N, C) where N is batch size and C is number of classes
output = torch.randn(2, 4)

# target: class indices tensor with shape (batch_size,)
# Values should be in range [0, num_classes)
target = torch.tensor([0, 3])

ARGS = {
    "output": output,
    "target": target,
}
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
cycleLoss Ran
ran on a synthesized input
weinajin/multimodal_explanation/code/TumorSim/sim_losses.py
code served (permissive licence) · get_code("66eac22a93161a1a")
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 two small tensors with the same shape
# The function uses these tensors with MSELoss, which requires matching shapes
a = torch.randn(2, 4)
a_ = torch.randn(2, 4)

ARGS = {
    "a": a,
    "a_": a_,
}
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
get_study Ran
ran on a synthesized input
weinajin/multimodal_explanation/code/MRNet/submit_predictions.py
code served (permissive licence) · get_code("c10fa950e2fc55bd")
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
import torch
import tempfile
import os

torch.manual_seed(0)

# Create temporary directory for numpy files
temp_dir = tempfile.mkdtemp()

# Create dummy numpy arrays with appropriate shapes
# Shape needs to have at least 3 dimensions where the 3rd dimension is > INPUT_DIM (224)
# So we'll use shape (2, 256, 256) for a small batch with room to pad
axial_array = np.random.rand(2, 256, 256).astype(np.float32) * 100
sagit_array = np.random.rand(2, 256, 256).astype(np.float32) * 100
coron_array = np.random.rand(2, 256, 256).astype(np.float32) * 100

# Save numpy arrays to temporary files
axial_path = os.path.join(temp_dir, 'axial.npy')
sagit_path = os.path.join(temp_dir, 'sagit.npy')
coron_path = os.path.join(temp_dir, 'coron.npy')

np.save(axial_path, axial_array)
np.save(sagit_path, sagit_array)
np.save(coron_path, coron_array)

ARGS = {
    'axial_path': axial_path,
    'sagit_path': sagit_path,
    'coron_path': coron_path
}
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
nll_loss Ran
ran on a synthesized input
weinajin/multimodal_explanation/code/model/loss.py
code served (permissive licence) · get_code("8c2db3d4435816c0")
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
import torch.nn.functional as F

torch.manual_seed(0)

# NLL loss expects log probabilities as output and target class indices
# output should be of shape (batch_size, num_classes) with log probabilities
# target should be of shape (batch_size,) with class indices

batch_size = 2
num_classes = 4

output = F.log_softmax(torch.randn(batch_size, num_classes), dim=1)
target = torch.randint(0, num_classes, (batch_size,))

ARGS = {
    "output": output,
    "target": target,
}
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
realTargetLoss Ran
ran on a synthesized input
weinajin/multimodal_explanation/code/TumorSim/sim_losses.py
code served (permissive licence) · get_code("c00865591dc17bc9")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

cudaAvailable = False
Tensor = torch.cuda.FloatTensor if cudaAvailable else torch.Tensor

MSELoss = torch.nn.MSELoss()

def realTargetLoss(x):
    target = Tensor(x.shape[0], 1).fill_(1.0)
    return MSELoss(x, target)

# Create a small tensor with batch size 2 and 1 output dimension
x = torch.randn(2, 1)

ARGS = {
    "x": x
}
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
ce_loss_weighted Not yet run
unverified (harvested, no recorded run)
weinajin/multimodal_explanation/code/model/loss.py
code served (permissive licence) · get_code("a1f298949560359d")
How it ran

no invocation recorded.

fakeTargetLoss Not yet run
unverified (harvested, no recorded run)
weinajin/multimodal_explanation/code/TumorSim/sim_losses.py
code served (permissive licence) · get_code("4f93cdaf93531026")
How it ran

no invocation recorded.

get_prediction Not yet run
unverified (harvested, no recorded run)
weinajin/multimodal_explanation/code/MRNet/submit_predictions.py
code served (permissive licence) · get_code("fcd008a017ad8806")
How it ran

no invocation recorded.

get_save_modality_hm_value_mrnet Not yet run
unverified (harvested, no recorded run)
weinajin/multimodal_explanation/code/xai_mrnet.py
code served (permissive licence) · get_code("520e4b99c920732e")
How it ran

no invocation recorded.

load_data Not yet run
unverified (harvested, no recorded run)
weinajin/multimodal_explanation/code/MRNet/loader.py
code served (permissive licence) · get_code("85cdda5db00fd03f")
How it ran

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, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 8 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
nll_loss 7 other papers
2 dated earlier, 3 later, 2 same year, order not determinable
2104.00650 (2021-04)
Frozen in Time: A Joint Video and Image Encoder for End-to-End Retrieval
2109.04912 (2021-09)
ReasonBERT: Pre-trained to Reason with Distant Supervision
2022.findings-acl.116 (2022 (year only))
Thai Nested Named Entity Recognition Corpus
and 4 more not named here
ce_loss 1 other paper
1 later
ijcai2024_0712 (2024 (year only))
Contrastive Representation Learning for Self-Supervised Taxonomy Completion

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

Explainable artificial intelligence (XAI) is essential for enabling clinical users to get informed decision support from AI and comply with evidence-based medical practice. Applying XAI in clinical settings requires proper evaluation criteria to ensure the explanation technique is both technically sound and clinically useful, but specific support is lacking to achieve this goal. To bridge the research gap, we propose the Clinical XAI Guidelines that consist of five criteria a clinical XAI needs to be optimized for. The guidelines recommend choosing an explanation form based on Guideline 1 (G1) Understandability and G2 Clinical relevance. For the chosen explanation form, its specific XAI technique should be optimized for G3 Truthfulness, G4 Informative plausibility, and G5 Computational efficiency. Following the guidelines, we conducted a systematic evaluation on a novel problem of multi-modal medical image explanation with two clinical tasks, and proposed new evaluation metrics accordingly. Sixteen commonly-used heatmap XAI techniques were evaluated and found to be insufficient for clinical use due to their failure in G3 and G4. Our evaluation demonstrated the use of Clinical XAI Guidelines to support the design and evaluation of clinically viable XAI.

For agents

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

get_harvested_code_for_paper("2202.10553")
get_code_for_paper("2202.10553")
have("2202.10553")

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

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

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

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

Connect an agent — have() is free.