NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Structure-aware Domain Knowledge Injection for Large Language Models

Kai Liu, Ze Chen, Zhihang Fu, Rongxin Jiang, Fan Zhou, Yaowu Chen, Yue Wu, Jieping Ye, Ye, Jieping · DOI

Abstract

This paper introduces StructTuning, a pioneering methodology designed to efficiently transform foundation Large Language Models (LLMs) into domain specialists. By mimicking the structured nature of human education, StructTuning significantly reduces training corpus requirements to a mere 5% while achieving 100% of the performance of traditional knowledge injection methods. We propose a novel two-stage strategy: Structure-aware Continual Pre-Training (SCPT) and Structure-aware Supervised Fine-Tuning (SSFT). In the SCPT phase, we automatically extract a domain knowledge taxonomy and reorganize corpora to link text segments to specific knowledge points. In the SSFT phase, models are prompted to elucidate underlying knowledge structures in their outputs. Extensive evaluations on LongBench and MMedBench demonstrate superior performance and scalability across various model architectures, laying a foundation for enhanced domain-specific LLMs with optimized data utilization.

Introduction

Adapting a general-purpose LLM into a domain specialist, such as a medical or legal expert, typically follows two paths: Retrieval-Augmented Generation (RAG) or Continual Pre-Training (CPT). However, both methods face significant hurdles. RAG often suffers from "retrieval noise," where models struggle to reason across semantically distant snippets. Conversely, traditional CPT requires massive amounts of data—often billions or trillions of tokens—because it treats text as a "flat" sequence of random chunks.

Comparison of structured human learning versus traditional 'flat' LLM training approaches.

The authors argue that this "aimless" training ignores how humans actually learn. Human education follows a syllabus, emphasizing how chapters relate to one another and utilizing targeted exercises. StructTuning addresses this data efficiency gap by organizing training data into hierarchical taxonomies, allowing models to learn the content conditioned on its specific place in a domain's hierarchy.

The StructTuning Framework

StructTuning consists of a pre-processing step followed by two distinct training stages designed to anchor knowledge within a structured semantic framework.

Overview of the StructTuning pipeline, including corpus structurization, SCPT, and SSFT.

1. Corpus Structurization

Using a specialized 7B parameter model, the framework automatically extracts a "knowledge taxonomy" (a hierarchical tree or mindmap) from raw text or textbooks. This process transforms a flat list of paragraphs into a structured set of "knowledge points," providing a roadmap for the subsequent training phases.

2. Structure-aware Continual Pre-Training (SCPT)

In this stage, instead of feeding the model raw text chunks, the system prepends the "knowledge path" (e.g., Biochemistry -> Lipoprotein Metabolism -> Lipid Metabolism) to each chunk. This forces the model to learn domain content as a "control code," helping it organize internal representations more efficiently than traditional "aimless" reading.

3. Structure-aware Supervised Fine-Tuning (SSFT)

Finally, the framework generates synthetic QA pairs based on the extracted mindmap, including both "knowledge-intensive" (1-hop) and "multi-hop" questions. Crucially, the model is trained to explicitly output the underlying knowledge structure or reasoning path before providing a final answer, effectively implementing a structured form of Chain-of-Thought prompting.

Experimental Results and Insights

The researchers evaluated StructTuning using LongBench to test recall and MMedBench to evaluate real-world medical reasoning. The results highlight several key breakthroughs:

  • The 5% Rule: The most striking finding is the efficiency gain. StructTuning achieved 100% performance parity with traditional state-of-the-art models (like MMedLM2) using only 1.2B tokens—approximately 5% of the traditional data requirement. At even smaller scales (76M tokens, or 0.3% of the SOTA's data), it achieved a 50% improvement over the baseline.
  • Enhanced Recall: On LongBench, the method improved knowledge recall from a baseline of 24.2% to 31.5%, proving that structured training significantly aids the memorization of specific facts.
  • Cross-Lingual Knowledge Transfer: Injecting structured knowledge in one language (e.g., English) significantly boosted performance on medical exams in other languages (e.g., Spanish or French), suggesting that the underlying structure of domain knowledge is largely universal.

Conclusion

StructTuning offers a highly efficient path for domain adaptation, proving that how a model learns is just as important as what it learns. While the initial stage requires computational overhead for taxonomy extraction, the massive reduction in required training tokens makes it a viable strategy for specialized industries. Future work will focus on scaling this approach to 70B+ models and exploring its applicability in less hierarchical fields like philosophy or creative writing.

Summary updated

BibTeX
@inproceedings{liu2025structure,
  author = {Kai Liu and Ze Chen and Zhihang Fu and Rongxin Jiang and Fan Zhou and Yaowu Chen and Yue Wu and Jieping Ye and Ye, Jieping},
  title = {{Structure-aware Domain Knowledge Injection for Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure