Genre: generative multi-turn question answering with contrastive learning for entity–relation extraction

Lulu Wang, Kai Yu, Aishan Wumaier, Peng Zhang, Tuergen Yibulayin, Xi Wu, Jibing Gong, Maihemuti MaimaitiComplex 2024

Abstract

Extractive approaches have been the mainstream paradigm for identifying overlapping entity–relation extraction. However, limited by their inherently methodological flaws, which hardly deal with three issues: hierarchical dependent entity–relations, implicit entity–relations, and entity normalization. Recent advances have proposed an effective solution based on generative language models, which cast entity–relation extraction as a sequence-to-sequence text generation task. Inspired by the observation that humans learn by getting to the bottom of things, we propose a novel framework, namely GenRE, Generative multi-turn question answering with contrastive learning for entity–relation extraction. Specifically, a template-based question prompt generation first is designed to answer in different turns. We then formulate entity–relation extraction as a generative question answering task based on the general language model instead of span-based machine reading comprehension. Meanwhile, the contrastive learning strategy in fine-tuning is introduced to add negative samples to mitigate the exposure bias inherent in generative models. Our extensive experiments demonstrate that GenRE performs competitively on two public datasets and a custom dataset, highlighting its superiority in entity normalization and implicit entity–relation extraction.

Introduction

Extracting structured "triples" (Subject-Relation-Object) from unstructured text is a fundamental task in Natural Language Processing. While extractive models have long been the standard, they often fail when faced with the messiness of real-world data. The authors of "GenRE" identify three critical methodological flaws in traditional extractive approaches: hierarchical dependencies, implicit relations, and the lack of native entity normalization.

The Three Flaws of Extractive Models

In many domains, such as scholar profiling, relations are not simple flat structures. A "PhD" degree is inherently linked to a specific university and a specific timeframe, creating a nested hierarchy that standard models struggle to capture. Furthermore, many relations are implicit; for example, if a text states a person entered a university in 1964 and graduated "after five years," a model must perform temporal reasoning to infer the year 1969. Finally, extractive models are limited to "pointing" at text spans. They cannot easily translate "MIT" into its canonical form, "Massachusetts Institute of Technology," without a separate, complex entity-linking pipeline.

Complex entity-relation extraction involving hierarchical dependencies, implicit dates, and entity normalization.

The GenRE Approach

To address these issues, the researchers propose GenRE (Generative multi-turn RE). This framework reimagines entity-relation extraction as a conversational deep-dive rather than a simple labeling task. By moving away from span-based Machine Reading Comprehension (MRC) and adopting a fully generative approach using a General Language Model (GLM), GenRE can synthesize information and normalize entities during the decoding process.

The core of GenRE is a multi-turn question-answering process. Instead of attempting to extract all information in a single pass, the model asks a sequence of targeted questions. An initial turn might identify the primary entities, while subsequent turns use those answers to ask specific follow-up questions, such as "When did [Person] receive [Degree] from [University]?" This iterative process mimics human inquiry, allowing the model to maintain better semantic context for nested and complex relations.

The multi-turn question-answering process used by GenRE to extract structured information.

Technical Innovations: Contrastive Learning and Hallucination Control

Generative models often suffer from "exposure bias," where they become overly reliant on correct training sequences and fail to recover from minor errors. GenRE mitigates this by introducing a contrastive loss during fine-tuning. This forces the model to distinguish between true answers and "negative samples"—plausible but incorrect answers—within the same batch.

To prevent the model from hallucinating relations when none exist, the authors trained it to return an "unknown" string. This acts as a natural early-stop mechanism for the multi-turn process, ensuring the model remains grounded in the provided text.

Experimental Results

GenRE was evaluated on standard benchmarks like NYT and WebNLG, as well as a custom dataset, Profiling-Edu, constructed from the Aminer system. This custom dataset specifically tests the model's ability to handle hierarchical dependencies in academic profiles.

The results highlight GenRE's strengths:

  • Implicit Reasoning: On the Profiling-Edu dataset, GenRE achieved an F1-score of 80.4% for implicit relations, significantly outperforming the popular REBEL model (64.1%).
  • Normalization: In university normalization tasks, GenRE reached an F1 of 81.6%, proving more robust than extractive competitors.
  • Public Benchmarks: On the NYT dataset, GenRE achieved an F1 of 92.6%, matching or exceeding specialized joint-extraction models.

Conclusion

GenRE demonstrates that casting relation extraction as a generative, multi-turn dialogue is a powerful way to handle the complexities of real-world text. While the risk of error accumulation in multi-turn systems remains, the authors suggest that future integration with Reinforcement Learning could further enhance the model's resilience. By rewarding the accuracy of the final integrated knowledge structure, the framework could become even more adept at "getting to the bottom of things."

Summary updated

BibTeX
@inproceedings{wang2024genre,
  author = {Lulu Wang and Kai Yu and Aishan Wumaier and Peng Zhang and Tuergen Yibulayin and Xi Wu and Jibing Gong and Maihemuti Maimaiti},
  title = {{Genre: generative multi-turn question answering with contrastive learning for entity–relation extraction}},
  booktitle = {Complex},
  year = {2024},
  doi = {10.1007/s40747-023-01321-y},
}
Figure