arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.05478cs.CL
收藏

OntoTune:面向大语言模型对齐的本体驱动自训练

OntoTune: Ontology-Driven Self-training for Aligning Large Language Models

Zhejiang University(浙江大学);Ant Group(蚂蚁集团)

Zhiqiang Liu, Chengtao Gan, Junjie Wang, Yichi Zhang, Zhongpu Bo, Mengshu Sun, Huajun Chen, Wen Zhang

AI总结:

针对现有领域LLMs领域知识理解碎片化问题,提出本体驱动自训练框架OntoTune,通过上下文学习使LLMs与本体对齐,降低数据维护成本、提升泛化能力,在医疗领域本体内/外任务中性能优于现有方法且保留原始知识。

摘要:

现有领域特定大语言模型(LLMs)通常通过使用大规模领域特定语料微调通用LLMs开发。然而,大规模语料训练常无法有效组织LLMs的领域知识,导致理解碎片化。受人类通过思维导图连接概念、组织知识的方式启发,我们旨在通过具有分层概念知识的本体模拟该方法,重组LLM的领域知识。基于此视角,我们提出一种本体驱动的自训练框架OntoTune,通过上下文学习使LLMs与本体对齐,实现受本体引导的响应生成。我们利用上下文学习识别LLM是否已掌握特定概念的本体知识,并选择LLM尚未掌握的条目作为训练集,进一步使LLM与本体对齐。与基于新收集大规模领域特定语料的现有领域LLMs相比,依赖现有长期开发的本体和LLM自身的OntoTune显著降低数据维护成本,并提升泛化能力。我们在医疗领域开展研究以评估OntoTune的有效性,使用标准化医疗本体SNOMED CT作为本体源。实验结果表明,OntoTune在本体内任务(上位词发现)和本体外任务(医疗领域问答)中均取得最先进性能;此外,与最新的直接本体注入方法TaxoLLaMA相比,OntoTune更好地保留了LLM的原始知识。代码和数据可在https://github.com/zjukg/OntoTune获取。

英文摘要:

Existing domain-specific Large Language Models (LLMs) are typically developed by fine-tuning general-purposed LLMs with large-scale domain-specific corpora. However, training on large-scale corpora often fails to effectively organize domain knowledge of LLMs, leading to fragmented understanding. Inspired by how humans connect concepts and organize knowledge through mind maps, we aim to emulate this approach by using ontology with hierarchical conceptual knowledge to reorganize LLM's domain knowledge. From this perspective, we propose an ontology-driven self-training framework called OntoTune, which aims to align LLMs with ontology through in-context learning, enabling the generation of responses guided by the ontology. We leverage in-context learning to identify whether the LLM has acquired the specific concept's ontology knowledge, and select the entries not yet mastered by LLM as the training set to further align the LLM with ontology. Compared to existing domain LLMs based on newly collected large-scale domain-specific corpora, our OntoTune, which relies on the existing, long-term developed ontology and LLM itself, significantly reduces data maintenance costs and offers improved generalization ability. We conduct our study in the medical domain to evaluate the effectiveness of OntoTune, utilizing a standardized medical ontology, SNOMED CT as our ontology source. Experimental results demonstrate that OntoTune achieves state-of-the-art performance in both in-ontology task hypernym discovery and out-of-ontology task medical domain QA. Moreover, compared to the latest direct ontology injection method TaxoLLaMA, our OntoTune better preserves original knowledge of LLM. The code and data are available at https://github.com/zjukg/OntoTune.

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

↑