MeddeX:一种结合 Gemini Vision 的检索增强型 LLaMA-3 系统,用于有证据支持的医学报告分析
摘要
该论文提出 MeddeX 系统,结合 QLoRA 微调的 LLaMA-3 (8B)、报告级检索增强生成 (RAG) 以及 Gemini Vision 多模态层,实现对医疗报告的证据支撑式摘要与分析,并在 ROUGE、BLEU 和 BERTScore 上相对基线模型取得一致提升。
查看缓存全文
缓存时间: 2026/10/16 06:58
# MeddeX: A Retrieval-Augmented LLaMA-3 System with Gemini Vision for Evidence-Backed Medical Report Analysis
Source: [https://arxiv.org/html/2610.20632](https://arxiv.org/html/2610.20632)
Rajdeep Pandhare1, Rohit Kundaikar2, Yakub Kojar3, Shreyansh Tiwari4Affiliation:Department of Artificial Intelligence & Data Science Rajiv Gandhi Institute of Technology, Mumbai, India Under the Guidance of Prof\. Naresh Shende Department of Artificial Intelligence & Data Science Rajiv Gandhi Institute of Technology, Mumbai, India
###### Abstract
Modern healthcare generates increasingly complex medical reports that challenge clinical professionals in terms of time and interpretive burden\. Manual review processes are slow, error\-prone, and difficult to scale\. This paper presentsMeddeX, a Medical Report Analyzer that combines a QLoRA fine\-tuned LLaMA\-3 \(8B\) model with Retrieval\-Augmented Generation \(RAG\) and a multimodal Gemini Vision layer to deliver accurate, concise, and evidence\-backed summaries of medical documents\. The system handles text\-native PDFs, scanned image\-based PDFs, and direct radiological images through an intelligent hybrid extraction pipeline that includes a novel garbage\-text detection mechanism for corrupted and UTF\-16\-encoded documents\. Beyond single\-report Q&A, MeddeX introduces report\-scoped retrieval for precise contextual grounding, an automated longitudinal report comparison engine, and a self\-healing backfill pipeline that lazily processes legacy documents on demand\. A FastAPI backend, Supabase vector store, and Next\.js frontend complete the end\-to\-end architecture\. Evaluation against the base LLaMA3\-Med42\-8B model demonstrates consistent improvements across ROUGE\-1 \(\+9\.2%\), ROUGE\-2 \(\+10\.0%\), ROUGE\-L \(\+11\.8%\), BLEU \(\+71\.4%\), and BERTScore \(\+0\.8%\), validating the benefit of domain\-specific fine\-tuning\. MeddeX represents a practical and robust step toward AI\-assisted clinical decision support\.
###### Index Terms:
Large Language Models, Retrieval\-Augmented Generation, Medical Summarization, Multimodal Analysis, QLoRA Fine\-Tuning, Gemini Vision, Longitudinal Report Comparison, Natural Language Processing
## IIntroduction
Healthcare professionals routinely contend with lengthy, complex medical reports encompassing diagnostic results, patient histories, lab values, and clinical recommendations\. The cognitive load imposed by manual review slows clinical workflows and increases the risk of oversight\-related errors\. With the exponential growth of digital health records, intelligent systems capable of rapid, reliable medical document interpretation have become a clinical necessity\.
Recent advances in Large Language Models \(LLMs\) and Retrieval\-Augmented Generation \(RAG\) have opened new possibilities for automated medical report analysis\. However, existing solutions suffer from well\-documented limitations: poor handling of long\-context documents, absence of verifiable evidence linking, inadequate adaptation to specialized medical terminology, and limited support for multimodal inputs such as scanned reports or radiological images\.
This paper presentsMeddeX, a system that directly addresses these limitations\. MeddeX integrates:
- •AQLoRA fine\-tuned LLaMA\-3 \(8B\)model \(based on LLaMA3\-Med42\-8B\) for domain\-adapted generation\.
- •ARAG pipelinewith report\-scoped dense retrieval to ground outputs in specific source evidence\.
- •AGemini Visionmultimodal layer for OCR on scanned PDFs, UTF\-16\-encoded documents, and direct image inputs\.
- •Agarbage\-text detectionmodule that identifies and re\-routes corrupted or hex\-encoded page extractions\.
- •Alongitudinal comparison engine\(/compare\_reports\) enabling AI\-driven analysis of change across multiple reports over time\.
- •Alazy backfill pipelinethat transparently processes legacy documents uploaded before the chunking system was in place\.
- •AFastAPIbackend withSupabasevector and document storage, and aNext\.jsfrontend for clinician\-friendly interaction\.
The remainder of this paper is organized as follows\. Section[II](https://arxiv.org/html/2610.20632#S2)reviews related work and identifies research gaps\. Section[III](https://arxiv.org/html/2610.20632#S3)details the proposed architecture\. Section[IV](https://arxiv.org/html/2610.20632#S4)describes key implementation components\. Section[V](https://arxiv.org/html/2610.20632#S5)presents experimental results\. Section[VI](https://arxiv.org/html/2610.20632#S6)concludes and outlines future directions\.
## IILiterature Review
### II\-AMedical NLP and Summarization
Natural Language Processing for clinical text has been studied extensively\. Early systems relied on rule\-based extraction and keyword matching, which lacked generalizability\. The introduction of transformer architectures, beginning with BERT\[[1](https://arxiv.org/html/2610.20632#bib.bib1)\], enabled contextual understanding of medical language\. Subsequent models such as BioBERT\[[2](https://arxiv.org/html/2610.20632#bib.bib2)\], ClinicalBERT, and PubMedBERT demonstrated that domain pretraining significantly improves downstream clinical NLP tasks including named entity recognition, relation extraction, and question answering\.
Summarization\-specific models including BART\[[3](https://arxiv.org/html/2610.20632#bib.bib3)\]and Longformer\[[4](https://arxiv.org/html/2610.20632#bib.bib4)\]have been applied to medical documents, with Longformer’s sliding\-window attention providing a partial solution to the long\-context problem\. However, these models generate summaries without grounding claims in verifiable source passages, limiting clinician trust\.
### II\-BRetrieval\-Augmented Generation
RAG, introduced by Lewis et al\.\[[5](https://arxiv.org/html/2610.20632#bib.bib5)\], combines a dense retriever with a seq2seq generator to produce factually grounded responses\. The formulation conditions generation on retrieved passages:
P\(y∣x\)=∑z∈𝒟P\(y∣x,z;θ\)P\(z∣x;ϕ\)P\(y\\mid x\)=\\sum\_\{z\\in\\mathcal\{D\}\}P\(y\\mid x,z;\\,\\theta\)\\,P\(z\\mid x;\\,\\phi\)\(1\)wherexxis the input query,zzrepresents retrieved document chunks, andϕ\\phi,θ\\thetaare the retriever and generator parameters respectively\. This joint framework enables outputs to be traced to source evidence, a critical requirement in clinical settings\.
### II\-CLLM Fine\-Tuning for Medical Domains
Large language models such as LLaMA\-3\[[6](https://arxiv.org/html/2610.20632#bib.bib6)\]have demonstrated strong general\-purpose generation but require domain adaptation for reliable clinical use\. Med42, built on LLaMA\-3, provides a medically pre\-adapted checkpoint\. Parameter\-efficient fine\-tuning via QLoRA\[[7](https://arxiv.org/html/2610.20632#bib.bib7)\]allows further task\-specific adaptation at a fraction of full fine\-tuning cost by quantizing base weights to 4\-bit and training only low\-rank adapter matrices\.
### II\-DMultimodal Medical Document Analysis
A substantial portion of clinical documents—including scanned lab reports, discharge summaries, and radiology images—exist as images rather than machine\-readable text\. Recent vision\-language models such as Google Gemini\[[8](https://arxiv.org/html/2610.20632#bib.bib8)\]have demonstrated strong OCR and medical image interpretation capabilities, enabling hybrid pipelines that process both textual and visual content\.
### II\-EResearch Gaps
A review of the literature reveals the following unresolved challenges that MeddeX targets:
- •Long\-document handling:Most LLMs degrade beyond their context window; chunked retrieval is necessary\.
- •Evidence\-backed outputs:Summaries without source attribution are insufficient for clinical trust\.
- •Domain adaptation:Generic LLMs misinterpret subtle clinical terminology and lab value contexts\.
- •Multimodal support:Scanned documents and radiology images are not handled by text\-only pipelines\.
- •Document integrity:Real\-world PDFs frequently contain UTF\-16 encoding artifacts or corrupted pages that silently produce garbled text, undermining downstream analysis\.
- •Longitudinal analysis:Existing systems treat each report in isolation; clinicians need automated comparison across visits to track patient health trends\.
- •End\-to\-end usability:Clinical adoption requires seamless, low\-latency interfaces integrated with secure storage\.
## IIISystem Architecture
### III\-AOverview
MeddeX is organized into four modular layers as illustrated in Fig\.[1](https://arxiv.org/html/2610.20632#S3.F1): a*Frontend*layer, a*Backend API*layer, a*Model*layer, and a*Storage*layer\. The backend exposes three primary endpoints —/upload\_report,/consult, and/compare\_reports— each supported by shared processing modules for extraction, chunking, embedding, and generation\.
Frontend \(Next\.js \+ Tailwind\) ↓\\downarrowUpload / Query / CompareBackend \(FastAPI\) /upload\_report⋅\\cdot/consult⋅\\cdot/compare\_reports Garbage Detection⋅\\cdotSmart Extraction⋅\\cdotChunking⋅\\cdotEmbedding ↓↑\\downarrow\\hskip 9\.24994pt\\uparrowReport\-Scoped RAG Retrieval Model Layer Gemini Vision \(OCR\)⋅\\cdotLLaMA\-3 Med42 \(QLoRA\) ↕\\updownarrow Storage \(Supabase / pgvector\) reports⋅\\cdotreport\_chunks\[384\-dim\]⋅\\cdotchats
Fig\. 1:High\-level MeddeX architecture showing all three API endpoints and supporting modules\.
### III\-BProcessing Pipeline
The end\-to\-end pipeline proceeds as follows:
1. 1\.Ingestion:A user uploads a PDF or image via the frontend\. The backend receives the file through the/upload\_reportendpoint\.
2. 2\.Garbage Detection:Before extraction, each page’s text is evaluated by\_is\_garbage\_text\(\)for UTF\-16 hex artifacts or high non\-printable character ratios\. Corrupted pages are automatically re\-routed to Gemini Vision\.
3. 3\.Smart Extraction:The hybrid extraction module routes text\-native pages through PyPDF2, and scanned, garbled, or image\-based pages through Gemini Vision OCR\.
4. 4\.Chunking:Extracted text is split into overlapping chunks \(500 characters, 50\-character overlap\) to preserve local context at retrieval boundaries\.
5. 5\.Embedding & Indexing:Each chunk is encoded usingall\-MiniLM\-L6\-v2and stored with its 384\-dimensional embedding vector in Supabase\.
6. 6\.Report\-Scoped Retrieval:At query time, the question is embedded and the top\-kkmost similar chunks are retrieved viamatch\_chunks\_by\_reportRPC, scoping results to the active report\. A globalmatch\_chunksfallback is used when no report is selected\.
7. 7\.Generation:Retrieved chunks plus recent chat history are concatenated as context and passed to the fine\-tuned LLaMA\-3 model, which generates an evidence\-grounded answer\.
8. 8\.Response & Persistence:The answer is returned to the frontend and stored in thechatstable withreport\_idfor session continuity\.
### III\-CRetrieval\-Augmented Generation Formulation
The system implements the RAG objective defined in Eq\.[1](https://arxiv.org/html/2610.20632#S2.E1)\. The retriever uses dense embeddings to score chunk relevance, and the fine\-tuned LLaMA\-3 generator is conditioned on the concatenated top\-kkretrieved passages\. This grounding mechanism ensures that factual claims in generated summaries can be traced to specific source chunks, improving clinical trustworthiness\.
## IVImplementation
### IV\-AGarbage\-Text Detection
A critical robustness addition in MeddeX is the\_is\_garbage\_text\(\)function, which guards against silently corrupted text extractions from UTF\-16\-encoded or otherwise malformed PDFs\. PyPDF2 may extract text from such pages, but the output is a stream of hex\-like characters rather than readable content\. Without detection, this garbage would be embedded and retrieved as if it were valid clinical text\.
Listing 1:Garbage\-text detection for corrupted PDF pages\.1def\_is\_garbage\_text\(text:str\)\-\>bool:
2
3hex\_runs=re\.findall\(r’\[0\-9A\-F\]\{20,\}’,text\.upper\(\)\)
4ifhex\_runs:
5hex\_chars=sum\(len\(h\)forhinhex\_runs\)
6ifhex\_chars/len\(text\)\>0\.3:
7returnTrue
8
9non\_printable=sum\(1forcintext
10iford\(c\)\>127or
11\(ord\(c\)<32andcnotin’\\n\\t\\r’\)\)
12iflen\(text\)\>0andnon\_printable/len\(text\)\>0\.2:
13returnTrue
14returnFalse
Two heuristics are applied: \(1\) if more than 30% of characters belong to contiguous runs of 20\+ uppercase hex digits — a reliable signature of UTF\-16 binary leakage — the page is flagged; \(2\) if more than 20% of characters are non\-printable or non\-ASCII, the page is similarly rejected\. Flagged pages are silently re\-routed to Gemini Vision OCR, maintaining extraction quality without user intervention\.
### IV\-BSmart Multimodal Extraction
Building on garbage detection, MeddeX routes each page through one of three paths: direct text extraction \(PyPDF2\), garbage\-detected Gemini fallback, or full\-image Gemini OCR for scanned pages\. The updated routing logic is shown in Listing[2](https://arxiv.org/html/2610.20632#LST2)\.
Listing 2:Updated smart extraction with garbage\-text routing\.1defextract\_text\_smart\(file\_bytes,filename\):
2iffilename\.lower\(\)\.endswith\(
3\("\.png","\.jpg","\.jpeg","\.bmp","\.tiff","\.webp"\)\):
4img=Image\.open\(io\.BytesIO\(file\_bytes\)\)
5returngemini\_image\_to\_text\(img\)
6
7reader=PyPDF2\.PdfReader\(io\.BytesIO\(file\_bytes\)\)
8pdf\_images=convert\_from\_bytes\(file\_bytes,dpi=250\)
9full\_text=""
10fori,pageinenumerate\(reader\.pages\):
11page\_text=page\.extract\_text\(\)or""
12
13iflen\(page\_text\.strip\(\)\)\>50and\\
14not\_is\_garbage\_text\(page\_text\):
15full\_text\+=page\_text\+"\\n"
16else:
17
18full\_text\+=gemini\_image\_to\_text\(
19pdf\_images\[i\]\)\+"\\n"
20returnfull\_text
### IV\-CGemini Vision OCR Prompt
The prompt instructs Gemini to extract structured clinical information comprehensively:
Listing 3:Gemini Vision extraction prompt\.1prompt="""Youareanalyzingamedicaldocument\.
2ExtractALLcontentincluding:
3\-Text,numbers,labels,annotations
4\-Testnames,valueswithunits
5\-Referenceranges\(normalranges\)
6\-Abnormalities,findings,observations
7\-Tabledatarowbyrow
8\-ForX\-rays:describeanatomicalstructures
9andnotablefindings
10Bethoroughandprecise\."""
### IV\-DReport\-Scoped Retrieval
The updated/consultendpoint accepts an optionalreport\_idparameter, enabling retrieval to be scoped to a specific document\. This prevents context bleed across multiple uploaded reports for the same user — a significant correctness improvement for patients with a history of several uploaded documents\.
Listing 4:Report\-scoped retrieval with global fallback\.1ifreport\_id:
2try:
3chunks\_res=supabase\.rpc\(
4"match\_chunks\_by\_report",\{
5"query\_embedding":q\_emb,
6"match\_count":top\_k,
7"p\_report\_id":report\_id
8\}\)\.execute\(\)
9context\_chunks=chunks\_res\.dataor\[\]
10exceptException:
11context\_chunks=\[\]
12
13ifnotcontext\_chunks:
14chunks\_res=supabase\.rpc\("match\_chunks",\{
15"query\_embedding":q\_emb,
16"match\_count":top\_k
17\}\)\.execute\(\)
18context\_chunks=chunks\_res\.dataor\[\]
Chat history is now also correctly formatted before injection into the context window, resolving a prior bug where raw database rows were passed togenerate\_answer\(\)without achunk\_textkey, causing them to be silently dropped\.
### IV\-ELongitudinal Report Comparison
The/compare\_reportsendpoint is a significant clinical feature that enables AI\-driven longitudinal analysis\. Given tworeport\_idvalues, the system retrieves full text for each report, constructs a structured comparison prompt, and generates a comprehensive summary covering parameter\-by\-parameter changes, clinically significant findings, stable values, and an overall health trend\.
Listing 5:Structured comparison prompt for /compare\_reports\.1comparison\_question=f"""Comparethesetwomedical
2reportsandsummarizewhatchanged\.
3
4===REPORT1:\{meta1\[’file\_name’\]\}===
5\{text1\[:1500\]\}
6
7===REPORT2:\{meta2\[’file\_name’\]\}===
8\{text2\[:1500\]\}
9
10Cover:
111\.Overviewofreporttypes
122\.Parametercomparison\(value1vsvalue2,
13normalrange,improved/worsened\)
143\.Clinicallysignificantchanges
154\.Stableorunchangedparameters
165\.Overallhealthtrendsummary"""
The endpoint handles two ID formats robustly: valid UUIDs are queried directly against thereportstable, while filename\-style IDs fall back to afile\_namesearch\. The comparison result is saved to thechatstable for audit and session continuity\.
### IV\-FLazy Backfill Pipeline
Theget\_or\_extract\_report\_text\(\)helper enables MeddeX to process reports that were uploaded directly to Supabase Storage without going through/upload\_report\. On first access, it fetches the raw file, runs the full extraction and chunking pipeline, and backfills embeddings under a new UUID — so subsequent calls resolve instantly from the database\. Cached chunks that fail the garbage\-text check are also purged and re\-extracted, ensuring data integrity across the system\.
### IV\-GEmbedding and Vector Storage
Text chunks are encoded using theall\-MiniLM\-L6\-v2SentenceTransformer model, producing 384\-dimensional dense vectors\. Vectors are stored in Supabase alongside chunk text and report metadata\. Two RPC functions handle retrieval:match\_chunks\_by\_reportfor scoped search andmatch\_chunksfor global search, both using cosine similarity via pgvector\.
### IV\-HFine\-Tuned LLM Generation
The generation module uses a QLoRA fine\-tuned checkpoint of LLaMA3\-Med42\-8B\. The model is invoked using the LLaMA\-3 chat template format:
Listing 6:LLaMA\-3 chat template for answer generation\.1messages=\[
2\{"role":"system","content":
3"Youareaprofessionalmedicalassistant\."
4"Answerbasedonthepatient’smedicalreport\."
5"Beconcise\(2\-5sentences\)\."
6"Highlightabnormalvaluesclearly\."\},
7\{"role":"user","content":
8f"MedicalReportContext:\\n\{context\_text\}\\n\\n"
9f"PatientQuestion:\{question\}"\}
10\]
Inference uses nucleus sampling \(top\-p=0\.9\\text\{top\-\}p=0\.9, temperature=0\.3=0\.3\) with a maximum of 300 new tokens for Q&A and 600 for report comparisons, balancing response coherence and clinical conciseness\.
### IV\-IAPI Endpoints
The FastAPI backend exposes three primary endpoints:
- •POST /upload\_report— Accepts a file anduser\_id; runs garbage detection, smart extraction, chunking, embedding, and stores all data in Supabase\.
- •POST /consult— Acceptsuser\_id,question, and optionalreport\_id; performs report\-scoped or global retrieval, injects chat history, and returns a generated answer\.
- •POST /compare\_reports— Acceptsuser\_id,report\_id\_1, andreport\_id\_2; retrieves full text for both reports via the backfill pipeline and returns a structured longitudinal comparison summary\.
## VEvaluation and Results
### V\-AExperimental Setup
Evaluation compared the base LLaMA3\-Med42\-8B model against the QLoRA fine\-tuned MeddeX variant\. The dataset consisted of de\-identified medical reports and curated clinical Q&A pairs\. Metrics computed include ROUGE\-1/2/L \(n\-gram overlap\), BLEU \(precision\-based phrase similarity\), and BERTScore \(semantic similarity via RoBERTa\-large embeddings\)\.
### V\-BQuantitative Results
Table[I](https://arxiv.org/html/2610.20632#S5.T1)presents the complete evaluation results\. The fine\-tuned model consistently outperforms the base model across all five metrics\.
TABLE I:Evaluation Results: Base vs\. Fine\-Tuned LLaMA3\-Med42\-8B
### V\-CComputational Resource Comparison
Table[II](https://arxiv.org/html/2610.20632#S5.T2)compares the computational footprint and inference characteristics of the base LLaMA3\-Med42\-8B model against the QLoRA fine\-tuned MeddeX variant\. QLoRA quantizes base weights to 4\-bit precision and trains only low\-rank adapter matrices, dramatically reducing memory requirements while retaining generation quality\.
TABLE II:Computational Resource Comparison: Base vs\. QLoRA Fine\-Tuned ModelThe QLoRA configuration reduces VRAM requirements for fine\-tuning by approximately4×4\\timescompared to full BF16 fine\-tuning, enabling training on a single consumer\-grade RTX 3090 GPU rather than requiring an enterprise A100\. Inference VRAM is similarly reduced, making deployment on mid\-range clinical workstations feasible\. The lower sampling temperature \(0\.3 vs\. 0\.7\) used in MeddeX reflects a deliberate design choice to favour factual consistency over generative diversity in clinical contexts\.
### V\-DAnalysis
Fig\.[2](https://arxiv.org/html/2610.20632#S5.F2)visualizes the side\-by\-side metric comparison, and Fig\.[3](https://arxiv.org/html/2610.20632#S5.F3)shows percentage improvements per metric\.
Fig\. 2:Model Evaluation Comparison: Base vs\. Fine\-Tuned LLaMA3\-Med42\-8B across ROUGE, BLEU, and BERTScore metrics\.Fig\. 3:Percentage improvement after QLoRA fine\-tuning across all evaluation metrics\.The most pronounced gain is in BLEU score \(\+71\.4%\), indicating that fine\-tuning substantially improves the model’s ability to generate precise, phrase\-level matches to reference clinical answers\. This is clinically significant as it reflects the model’s improved fluency with medical terminology and structured reporting conventions\.
ROUGE improvements of 9–12% demonstrate better content recall and answer structure\. BERTScore improvement, while smaller in absolute terms \(\+0\.8%\), is meaningful given that the base model’s BERTScore of 0\.8765 already reflects strong semantic similarity; marginal gains at this range indicate genuine refinement of clinical language understanding\.
The modest absolute ROUGE values reflect the inherent difficulty of open\-ended medical Q&A, where multiple valid phrasings exist for the same clinical answer\. The relative improvements are what validate the fine\-tuning approach\.
### V\-EDiscussion
These results validate the core design choices in MeddeX:
1. 1\.Domain\-specific fine\-tuning via QLoRAis effective and resource\-efficient, yielding measurable gains without full model retraining\. As shown in Table[II](https://arxiv.org/html/2610.20632#S5.T2), QLoRA reduces fine\-tuning VRAM by∼\\sim4×\\timesand inference VRAM by half compared to the full\-precision base model\.
2. 2\.RAG grounding with report\-scoped retrievalensures generation is conditioned on relevant, per\-document context, reducing both hallucination risk and cross\-report contamination\.
3. 3\.Gemini Vision with garbage\-text detectionextends the system to the full diversity of real\-world medical documents — scanned reports, UTF\-16\-encoded PDFs, and radiological images — that text\-only systems silently mishandle\.
4. 4\.Longitudinal comparisonaddresses a clinical need unmet by existing systems: automated, structured analysis of how a patient’s health parameters evolve across multiple visits\.
5. 5\.Lazy backfill pipelineimproves system resilience by handling legacy documents transparently, ensuring no report is inaccessible due to missing preprocessing history\.
Limitations include the relatively small evaluation dataset and the absence of a large\-scale multi\-site clinical trial\. Occasional hallucinations on rare terminology were observed, consistent with known LLM behavior on out\-of\-distribution inputs\. The comparison endpoint currently truncates each report to 1,500 characters of context for the prompt, which may omit details from very long documents; future work will address this with hierarchical summarization\.
## VIConclusion and Future Work
### VI\-AConclusion
This paper presented MeddeX, a modular medical report analysis system combining a QLoRA fine\-tuned LLaMA\-3 \(8B\) model with RAG, a Gemini Vision multimodal OCR layer, and a suite of robustness and clinical\-utility features developed through iterative engineering\. Beyond the core summarization and Q&A pipeline, MeddeX introduces garbage\-text detection for corrupted PDF handling, report\-scoped retrieval for precise contextual grounding, an automated longitudinal comparison engine for tracking patient health trends, and a lazy backfill pipeline for transparent processing of legacy documents\. Quantitative evaluation demonstrates consistent improvements over the base LLaMA3\-Med42\-8B model across all five metrics, with a particularly strong BLEU improvement of \+71\.4%, validating the domain fine\-tuning approach\. Together, these contributions position MeddeX as a comprehensive, production\-oriented clinical AI system\.
### VI\-BFuture Work
Planned extensions include:
- •Large\-scale clinical validation:Multi\-center trials across specialties and languages to assess generalizability\.
- •Hierarchical summarization for comparison:Replace fixed 1,500\-character truncation in/compare\_reportswith a multi\-pass summarization strategy for very long reports\.
- •EHR integration:Real\-time summarization within electronic health record systems for seamless clinical workflow adoption\.
- •Model distillation:Quantization and distillation to support inference on edge servers or low\-VRAM GPUs for resource\-constrained settings\.
- •Explainability:Calibrated confidence scores and claim\-level source attribution surfaced directly in the frontend UI\.
- •Expanded multimodal support:End\-to\-end radiology report generation from raw imaging inputs, extending beyond OCR to full vision\-language understanding\.
## Acknowledgment
The authors sincerely thank Dr\. Sanjay U\. Bokade \(Principal\) and Dr\. Jyoti Deshmukh \(H\.O\.D\., Department of AI & Data Science\), Rajiv Gandhi Institute of Technology, for providing the opportunity to undertake this project\. Special thanks to Prof\. Naresh Shende for continuous guidance and encouragement throughout the work\.
## References
- \[1\]J\. Devlin, M\.\-W\. Chang, K\. Lee, and K\. Toutanova, “BERT: Pre\-training of Deep Bidirectional Transformers for Language Understanding,” inProc\. NAACL\-HLT, 2019, pp\. 4171–4186\.
- \[2\]J\. Lee et al\., “BioBERT: A pre\-trained biomedical language representation model for biomedical text mining,”Bioinformatics, vol\. 36, no\. 4, pp\. 1234–1240, 2020\.
- \[3\]M\. Lewis et al\., “BART: Denoising Sequence\-to\-Sequence Pre\-training for Natural Language Generation, Translation, and Comprehension,” inProc\. ACL, 2020, pp\. 7871–7880\.
- \[4\]I\. Beltagy, M\. E\. Peters, and A\. Cohan, “Longformer: The Long\-Document Transformer,”arXiv:2004\.05150, 2020\.
- \[5\]P\. Lewis et al\., “Retrieval\-Augmented Generation for Knowledge\-Intensive NLP Tasks,” inProc\. NeurIPS, 2020, pp\. 9459–9474\.
- \[6\]H\. Touvron et al\., “LLaMA: Open and Efficient Foundation Language Models,”arXiv:2302\.13971, 2023\.
- \[7\]T\. Dettmers, A\. Pagnoni, A\. Holtzman, and L\. Zettlemoyer, “QLoRA: Efficient Finetuning of Quantized LLMs,” inProc\. NeurIPS, 2023\.
- \[8\]Gemini Team, Google, “Gemini: A Family of Highly Capable Multimodal Models,”arXiv:2312\.11805, 2023\.相似文章
从既定证据到搜集证据:面向纵向医学推理的智能体学习
该论文提出CASE——一系列用于证据搜集的临床智能体,结合工具使用框架与智能体后训练方法,在基于UK Biobank构建的纵向多模态医学基准上进行评估,其基于Qwen3-VL-8B的智能体在匹配评估条件下答案准确率相对GPT-5.4和Claude Opus 4.8分别提升超16%和10%。
MEDSYN: 复杂临床病例中多证据综合的多模态大语言模型基准测试
MEDSYN 是一个多语言多模态基准,用于评估多模态大语言模型(MLLMs)在复杂临床病例上的表现,每个病例最多包含 7 种不同的视觉证据类型。研究表明,虽然前沿模型在鉴别诊断生成方面与人类专家相当,但所有 MLLMs 在最终诊断选择中均存在显著差距,原因是异质临床证据综合能力不足。
使基于大语言模型的医疗器械文档评估的每个阶段都具有确定性
该论文研究了在医疗设备合规文档评估中使用大语言模型时的可复现性问题,发现14个商业LLM部署在确定性采样设置下仍产生不一致的评估结果,并构建了一个从OCR到推理全链路确定性的流水线,实现跨机器、跨天的逐字节一致输出。
基于指南增强的多智能体框架实现 schema-as-code 生物医学命名实体识别
论文提出 GAMA,一个面向生物医学命名实体识别的指南增强多智能体框架,通过从标注数据中归纳并验证注释规则构建指南记忆,结合规划、编码与验证模块实现 schema 约束的实体抽取,在五个 BioNER 数据集上超越现有 LLM 基线。
从ML预测到基于Toulmin论证模型的知情诊断辅助
本文提出一个框架,利用Toulmin论证模型对基于OCT图像的ML视网膜诊断进行结构化,整合生物标志物提取、医学大语言模型推理(MedGemma)和相似度度量(MedSigLip),以实现可解释且基于证据的诊断辅助。