Hyper-KGGen: A Skill-Driven Knowledge Extractor for High-Quality Knowledge Hypergraph Generation

Rizhuo Huang, Yifan Feng, Rundong Xue, Shihui Ying, Jun-Hai Yong, Chuan Shi, Shaoyi Du, Yue GaoarXiv 2026

TL;DR

Hyper-KGGen is a novel framework that extracts complex, multi-entity ($n$-ary) facts from unstructured text to build high-quality knowledge hypergraphs. By combining a hierarchical coarse-to-fine extraction pipeline with a dynamic, self-improving feedback loop, it automatically distills domain-specific expertise into a "Global Skill Library," significantly outperforming static few-shot prompting and standard baselines across diverse industries.

What Problem Does This Paper Address?

Traditional Knowledge Graphs (KGs) represent information as binary relations—simple (subject, relation, object) triples. While effective for basic facts, triples struggle to capture the full context of the real world, where facts are often $n$-ary, involving multiple entities, timestamps, locations, or specific conditions (e.g., "Company A acquired Company B in 2026 for \$1B").

Knowledge Hypergraphs solve this by using hyperedges that connect arbitrary numbers of entities. However, automatically constructing them from raw text introduces two major challenges:

  1. The Scenario Gap: Generic large language model (LLM) extractors stumble when moving across specialized domains (like medicine, law, or finance) due to industry jargon and implicit logic.
  2. Structural Imbalance: Existing hypergraph extractors tend to focus heavily on complex, high-order relations, often missing the foundational binary links that keep the graph connected.
Figure 1: Illustration of the Scenario Gap of general prompt- ing and domain-specific prompting. Using generic prompts in KGGen leads to suboptimal knowledge extraction. By con- trast, applying domain-specific “adaptive prompts” substan- tially improves the model’s ability to extract facts.

Methods

Hyper-KGGen tackles these issues using a two-pronged approach: a Coarse-to-Fine Extraction pipeline and an Adaptive Skill Acquisition loop.

Figure 2: The overall architecture of our proposed Hyper-KGGen framework for high quality knowledge hypergraph generation. It consists two modules: (a) is the Coarse-to-Fine Knowledge Hypergraph Extraction module, and (b) is the Adaptive Diverse Scenarios Skill Acquisition module for iteratively generate reusable skills to Skill Library from execution history.

1. Coarse-to-Fine Extraction

Instead of trying to extract complex hyperedges all at once, Hyper-KGGen breaks the document down hierarchically:

  • Entity Extraction: Identifies all valid entities and their types.
  • Binary Relations (The Skeleton): Establishes the core pairwise links between entities.
  • Qualified Binary Relations: Augments those pairs with spatiotemporal qualifiers (e.g., time, location).
  • General $n$-ary Relations: Models complex, multi-entity interactions as holistic event hyperedges.

2. Adaptive Skill Acquisition

To bridge the scenario gap without expensive parameter fine-tuning, the framework treats prompt optimization as a dynamic, test-time learning problem:

  • Parallel Rollouts: The frozen LLM processes a document multiple times with non-zero temperature to generate a diverse set of candidate hypergraphs.
  • Stability-based Relative Reward: Extracted facts are categorized by their frequency across rollouts into a Stable Set (general knowledge), an Unstable Set (where the model oscillates due to low confidence), and a Miss Set (completely overlooked facts).
  • Reflective Computation: For unstable facts, the model uses Path Induction to summarize why the successful paths worked. For missed facts, it uses Hindsight Reasoning—injecting the ground truth as a posterior condition to backtrack through the text and find the missing logical link.
  • Skill Library Controller: These reflections are distilled into explicit, reusable extraction rules and stored in a structured Global Skill Library, which is dynamically retrieved and injected into prompts during inference.

Datasets

The authors evaluated Hyper-KGGen across three distinct tasks using multiple datasets:

  • HyperDocRED: A newly introduced benchmark for document-level $n$-ary knowledge hypergraph extraction. The authors manually restructured the widely used binary Re-DocRED corpus into complete $n$-ary relations to preserve complex semantic units.
  • MINE Dataset: A linguistically diverse dataset containing 100 articles across fields like history, science, and psychology, featuring human-verified hyper-relational gold standards.
  • UltraDomain Benchmark: Sourced from hundreds of college textbooks across 18 domains, used specifically to evaluate downstream Retrieval-Augmented Generation (RAG) utility.

Key Insights and Ideas

  • Few-Shot Prompting Plateaus Quickly: Traditional few-shot prompting helps models align with task formats but fails to scale as more examples are added. In contrast, Hyper-KGGen's skill-driven guidance shows steady, cumulative gains because skills capture recurring, decision-relevant constraints rather than static, localized examples.
  • Stability is a Strong Optimization Signal: By focusing purely on the Unstable and Missed sets, the framework avoids wasting computational budget on general knowledge the model already handles robustly, focusing entirely on minimizing domain blind spots.
  • Higher Information Density: High-quality hypergraphs act as better substrates for RAG. Because Hyper-KGGen captures complete $n$-ary contexts natively, it achieves superior retrieval efficiency—covering more key facts with fewer candidate entities and lower retrieval costs.

Key Results

Hyper-KGGen was evaluated against strong baselines (including KGGen, Hyper-RAG, and Cog-RAG) using GPT-4o-mini as the backbone:

  • $n$-ary Relation Extraction: On the HyperDocRED dataset, Hyper-KGGen significantly outperformed all baselines in both precision and recall across multiple semantic matching thresholds.
  • Fact Coverage: On the MINE dataset, Hyper-KGGen achieved a fact-verification accuracy of 83.67% (improving to 84.73% with Qwen3), shifting the fact-capture distribution heavily toward the high-coverage regime compared to standard KGs.
  • Downstream RAG Performance: When plugged into a standard RAG pipeline on the UltraDomain benchmark, the hypergraphs generated by Hyper-KGGen yielded the highest average instructional response quality across dimensions like comprehensiveness, diversity, and logic.
Figure 3: Precision-Recall Curves for 𝑛-ary Relation Extraction on the HyperDocRED Dataset.

Limitations and Future Work

While highly effective, the authors note a clear trade-off during the skill exploration phase:

  • Exploration vs. Noise Control: As the number of parallel rollouts ($K$) increases, recall improves, but precision drops slightly. This indicates that broader exploration can introduce low-confidence or unstable candidates into the skill acquisition stage, injecting noise into the library.
  • Computational Overhead: Running multiple parallel rollouts and reflective reasoning steps during the training/seed phase increases inference costs, though this is a one-time cost before deploying the static skill library.

Future work will likely focus on developing tighter filtering mechanisms within the Skill Library Controller to better mitigate noise during large-scale rollouts.

Summary updated

BibTeX
@misc{huang2026hyper,
  author = {Rizhuo Huang and Yifan Feng and Rundong Xue and Shihui Ying and Jun-Hai Yong and Chuan Shi and Shaoyi Du and Yue Gao},
  title = {{Hyper-KGGen: A Skill-Driven Knowledge Extractor for High-Quality Knowledge Hypergraph Generation}},
  year = {2026},
  eprint = {2602.19543},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.19543},
}
Figure