Neural Rule Grounding for Low-Resource Relation Extraction

Wenxuan Zhou, Hongtao Lin, Ziqi Wang, Leonardo Neves, Xiang Ren

Introduction

Deep learning models for relation extraction (RE) are notoriously data-hungry, typically requiring massive amounts of sentence-level labels to achieve high performance. While manual annotation is the gold standard, it is prohibitively expensive. Common alternatives like distant supervision (matching entities against a knowledge base) introduce significant noise, and traditional rule-based labeling suffers from low recall due to its reliance on exact string matching. For instance, a rule like [SUBJ] was founded by [OBJ] would fail to capture "X was created by Y," leaving vast portions of a text corpus unlabeled.

This paper introduces NERO (NEural Rule grOunding), a framework designed to bridge this gap. NERO leverages human-annotated labeling rules (such as surface patterns) and employs a "soft matching" neural network to automatically label large volumes of unlabeled text. By generalizing rules to semantically similar sentences, NERO achieves performance comparable to thousands of manual labels with only a fraction of the annotation effort.

The NERO Framework

The NERO framework consists of two primary modules that are trained jointly: the Relation Classifier (RC) and the Soft Rule Matcher (SRM).

Overview of the NERO framework, illustrating hard matching, soft matching via the SRM, and iterative joint learning with the Relation Classifier.

Joint Learning Process

The training process follows an iterative cycle:

  1. Hard Matching: Initially, the system applies human-provided rules to a raw corpus using exact string matching. This produces a small but highly accurate set of "hard-matched" sentences.
  2. Soft Matching (Pseudo-labeling): The SRM evaluates the remaining unmatched sentences. It calculates a semantic similarity score between an unlabeled sentence and the available rules using word-level attention and cosine similarity. Sentences are assigned "pseudo-labels" based on the rules they most closely resemble.
  3. Co-training: The RC (a BiLSTM with attention) is trained on both the high-precision hard-matched sentences and the broader set of pseudo-labeled sentences. Simultaneously, the SRM is refined using a contrastive loss that encourages rules of the same relation type to cluster together in the embedding space while pushing different types apart.

Experimental Evaluation

The authors evaluated NERO on two benchmark datasets:

  • TACRED: A large-scale dataset with 42 relation types, for which 270 rules were annotated.
  • SemEval 2010 Task 8: A classic dataset with 19 relation types, utilizing 164 rules.

Key Results

NERO demonstrates significant improvements in both performance and annotation efficiency. On the TACRED dataset, NERO achieved an F1 score of 51.3%, substantially outperforming rule-based baselines (20.1%) and semi-supervised methods like Mean-Teacher (43.6%) under identical low-resource conditions.

F1 performance on TACRED relative to the number of annotated rules, comparing NERO against semi-supervised baselines.

A user study revealed that 40 minutes of rule annotation yielded a model equivalent to one trained on 1,000 manually labeled sentences (which took 320 minutes to annotate), representing a ~9.5x speedup in human effort. Furthermore, NERO's ability to match semantics allows it to generalize to unseen relations. In zero-shot tests on TACRED, the SRM achieved a 68.9% F1 score, far exceeding exact matching (10.8%).

Discussion and Insights

The success of NERO highlights several key insights:

  • Efficiency of Rules: Annotating a single rule provides a much higher return on investment than annotating individual sentences. In NERO, one rule is roughly equivalent to 10 human-annotated sentence labels.
  • Semantic Generalization: Soft matching unlocks the "long tail" of linguistic variation. By focusing on semantics rather than syntax, the model captures diverse ways of expressing the same relationship.
  • Interpretability: The SRM’s word-level attention provides transparency, allowing users to see which specific words (e.g., "chairman" vs. "Chief") drove a match.

Limitations and Future Work

While effective, NERO currently focuses on simple surface patterns. Future work could integrate more complex rule structures, such as regular expressions or dependency-tree paths. Additionally, the performance gains were more pronounced on TACRED than on SemEval, likely because the latter's shorter, simpler sentences offer fewer opportunities for semantic soft-matching to provide a contextual advantage.

Summary updated

BibTeX
@inproceedings{zhou2020neural,
  author = {Wenxuan Zhou and Hongtao Lin and Ziqi Wang and Leonardo Neves and Xiang Ren},
  title = {{Neural Rule Grounding for Low-Resource Relation Extraction}},
  booktitle = {The Web Conference},
  year = {2020},
  doi = {10.1145/3366423.3380282},
}
Figure