استرجاع وتصنيف مزدوج لنموذج اللغة الطبية الكبير مع توليد معزز بالاسترجاع Dual retrieving and ranking medical large language model with retrieval augmented generation

شارك:
المجلة: Scientific Reports، المجلد: 15، العدد: 1
DOI: https://doi.org/10.1038/s41598-025-00724-w
PMID: https://pubmed.ncbi.nlm.nih.gov/40413225
تاريخ النشر: 2025-05-23
المؤلف: Qimin Yang وآخرون
الموضوع الرئيسي: استرجاع المعلومات وسلوك البحث

نظرة عامة

تقدم البحث إطار عمل جديد لاسترجاع وترتيب المعلومات على مرحلتين، يسمى توليد معزز بالاسترجاع (RAG)، مصمم لتعزيز تطبيق نماذج اللغة الكبيرة (LLMs) في المجال الطبي. يدمج هذا الإطار بحث التضمين مع تقنية Elasticsearch ويستخدم ColBERTv2 لترتيب المعلومات مع مراعاة السياق، مما يؤدي إلى تحسين بنسبة 10% في الدقة للاستفسارات الطبية المعقدة مقارنةً بنماذج LLM التقليدية ونسخ RAG ذات البحث الواحد. يعتمد النظام على قاعدة بيانات طبية محدثة ديناميكيًا تتضمن مستندات تمت مراجعتها من قبل خبراء من مؤسسات الرعاية الصحية الرائدة، مما يعالج التحديات الحرجة للدقة والاستجابة في تطبيقات الذكاء الاصطناعي الطبي.

على الرغم من تحقيق مكاسب دقة كبيرة، يواجه الإطار مشاكل في زمن الاستجابة، خاصة في السيناريوهات الطارئة التي تتطلب استجابات دون ثانية. تشير النتائج التجريبية إلى أنه بينما تكون أوقات الاستجابة أطول بسبب قيود المعدات، فإن استخدام أجهزة أكثر قوة في النشر في العالم الحقيقي يمكن أن يسهل الاستجابات في الوقت الحقيقي. بشكل عام، يؤسس هذا العمل نموذجًا قويًا لمساعدي الذكاء الاصطناعي الطبي الموثوقين، متوازنًا بشكل فعال بين متطلبات الدقة واعتبارات النشر العملي، كما يتضح من تحسين المقاييس مثل الترتيب التبادلي المتوسط (MRR) والدقة المتوسطة (MAP) عبر تكوينات النظام المختلفة.

طرق

في هذه الدراسة، تم إجراء جميع التجارب على خادم Ubuntu 22.04 باستخدام وحدة معالجة الرسوميات NVIDIA A40. النموذج الأساسي المستخدم للاستدلال هو IvyGPT، وهو نموذج لغة كبير (LLM) تم ضبطه بدقة على بيانات طبية. يظهر هذا النموذج مقاييس أداء كافية، مما يثبت استخدامه لأهداف البحث.

نتائج

تشير نتائج الدراسة إلى أن النظام 3 يتفوق على النظامين 1 و2 من حيث الصلة والفائدة، كما هو موضح في الشكل 3. يُعزى هذا التفوق إلى استخدام النظام 3 لبحث ميتا مساعد يعزز قدرته على استرجاع المحتوى ذي الصلة، خاصة عند التعامل مع الاستفسارات الاستفهامية. بينما يظهر النظام 3 أيضًا دقة أعلى قليلاً مقارنةً بالأنظمة الأخرى، إلا أنه يظهر انخفاضًا في السرعة بسبب دمج نموذج البحث المزدوج، مما يطيل أوقات الاستجابة. ومن الجدير بالذكر أن النظام 3 حقق درجة تراكمية عالية تبلغ 70 في الاستبيان 1، متجاوزًا العتبة المحددة بـ 60، بينما لم يحقق النظام 2 هذه العتبة.

تظهر التحليلات الإضافية في الشكل 4 أن النظام 3 يتفوق باستمرار على النظام 4 عبر معظم المقاييس، باستثناء السرعة، حيث يتفوق النظام 4 بسبب عدم وجود ميزة RAG. على الرغم من قيود السرعة، يوفر LLM المعزز بـ RAG في النظام 3 أداءً عامًا متفوقًا، خاصة في المجال الطبي حيث تكون الدقة حاسمة. تسلط الدراسة أيضًا الضوء على أنه بينما يبطئ نموذج البحث المزدوج النظام، فإنه يظل أسرع قليلاً من SELF-RAG، مع تحقيق خط الأنابيب المقترح لأفضل النتائج في الترتيب التبادلي المتوسط (MRR) والدقة المتوسطة (MAP) كما هو موضح في الجدول 4. تشير النتائج إلى أن الضبط المهني لنموذج اللغة الطبية يساهم في تحسين قدراته، على الرغم من أن التفاوت في توزيع البيانات المهنية يؤثر على درجاته في التجسيد.

مناقشة

تناقش الورقة البحثية تطوير وتقييم IvyGPT، وهو نموذج لغة كبير متخصص في الرعاية الصحية يعتمد على بنية LLaMA. تم تدريب IvyGPT باستخدام مجموعات بيانات عالية الجودة للأسئلة والأجوبة الطبية وتم تحسينه من خلال التعلم المعزز مع تغذية راجعة من البشر، مما يمكنه من إجراء حوارات معلوماتية وتوليد خطط علاج مفصلة. يظهر النموذج تحسينات كبيرة مقارنةً بالأنظمة الحالية، خاصة في سياق الرعاية الصحية الصينية، ويظهر تطبيقات محتملة في التعليم الطبي ومساعدة المرضى. يعزز دمج تقنية توليد معزز بالاسترجاع (RAG)، التي تجمع بين مسترجع عصبي ونموذج تسلسل إلى تسلسل، قدرات اكتساب المعرفة للنموذج ويسمح بالوصول في الوقت الحقيقي إلى موارد المعرفة الخارجية.

