# Revisiting Large Language Models as Zero-shot Relation Extractors

Source: [Revisiting Large Language Models as Zero-shot Relation Extractors](<https://www.sota2.com/research/paper/68fa713f1e209131cea500f5>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T02:01:40.608Z

Authors: Guozheng Li, Peng Wang, Wenjun Ke

Published: 2023-10-08T06:17:39.000Z

## Abstract

Relation extraction (RE) consistently involves a certain degree of labeled or unlabeled data even if under zero-shot setting. Recent studies have shown that large language models (LLMs) transfer well to new tasks out-of-the-box simply given a natural language prompt, which provides the possibility of extracting relations from text without any data and parameter tuning. This work focuses on the study of exploring LLMs, such as ChatGPT, as zero-shot relation extractors. On the one hand, we analyze the drawbacks of existing RE prompts and attempt to incorporate recent prompt techniques such as chain-of-thought (CoT) to improve zero-shot RE. We propose the summarize-and-ask (\\textsc{SumAsk}) prompting, a simple prompt recursively using LLMs to transform RE inputs to the effective question answering (QA) format. On the other hand, we conduct comprehensive experiments on various benchmarks and settings to investigate the capabilities of LLMs on zero-shot RE. Specifically, we have the following findings: (i) \\textsc{SumAsk} consistently and significantly improves LLMs performance on different model sizes, benchmarks and settings; (ii) Zero-shot prompting with ChatGPT achieves competitive or superior results compared with zero-shot and fully supervised methods; (iii) LLMs deliver promising performance in extracting overlapping relations; (iv) The performance varies greatly regarding different relations. Different from small language models, LLMs are effective in handling challenge none-of-the-above (NoTA) relation.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Relation Extraction on NYT29 One-shot](<https://www.sota2.com/research/sota/relation-extraction-on-nyt29-one-shot.md>): Relation Extraction; NYT29 One-shot; Precision: 0.1096.

- [Relation Extraction on WIKIDATA one-shot (out-of-distribution)](<https://www.sota2.com/research/sota/relation-extraction-on-wikidata-one-shot-out-of-distribution.md>): Relation Extraction; WIKIDATA one-shot (out-of-distribution); Precision: 1.48.

- [Relation Extraction on TACRED One-shot](<https://www.sota2.com/research/sota/relation-extraction-on-tacred-one-shot.md>): Relation Extraction; TACRED One-shot; Precision: 4.44.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2310.05028>)

[PDF](<https://arxiv.org/pdf/2310.05028.pdf>)
