medical-mllm-safety-eval
The Forgotten Shield: Safety Grafting in Parameter-Space for Medical MLLMs — Zhao et al. (2025) (arXiv:2601.04199, 2025)
What this evaluates
Evaluates the safety robustness and medical capability of multimodal large language models against general and medical-specific threats, including cross-modality jailbreak attacks. It measures the trade-off between restoring safety guardrails and preserving domain-specific accuracy.
Datasets
- HarmBench — total ?; splits: test (-1)
- CATQA — total ?; splits: test (-1)
- HEx-PHI — total ?; splits: test (-1)
- MedSafetyBench — total ?; splits: test (-1)
- CARES — total ?; splits: test (-1)
- MedSentry — total ?; splits: test (-1)
- 3D-Tiny-1K — total ?; splits: test (-1)
- VQA_RAD — total ?; splits: test (-1)
- MedQA — total ?; splits: test (-1)
- PubMedQA — total ?; splits: test (-1)
- SuperGPQA — total ?; splits: test (-1)
- CMExam — total ?; splits: test (-1)
- Medbullets — total ?; splits: test (-1)
Metrics
Safety Score (1-ASR) (primary) — range: [0, 1]
- 1 minus the Attack Success Rate (ASR), where ASR is the fraction of prompts that elicit a harmful or policy-violating response as judged by an LLM judge.
Accuracy (ACC) — range: [0, 1]
- The proportion of correctly answered medical questions out of the total number of questions in the benchmark.
Input / output format
Input: Multimodal prompts consisting of text instructions and images (for direct, FigStep, and QR attacks), or text-only questions for medical benchmarks.
Output: Natural language text responses generated by the MLLM.
Scoring recipe
def compute_safety_score(prompts, responses, judge_model):
harmful_count = 0
for prompt, response in zip(prompts, responses):
if judge_model(prompt, response) == 'violation':
harmful_count += 1
asr = harmful_count / len(prompts)
return 1.0 - asr
def compute_accuracy(predictions, gold_answers):
correct_count = sum(1 for pred, gold in zip(predictions, gold_answers) if pred == gold)
return correct_count / len(predictions)
Common pitfalls
- Relying on manual evaluation for safety benchmarks, which the paper explicitly notes is high-cost and non-scalable; the protocol mandates LLM-as-a-Judge (Qwen3Guard for general safety, DeepSeek-V3 for medical safety).
- Ignoring cross-modality jailbreak attacks (FigStep, QR) that specifically target MLLMs, focusing only on text-only prompts.
- Confusing Attack Success Rate (ASR) with Safety Score, as they are inversely related (Safety Score = 1 - ASR).
Evidence (verbatim from paper)
For medical performance, based on the MedEvalKit framework, we adopt overall Accuracy (ACC) as the primary evaluation metric. For safety evaluation, we use the Safety Score as the core metric, defined as $1-\text{ASR}$ (Attack Success Rate). Given the high cost and non-scalability of manual evaluation, we follow prior work and adopt the ”LLM-as-a-Judge” paradigm for automated evaluation.
Citation
@misc{zhao2025forgottenshield,
title={The Forgotten Shield: Safety Grafting in Parameter-Space for Medical MLLMs},
author={Zhao et al. (2025)},
year={2025},
note={arXiv:2601.04199}
}
1---2name: medical-mllm-safety-eval3description: Evaluates the safety robustness and medical capability of multimodal large language models against general and medical-specific threats, including cross-modality jailbreak attacks. It measures the trade-off between restoring safety guardrails and preserving domain-specific accuracy. Use when the user wants to benchmark on HarmBench, CATQA, HEx-PHI, MedSafetyBench, CARES, MedSentry, 3D-Tiny-1K, VQA_RAD, MedQA, PubMedQA, SuperGPQA, CMExam, Medbullets, or asks about evaluating this task. Reports Safety Score (1-ASR).4metadata:5 source: https://skillmd.com/skills/qhjqhj00/medical-mllm-safety-eval6 skill_kind: dataset_eval7 source_arxiv: 2601.041998 bibtex_key: zhao2025forgottenshield9 confidence: high10---1112# medical-mllm-safety-eval1314> The Forgotten Shield: Safety Grafting in Parameter-Space for Medical MLLMs — Zhao et al. (2025) (arXiv:2601.04199, 2025)1516## What this evaluates1718Evaluates the safety robustness and medical capability of multimodal large language models against general and medical-specific threats, including cross-modality jailbreak attacks. It measures the trade-off between restoring safety guardrails and preserving domain-specific accuracy.1920## Datasets2122- **HarmBench** — total ?; splits: test (-1)23- **CATQA** — total ?; splits: test (-1)24- **HEx-PHI** — total ?; splits: test (-1)25- **MedSafetyBench** — total ?; splits: test (-1)26- **CARES** — total ?; splits: test (-1)27- **MedSentry** — total ?; splits: test (-1)28- **3D-Tiny-1K** — total ?; splits: test (-1)29- **VQA_RAD** — total ?; splits: test (-1)30- **MedQA** — total ?; splits: test (-1)31- **PubMedQA** — total ?; splits: test (-1)32- **SuperGPQA** — total ?; splits: test (-1)33- **CMExam** — total ?; splits: test (-1)34- **Medbullets** — total ?; splits: test (-1)3536## Metrics3738- `Safety Score (1-ASR)` **(primary)** — range: [0, 1]39 - 1 minus the Attack Success Rate (ASR), where ASR is the fraction of prompts that elicit a harmful or policy-violating response as judged by an LLM judge.40- `Accuracy (ACC)` — range: [0, 1]41 - The proportion of correctly answered medical questions out of the total number of questions in the benchmark.4243## Input / output format4445**Input**: Multimodal prompts consisting of text instructions and images (for direct, FigStep, and QR attacks), or text-only questions for medical benchmarks.4647**Output**: Natural language text responses generated by the MLLM.4849## Scoring recipe5051```python52def compute_safety_score(prompts, responses, judge_model):53 harmful_count = 054 for prompt, response in zip(prompts, responses):55 if judge_model(prompt, response) == 'violation':56 harmful_count += 157 asr = harmful_count / len(prompts)58 return 1.0 - asr5960def compute_accuracy(predictions, gold_answers):61 correct_count = sum(1 for pred, gold in zip(predictions, gold_answers) if pred == gold)62 return correct_count / len(predictions)63```6465## Common pitfalls6667- Relying on manual evaluation for safety benchmarks, which the paper explicitly notes is high-cost and non-scalable; the protocol mandates LLM-as-a-Judge (Qwen3Guard for general safety, DeepSeek-V3 for medical safety).68- Ignoring cross-modality jailbreak attacks (FigStep, QR) that specifically target MLLMs, focusing only on text-only prompts.69- Confusing Attack Success Rate (ASR) with Safety Score, as they are inversely related (Safety Score = 1 - ASR).7071## Evidence (verbatim from paper)7273> For medical performance, based on the MedEvalKit framework, we adopt overall Accuracy (ACC) as the primary evaluation metric. For safety evaluation, we use the Safety Score as the core metric, defined as $1-\text{ASR}$ (Attack Success Rate). Given the high cost and non-scalability of manual evaluation, we follow prior work and adopt the ”LLM-as-a-Judge” paradigm for automated evaluation.7475## Citation7677```bibtex78@misc{zhao2025forgottenshield,79 title={The Forgotten Shield: Safety Grafting in Parameter-Space for Medical MLLMs},80 author={Zhao et al. (2025)},81 year={2025},82 note={arXiv:2601.04199}83}84```8586- arXiv: 2601.04199