1.School of Mechatronics and Vehicle Engineering, Chongqing Jiaotong University, Chongqing 400074, China
2.School of Information Science and Engineering, Chongqing Jiaotong University, Chongqing 400074, China
3.School of Traffic and Transportation, Chongqing Jiaotong University, Chongqing 400074, China
Show less
文章历史+
Received
Accepted
Published
2026-01-12
2026-05-21
2026-09-25
Issue Date
2026-11-25
PDF (4309K)
摘要
随着AI的迅速发展,大语言模型在医疗领域的应用潜力日益凸显,但通用大模型在医学专业领域存在知识不足、易产生幻觉等问题.本文以构建疾病医疗问答助手为核心任务,提出一种基于二级检索与反馈迭代机制的医学智能问答系统HQ-LLM(HealthQuery Large Language Model).整合医学百科、公共卫生部门等数据,构建医学知识图谱和中文医学问答数据集(Chinese Medical Knowledge Graph and Question-Answering Dataset, CnMedKG-QA);通过LoRA技术实现ChatGLM3-6B模型的轻量化微调,单张32 GB vGPU即可支撑训练过程,兼顾成本控制与训练效率;针对传统RAG局限,借助paraphrase-multilingual-MiniLM-L12-v2模型进行文本向量化,构建高相关性、高检索效率的向量数据库,创新设计粗粒度筛选与细粒度推理融合的二级检索机制;建立涵盖专业术语准确率、逻辑连贯性等维度的医学专属置信度评估体系,当综合置信度低于阈值时,动态优化检索关键词、扩展知识图谱追溯层数或补充外部权威数据,实现“检索-生成-评估-再检索”反馈迭代机制.结果表明,HQ-LLM在BLEU-4、Rouge-L、F1 Score和Accuracy指标上分别达到20.47%、42.12%、50.26%和79.20%,显著优于Qwen-UMLS-7B-Instruct等现有医学模型.
Abstract
With the rapid advancement of AI, the application potential of large language models (LLMs) in the medical field has become increasingly prominent. However, general-purpose LLMs still suffer from insufficient professional knowledge and a tendency to generate hallucinations in medical domains. Focusing on the core task of constructing a disease-oriented medical question-answering assistant, this paper proposes a medical intelligent question-answering system named HQ-LLM (HealthQuery Large Language Model) based on a two-stage retrieval and feedback iteration mechanism. Multi-source data from medical encyclopedias and public health authorities are integrated to construct a Chinese Medical Knowledge Graph and Question-Answering Dataset (CnMedKG-QA). The LoRA (Low-Rank Adaptation) technique is adopted to implement lightweight fine-tuning of the ChatGLM3-6B model, which can be supported by a single 32 GB vGPU for the training process, balancing cost control and training efficiency. To address the limitations of traditional RAG (Retrieval-Augmented Generation) systems, the paraphrase-multilingual-MiniLM-L12-v2 model is utilized for text vectorization to build a vector database with high relevance and retrieval efficiency. An innovative two-stage retrieval mechanism combining coarse-grained filtering and fine-grained reasoning is designed, along with a “retrieval-generation-evaluation-re-retrieval” feedback iteration mechanism. A medical-specific confidence evaluation system covering dimensions such as professional terminology accuracy and logical coherence is established. When the comprehensive confidence is below the threshold, retrieval key words are dynamically optimized, the number of knowledge graph tracing layers is expanded, or external authoritative data is supplemented to continuously improve retrieval quality. Experimental results show that the HQ-LLM achieves 20.47%, 42.12%, 50.26% and 79.20% in BLEU-4, Rouge-L, F1 Score and Accuracy, respectively, significantly outperforming existing medical models such as Qwen-UMLS-7B-Instruct.
近年来,传统神经网络在图像识别、数据分析和结果预测等领域取得较大进展,但在生成和理解人类自然语言方面存在一定缺陷[1],这一缺陷在医学领域尤为突出,医学文本的专业性、知识的动态更新特性及对回答准确性与可解释性的要求,使传统模型面对复杂医学问题时,出现实体召回不准、逻辑链断裂、回答无证据支撑等情况.同时,人工智能领域中大语言模型(Large Language Model, LLM)技术正在飞速发展,从BERT引入双向Transformer结构以提升语言理解能力[2],到GPT系列采用自回归架构强化文本生成[3],再到T5将多任务统一为“文本到文本”框架以增强泛化能力[4],以及PaLM等超大规模模型通过参数扩展显著提升推理与上下文理解能力[5].大语言模型强大的自然语言理解能力和生成能力推动人工智能在医学领域的发展.
ZhangY C, WangC T, XiaH L,et al .Research progress on the application of large language model-based intelligent medical assistants[J].Medical Journal of Peking Union Medical College Hospital,2025,16(6):1511-1518.(in Chinese)
[3]
DevlinJ, ChangM W, LeeK,et al .BERT:Pre-training of deep bidirectional Transformers for language understanding[PP/OL].V1.arXiv(2018-10-11)[2025-09-15].
[4]
RadfordA, WuJ, ChildR,et al .Language models are unsupervised multitask learners[EB/OL].[2025-09-15].
[5]
RaffelC, ShazeerN, RobertsA,et al .Exploring the limits of transfer learning with a unified text-to-text Transformer[J].Journal of Machine Learning Research,2020,21:1-67.
[6]
ChowdheryA, NarangS, DevlinJ,et al .PaLM:Scaling language modeling with pathways[J].Journal of Machine Learning Research,2023,24:240.
QianB, LiF J, ZhengC L,et al .A review of development and future directions of medical foundation models[J].Journal of Data Acquisition and Processing,2025,40(3):562-584.(in Chinese)
[9]
LiM C, KilicogluH, XuH,et al .BiomedRAG:A retrieval augmented large language model for biomedicine[J].Journal of Biomedical Informatics,2025,162:104769.
ZhaoH Y, GaoD S, CaoJ,et al .Research on medical intelligent question answering method combining knowledge graph and big model[J].Journal of Chinese Computer Systems,2026,47(5):1127-1133.(in Chinese)
[12]
XiongX R, CaiH M, ShenB Q,et al .DR-RAG:Domain-rule-based retrieval-augmented generation for aviation digital model design[J].Advanced Engineering Informatics,2025,68:103688.
[13]
ShinM, SongJ, KimM G,et al .Thyro-GenAI:A chatbot using retrieval-augmented generative models for personalized thyroid disease management[J].Journal of Clinical Medicine,2025,14(7):2450.
[14]
XiongJ, PanL M, LiuY J,et al .Enhancing plant protection knowledge with large language models:A fine-tuned question-answering system using LoRA[J].Applied Sciences,2025,15(7):3850.
[15]
KresevicS, GiuffrèM, AjcevicM,et al .Optimization of hepatological clinical guidelines interpretation by large language models:A retrieval augmented generation-based framework[J].npj Digital Medicine,2024,7(1):102.
OuyangC, ZhangJ, BaiY Y,et al .Cluster-awareness and fine-grained feedback driven optimization method for LLM-based multi-agent systems[J/OL].Computer Engineering and Applications,2026-01-06.in Chinese)
[18]
YuksekgonulM, BianchiF, BoenJ,et al .Optimizing generative AI by backpropagating language model feedback[J].Nature,2025,639(8055):609-616.
ZhaoE Y .Research on data cleaning and preprocessing technology in big data[J].Information Recording Materials,2024,25(3):195-197.(in Chinese)
[21]
WangY Z, HuW B, DongY P,et al .Align is not enough:Multimodal universal jailbreak attack against multimodal large language models[J].IEEE Transactions on Circuits and Systems for Video Technology,2025,35(6):5475-5488.
LinX X .Application of LoRA/QLoRA fine-tuning technology in DeepSeek large model question answering system[J].Information Recording Materials,2025,26(10):205-207.(in Chinese)
[24]
KaddourJ, HarrisJ, MozesM,et al .Challenges and applications of large language models[PP/OL].V1.arXiv(2023-07-19)[2025-09-15].
[25]
ZhangD, FengT, XueL L,et al .Parameter-efficient fine-tuning for foundation models[PP/OL].V1.arXiv(2025-01-23)[2025-09-15].
[26]
HuE, ShenY L, WallisP,et al .LoRA:Low-rank adaptation of large language models[PP/OL].V2.arXiv(2021-10-16)[2025-09-15].
BiX, ChenD L, ChenG T,et al. DeepSeekLLM :Scaling open-source language models with longtermism[PP/OL].V1.arXiv(2024-01-05)[2025-09-15].
[29]
YangA Y, XiaoB, WangB N,et al .Baichuan 2:Open large-scale language models[PP/OL].V4.arXiv(2025-04-17)[2025-09-15].
[30]
DuZ X, QianY J, LiuX,et al .GLM:General language model pretraining with autoregressive blank infilling[C/OL]//ACL,2022:320-335.https://aclanthology.org/2022.acl-long.26.pdf.
JiaZ S, ZhangJ G, HeH F,et al .Survey on mutually augmenting technologies and applications of large models and knowledge graphs[J].Computer Science,2026,53(8):219-228.(in Chinese)