Structure-aware Domain Knowledge Injection for Large Language Models
Kai Liu, Ze Chen, Zhihang Fu, Wei Zhang, Rongxin Jiang, Fan Zhou, Yaowu Chen, Yue Wu, Jieping Ye
TL;DR
This paper tackles the data-efficiency challenge in adapting foundation LLMs to specialized domains by introducing StructTuning, a structure-aware two-stage framework. It automatically extracts a domain knowledge structure from textbooks and reorganizes training data, then applies Structure-aware Continual Pre-Training (SCPT) and Structure-aware Supervised Fine-Tuning (SSFT) to inject and elicit this knowledge. The approach yields notable improvements on LongBench and MMedBench across multiple models, achieving substantial performance gains with only a fraction of traditional training data (e.g., 0.3% for large gains and ~5% for near-full gains). The results highlight strong scalability and cross-language generalization, with RAG-based baselines offering limited benefits in this setting. Overall, StructTuning demonstrates a promising path to more data-efficient, domain-specific LLMs that better emulate structured human knowledge acquisition.
Abstract
This paper introduces a pioneering methodology, termed StructTuning, to efficiently transform foundation Large Language Models (LLMs) into domain specialists. It significantly reduces the training corpus needs to a mere 5% while achieving an impressive 100% of traditional knowledge injection performance. Motivated by structured human education, we propose a novel two-stage strategy for knowledge injection and alignment: Structure-aware Continual Pre-Training (SCPT) and Structure-aware Supervised Fine-Tuning (SSFT). In the SCPT phase, we automatically extract the domain knowledge taxonomy and reorganize the training corpora, enabling LLMs to effectively link textual segments to targeted knowledge points within the taxonomy. In the SSFT phase, we explicitly prompt models to elucidate the underlying knowledge structure in their outputs, leveraging the structured domain insight to address practical problems. Our ultimate method was extensively evaluated across model architectures and scales on LongBench and MMedBench datasets, demonstrating superior performance against other knowledge injection methods. We also explored our method's scalability across different training corpus sizes, laying the foundation to enhance domain-specific LLMs with better data utilization.
