TensorX
返回文献探索

Paper · arXiv 2409.14988

Beyond Fine-tuning: Unleashing the Potential of Continuous Pretraining for Clinical LLMs

Clément Christophe, Tathagata Raha, Svetlana Maslenkova, Muhammad Umar Salman, Praveen K Kanithi, Marco AF Pimentel, Shadab Khan

22 upvotesSeptember 23, 2024arXiv 预印本
AI 摘要

Four techniques—continuous pretraining, instruct fine-tuning, NEFTune, and prompt engineering—improve Large Language Models for clinical applications, with NEFTune and advanced prompt engineering yielding significant performance enhancements.

continuous pretraininginstruct fine-tuningNEFTuneprompt engineering

Abstract

Large Language Models (LLMs) have demonstrated significant potential in transforming clinical applications. In this study, we investigate the efficacy of four techniques in adapting LLMs for clinical use-cases: continuous pretraining, instruct fine-tuning, NEFTune, and prompt engineering. We employ these methods on Mistral 7B and Mixtral 8x7B models, leveraging a large-scale clinical pretraining dataset of 50 billion tokens and an instruct fine-tuning dataset of 500 million tokens. Our evaluation across various clinical tasks reveals the impact of each technique. While continuous pretraining beyond 250 billion tokens yields marginal improvements on its own, it establishes a strong foundation for instruct fine-tuning. Notably, NEFTune, designed primarily to enhance generation quality, surprisingly demonstrates additional gains on our benchmark. Complex prompt engineering methods further enhance performance. These findings show the importance of tailoring fine-tuning strategies and exploring innovative techniques to optimize LLM performance in the clinical domain.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Beyond Fine-tuning: Unleashing the Potential of Continuous Pretraining for Clinical LLMs | TensorX