arXiv:2505.00025cs.CLcs.AI2025-05被引 3

轻量化医疗大模型让高精度AI诊疗更易落地

A Method for the Architecture of a Medical Vertical Large Language Model Based on Deepseek R1

  • 用低秩适配迁移医学知识,保持70亿模型的精准性
  • 4比特量化+混合精度压缩,内存降64.7%推理快12.4%
  • 适合算力有限的医院或基层医疗场景使用

尽管DeepSeek-R1等基础模型取得显著进展,但在医疗场景部署仍面临计算资源需求高和专业领域知识壁垒问题。本文提出一种三维度优化的轻量级医疗大语言模型架构:通过低秩适配(LoRA)实现从DeepSeek-R1-Distill-70B到DeepSeek-R1-Distill-7B的知识迁移,精准保留医学知识;采用4比特量化与混合精度策略,在大幅压缩模型的同时保持医疗推理能力;推理框架结合Flash Attention加速与连续批处理,并配备针对多样医疗问答的专用提示模板。在医学基准测试中,该方法在USMLE考试上保持92.1%准确率,相比基线模型内存消耗降低64.7%,推理延迟减少12.4%。本工作为资源受限环境下的先进语言模型部署提供了可行方案,推动AI辅助医疗更广泛可用。

原文摘要 · Abstract (English)

Despite significant advances in foundation models like DeepSeek-R1 and ChatGPT, their deployment in medical settings faces critical challenges including computational requirements and professional knowledge barriers. This paper presents an efficient lightweight medical large language model architecture that systematically addresses these challenges through three-dimensional optimization: knowledge acquisition, model compression, and computational enhancement. We design a knowledge transfer pipeline from DeepSeek-R1-Distill-70B to DeepSeek-R1-Distill-7B using Low-Rank Adaptation (LoRA) for precise medical knowledge retention. Through 4-bit quantization and mixed-precision strategies, we achieve substantial model compression while preserving medical reasoning capabilities. The inference framework incorporates Flash Attention acceleration and continuous batching, complemented by specialized prompt templates for diverse medical queries. Experimental evaluation on medical benchmarks demonstrates that our approach maintains 92.1% accuracy on USMLE examinations while reducing memory consumption by 64.7% and inference latency by 12.4% compared to baseline models. This work provides a practical solution for deploying advanced language models in resource-constrained medical environments, enabling broader accessibility of AI-assisted healthcare.

医疗AI大模型压缩LoRA推理加速

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。