Offloading patient data to commercial cloud APIs creates massive compliance risks. But moving to local, resource-friendly hardware requires shrinking the software. A new study from a Swiss tertiary hospital reveals that while lightweight open-source models handle basic information lookup perfectly, they fail at critical tasks like patient deidentification, adverse event tracking, and medical summarization.
Hospitals cannot simply downsize their models and expect clinical accuracy to hold steady.
Simple Retrieval Works, Complexity Collapses
Researchers evaluated six open-source models ranging from 8 billion to 24 billion parameters, including the Mistral, Phi4, Falcon3, Llama3.1, and Meditron3 families. Running zero-shot evaluations on real-world French clinical notes and electronic health records across seven distinct tasks, the benchmark pitted local processing against actual hospital workloads.
In basic data lookup tasks, the models excelled. In a needle-in-the-haystack retrieval test, Llama3.1 achieved an F1-score of 99.81%, closely followed by Mistral-small at 99.71%.
The moment tasks required clinical judgment or strict accuracy, performance collapsed completely. When scanning records for protected health information to anonymize data, the best open-source models managed a macro-F1-score of just 0.33 to 0.34. By contrast, a standard fine-tuned baseline model achieved a 0.94 macro-F1-score on the exact same task.
Extracting immune-related adverse events from complex discharge notes yielded similarly poor results, topping out at a 0.35 macro-F1-score with Phi4. These findings align with earlier evidence on the viability of open large language models for clinical documentation, which showed that out-of-the-box open models struggle with nuanced medical text without heavy optimization.
Hallucinations and Clinician Dissatisfaction
The operational risks became clearer in translation and summarization tasks. Clinician reviewers flagged severe errors during testing: Meditron3-Phi4 generated hallucinations in 55% of its translation outputs. Summarizing discharge letters produced uniformly poor results across the board, with Llama3.1 reaching a peak penalized ROUGE score of only 0.169.
When clinicians evaluated the models for generating patient-friendly summaries and providing decision support, ratings landed consistently between dissatisfied and neutral. Not a single model achieved reliable clinical performance in these tasks.
- Retrieval accuracy: Llama3.1 hit a 99.81% F1-score on simple data lookup.
- Privacy failure: Small LLMs scored a dismal 0.33–0.34 macro-F1 on detecting private health data.
- High hallucination rate: Clinicians found hallucinations in 55% of Meditron3-Phi4 translation outputs.
- Summarization quality: Best penalized ROUGE score reached just 0.169 with Llama3.1.
The Trade-Off Hospitals Must Face
This study exposes a critical flaw in deploying small LLMs out of the box. Zero-shot deployment on local hardware might solve data residency issues, but it introduces unacceptably high error rates in standard workflow automation. Similar trade-offs appear when testing large language models for frontline healthcare support in low-resource settings, where compute limits often bottleneck clinical reliability.
The clear takeaway for hospital IT leaders is that off-the-shelf small LLMs are currently restricted to basic search functions. If health systems want small models to handle clinical summaries or adverse event extraction, they must invest heavily in task-specific fine-tuning and institution-level benchmarking before putting these tools anywhere near patient records.
Read the full peer-reviewed study in the Journal of Medical Internet Research.




