When Phrases Meet Probabilities: Enabling Open Relation Extraction with Cooperating Large Language Models

Jiaxin Wang, Lingling Zhang, Wee Sun Lee, Yujie Zhong, Liwei Kang, Jun LiuACL 2024

Abstract

Current open relation extraction (OpenRE) methods rely on clustering high-dimensional, anisotropic embeddings from pre-trained language models. This approach suffers from an objective mismatch between pre-training and clustering, and fails to provide human-readable relation labels directly. We propose oreLLM, a framework that shifts the paradigm from geometric distance in vector space to semantic similarity in probability space. By employing two cooperating Large Language Models (LLMs)—one for relational phrase extraction and another for probabilistic similarity estimation—oreLLM achieves state-of-the-art performance, improving clustering accuracy by up to 3.13% on benchmark datasets.

Introduction

Relation Extraction (RE) is fundamental for knowledge graph construction and information retrieval. While closed-set RE operates on a fixed schema, Open Relation Extraction (OpenRE) seeks to discover novel relations from unlabeled text. Traditional OpenRE pipelines typically utilize BERT-based embeddings followed by distance-based clustering (e.g., K-means).

However, these methods face significant hurdles. First, the "embedding gap": BERT embeddings are often bunched together (anisotropic), making Euclidean distance a poor proxy for semantic relation. Second, there is a mismatch between masked language modeling objectives and the needs of downstream clustering. Finally, these methods do not inherently produce human-readable relation names.

Comparison between traditional vector-based similarity (a) and the proposed phrase-based probabilistic similarity (b).

Methodology: The oreLLM Framework

The oreLLM framework addresses these issues by treating OpenRE as a collaborative task between two specialized LLMs.

1. Relational Phrase Extraction ($M_{ext}$)

Instead of abstract vectors, oreLLM uses an API-based LLM (e.g., GPT-4) to extract explicit relational phrases. Given a sentence and a pair of entities, $M_{ext}$ generates a concise phrase (e.g., "language of film") that summarizes the relationship. This leverages the LLM's implicit knowledge to identify relations even when they are not explicitly stated in the text.

2. Probabilistic Similarity Estimation ($M_{pro}$)

The core innovation of oreLLM is replacing geometric distance with conditional probability. An open-source LLM (GPT2-XL) acts as the similarity judge. It calculates the probability that one relational phrase ($w_j$) would naturally follow another ($w_i$) within a specific prompt template.

The LLM-based Probability Estimator maps relational phrases into a probability space to determine semantic similarity.

This approach aligns the similarity measurement with the generative nature of LLMs, bridging the gap between representation and reasoning. The similarity score is derived from the next-token prediction probabilities of the model.

3. The Cooperative Cycle

The framework operates in an iterative loop to refine its discoveries:

  • Initialization: Initial clusters are formed using density-based methods on the extracted phrases.
  • Rethink & Discover: For data points with low similarity to existing centers, the Phrase Extractor is prompted to re-analyze the relation or suggest a new category.
  • Fine-tuning: The Probability Estimator is fine-tuned on high-confidence clusters to improve its discriminative power for the specific domain.

Experimental Evaluation

The model was evaluated on the FewRel and TACRED datasets. oreLLM consistently outperformed baselines like RoCORE and CLUSTERLLM, showing an improvement of 1.4% to 3.13% in clustering accuracy. Notably, the framework proved robust in scenarios where the number of relations ($K$) was unknown, a common challenge in real-world OpenRE.

Ablation studies highlighted the necessity of the cooperative loop. Removing the fine-tuning step resulted in a performance drop of up to 30%, while the "Rethink" strategy provided a crucial 2-3% boost by correcting initial extraction errors.

Conclusion

By moving from "geometry" to "probability," oreLLM offers a more natural and effective way to leverage LLMs for Open Relation Extraction. While computational costs and "probability decay" in long phrases remain challenges, the framework's ability to generate human-readable relations with high accuracy marks a significant step forward in automated knowledge discovery.

Summary updated

BibTeX
@inproceedings{wang2024when,
  author = {Jiaxin Wang and Lingling Zhang and Wee Sun Lee and Yujie Zhong and Liwei Kang and Jun Liu},
  title = {{When Phrases Meet Probabilities: Enabling Open Relation Extraction with Cooperating Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=fsJqqiXkbJ},
}
Figure