arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.01786cs.CLcs.AI
收藏

TCM-GPT: 面向中医药领域适配的大语言模型高效预训练

TCM-GPT: Efficient Pre-training of Large Language Models for Domain Adaptation in Traditional Chinese Medicine

UCL Cancer Institute, University College London(伦敦大学学院癌症研究院)

Guoxing Yang, Jianyu Shi, Zan Wang, Xiaohong Liu, Guangyu Wang

AI总结:

针对通用大语言模型在中医药领域效果不佳的问题,提出TCMDA高效预训练方法,构建TCM-Corpus-1B语料库,结合LoRA训练出TCM-GPT-7B,在两项中医药任务上准确率提升12%~17%,为该领域跨学科研究提供基础。

摘要:

预训练与微调已成为各类自然语言处理(NLP)任务中颇具前景的范式。预训练大语言模型(LLM)的效能得到了进一步提升,在医学领域,尤其是中医药(Traditional Chinese Medicine, TCM)领域具备应用潜力。然而,将这些通用模型应用于特定领域往往效果不佳,主要原因在于领域知识缺失、目标独特以及计算效率等挑战。此外,它们在中医药这类专业领域的有效性仍需全面评估。针对上述问题,我们提出了一种新颖的领域特定TCMDA(中医药领域适配)方法,即利用领域特定语料进行高效预训练。具体而言,我们首先通过识别领域关键词并从通用语料中检索,构建了一个大型中医药专用语料库TCM-Corpus-1B。随后,我们的TCMDA利用LoRA(低秩适配)技术,冻结预训练模型的权重,并使用秩分解矩阵高效训练特定的全连接层以完成预训练和微调,使模型高效适配中医药相关任务,该模型即TCM-GPT-7B。我们进一步在两项中医药任务(中医药考试和中医药诊断)上开展了大量实验。TCM-GPT-7B在两个数据集上均取得了最优性能,准确率分别较其他模型相对提升17%和12%。据我们所知,本研究首次验证了70亿参数大语言模型在中医药领域的适配效果。论文录用后,我们将发布TCM-Corpus-1B语料库和TCM-GPT-7B模型,以推动中医药与自然语言处理的跨学科发展,为后续研究奠定基础。

英文摘要:

Pre-training and fine-tuning have emerged as a promising paradigm across various natural language processing (NLP) tasks. The effectiveness of pretrained large language models (LLM) has witnessed further enhancement, holding potential for applications in the field of medicine, particularly in the context of Traditional Chinese Medicine (TCM). However, the application of these general models to specific domains often yields suboptimal results, primarily due to challenges like lack of domain knowledge, unique objectives, and computational efficiency. Furthermore, their effectiveness in specialized domains, such as Traditional Chinese Medicine, requires comprehensive evaluation. To address the above issues, we propose a novel domain specific TCMDA (TCM Domain Adaptation) approach, efficient pre-training with domain-specific corpus. Specifically, we first construct a large TCM-specific corpus, TCM-Corpus-1B, by identifying domain keywords and retreving from general corpus. Then, our TCMDA leverages the LoRA which freezes the pretrained model's weights and uses rank decomposition matrices to efficiently train specific dense layers for pre-training and fine-tuning, efficiently aligning the model with TCM-related tasks, namely TCM-GPT-7B. We further conducted extensive experiments on two TCM tasks, including TCM examination and TCM diagnosis. TCM-GPT-7B archived the best performance across both datasets, outperforming other models by relative increments of 17% and 12% in accuracy, respectively. To the best of our knowledge, our study represents the pioneering validation of domain adaptation of a large language model with 7 billion parameters in TCM domain. We will release both TCMCorpus-1B and TCM-GPT-7B model once accepted to facilitate interdisciplinary development in TCM and NLP, serving as the foundation for further study.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