Introduction
Traditional Relation Extraction (RE) systems are typically limited to a pre-defined set of categories. In contrast, Open Relation Extraction (OpenRE) seeks to discover novel relations from unlabeled text without prior definitions. However, existing OpenRE methods often require extensive labeled data for pre-training and lack interpretability, operating as "black box" models in high-dimensional vector spaces.
MatchPrompt addresses these challenges by framing relation discovery as a prompt-based clustering task. By utilizing the latent knowledge within pre-trained language models (PLMs) and a novel semantic consistency matching strategy, MatchPrompt achieves state-of-the-art performance with high data efficiency and inherent interpretability.
The MatchPrompt Framework
The MatchPrompt framework introduces a prompt-based learning paradigm to OpenRE. Instead of relying solely on entity embeddings, it wraps sentences in a template (e.g., [Entity A] [MASK] [Entity B]) and utilizes the [MASK] token to represent the underlying relation.
The architecture consists of three core components:
- Knowledge Transfer via Prompting: The model is pre-trained on a small set of labeled relations. It learns to align the
[MASK]token representation with the embedding of a natural language relation description (e.g., "sibling means the subject has the object as their brother or sister"), facilitating the transfer of relational knowledge. - Semantic Consistency Guided (SCG) Clustering: To mitigate noise during unsupervised clustering, MatchPrompt employs data augmentation. A pseudo-label is deemed "reliable" only if both the original sentence and its augmented version (with randomly masked words) are assigned to the same cluster by the K-Means algorithm.
- Semantic Consistency Regularization: The model is trained to ensure that relational representations remain invariant to minor textual changes, preventing semantic drift and ensuring the model captures underlying relations rather than surface-level keywords.
Experimental Evaluation
MatchPrompt was evaluated on two benchmark datasets:
- FewRel: A large-scale few-shot dataset where 64 relations were used for pre-training and 16 for open-domain discovery.
- TACRED: A news-based dataset using 31 relations for the source domain and 10 for the open domain.
Results and Analysis
MatchPrompt established new state-of-the-art (SOTA) records on both benchmarks. On the FewRel dataset, it achieved a $B^3$ $F_1$ score of 80.3, surpassing previous models like RoCORE.
Data Efficiency
A key strength of MatchPrompt is its remarkable efficiency. On the TACRED dataset, MatchPrompt using only 10% of the source data (87.4 $F_1$) outperformed the previous SOTA model that utilized 100% of the source data (86.0 $F_1$). This demonstrates the effectiveness of the prompt-based knowledge transfer approach.
Interpretability
By leveraging the [MASK] token, MatchPrompt can predict actual words to fill the gap between entities. This allows the model to provide human-readable keywords (e.g., "married," "spouse") for discovered clusters, making the results inherently interpretable compared to traditional vector-based clustering.
Conclusion
MatchPrompt represents a significant step forward in Open Relation Extraction. By combining prompt-based learning with semantic consistency regularization, it overcomes the data-hunger and interpretability issues of previous methods. Future work may explore adaptive hyperparameter tuning and the application of larger-scale language models to further enhance performance.
Summary updated