Reinforcement learning for LLM-based explainable TCM prescription recommendation with implicit preferences from small language models
Open Access
- 19 November 2025
- journal article
- research article
- Published by Springer Nature in Chinese Medicine
- Vol. 20 (1) , 193
Abstract
Objective: In an effort to reinforce both the interpretability and accuracy of prescription recommendations in Traditional Chinese Medicine (TCM), this study puts forward a two-stage training framework that integrates knowledge distillation from a teacher model with implicit preference-driven reinforcement learning grounded in a compact model. Methods: Above all, GPT-4o is employed to parse structured TCM clinical records, creating high-quality distillation samples. These are employed to guide Low-Rank Adaptation (LoRA)-based fine-tuning of the Qwen2.5-7B model, enabling it to generate explainable outputs in the format of "symptom analysis—prescription recommendation—prescription explanation". Then, a lightweight BART (Bidirectional and Auto-Regressive Transformers) model is trained to learn the mapping relation between symptoms and prescriptions. Its outputs are compared with those of the large model to construct preference pairs, which are subsequently utilized in Direct Preference Optimization (DPO)-based reinforcement tuning to further align the model with potentially better recommendations. Results: The suggested model achieves a P @30 of 35.62% and F1 @30 of 37.36%, outperforming existing baselines. Knowledge distillation contributes to the improvement of the model's generalization and explainability, while implicit preference-based reinforcement further enhances F1 @30 by 2.01%. Overall, the model obtains more desirable performance in both accuracy and explainability. Conclusion: The recommended approach not only improves the quality and transparency of TCM prescription recommendations, but also offers a fruitful strategy for building trustworthy and clinically applicable intelligent TCM decision-support systems.Keywords
Funding Information
- The National Natural Science Foundation of China (82575255)
- the National Science and Technology Innovation 2030 Major Program (2025ZD0544900)
- the Frontier Technology Research and Development Program of Jiangsu Province (BF2025076)
This publication has 17 references indexed in Scilit:
- Toward expert-level medical question answering with large language modelsNature Medicine, 2025
- TCMLLM-PR: evaluation of large language models for prescription recommendation in traditional Chinese medicineDigital Chinese Medicine, 2024
- The Factuality of Large Language Models in the Legal Domain2024
- Automated machine learning with interpretation: A systematic review of methodologies and applications in healthcareMedicine Advances, 2024
- Lingdan: enhancing encoding of traditional Chinese medicine knowledge for clinical reasoning tasks with large language modelsJournal of the American Medical Informatics Association, 2024
- Enhancing Contextual Understanding in Large Language Models through Contrastive Decoding2024
- SimCSE: Simple Contrastive Learning of Sentence Embeddings2021
- Generalizing from a Few ExamplesACM Computing Surveys, 2020
- TCM: Made in ChinaNature, 2011
- BLEU2001