A Dataset for Hyper-Relational Extraction and a Cube-Filling Approach

Yew Ken Chia, Lidong Bing, Sharifah Mahani Aljunied, Luo Si, Soujanya Poria

Researchers from Alibaba DAMO Academy and SUTD have introduced a significant shift in automated knowledge graph construction. While standard Relation Extraction (RE) focuses on simple "triplets," this work addresses the detailed reality of "hyper-relational" facts—information that includes essential qualifiers such as time, quantity, or location.

The Hyper-Relational Extraction Problem

Most Knowledge Graphs (KGs) are built on binary relations: (Subject, Relation, Object). For example: (Leonard Parker, Educated At, Harvard University). However, real-world information is rarely that simple. To be truly useful, a KG needs context: When did a person graduate? What specific degree was earned?

These extra attributes are called qualifiers. Extracting a "hyper-relational" fact means capturing the triplet plus its associated qualifiers, such as: (Leonard Parker, Educated At, Harvard; End Time: 1967, Academic Degree: PhD). Existing RE models are typically designed for 2D interactions (Subject-Object) and struggle with the 3D interaction required to link a triplet to its qualifiers.

An illustration of hyper-relational fact extraction, showing a head entity, relation, tail entity, and associated qualifiers.

Methodology: The CubeRE Model

To address these challenges, the authors propose CubeRE, an end-to-end model that treats extraction as a 3D "cube-filling" problem.

  1. Cube-Filling Architecture: While traditional models use a 2D table to predict relations between word pairs, CubeRE extends this to a 3D cube. The front plane handles the standard triplet (Head, Relation, Tail), while the depth dimension represents the qualifier labels and value entities.
  2. Sentence Encoding: The model utilizes a pre-trained BERT encoder to generate contextualized word representations.
  3. Cube-Pruning: A naive 3D cube has a computational complexity of $O(n^3)$, which is inefficient for long sentences. The authors introduce cube-pruning, where the model calculates an "entity score" for each word and only considers the top $m$ words (optimally $m=20$) for the qualifier dimensions. This not only improves speed but acts as a regularizer by reducing the "negative class imbalance" of empty cells.
  4. Joint Learning: Unlike pipeline models that extract triplets and qualifiers sequentially, CubeRE learns a shared representation, allowing the triplet and qualifier losses to inform one another and mitigating error propagation.
The CubeRE architecture, demonstrating how word interactions are mapped into a 3D cube for joint triplet and qualifier extraction.

The HyperRED Dataset

To benchmark this task, the authors contributed HyperRED, the first large-scale, general-purpose dataset for hyper-relational extraction.

  • Scale and Diversity: It contains 44,372 facts across nearly 40,000 training sentences, featuring 62 relation labels and 44 qualifier labels.
  • Construction: The dataset was created via distant supervision (aligning Wikipedia text with Wikidata facts) and refined through human annotation for the test and development sets.
  • Typology: Qualifiers are categorized into types including Time (48%), Quantity (19%), Role (12%), and Location (9%).

Key Results and Insights

CubeRE (Large) achieved a 66.75 $F_1$ score on the HyperRED test set, consistently outperforming strong generative baselines (like BART) and pipeline approaches.

  • Efficiency: Despite its 3D architecture, the pruning method allows CubeRE to maintain an inference speed of 160 samples/second, nearly 5x faster than generative alternatives.
  • Relation-Specific Qualifiers: The research indicates that most qualifiers are highly specific to certain relations (e.g., "electoral district" pairs with "candidacy in election"). CubeRE’s architecture exploits these correlations more effectively than previous models.
  • Robustness: The model showed strong performance across all qualifier types, though "Time" remains a challenging area due to the complex temporal reasoning required.

Limitations and Future Work

While CubeRE represents a significant advancement, some limitations remain. The current decoding algorithm struggles with nested or overlapping entity spans (representing ~2% of the dataset). Additionally, while the test sets are human-verified, the training set still contains noise inherent to distant supervision. Future work may focus on improving long-range dependency handling for extremely long sentences where correct entities might fall outside the top $m$ ranked words.

The code and the HyperRED dataset are available at github.com/declare-lab/HyperRED.

Summary updated

BibTeX
@inproceedings{chia2022dataset,
  author = {Yew Ken Chia and Lidong Bing and Sharifah Mahani Aljunied and Luo Si and Soujanya Poria},
  title = {{A Dataset for Hyper-Relational Extraction and a Cube-Filling Approach}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.688},
}
Figure