TCM-GPT: Efficient pre-training of large language models for domain adaptation in Traditional Chinese Medicine

Guoxing Yang , Xiaohong Liu , Jianyu Shi , Zan Wang , Guangyu Wang
{"title":"TCM-GPT: Efficient pre-training of large language models for domain adaptation in Traditional Chinese Medicine","authors":"Guoxing Yang ,&nbsp;Xiaohong Liu ,&nbsp;Jianyu Shi ,&nbsp;Zan Wang ,&nbsp;Guangyu Wang","doi":"10.1016/j.cmpbup.2024.100158","DOIUrl":null,"url":null,"abstract":"<div><p>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.</p><p>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 retrieving 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 TCM-Corpus-1B and TCM-GPT-7B model once accepted to facilitate interdisciplinary development in TCM and NLP, serving as the foundation for further study.</p></div>","PeriodicalId":72670,"journal":{"name":"Computer methods and programs in biomedicine update","volume":"6 ","pages":"Article 100158"},"PeriodicalIF":0.0000,"publicationDate":"2024-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S2666990024000259/pdfft?md5=774f0f1fccc75e9ae296f5c0ed05fda2&pid=1-s2.0-S2666990024000259-main.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computer methods and programs in biomedicine update","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2666990024000259","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

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 retrieving 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 TCM-Corpus-1B and TCM-GPT-7B model once accepted to facilitate interdisciplinary development in TCM and NLP, serving as the foundation for further study.

TCM-GPT:高效预训练中医领域适应性大语言模型
在各种自然语言处理(NLP)任务中,预训练和微调已成为一种很有前途的模式。预训练大型语言模型(LLM)的有效性得到了进一步提高,在医学领域,尤其是在中医(TCM)方面具有应用潜力。然而,将这些通用模型应用于特定领域往往会产生不理想的结果,这主要是由于缺乏领域知识、独特目标和计算效率等挑战造成的。为了解决上述问题,我们提出了一种新颖的特定领域 TCMDA(中医领域适应)方法,利用特定领域的语料进行高效的预训练。具体来说,我们首先通过识别领域关键词并从普通语料库中检索,构建了一个大型中医特定语料库 TCM-Corpus-1B。然后,我们的 TCMDA 利用 LoRA 冻结预训练模型的权重,并使用秩分解矩阵高效地训练特定的密集层进行预训练和微调,从而使模型与中医相关任务(即 TCM-GPT-7B)高效地保持一致。我们进一步在两个中医任务(包括中医检查和中医诊断)上进行了大量实验。在这两个数据集中,TCM-GPT-7B 的表现最好,准确率分别比其他模型高出 17% 和 12%。据我们所知,我们的研究开创性地验证了拥有 70 亿个参数的大型语言模型在中医领域的适应性。一旦TCM-Corpus-1B和TCM-GPT-7B模型通过验收,我们将发布这两个模型,以促进中医和NLP的跨学科发展,为进一步的研究奠定基础。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
5.90
自引率
0.00%
发文量
0
审稿时长
10 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信