HacRED: A Large-Scale Relation Extraction Dataset Toward Hard Cases in Practical Applications

Qiao Cheng, Juntao Liu, Xiaoye Qu, Jin Zhao, Jiaqing Liang, Zhefeng Wang, Baoxing Huai, Nicholas Jing Yuan, Yanghua Xiao

Introduction

Relation Extraction (RE) is a fundamental task in Information Extraction, aimed at transforming unstructured text into structured knowledge triples, such as (Bill Gates, founder_of, Microsoft). While current state-of-the-art (SOTA) models achieve impressive F1 scores (often exceeding 90%) on standard benchmarks like WebNLG, their performance frequently collapses when applied to real-world, practical data.

This "performance gap" stems from the fact that standard benchmarks are saturated with "easy cases" where relations are signaled by explicit keywords. In contrast, practical applications involve "hard cases" characterized by implicit reasoning, long-distance context, and distracting entities. To address this, the authors introduce HacRED, a large-scale Chinese document-level dataset specifically engineered to target these challenging scenarios.

The Case-Oriented Construction Framework

Unlike traditional datasets that rely on random sampling, HacRED was built using a novel case-oriented construction framework. This approach ensures the dataset is populated with instances that truly test a model's reasoning capabilities.

The four-stage case-oriented construction framework for HacRED.

As illustrated in Figure 1, the framework consists of four primary stages:

  1. Data Collection: Gathering a massive pool of 1.6 million distantly supervised instances from CN-DBpedia.
  2. Hard Case Feature Engineering & Seed Selection: Defining a taxonomy of nine "hard case indicators" (e.g., Argument Distance, Distractors, and Implicit Reasoning). Experts manually labeled a small seed set of hard and easy cases.
  3. Target Instance Prediction: Utilizing Positive-Unlabeled (PU) learning to train a classifier capable of identifying hard cases from the unlabeled pool at scale.
  4. Annotation: A three-stage crowdsourcing process (Relation, Entity, and Triple annotation) using the CrowdTruth 2.0 method to aggregate worker responses and ensure a high-quality final product (96% F1 score for data quality).

Dataset Characteristics and Semantic Bias

A major contribution of HacRED is its focus on reducing "semantic bias." Many existing datasets are heavily biased toward high-frequency entity pairs; for instance, in the NYT dataset, 84% of triples are duplicates. This allows models to "cheat" by memorizing relationships between specific entities rather than learning to extract relations from the text. HacRED significantly reduces this bias, forcing models to rely on contextual understanding.

The final HacRED dataset contains 9,231 documents and 65,225 relational facts across 26 relation types and 9 entity types, making it one of the largest and most challenging Chinese document-level RE benchmarks available.

Experimental Evaluation

The authors evaluated several SOTA models, including CasRel and ATLOP, on HacRED. The results highlight a staggering disparity between model performance on easy versus hard cases.

F1 performance curves of baseline models on different subsets of HacRED.

As shown in Figure 4, while models perform relatively well on the "easy cases" subset, their performance plummets on the "hard cases" subset. For example, the CasRel model, which typically excels on standard benchmarks, achieved only a 48.85% F1 score on the HacRED test set in an end-to-end setting. This stands in stark contrast to the human baseline of 87.31% F1, revealing a massive 30-40% gap in performance.

Detailed indicator analysis further showed that models struggle most with Long-tail Relations (rare relations) and Reasoning. In some instances, model F1 scores for long-tail relations dropped as low as 0.08%, indicating that current architectures are still far from "solving" relation extraction for practical use.

Conclusion

HacRED serves as a critical diagnostic tool for the RE community, moving the focus from high-frequency patterns to the complex, implicit logic required for real-world applications. By identifying specific hurdles like reasoning and long-tail context, the authors provide a roadmap for future research. The significant human-model gap on HacRED suggests that future progress will likely require moving beyond simple pattern matching toward models that incorporate external knowledge or advanced causal reasoning modules.

Summary updated

BibTeX
@inproceedings{cheng2021hacred,
  author = {Qiao Cheng and Juntao Liu and Xiaoye Qu and Jin Zhao and Jiaqing Liang and Zhefeng Wang and Baoxing Huai and Nicholas Jing Yuan and Yanghua Xiao},
  title = {{HacRED: A Large-Scale Relation Extraction Dataset Toward Hard Cases in Practical Applications}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.249},
}
Figure