Text2NKG: Fine-Grained N-ary Relation Extraction for N-ary relational Knowledge Graph Construction

Haoran Luo, E. Haihong, Yuhao Yang, Tianyu Yao, Yikai Guo +6 more
2/12/2026

No official code found. Best implementation: LHRLAB/Text2NKG (38 stars, MIT, last commit 2025-08-18).

Abstract

Beyond traditional binary relational facts, n-ary relational knowledge graphs (NKGs) are comprised of n-ary relational facts containing more than two entities, which are closer to real-world facts with broader applications. However, the construction of NKGs remains at a coarse-grained level, which is always in a single schema, ignoring the order and variable arity of entities. To address these restrictions, we propose Text2NKG, a novel fine-grained n-ary relation extraction framework for n-ary relational knowledge graph construction. We introduce a span-tuple classification approach with hetero-ordered merging and output merging to accomplish fine-grained n-ary relation extraction in different arity. Furthermore, Text2NKG supports four typical NKG schemas: hyper-relational schema, event-based schema, role-based schema, and hypergraph-based schema, with high flexibility and practicality. The experimental results demonstrate that Text2NKG achieves state-of-the-art performance in F1 scores on the fine-grained n-ary relation extraction benchmark. Our code and datasets are publicly available.

View on arXivView PDF

Code Implementations(1)

LHRLAB/Text2NKGCommunity100%
MIT

[NeurIPS 2024] Official resources of "Text2NKG: Fine-Grained N-ary Relation Extraction for N-ary relational Knowledge Graph Construction".

383CSS, ShellJan 2, 20231 years agoMIT
fine-grainedhyper-relational-knowledge-graphhypergraphinformation-extractionknowledge-graph-construction+1 more

Similar Papers

Cite this paper

@article{luo2026textnkg,
  title  = {Text2NKG: Fine-Grained N-ary Relation Extraction for N-ary relational Knowledge Graph Construction},
  author = {Haoran Luo and E. Haihong and Yuhao Yang and Tianyu Yao and Yikai Guo and Zichen Tang and Wentai Zhang and Kaiyang Wan and Shiyao Peng and Meina Song and Wei Lin},
  year   = {2026},
  eprint = {2310.05185},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.05185},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.05185.svg)](https://codeofpaper.com/paper/2310.05185)

Discussion