LLM-OREF: An Open Relation Extraction Framework Based on Large Language Models

Huakang Tu, Liang Zhang, Yujie Lin, Xin Lin, Haibo Zhang, Long Zhang, Jinsong Su

Introduction

Traditional Relation Extraction (RE) systems are typically designed to operate within a closed-world assumption, where models are trained to identify a predefined set of relationships, such as "place of birth" or "employer." However, real-world information is inherently dynamic, with new relationships constantly emerging from evolving data streams. Open Relation Extraction (OpenRE) addresses this challenge by attempting to identify and categorize these novel relations without requiring exhaustive manual annotation for every new class.

Historically, OpenRE has relied heavily on clustering-based methods. These approaches group similar text instances together, but they ultimately require human intervention to assign meaningful labels to the resulting clusters—a process that is both slow and difficult to scale. While Large Language Models (LLMs) have shown remarkable capabilities in text understanding, research indicates they struggle with "zero-shot" discovery; they often fail to invent accurate labels for relations they haven't been explicitly shown. LLM-OREF is a novel framework designed to bridge this gap, automating the discovery and labeling process through a generative, self-correcting pipeline.

The LLM-OREF Framework

LLM-OREF moves away from traditional clustering in favor of a dual-module architecture built on a shared LLM backbone, fine-tuned via Low-Rank Adaptation (LoRA). The framework consists of two primary components:

  1. Relation Discoverer (RD): This module is designed to identify potential new relations by analyzing test instances alongside demonstrations of known relations. Rather than simply classifying, the RD learns the underlying semantic patterns of what constitutes a "relation," allowing it to propose labels for unseen categories.
  2. Relation Predictor (RP): The RP serves as a more robust classifier. When provided with a set of candidate relations, it is tasked with selecting the most appropriate one for a given instance.

To enhance the performance of the Discoverer, the authors employ Knowledge Distillation. During the training phase, the Predictor—which handles a simpler task than the Discoverer—acts as a "teacher." Its output distribution is used to guide the RD’s learning process, forcing the RD to mimic the Predictor's logic and better identify the semantics of unseen relations.

Three-Stage Self-Correcting Inference

One of the core innovations of LLM-OREF is its three-stage inference strategy, which mitigates the noise inherent in zero-shot discovery:

  • Stage 1: Discovery: The RD generates initial hypotheses for new relations across the entire test set.
  • Stage 2: Denoising: The RP acts as a quality controller, cross-validating the RD’s initial guesses. If the RP consistently agrees with a specific label across multiple trials, that instance is categorized as "high-reliability."
  • Stage 3: Prediction: These high-reliability instances are then used as few-shot demonstrations. The RP re-processes the dataset using these refined examples, significantly improving the accuracy and consistency of the final predictions.

Experimental Evaluation

The framework was rigorously tested against three major benchmarks: FewRel (balanced), TACRED (highly imbalanced), and FewRel-LT (long-tail distribution).

Key Results

LLM-OREF demonstrated superior performance over both vanilla LLMs and specialized OpenRE baselines across multiple metrics, including F1 score, Adjusted Rand Index (ARI), and V-measure:

  • State-of-the-Art Performance: On the challenging TACRED dataset, LLM-OREF achieved a Classification F1 score of 0.704. This outperforms the previous state-of-the-art model, ASCORE (0.699), notably achieving these results without the human-in-the-loop labeling that ASCORE requires.
  • Handling Class Imbalance: The framework showed significant gains on the FewRel-LT dataset. This suggests that LLM-OREF is particularly well-suited for real-world scenarios where a few relations are common, but many others are rare and difficult to detect.
  • Model Agnostic Nature: The authors successfully implemented the framework using both LLaMA-2-7B and Qwen2.5-14B, indicating that the strategy is effective across different model architectures and scales.

Discussion and Future Work

LLM-OREF represents a significant step toward fully automated OpenRE. By providing natural language labels for discovered relations, it makes the output immediately actionable for tasks like knowledge graph population. However, several areas for improvement remain:

  • Prompt Optimization: The current model uses a fixed number of examples in its prompts. Future iterations could benefit from dynamically adjusting the number of demonstrations based on the complexity of the input text.
  • Data Quality: The framework assumes that the "known" relations used for initial training are perfectly labeled. In practice, training data often contains noise, which may hinder the model's ability to distinguish between known and novel patterns.
  • Efficiency: The multi-pass inference strategy (Discovery, Denoising, and Prediction) is computationally more intensive than single-pass clustering methods, presenting a potential bottleneck for real-time applications.

In conclusion, LLM-OREF demonstrates that by combining generative discovery with discriminative prediction and self-correction, LLMs can effectively navigate the complexities of open-world relation extraction without the need for human intervention.

Summary updated

BibTeX
@misc{tu2025llm,
  author = {Huakang Tu and Liang Zhang and Yujie Lin and Xin Lin and Haibo Zhang and Long Zhang and Jinsong Su},
  title = {{LLM-OREF: An Open Relation Extraction Framework Based on Large Language Models}},
  year = {2025},
  eprint = {2509.15089},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.15089},
}
Figure