A hospital study finds that a large local language model, GPT-OSS 120B, sorts German chest CT reports into three classes almost perfectly. A fine-tuned small encoder is a fast CPU option internally but fails on outside reports.
| Model | Prompt | Lg | Test Set | F1 (Class 0) | F1 (Class 1) | F1 (Class 2) | Macro F1 | Accuracy | Fail Rate | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BioClinical-Modern- BERT-base | ge | internal | 0.88 | [0.83, 0.92] | 0.92 | [0.90, 0.94] | 0.97 | [0.96, 0.98] | 0.92 | [0.90, 0.94] | 0.94 | [0.92, 0.95] | 0.00 | [0.00, 0.00] | |
| temp ho | 0.92 | [0.85, 0.97] | 0.92 | [0.88, 0.96] | 0.95 | [0.92, 0.98] | 0.93 | [0.89, 0.97] | 0.94 | [0.90, 0.96] | 0.00 | [0.00, 0.00] | |||
| en | external | 0.14 | [0.06, 0.22] | 0.41 | [0.37, 0.44] | 0.99 | [0.98, 0.99] | 0.51 | [0.48, 0.54] | 0.86 | [0.85, 0.87] | 0.00 | [0.00, 0.00] | ||
| Llama 3.1 8B | 2-step | ge | internal | 0.62 | [0.59, 0.65] | 0.61 | [0.56, 0.66] | 0.88 | [0.86, 0.90] | 0.70 | [0.67, 0.73] | 0.74 | [0.71, 0.76] | 0.00 | [0.00, 0.00] |
| temp ho | 0.70 | [0.63, 0.77] | 0.69 | [0.60, 0.77] | 0.87 | [0.81, 0.92] | 0.75 | [0.70, 0.81] | 0.77 | [0.71, 0.82] | 0.00 | [0.00, 0.00] | |||
| en | external | 0.96 | [0.93, 0.98] | 0.45 | [0.41, 0.50] | 0.91 | [0.90, 0.93] | 0.77 | [0.75, 0.80] | 0.87 | [0.85, 0.89] | 0.00 | [0.00, 0.00] | ||
| GPT-OSS 120B | rule-guided | ge | internal | 0.94 | [0.91, 0.96] | 0.96 | [0.95, 0.98] | 0.99 | [0.98, 0.99] | 0.96∗ | [0.95, 0.98] | 0.97 | [0.96, 0.98] | 0.00 | [0.00, 0.00] |
| temp ho | 0.99 | [0.96, 1.00] | 0.99 | [0.98, 1.00] | 0.99 | [0.97, 1.00] | 0.99∗ | [0.97, 1.00] | 0.99 | [0.97, 1.00] | 0.00 | [0.00, 0.00] | |||
| en | external | 1.00 | [1.00, 1.00] | 0.93 | [0.88, 0.98] | 1.00 | [0.99, 1.00] | 0.98∗ | [0.96, 0.99] | 0.99 | [0.99, 1.00] | 0.00 | [0.00, 0.00] | ||
Note.- Data are test-set performance metrics for the selected best-performing ModernBERT-based model, small, and larger language model configurations for thoracic CT report classification. The selected configurations were evaluated on the internal in-distribution, internal temporal holdout, and external test sets. Metrics include class-wise F1, macro-averaged F1, accuracy, and output-format failure rate. Values in brackets are 95% confidence intervals. For each test set, the best value per metric is highlighted in bold and the second best one is underlined. Asterisks indicate significant difference ( 0.05) compared with the second-best-performing model on the respective test set.
Lg = input and fine-tuning/ prompt language; en = English; ge = German; temp ho = temporal holdout.
Going deeper
Rule-guided prompts. (a) German rule-guided prompt used for original German reports. ⬇ Klassifiziere den vorliegenden radiologischen Befund eines CT-Scans danach, ob er eine normale (0), potenziell abnormale (1) oder abnormale (2) Lunge beschreibt. Zur Lunge gehören ausschließlich: - Lungenparenchym - Pleura - Bronchien - Lungengefäße Berücksichtige ausschließlich aktuelle Lungenbefunde. Ignoriere Befunde, die sich nur auf andere Strukturen beziehen (z. B. Herz, Mediastinum, Knochen, Weichteile, Schilddrüse, Abdomen). Eine Anomalie der Lunge liegt nur dann vor, wenn ein aktueller pathologischer Befund beschrieben wird. Nicht als Anomalie zählen ausdrücklich: - vollständig rückgebildete, abgeheilte oder nicht mehr nachweisbare Lungenbefunde - frühere Befunde, die nur im historischen Kontext erwähnt werden - Formulierungen wie "kein Hinweis auf", "Zustand nach", "vollständig regredient", "komplett zurückgebildet" Die Klassen sind wie folgt definiert: - 0: Weder im Ergebnis noch in der Schlussfolgerung wird eine aktuelle, die Lunge betreffende Anomalie beschrieben. - 1: Eine aktuelle, die Lunge betreffende Anomalie wird im Ergebnis beschrieben, aber nicht in der Schlussfolgerung. - 2: Eine aktuelle, die Lunge betreffende Anomalie wird in der Schlussfolgerung beschrieben. Dies ist das Ergebnis: {findings} Und dies ist die Schlussfolgerung: {impressions} Befolge still die folgende Entscheidungsprozedur, ohne die Schritte auszugeben: 1) Wenn die Schlussfolgerung eine aktuelle, die Lunge betreffende Anomalie beschreibt, gib 2 aus. 2) Andernfalls, wenn das Ergebnis eine aktuelle, die Lunge betreffende Anomalie beschreibt, gib 1 aus. 3) Andernfalls gib 0 aus. Antworte ausschließlich mit einer der folgenden Klassenbezeichnungen: 0, 1, 2 Gib keine Begründung, keine zusätzlichen Wörter und keine weiteren Zeichen aus. (b) English rule-guided prompt used for English-translated German and CT-RATE reports. ⬇ Classify the given radiology report of a CT scan according to whether it describes a normal (0), potentially abnormal (1), or abnormal (2) lung. The lung consists exclusively of: - Lung parenchyma - Pleura - Bronchi - Pulmonary vessels Consider only current lung findings. Ignore findings that refer only to other structures (e.g., heart, mediastinum, bones, soft tissues, thyroid, abdomen). A lung anomaly is present only if a current pathological finding is described. The following explicitly do not count as anomalies: - fully resolved, healed, or no longer detectable lung findings - previous findings mentioned only in a historical context - phrases such as "no evidence of", "status post", "fully regressed", "completely resolved" The classes are defined as follows: - 0: Neither the findings nor the impressions describe a current lung-related anomaly. - 1: A current lung-related anomaly is described in the findings, but not in the impressions. - 2: A current lung-related anomaly is described in the impressions. These are the findings: {findings} And these are the impressions: {impressions} Adhere silently to the following decision procedure without outputting the steps: 1) If the impressions describe any current lung-related anomaly, output 2. 2) Else if the findings describe any current lung-related anomaly, output 1. 3) Else, output 0. Respond exclusively with one of the following class labels: 0, 1, 2 Do not provide any justification, additional words, or any other characters.
A hospital has a huge pile of old letters from doctors about chest scans, and wants to sort them into three trays: nothing wrong, something noted in passing, something flagged in the summary. Sorted piles could train future scan-reading software. But the letters are private and cannot leave the building.
So the team tried three kinds of in-house sorter: a small clerk trained on a thousand sorted letters, a small generalist given instructions, and a big generalist on the hospital's shared server. The big one sorted almost every letter right, including letters from a Turkish hospital translated to English.
The trained clerk was quick and good on this hospital's letters, even next year's. But on the foreign letters it put most of the 'nothing wrong' ones in the 'noted in passing' tray, as if it had learned the local writing habits rather than the meaning.
The abstract, word for word, with the six densest phrases unpacked.
Purpose: To evaluate local large language models (LLMs) and ModernBERT variants for privacy-preserving retrospective curation1 of thoracic computed tomography (CT) report datasets in a resource-constrained hospital setting, using a radiologist-defined report-section-based proxy for the actionability of findings2. Materials and Methods: In this retrospective study, German adult thoracic CT reports from 2020 to 2025 were used to create patient-disjoint subsets for model development (n=1000), internal in-distribution (n=800), and temporal holdout testing (n=200)3. External testing used English CT-RATE reports (n=1000)4. Reports were manually labeled as normal, findings-level abnormal, or impression-level abnormal, corresponding to no current lung abnormality, a current lung abnormality mentioned only in the findings, or a current lung abnormality mentioned in the impressions. Fine-tuned ModernBERT models, CPU-based small LLMs, and GPU-based large LLMs were evaluated across model variants, prompting strategies, and original German versus English-translated internal reports. The best configuration per model category by macro F1 was evaluated on the test sets using class-wise F1, macro F1, accuracy, and output-format failure rate. Paired bootstrap testing with 10 000 iterations compared macro F1 between final model configurations. Results: GPT-OSS 120B with rule-guided prompting achieved the highest macro F1 on the internal in-distribution (0.96), temporal holdout (0.99), and external (0.98) test sets, significantly outperforming the second-best model5. BioClinical-ModernBERT-base achieved macro F1 0.92, 0.93, and 0.51, and Llama 3.1 8B with two-step prompting 0.70, 0.75, and 0.77. Conclusion: GPT-OSS 120B performed best and most robust, while BioClinical-ModernBERT-base provided a fast CPU-feasible option for internal retrospective dataset curation6.
Two lines of work lead here. Each stop says what the paper credits it with and what it uses it for.
Read four parts of it, in this order.
Skip the development tables (Tables 1–3) unless you are choosing prompts.
If the results are weaker than they look, start here.
All 3000 reports were labeled by a first-year doctoral student in AI for medical imaging (F.W.) after training by T.T.N. To assess intra-rater consistency, F.W. repeated the labeling after two weeks. Intra-rater agreement was 98.50% (2955/3000; Cohen’s kappa [18] 0.97). Disagreements were resolved by repeated report review and mainly due to missed findings (18/45; 40.00%), incorrect label selection despite correct reasoning (11/45; 24.44%), historical findings misinterpreted as current (10/45; 22.22%), and anatomical misattribution (6/45; 13.33%). For radiologist quality control, T.T.N. independently labeled a random 5% subset per split (150 reports). Inter-rater agreement with F.W. was 96.67% (145/150; Cohen’s kappa 0.94). Disagreements were due to missed findings (3/5, 60.00%), historical findings misinterpreted as current (1/5, 20.00%), and anatomical misattribution (1/5, 20.00%), and resolved by consensus.
This study has several limitations. The internal data originated from a single institution, while the external dataset differed in institution, country, language, and reporting style, preventing attribution of performance differences to individual factors. Because CT-RATE is public, possible prior exposure during model training cannot be excluded for LLMs with training cutoffs after its release in February 2024, although prior exposure would not provide the report-section-based labels used here. Report structure was used to define a proxy for actionability, which may not transfer to other institutions. Reference labels were assigned by one trained non-radiologist, with radiologist review of 5% per split. Finally, ModernBERT models were fine-tuned, whereas LLMs were prompt-only. Future work should evaluate LLM fine-tuning, report preprocessing techniques, and approaches such as retrieval-augmented generation [14, 34].
Experiments used Python 3.12.4. ModernBERT models and small LLMs ran CPU-only on a workstation with 16 GB RAM and an Intel Core Ultra 5 Processor 235. LLM inference used Ollama with MXFP4 quantization for GPT-OSS 120B and Q4-K-M quantization for all other LLMs. Larger LLMs were provided as shared endpoints by the institutional Data Integration Centre. Therefore, their run times reflect observed endpoint response times rather than standardized hardware benchmark results.
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
During the preparation of this work, the authors used ChatGPT for language editing, shortening, and improving clarity of selected manuscript sections. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the submitted manuscript.
More latest news
Read all