Bootstrapping Relation Extractors using Syntactic Search by Examples

Matan Eyal, Asaf Amrami, Hillel Taub-Tabib, Yoav Goldberg

Abstract

Relation Extraction (RE) is a fundamental task in NLP, yet it is often bottlenecked by the high cost of manual annotation and the limitations of distant supervision. This paper introduces a novel method for bootstrapping RE models using "syntactic search by example." By utilizing a syntactic search engine to identify sentences with similar grammatical structures to a small set of seed examples, researchers can generate high-quality training data with minimal effort. The authors further enhance this process by integrating Natural Language Generation (NLG) to diversify search queries. Experimental results on the TACRED dataset demonstrate that this approach, using as few as three queries, can outperform models trained on hundreds of manual labels.

Introduction

Identifying relationships between entities in text—such as “Paul founded Microsoft”—is critical for building knowledge graphs and information retrieval systems. However, positive instances of specific relations are often sparse in natural text, requiring human annotators to sift through dozens of irrelevant sentences for every useful example. While distant supervision offers an automated alternative, it relies on existing Knowledge Bases that may not cover niche domains. This research proposes a "middle way" that allows non-experts to build performant extractors in hours using only a handful of examples.

Methodology

The proposed framework centers on the use of a Syntactic Search Engine (specifically the SPIKE system) to bootstrap training sets.

Syntactic Search by Example

Instead of writing complex regular expressions or code, a user provides a seed sentence (e.g., "Paul founded Microsoft"). The system converts this into a syntactic graph (dependency tree) and searches a massive corpus for sentences with the same structure. These matches are then treated as "weakly labeled" positive training data.

Workflow for syntactic search by example.

NLG Augmentation and Trigger Expansion

To increase the diversity of the training set, the authors employ two primary strategies:

  1. Trigger Expansion: Using word embeddings to find synonyms for the "trigger" verb (e.g., changing "founded" to "established" or "started") to find more varied examples.
  2. NLG-based Search: Using a generative model (GPT-2) to suggest various ways a relation might be phrased. These generated sentences are then used as new queries for the syntactic search engine, combining the creative diversity of AI generation with the factual grounding of real-world text.
NLG-augmented syntactic search workflow.

Key Results

The method was evaluated on the TACRED and DocRED benchmarks. A standout result showed that a model trained on data from just 3 syntactic queries (F1: 0.443) outperformed a baseline trained on 220 manual labels (F1: 0.266) and approached the performance of 1,100 manual labels. The "Search + Generation" approach yielded the highest performance (0.491 F1 on TACRED), proving that combining retrieval with generative AI is more powerful than using either alone.

Discussion and Conclusion

A key insight of this work is that deep learning models like RoBERTa are capable of "generalizing away" from rigid syntactic patterns, identifying a much broader range of cases than the original search queries. This method democratizes RE model building, as it requires no specialized knowledge of dependency parsing or linguistics. Future work will address more sophisticated negative sampling and the application of this technique to low-resource languages where high-quality parsers may be less available.

Summary updated

BibTeX
@inproceedings{eyal2021bootstrapping,
  author = {Matan Eyal and Asaf Amrami and Hillel Taub-Tabib and Yoav Goldberg},
  title = {{Bootstrapping Relation Extractors using Syntactic Search by Examples}},
  booktitle = {EACL},
  year = {2021},
  doi = {10.18653/v1/2021.eacl-main.128},
}
Figure