Tree-KG: An Expandable Knowledge Graph Construction Framework for Knowledge-intensive Domains

Songjie Niu, Kaisen Yang, Rui Zhao, Yichao Liu, Zonglin Li, Hongning Wang, Wenguang Chen

Introduction

In specialized fields such as physics, medicine, and law, knowledge is not merely a collection of isolated facts but a dense web of hierarchical dependencies. While Large Language Models (LLMs) have revolutionized entity and relation extraction, they often struggle to construct Knowledge Graphs (KGs) that are structurally consistent, scalable, and semantically coherent in these "knowledge-intensive" domains.

Existing approaches frequently suffer from a "structure gap." Rule-based methods are often too rigid to capture nuanced relationships, while standard LLM-based extraction can be too unstructured, resulting in "brittle" graphs. Tree-KG addresses this by mimicking the natural, hierarchical way humans organize information in textbooks, leveraging document structure to guide the extraction process.

The Tree-KG Framework

Tree-KG operates through a dual-phase approach that builds an initial "explicit" structure and then expands it into a more comprehensive "hidden" graph.

Phase 1: Initial Construction (The Explicit KG)

The framework begins by parsing structured text—such as a textbook—using regular expressions to identify the inherent hierarchy of chapters and sections. It then employs Bottom-Up Summarization, where an LLM summarizes subsections and aggregates these into higher-level summaries. This process creates the "skeleton" of the graph, where nodes represent sections and entities, connected by vertical edges like has_subsection or has_entity.

Phase 2: Iterative Expansion (The Hidden KG)

To uncover relationships not explicitly defined by the document hierarchy, Tree-KG introduces several iterative operators:

  • Contextual-based Convolution: Inspired by Graph Convolutional Networks (GCNs), this operator uses LLM prompts to update an entity's description based on its neighbors' descriptions, ensuring semantic alignment across the graph.
  • Entity Aggregation: This simplifies the graph by classifying entities as "core" or "non-core," nesting peripheral concepts under central ones.
  • Edge Prediction: A specialized scoring function identifies potential new relations by balancing semantic similarity (via embeddings), structural similarity (Adamic-Adar score), and hierarchical proximity (Common Ancestors).
The Tree-KG framework overview, illustrating the transition from structured raw text to an explicit KG and its subsequent iterative expansion into a hidden KG.

Key Insights: The "Textbook" Intuition

A core observation of this research is that entities appearing within the same section typically share the strongest links. By using the document's hierarchy as a starting point, the resulting KG inherits a rational structure that flat extraction methods lack. Furthermore, the use of "Contextual-based Convolution" via LLMs allows for a semantic form of message-passing, where node descriptions are enriched by their neighborhood context without requiring complex mathematical weight matrices.

Evaluation and Results

The researchers evaluated Tree-KG across three domains: Physics (Electromagnetism, Optics, and Quantum Physics), Digital Electronics, and Educational Psychology. They utilized three ground-truth references: Domain-Annotated (expert knowledge), Text-Annotated (manually extracted from source texts), and Appendix-Lists.

Performance comparison of Tree-KG against baseline methods across multiple benchmarks, highlighting superior F1 scores and structural alignment.

Performance Metrics

Tree-KG demonstrated significant improvements over state-of-the-art baselines:

  • Accuracy: It achieved an F1 score of 0.81 on the Text-Annotated dataset, outperforming the second-best baseline by 12–16%.
  • Structural Alignment: The framework showed superior Mapping-based Edge Connectivity (MEC), indicating that the generated graph's topology closely aligns with expert-designed ground truths.
  • Cost-Efficiency: By utilizing a top-down approach and efficient models (like DeepSeek-V3 and GLM-4-Air), Tree-KG proved to be significantly more cost-effective than methods relying on heavy bottom-up summarization or top-tier GPT-4 models.

Conclusion and Future Work

Tree-KG successfully bridges the gap between rigid rule-based systems and unstructured LLM extractions by leveraging the inherent structure of domain literature. While the framework currently relies on the inherent knowledge of the LLM and the provided text, future work aims to introduce task-specific features. This will ensure that the constructed KGs are optimized for downstream applications such as complex logical inference and multi-hop reasoning.

Summary updated

BibTeX
@inproceedings{niu2025tree,
  author = {Songjie Niu and Kaisen Yang and Rui Zhao and Yichao Liu and Zonglin Li and Hongning Wang and Wenguang Chen},
  title = {{Tree-KG: An Expandable Knowledge Graph Construction Framework for Knowledge-intensive Domains}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure