PreprintCited by 81Artificial Intelligence in Healthcare and EducationSpeech and dialogue systemsTopic Modeling

DoctorGLM: Fine-tuning your Chinese Doctor is not a Herculean Task

Open access
Xiong, Honglin, Wang, Sheng, Zhu, Yitao, Zhao, Zihao, Liu, Yuxiao, Huang, Linlin, Wang, Qian, Shen, Dinggang·2023·arXiv

Abstract

The recent progress of large language models (LLMs), including ChatGPT and GPT-4, in comprehending and responding to human instructions has been remarkable. Nevertheless, these models typically perform better in English and have not been explicitly trained for the medical domain, resulting in suboptimal precision in diagnoses, drug recommendations, and other medical advice. Additionally, training and deploying a dialogue model is still believed to be impossible for hospitals, hindering the promotion of LLMs. To tackle these challenges, we have collected databases of medical dialogues in Chinese with ChatGPT's help and adopted several techniques to train an easy-deploy LLM. Remarkably, we were able to fine-tune the ChatGLM-6B on a single A100 80G in 13 hours, which means having a healthcare-purpose LLM can be very affordable. DoctorGLM is currently an early-stage engineering attempt and contain various mistakes. We are sharing it with the broader community to invite feedback and suggestions to improve its healthcare-focused capabilities: https://github.com/xionghonglin/DoctorGLM.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

DataCite · 10.48550/arxiv.2304.01097

Cites

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • In medicine, most previous works empower LLM-based agents with external knowledge in their memory.

    “In the field of medicine, most of the previous works empower LLM-based agents with external knowledge in their memory [107, 129, 132, 151, 115].”

    From A Survey on the Memory Mechanism of Large Language Model-based Agents (2025) · cites this paper as [129]

    The Introduction (page unavailable) says DoctorGLM uses a database of Chinese medical dialogues to provide a language model with medical knowledge. The discussion of earlier healthcare models describes training and fine-tuning, but does not establish that most previous works equip LLM-based agents with external knowledge in memory. (LLM, conf=0.75)

    Experimental — accuracy not yet measured

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

No references could be resolved yet.

Research works printed but not linked: 16

  1. Emily Alsentzer, John R Murphy, Willie Boag, Wei-Hung Weng, Di Jin, Tristan Naumann, and Matthew McDermott. Publicly available clinical bert embeddings. arXiv preprint arXiv:1904.03323, 2019. · arXiv
  2. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Sub- biah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakan- tan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Lan- guage models are few-shot learners. Advances in neural in- formation processing systems, 33:1877-1901, 2020. 2
  3. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. · arXiv
  4. Zhengxiao Du, Yujie Qian, Xiao Liu, Ming Ding, Jiezhong Qiu, Zhilin Yang, and Jie Tang. Glm: General language model pretraining with autoregressive blank infilling. In Pro- ceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 320-335, 2022.
  5. 心脏问题:有时溶血性贫血会导致心脏问题,例如心脏肌肉受损或心脏血管问题。 如果觉得自己出现了与溶血性贫血相关的症状,建议立即咨询医生,因为溶血性贫血可以非常危险,可能导致死 亡。 Table 4. Doctor's comments are marked in blue. Factual errors are marked in red. Improper diagnosis are marked in green. training for biomedical natural language processing. ACM Transactions on Computing for Healthcare (HEALTH), Q1 近一个多月来,本人两肋、前胸包括胸口及两旁、后背两边、脊椎骨上段、包括扇子骨等处,就是上半身,发 生不适隐痛,上半身很纠结,好像里面有手揪住一样,不舒展爽朗,十分难受,一会儿前胸和两肋不适难受,一 ,同时发生隐痛。扭动身体,做做伸展活动,,。,,。,.基本上都39度大约.消炎药也换过了.查血也查了.炎 症又不太高结果医生说是急性扁桃体炎.很忧心求方法谢谢! A2 (lora) 孩子发热,一般考虑炎症的问题,建议给孩子多喝水,多喝水有助于降低体温,建议给孩子口服利巴韦 林颗粒治疗,也可以口服小儿氨酚黄那敏颗粒治疗,可以口服消炎药,如阿莫西林克拉维酸钾等,建议平时注意 孩子卫生,不要接触刺激物,多给孩子喝水,注意孩子体温变化,不要让孩子发烧,以上是对"宝宝得了急性扁桃 体炎该怎么办?"这个问题的建议,期望对您有帮助,祝您健康! A2 (ptuning) 急性扁桃体炎的主要症状是咽痛.发热.全身不适.咽喉部有弥漫性红肿.扁桃体实质呈充血.水肿.发炎.可 伴发淋巴结肿大.扁桃体有脓性分泌物.症状在清晨起床前最明显.如果的药物效果不理想的话.建议可以手术治疗 的.平时注意饮食清淡,多吃水果蔬菜。
  6. Q3 每天清晨第一次尿完之后就一直感觉到尿频。。去尿就一点点。。到中午就回好了。。) ,,,、、, ,,,,,,,,,) ,、、、,,。,。 ,.) ,,、,,,,,,血液净化,血液抗凝等救治 Table . Comparison of two finetuning method: lora and ptuningv2. 3(1):1-23, 2021.
  7. Tiffany H Kung, Morgan Cheatham, Arielle Medinilla, Chat- GPT, Czarina Sillos, Lorie De Leon, Camille Elepano, Marie Madriaga, Rimel Aggabao, Giezel Diaz-Candido, et al. Per- formance of chatgpt on usmle: Potential for ai-assisted med- ical education using large language models. medRxiv, pages 2022-12, 2022. 3
  8. Jinhyuk Lee, Wonjin Yoon, Sungdong Kim, Donghyeon Kim, Sunkyu Kim, Chan Ho So, and Jaewoo Kang. Biobert: a pre-trained biomedical language representation model for biomedical text mining. Bioinformatics, 36(4):1234-1240, 2020.
  9. Xiao Liu, Kaixuan Ji, Yicheng Fu, Zhengxiao Du, Zhilin Yang, and Jie Tang. P-tuning v2: Prompt tuning can be com- parable to fine-tuning universally across scales and tasks. arXiv preprint arXiv:2110.07602, 2021. 4 · arXiv
  10. Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. The Journal of Machine Learning Research, 21(1):5485-5551, 2020. 2
  11. Karan Singhal, Shekoofeh Azizi, Tao Tu, S Sara Mahdavi, Jason Wei, Hyung Won Chung, Nathan Scales, Ajay Tan- wani, Heather Cole-Lewis, Stephen Pfohl, et al. Large lan- guage models encode clinical knowledge. arXiv preprint arXiv:2212.13138, 2022. 2, 3 · arXiv
  12. Jörg Tiedemann. The Tatoeba Translation Challenge -Re- alistic data sets for low resource and multilingual MT. In Proceedings of the Fifth Conference on Machine Translation, pages 1174-1182, Online, Nov. 2020. Association for Com- putational Linguistics. 3
  13. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszko- reit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998-6008, 2017. 2
  14. Sheng Wang, Zihao Zhao, Xi Ouyang, Qian Wang, and Dinggang Shen. Chatcad: Interactive computer-aided diag- nosis on medical image using large language models. arXiv preprint arXiv:2302.07257, 2023. 3 · arXiv
  15. Li Yunxiang, Li Zihan, Zhang Kai, Dan Ruilong, and Zhang You. Chatdoctor: A medical chat model fine-tuned on llama model using medical domain knowledge. arXiv preprint arXiv:2303.14070, 2023. 3 · arXiv
  16. Aohan Zeng, Xiao Liu, Zhengxiao Du, Zihan Wang, Hanyu Lai, Ming Ding, Zhuoyi Yang, Yifan Xu, Wendi Zheng, Xiao Xia, Weng Lam Tam, Zixuan Ma, Yufei Xue, Jidong Zhai, Wenguang Chen, Zhiyuan Liu, Peng Zhang, Yuxiao Dong, and Jie Tang. GLM-130b: An open bilingual pre-trained model. In The Eleventh International Conference on Learn- ing Representations (ICLR), 2023.

Cited by

Sorted by citations

Authors
Xiong, H., Wang, S., Zhu, Y., Zhao, Z., Liu, Y., Huang, L., Wang, Q., & Shen, D.
Affiliations
  • ShanghaiTech University (CN)
  • Fudan University (CN)
Venue
arXiv
Publisher
arXiv
Published
2023
ISSN
2331-8422 (ISSN-L)
OpenAlex
W4362598952
Cited by
81
References
0
Citations by year
2026: 3 · 2025: 26 · 2024: 41 · 2023: 11
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion, cc-by)
  • arXiv (Cornell University) (cc-by)
Topics
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
  • Physical Sciences › Computer Science › Artificial Intelligence › Speech and dialogue systems
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
Keywords
Chinese large language models, fine-tuning, low-cost deployment, diagnosis, drug recommendation

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review