Abstract
Relation Extraction (RE) is a fundamental task in information extraction that identifies semantic relationships between entities. While supervised models dominate this field, they require substantial labeled data. This paper explores the potential of Large Language Models (LLMs) in a zero-shot setting. We introduce SUMASK (Summarize-and-Ask), a novel prompting framework that decomposes the RE task into three intuitive stages: summarization, question generation, and question answering. Our results demonstrate that SUMASK significantly enhances LLM performance, enabling models like ChatGPT to outperform state-of-the-art supervised systems on standard benchmarks.
Introduction
Traditional Relation Extraction (RE) systems are often specialized models trained on massive human-annotated datasets. While effective, these models are rigid and expensive to develop for new domains. Large Language Models (LLMs) offer a promising alternative through zero-shot learning. However, "Vanilla" prompting—directly asking an LLM to classify a relation—often yields poor results. This is because RE requires a complex alignment between text semantics and abstract relation labels, a hurdle that single-step prompts struggle to clear.
The SUMASK Framework
To address the limitations of direct prompting, we propose SUMASK. This framework breaks down the reasoning process into three manageable steps, effectively implementing a Chain-of-Thought approach tailored for RE.
- Summarize: The model first generates a natural language summary of the relationship between the subject and object based on the provided context. This forces the model to extract semantics before attempting to match a label.
- Ask: For each candidate relation, the model generates a specific yes/no question (e.g., "Is the relationship between X and Y defined by their place of birth?").
- Answer: Finally, the model answers the generated question by referencing its own summary.
To improve reliability, the system incorporates Uncertainty Estimation. By generating multiple summaries and questions, the framework measures the consistency of the model's outputs using a Sentence-BERT encoder. The relation with the highest consistency (lowest uncertainty) is selected as the final prediction.
Experimental Setup
We evaluated SUMASK across six major benchmarks, including simple RE (FewRel, Wiki-ZSL), industrial standards (TACRED, TACREV, Re-TACRED), and overlapping RE (NYT). These datasets test the model's ability to handle unseen relations, "None-of-the-Above" (NoTA) cases, and multiple relations per sentence.
Key Results and Insights
Our experiments reveal several critical advantages of the SUMASK approach:
Performance Gains
SUMASK consistently outperforms Vanilla prompting, with F1-score improvements ranging from 5.2% to 48.3%. Notably, on the TACRED benchmark, ChatGPT equipped with SUMASK achieved a micro-F1 of 79.6, surpassing the fully supervised DeepStruct model by 2.8%.
Handling Semantic Sensitivity
LLMs are sensitive to the semantic proximity of relations. As shown in the performance plots, models generally perform better when relations are "Dissimilar" compared to "Similar" or "Random" settings. SUMASK helps mitigate this by forcing the model to articulate the specific semantics of the text before matching it to a label, which is particularly effective for smaller open-source models like GPT-J and BLOOM.
The "NoTA" Advantage
One of the most significant findings is the LLM's proficiency in identifying "None-of-the-Above" cases. Supervised models often struggle with the NoTA category due to its high variance, but the generative nature of LLMs allows them to recognize when a context does not fit any predefined schema, significantly boosting real-world performance.
Conclusion
The SUMASK framework demonstrates that the perceived weakness of LLMs in Relation Extraction is largely a prompting issue rather than a lack of capability. By decomposing the task and leveraging the model's summarization strengths, we can achieve state-of-the-art zero-shot performance. Future work will focus on reducing the computational overhead of multi-step prompting and exploring few-shot extensions to further refine accuracy in specialized domains.
Summary updated