ProtoSR Boosts Rare Radiology Attribute Detection by 72% Using Free-Text Reports
ProtoSR mines 80,000+ free-text radiology reports with an LLM to build a visual prototype memory, boosting fine-grained attribute F1 by 72% on Rad-ReStruct.
ProTakeaways
- ProtoSR mines 80k+ MIMIC-CXR free-text reports with an LLM to build a visual prototype knowledge base for structured radiology reporting.
- A prototype-conditioned late-fusion module adds an answer-aligned bias to base model logits, correcting long-tail predictions.
- Hits 34.4 overall F1 on Rad-ReStruct, beating MedGemma, CheXagent, hi-VQA, and Context-VQA baselines.
- Delivers a 72.1% relative improvement on L3 fine-grained attribute questions versus the same backbone without knowledge.
- Uses Qwen2.5-7B-Instruct with terminology expansion and constrained decoding to align free-text reports to template labels.
- Code and data pipeline will be released upon paper acceptance; MIMIC-CXR and Rad-ReStruct required to reproduce.
Structured radiology reports, the kind where a radiologist ticks specific boxes for findings, locations, severity, and appearance, are easier to search, audit, and feed into downstream analytics than free-form prose. The catch is that training models to fill them in is painful: datasets are small, and most attribute options are rare. A new method called ProtoSR tackles this by mining the huge pile of unstructured free-text reports hospitals already produce, turning them into a visual prototype memory that a structured-reporting model can consult at inference time.
The result: state-of-the-art numbers on the Rad-ReStruct benchmark, with the biggest gains showing up exactly where prior systems fall apart, the deep, fine-grained attribute questions.
Why structured reporting keeps breaking models
Structured reporting organizes findings into predefined fields and standardized answer options rather than relying solely on narrative text, which sounds simple until you look at the label space. Rad-ReStruct's template has three question levels: 25 coarse abnormality questions at L1, 216 specific-finding questions at L2, and 477 fine-grained attribute questions at L3 covering things like location, appearance, and severity.
Most of those L3 options rarely appear in the 3,597 studies that make up the training set. Meanwhile, large public datasets like MIMIC-CXR contain hundreds of thousands of paired chest radiographs and free-text reports, but their loose phrasing does not slot cleanly into a strict taxonomy. ProtoSR's core bet is that an instruction-tuned LLM can bridge that gap.
Mining free text into a prototype knowledge base

The knowledge-base pipeline runs in three stages, all driven by Qwen2.5-7B-Instruct:
- Terminology expansion. A zero-shot LLM proposes synonyms, abbreviations, and alternative phrasings for each target label, yielding a dictionary that maps description variants to the canonical label.
- Template-constrained extraction. The LLM first decides whether a finding is in the report, then extracts the corresponding attribute values, applied hierarchically with constrained decoding so only template-aligned answers are kept.
- Rule-based post-processing. Uncertain extractions are dropped and hierarchical consistency is enforced (a positive parent with no supported child is removed).
Each label ends up with a pool of matching images. Up to K=5 images per label are aggregated into a single prototype using element-wise max pooling to preserve the strongest signals across sampled images. The payoff is coverage: 100% of L1 categories, 96% at L2, and 82% at L3, exactly the long-tail attributes where supervised data is thinnest.
A prototype-conditioned second opinion

At inference, the model has two branches. The base model is a hierarchical VQA-style backbone borrowed from Rad-ReStruct (EfficientNet-B5 image encoder, RadBERT text encoder, transformer fusion), producing standard logits over the answer space. In parallel, the knowledge branch does the interesting work:
- Project the fused image-question representation into a shared space with the prototype embeddings.
- Compute cosine similarity, but only against prototypes whose labels are valid answers for the current question.
- Aggregate a weighted visual feature
vand a soft answer-support vectoru. - Pass
[v; u]through an MLP to produce a per-answer bias, then add it to the base logits scaled by a learned per-dimension vector.
This late-fusion design preserves the backbone decision pathway and enables targeted corrections where prototype evidence is informative, while only adding an MLP and a per-answer scaling vector. To keep prototypes aligned with a continuously fine-tuned encoder, the authors recompute the bank every 10k steps using an EMA copy of the image encoder.
The numbers, especially at L3
On Rad-ReStruct, ProtoSR hits 34.4 overall F1, edging out Context-VQA (32.9), hi-VQA (32.0), and generalist medical VLMs like MedGemma (26.8) and CheXagent (32.4). The real story is L3, the fine-grained attribute questions:
| Method | Overall F1 | L1 F1 | L2 F1 | L3 F1 |
|---|---|---|---|---|
| MedGemma | 26.8 | 38.2 | 63.4 | 2.8 |
| CheXagent | 32.4 | 62.1 | 69.8 | 6.2 |
| hi-VQA | 32.0 | 64.6 | 71.6 | 4.1 |
| Context-VQA | 32.9 | 67.2 | 71.8 | 3.2 |
| ProtoSR | 34.4 | 66.2 | 72.8 | 7.4 |
Compared to the same backbone without knowledge integration, adding prototype-guided late fusion yields a +72.1% relative improvement at L3. Two ablations tighten the claim: an early-fusion variant that stuffs prototypes into the input sequence barely moves the needle, and replacing real prototypes with Gaussian noise drops performance back to baseline, so the model is genuinely learning from prototype content rather than just extra parameters.
What it is good at, and what it is not
ProtoSR is aimed at one specific pain point: filling in rare, detailed attributes when your labeled dataset does not have enough examples. It is a good fit if you already have a structured template, some labeled data, and a larger corpus of free-text reports (in-house or from MIMIC-CXR) that you can mine.
There are limits worth flagging. Report-level accuracy can favor conservative strategies that answer only a few fields or default to "no finding," and RaDialog and Context-VQA achieve high report accuracy despite lower F1, so ProtoSR trails on that specific metric (36.6% vs 39.7%). Extraction quality also depends on the LLM: even Qwen2.5-7B with terminology expansion tops out at 80.6 F1 on L3 extraction from reports, meaning the knowledge base itself is noisy at the finest granularity.
What is actually new here
Retrieval-augmented radiology models are not new. What ProtoSR contributes is a way to inject retrieved evidence into a discrete, hierarchical structured-output space rather than into free-text generation. The prototype-conditioned residual is the mechanism: it lets the model quietly override its base prediction on rare attributes without disturbing the confident, easy calls at L1 and L2.
Code is not out yet. The authors state they will publish their data generation and model code upon acceptance. Anyone wanting to reproduce it in the meantime has all the ingredients: MIMIC-CXR for mining, Rad-ReStruct for evaluation, and an open-weights instruction-tuned LLM for the extraction pipeline.