Manuscript Offprint

arXiv:2609.00763

Automated Tree Knowledge Graph Construction using Ontology Expansion and Retrieval from Vietnamese History Textbooks

Ket Doan Nguyen, Minh N. H. Nguyen

Ket Doan Nguyen 1^{1}[0009-0005-6698-9629] and Minh N. H. Nguyen 1^{1}

The University of Danang, Vietnam-Korea University of Information and Communication Technology, Danang, Vietnam

{nkdoan,nhminh}@vku.udn.vn

Abstract. Hierarchical Knowledge graph (KG)-based retrieval augmented generation (RAG) has emerged as a powerful approach for supporting large language models with structured knowledge. However, there are primary challenges: (i) the lack of methods for automatic KG construction using ontology expansion for low-resource languages such as Vietnamese, (ii) the absence of systematic evaluation for knowledge retrieval strategies leveraging the hierarchical structures. In this paper, we propose an end-to-end pipeline for KG construction and retrieval strategies evaluation. In the KG construction, we employ a three-phase hybrid relation extraction pipeline: intra-batch deduplication via Union-Find, approximate cross-batch search, and LLM extraction with a centroid filter that reduces prompts combined with a five-step dual-LLM validator to prevent bloated ontology. A two-tier architecture consists of unmergeable structural nodes to preserve the document structure and mergeable content nodes. The retrieval evaluation consists of three graph traversal strategies: Top-Down, Horizontal, and Bottom-Up, which are evaluated on a synthetically generated benchmark of 1,210 Vietnamese queries from 109 subgraphs, categorized by five query directions. In this paper, we construct the tree knowledge graph from Vietnamese high school History textbooks (nearly 400 pages) to produce 750 nodes and 4,341 semantic edges with controlled ontology growth from 40 to 41 types. Among experimental graph traversal strategies, the Top-Down strategy with structure surpasses the vector baseline by 4.7 percentage points in NDCG@10. As a result, tree-structural information provides valuable information beyond flat cosine similarity but degrades performance when the query does not require structural context.

Keywords: Hierarchical knowledge graph · Ontology expansion · RAG · Relation extraction · Knowledge retrieval · History

1 Introduction

Vietnam’s National Digital Transformation Program lists Education as one of eight priority sectors and calls for intelligent systems in teaching and learning. Among school subjects, History presents a distinct challenge. History lessons

N. K. Doan and N. H. N. Minh

require students to trace connections across events, people, dates, and causal chains. Hence, reasoning over structured knowledge rather than memorizing isolated facts is mandatory for students to learn history more efficiently. Connected reasoning demands more than keyword matching against flat text and requires a knowledge representation for relations between entities. In Vietnamese language processing, there are existing emerging pretrained models such as PhoBERT [17] that can perform well on multiple language tasks. To the best of our knowledge, no existing framework has been developed for constructing knowledge graphs from Vietnamese educational content, introducing an important gap for future research.

Knowledge graphs (KGs) store structured knowledge for supporting multihop reasoning and cross-graph information combination [13]. Incorporating KGs with retrieval-augmented generation (RAG) [14], question-answering systems can follow chains of relations rather than depending on text similarity in GraphRAG [19,8]. Recent methods [10,16] propose single traversal strategies; none compare multiple directions given hierarchical structures of knowledge. On the KG construction stage, LLMs perform zero-shot relation extraction [24] and speed up ontology creation [23], but the ontology could grow too large with overlapping entities and relations [12]. Our main contributions are as follows:

– A hierarchical KG construction pipeline with controlled ontology expansion is constructed using a two-layer ontology with 26 general, 14 history-specific types, an embedding centroid filter that reduces the number of prompts by 50%, and a five-step dual-LLM validator that prevents 87.5% of duplicate relations.

– An automatic benchmark generation pipeline from KGs, including a three-phase subgraph selection process such as SEED, ENRICH, BOUND generates 1,210 Vietnamese queries from 109 subgraphs with hierarchical relevance labels (i.e., 0/1/2), categorized by five query directions.

– Three graph traversal strategies, such as Top-Down, Horizontal, and Bottom-Up, are evaluated using a hierarchical structure along different directions.

– A multi-dimensional evaluation framework including 12 methods at 4 cutoff thresholds K, analyzes performance across 5 query directions, and the influences of the structural relations.

References (24)

  • LLM-assisted knowledge graph completion for curriculum and domain modelling in personalized higher education recommendations
  • An optimized pipeline for automatic educational knowledge graph construction
  • Top-down vs. bottom-up approaches for automatic educational knowledge graph construction in CourseMapper
  • AutoMathKG: The automated mathematical knowledge graph based on LLM and vector database
  • The use of MMR, diversity-based reranking for reordering documents and producing summaries
  • From Local to Global: A Graph RAG Approach to Query-Focused Summarization
  • Reciprocal rank fusion outperforms condorcet and individual rank learning methods
  • ReMindRAG: Low-cost LLM-guided knowledge graph traversal for efficient RAG. In: Advances in Neural Information Processing Systems (NeurIPS)
  • Cumulated gain-based evaluation of IR techniques
  • Large language models and knowledge graphs: Opportunities and challenges
  • A survey on knowledge graphs: Representation, acquisition, and applications
  • Retrieval-augmented generation for knowledge-intensive NLP tasks
  • KARMA: Leveraging multi-agent LLMs for automated knowledge graph enrichment
  • GFM-RAG: Graph foundation model for retrieval augmented generation
  • PhoBERT: Pre-trained language models for Vietnamese
  • Graph retrieval-augmented generation: A survey
  • The probabilistic relevance framework: BM25 and beyond
  • Doc-KG: Unstructured documents to knowledge graph construction, identification and validation with wikidata
  • RAPTOR: Recursive abstractive processing for tree-organized retrieval
  • Accelerating knowledge graph and ontology engineering with large language models
  • Revisiting relation extraction in the era of large language models
  • CRAG – comprehensive RAG benchmark
  • Document parsing unveiled: Techniques, challenges, and prospects for structured information extraction (opens arXiv in a new tab)
  • Qwen3 technical report