Mastering the Task of Open Information Extraction with Large Language Models and Consistent Reasoning Environment

Ji Qi, Kaixuan Ji, Xiaozhi Wang, Jifan Yu, Kaisheng Zeng, Lei Hou, Juanzi Li, Bin XuarXiv 2023 · DOI

Introduction

Open Information Extraction (OIE) is the task of extracting structured knowledge—typically in the form of subject-predicate-object tuples—from unstructured text without relying on a predefined ontology. While traditionally addressed by training dedicated supervised models, the rise of Large Language Models (LLMs) like ChatGPT has opened new avenues for solving OIE through few-shot in-context learning.

However, LLMs often face a "distributional discrepancy" challenge: a mismatch between the linguistic patterns the model naturally generates and the specific syntactic structures of test queries. When few-shot demonstrations are selected randomly, the LLM may struggle to generalize to the unique structure of a target sentence. This paper proposes a "consistent reasoning environment" that dynamically selects demonstrations to bridge this gap.

Methodology: Consistent Reasoning Environment

The authors introduce a pipeline designed to strategically select in-context demonstrations that minimize the syntactic or content discrepancy between a test sample and the LLM's natural output.

The proposed pipeline for dynamic demonstration selection based on discrepancy estimation.

The methodology consists of three primary stages:

  1. Black-Box Probing: Since internal model weights are often inaccessible, the authors prompt the LLM to paraphrase a source sentence. The distance between the original sentence and the paraphrase (measured via Hierarchically Weighted Syntactic distance) serves as a proxy for the model's "comfort" with that specific syntax.
  2. Correlation Validation: The study confirms a strong correlation: when the discrepancy is low (meaning the LLM's natural output aligns with the test sentence structure), extraction performance is significantly higher.
  3. Dynamic Demonstration Selection: For any given query, the system searches a candidate pool of labeled examples and selects few-shot demonstrations with the lowest measured discrepancy. This ensures the prompt is syntactically or contextually tailored to the target sentence.

Experimental Setup

The proposed method was evaluated across several standard benchmarks:

  • OIE: Tested on the CaRB benchmark, using the ROBUST dataset as the candidate pool for demonstrations.
  • Relation Extraction (RE): Evaluated on TACRED.
  • Event Extraction (EE): Evaluated on ACE05.

Results and Discussion

The results indicate that structural alignment in prompts is a critical factor for LLM performance in information extraction.

Open Information Extraction

On the CaRB benchmark, the proposed method achieved a breakthrough. Using ChatGPT with just 6 dynamically selected demonstrations (6-shot), the system reached an F1 score of 55.3. This performance marginally outperforms the previous fully supervised state-of-the-art model, OpenIE6, which scored 55.2.

Performance comparison of various OIE models and ChatGPT with varying numbers of shots (n) on the CaRB benchmark.

Relation and Event Extraction

The approach also yielded significant improvements in more subjective, ontology-bound tasks. For Relation Extraction (TACRED), the method improved ChatGPT's performance by approximately 6% over random selection, reaching a 67.6 Micro F1 score. For Event Extraction (ACE05), it provided a 7.4% boost, resulting in a 28.2 F1 score. Despite these gains, LLMs still lag behind dedicated supervised models in these specific domains (which score ~75.6 and ~75.8 F1, respectively), suggesting that subjective tasks require further advancements in model understanding.

Conclusion

This research demonstrates that matching sentence structure in few-shot prompts is a highly effective strategy for boosting LLM performance in OIE. By using paraphrasing as a model-agnostic probing tool, the authors successfully created a consistent reasoning environment that allows LLMs to rival supervised state-of-the-art models in objective extraction tasks. Future work will focus on refining discrepancy metrics and closing the performance gap in more subjective, ontology-specific extraction tasks.

Summary updated

BibTeX
@misc{qi2023mastering,
  author = {Ji Qi and Kaixuan Ji and Xiaozhi Wang and Jifan Yu and Kaisheng Zeng and Lei Hou and Juanzi Li and Bin Xu},
  title = {{Mastering the Task of Open Information Extraction with Large Language Models and Consistent Reasoning Environment}},
  year = {2023},
  eprint = {2310.10590},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.10590},
}
Figure