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

DSG-KD:从领域特定语言模型到通用语言模型的知识蒸馏

DSG-KD: Knowledge Distillation from Domain-Specific to General Language Models

Chung-Ang University(中央大学)

Sangyeon Cho, Jangyeong Jeon, Dongjoon Lee, Changhee Lee, Junyeong Kim

AI总结:

针对非英语地区电子病历分类中领域特定模型表现不佳的问题,提出DSG-KD知识蒸馏方法,将领域特定预训练模型作为教师模型向通用语言模型学生模型转移专业知识,有效提升了韩国儿科急诊病历的分类性能。

摘要:

使用预训练语言模型进行微调以处理特定下游任务是自然语言处理(NLP)中的常见方法。然而,通过微调获取领域特定知识具有挑战性。传统方法包括在为特定任务微调之前,使用大量领域特定数据预训练语言模型。本研究调查了基于韩国儿科急诊科(PEDs)获取的电子病历(EMR)数据的急诊/非急诊分类任务。我们的发现表明,在处理非英语地区特有的N语言自由文本数据时,现有的领域特定预训练语言模型表现不如通用语言模型。为了解决这些局限性,我们提出了一种领域知识转移方法,利用知识蒸馏通过微调将领域特定知识注入通用语言模型。本研究通过将通用语言模型定义为学生模型,将领域特定预训练模型定义为教师模型,展示了模型间专业知识的有效转移。特别是,我们处理了从韩国等非英语地区PEDs获取的EMR数据的复杂性,并证明所提方法在此类情境下提升了分类性能。所提方法不仅在韩国PED EMR数据上优于基线模型,而且有望在各种专业和技术领域广泛应用。在未来的工作中,我们计划将此方法扩展至更多非英语地区并处理额外的下游任务,旨在利用最先进的KD技术开发先进的模型架构。代码可在 https://github.com/JoSangYeon/DSG-KD 获取。

英文摘要:

The use of pre-trained language models fine-tuned to address specific downstream tasks is a common approach in natural language processing (NLP). However, acquiring domain-specific knowledge via fine-tuning is challenging. Traditional methods involve pretraining language models using vast amounts of domain-specific data before fine-tuning for particular tasks. This study investigates emergency/non-emergency classification tasks based on electronic medical record (EMR) data obtained from pediatric emergency departments (PEDs) in Korea. Our findings reveal that existing domain-specific pre-trained language models underperform compared to general language models in handling N-lingual free-text data characteristics of non-English-speaking regions. To address these limitations, we propose a domain knowledge transfer methodology that leverages knowledge distillation to infuse general language models with domain-specific knowledge via fine-tuning. This study demonstrates the effective transfer of specialized knowledge between models by defining a general language model as the student model and a domain-specific pre-trained model as the teacher model. In particular, we address the complexities of EMR data obtained from PEDs in non-English-speaking regions, such as Korea, and demonstrate that the proposed method enhances classification performance in such contexts. The proposed methodology not only outperforms baseline models on Korean PED EMR data, but also promises broader applicability in various professional and technical domains. In future works, we intend to extend this methodology to include diverse non-English-speaking regions and address additional downstream tasks, with the aim of developing advanced model architectures using state-of-the-art KD techniques. The code is available in https://github.com/JoSangYeon/DSG-KD.

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

↑