تتكون بنية النظام من خمسة وحدات مترابطة: قاعدة المعرفة، السؤال، الاسترجاع، التوليد، والتحقق، التي تعمل بشكل تعاوني لضمان استجابات دقيقة وذات صلة لاستفسارات المستخدمين. تُحسن الطريقة الهجينة للاسترجاع، التي تستخدم كل من Elasticsearch للبحث القائم على المصطلحات وChroma للبحث عن التشابه في المتجهات، استرجاع المعلومات وتوليفها. تشير النتائج التجريبية إلى أن هذه الآلية المزدوجة تحسن بشكل كبير دقة الاستجابات المولدة، على الرغم من أنها قد تؤدي إلى زيادة الحمل الحاسوبي. تسلط الدراسة الضوء على أهمية الحفاظ على قاعدة بيانات عالية الجودة تمت مراجعتها من قبل محترفين لضمان موثوقية مخرجات النظام، خاصة في السيناريوهات الطبية المعقدة. ستركز الأعمال المستقبلية على تحسين كفاءة الاسترجاع وتعزيز أداء النظام في التطبيقات السريرية.

Journal: Scientific Reports, Volume: 15, Issue: 1
DOI: https://doi.org/10.1038/s41598-025-00724-w
PMID: https://pubmed.ncbi.nlm.nih.gov/40413225
Publication Date: 2025-05-23
Author(s): Qimin Yang et al.
Primary Topic: Information Retrieval and Search Behavior

Overview

The research presents a novel two-step retrieval and ranking framework, termed retrieval-augmented generation (RAG), designed to enhance the application of large language models (LLMs) in the medical domain. This framework integrates embedding search with Elasticsearch technology and utilizes ColBERTv2 for context-aware ranking, resulting in a 10% improvement in accuracy for complex medical queries compared to traditional LLMs and single-search RAG variants. The system is built on a dynamically updated medical knowledge base that includes expert-reviewed documents from leading healthcare institutions, addressing critical challenges of accuracy and responsiveness in medical AI applications.

Despite achieving significant accuracy gains, the framework faces latency issues, particularly in emergency scenarios requiring sub-second responses. The experimental results indicate that while response times are longer due to equipment limitations, the use of more powerful hardware in real-world deployments can facilitate real-time responses. Overall, this work establishes a robust paradigm for reliable medical AI assistants, effectively balancing the demands of accuracy and practical deployment considerations, as evidenced by improved metrics such as mean reciprocal rank (MRR) and mean average precision (MAP) across various system configurations.

Methods

In this study, all experiments were performed on an Ubuntu 22.04 server utilizing an NVIDIA A40 GPU. The primary model employed for inference is IvyGPT, a large language model (LLM) that has been fine-tuned specifically on medical data. This model exhibits adequate performance metrics, thereby validating its use for the objectives of the research.

Results

The results of the study indicate that System 3 outperforms Systems 1 and 2 in terms of Relevance and Usefulness, as shown in Figure 3. This advantage is attributed to System 3’s use of an auxiliary meta-search that enhances its ability to retrieve relevant content, particularly when dealing with interrogative queries. While System 3 also demonstrates slightly higher Accuracy compared to the other systems, it exhibits a decrease in Speed due to its dual search model integration, which prolongs response times. Notably, System 3 achieved a high cumulative score of 70 on Questionnaire 1, surpassing the benchmark of 60, while System 2 did not meet this threshold.

Further analysis in Figure 4 reveals that System 3 consistently outperforms System 4 across most metrics, except for Speed, where System 4 excels due to the absence of the RAG feature. Despite the speed limitations, the RAG-enhanced LLM in System 3 provides superior overall performance, particularly in the medical domain where accuracy is critical. The study also highlights that while the dual search model slows down the system, it remains slightly faster than SELF-RAG, with the proposed pipeline achieving the best results in Mean Reciprocal Rank (MRR) and Mean Average Precision (MAP) as detailed in Table 4. The findings suggest that the professional fine-tuning of the medical language model contributes to its enhanced capabilities, although the disparity in professional data distribution impacts its anthropomorphism scores.

Discussion

The research paper discusses the development and evaluation of IvyGPT, a healthcare-specialized large language model (LLM) based on the LLaMA architecture. IvyGPT was trained using high-quality medical Q&A datasets and refined through reinforcement learning with human feedback, enabling it to conduct informative dialogues and generate detailed treatment plans. The model demonstrates significant improvements over existing systems, particularly in the Chinese healthcare context, and shows potential applications in medical education and patient assistance. The integration of Retrieval-Augmented Generation (RAG) technology, which combines a neural retriever with a sequence-to-sequence model, enhances the model’s knowledge acquisition capabilities and allows for real-time access to external knowledge resources.

The system architecture comprises five interconnected modules: Knowledge Base, Question, Retrieval, Generation, and Check, which work collaboratively to ensure accurate and relevant responses to user inquiries. The hybrid retrieval approach, utilizing both Elasticsearch for term-based searches and Chroma for vector similarity searches, optimizes information retrieval and synthesis. Experimental results indicate that this dual mechanism significantly improves the accuracy of generated responses, although it may lead to increased computational overhead. The study highlights the importance of maintaining a high-quality, professionally vetted database to ensure the reliability of the system’s outputs, particularly in complex medical scenarios. Future work will focus on optimizing retrieval efficiency and enhancing the system’s performance in clinical applications.