LLM-Driven Medical Document Analysis: Enhancing Trustworthy Pathology and Differential Diagnosis

Lei Kang, Xuanshuo Fu, Oriol Ramos Terrades, Javier Vazquez-Corral, Ernest Valveny +1 more
6/24/2025
cs.AI

Official code: leitro/Differential-Diagnosis-LoRA (1 star, MIT, last commit 2025-06-27).

Abstract

Medical document analysis plays a crucial role in extracting essential clinical insights from unstructured healthcare records, supporting critical tasks such as differential diagnosis. Determining the most probable condition among overlapping symptoms requires precise evaluation and deep medical expertise. While recent advancements in large language models (LLMs) have significantly enhanced performance in medical document analysis, privacy concerns related to sensitive patient data limit the use of online LLMs services in clinical settings. To address these challenges, we propose a trustworthy medical document analysis platform that fine-tunes a LLaMA-v3 using low-rank adaptation, specifically optimized for differential diagnosis tasks. Our approach utilizes DDXPlus, the largest benchmark dataset for differential diagnosis, and demonstrates superior performance in pathology prediction and variable-length differential diagnosis compared to existing methods. The developed web-based platform allows users to submit their own unstructured medical documents and receive accurate, explainable diagnostic results. By incorporating advanced explainability techniques, the system ensures transparent and reliable predictions, fostering user trust and confidence. Extensive evaluations confirm that the proposed method surpasses current state-of-the-art models in predictive accuracy while offering practical utility in clinical settings. This work addresses the urgent need for reliable, explainable, and privacy-preserving artificial intelligence solutions, representing a significant advancement in intelligent medical document analysis for real-world healthcare applications. The code can be found at \href{https://github.com/leitro/Differential-Diagnosis-LoRA}{https://github.com/leitro/Differential-Diagnosis-LoRA}.

View on arXivView PDF

Code Implementations(1)

MIT
10PythonJun 8, 20251 years agoMIT

Similar Papers

Cite this paper

@article{kang2025llmdriven,
  title  = {LLM-Driven Medical Document Analysis: Enhancing Trustworthy Pathology and Differential Diagnosis},
  author = {Lei Kang and Xuanshuo Fu and Oriol Ramos Terrades and Javier Vazquez-Corral and Ernest Valveny and Dimosthenis Karatzas},
  year   = {2025},
  eprint = {2506.19702},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.19702v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.19702.svg)](https://codeofpaper.com/paper/2506.19702)

Discussion