Weakly-Supervised Questions for Zero-Shot Relation Extraction

Saeed Najafi, Alona Fyshe

Introduction

Relation Extraction (RE) is the task of identifying facts in text, typically represented as triplets like (Apple, founded_by, Steve Jobs). Traditional models are "closed-world," meaning they only recognize relations they were explicitly trained on. Zero-Shot Relation Extraction (ZRE) aims to find relations the model hasn't seen before, which is vital for scaling to real-world applications.

A popular strategy for ZRE is to convert it into a Question-Answering (QA) problem. For example, to find a "CEO," one might ask: "Who is the CEO of [Company]?" However, this creates a new bottleneck: humans must manually write "gold" question templates for every possible relation. This paper introduces a framework to automatically generate these questions using weak supervision.

Methodology

The authors treat the question as a latent variable—a hidden middle step between the known relation and the target answer. They utilize a dual-module system based on the T5 (Text-to-Text Transfer Transformer) architecture:

  1. Question Generator ($P_{\theta Q}$): Generates a question based on a relation description and a head entity.
  2. Answer Generator ($P_{\theta A}$): Takes the generated question and source text to identify the "tail entity" (the answer).
The proposed graphical model treats the question q as a latent variable connecting the relation r, head entity e_1, and context c to the target tail entity e_2.

Key Innovations

  • Marginal Maximum Likelihood (MML): Instead of training on "correct" questions, the model optimizes the probability of identifying the correct answer by summing over many possible generated questions.
  • Off-Policy Sampling: To prevent the model from generating ungrammatical "gibberish" that might act as a shortcut to the right answer, the authors use a fixed, pre-trained sampling module. This "grammar guardrail" ensures questions remain human-readable and semantically relevant.
  • Relation Descriptions: The system incorporates natural language descriptions from Wikidata to provide the question generator with richer context than simple keywords.

Key Results

The model was evaluated on major benchmarks including RE-QA, FewRel, and WikiZSL. The results demonstrate that a generative QA approach can match or exceed the performance of systems relying on human-written templates.

Performance comparison on the RE-QA dataset. The OffMML-G model significantly outperforms ZS-BERT and approaches the performance of models trained on human-written "Gold" questions.

On the RE-QA dataset, the model achieved an F1 score of 65.4, coming within 0.7 points of a system using human-written "gold" templates (66.1). Notably, it outperformed the previous state-of-the-art (ZS-BERT) by over 16 F1 points on tail entity extraction. Qualitative analysis showed the model successfully converted abstract relation IDs into clear questions, such as transforming a "collection" relation into: "The Vision of Saint Eustace is part of what collection?"

Conclusion and Future Work

This research proves that automated, weakly-supervised question generation is a viable and powerful alternative to manual templating for ZRE. While the training pipeline is complex and computationally more expensive than simple classification, the gains in generalization are significant. Future work will explore extending this framework to document-level extraction and utilizing larger language models to further bridge the gap with human-supervised systems.

Summary updated

BibTeX
@inproceedings{najafi2023weakly,
  author = {Saeed Najafi and Alona Fyshe},
  title = {{Weakly-Supervised Questions for Zero-Shot Relation Extraction}},
  booktitle = {EACL},
  year = {2023},
  doi = {10.18653/v1/2023.eacl-main.224},
}
Figure