Skip to main content
QUICK REVIEW

[Paper Review] How to Unleash the Power of Large Language Models for Few-shot Relation Extraction?

Xin Xu, Yuqi Zhu|arXiv (Cornell University)|May 2, 2023
Topic ModelingComputer Science5 citations
TL;DR

This paper investigates few-shot relation extraction using large language models (LLMs), proposing two strategies: task-related instructions and schema-constrained data generation with GPT-3.5. It demonstrates that in-context learning achieves performance comparable to prompt learning, while data generation significantly boosts results, setting new state-of-the-art F1 scores on four benchmark datasets, with gains up to 67.8% on SciERC.

ABSTRACT

Scaling language models have revolutionized widespread NLP tasks, yet little comprehensively explored few-shot relation extraction with large language models. In this paper, we investigate principal methodologies, in-context learning and data generation, for few-shot relation extraction via GPT-3.5 through exhaustive experiments. To enhance few-shot performance, we further propose task-related instructions and schema-constrained data generation. We observe that in-context learning can achieve performance on par with previous prompt learning approaches, and data generation with the large language model can boost previous solutions to obtain new state-of-the-art few-shot results on four widely-studied relation extraction datasets. We hope our work can inspire future research for the capabilities of large language models in few-shot relation extraction. Code is available in https://github.com/zjunlp/DeepKE/tree/main/example/llm.

Motivation & Objective

  • To investigate the potential of large language models (LLMs) like GPT-3.5 for few-shot relation extraction, a task underexplored despite LLMs' success in other NLP areas.
  • To address the challenge of low performance in few-shot relation extraction due to complex schemas, noisy data, and large label spaces.
  • To improve few-shot relation extraction by proposing two effective strategies: task-related instructions and schema-constrained data generation using LLMs.
  • To empirically validate the effectiveness of in-context learning and data generation on widely used relation extraction benchmarks.
  • To provide insights and a foundation for future research on leveraging LLMs in low-resource, schema-rich NLP tasks.

Proposed method

  • Employ in-context learning with GPT-3.5 by providing few-shot demonstrations to guide the model in predicting relations between entities.
  • Introduce task-related instructions to clarify the role of entities and relations, improving model alignment with the relation extraction task.
  • Design schema-constrained data generation to produce high-quality, schema-compliant training examples using the LLM itself.
  • Use the generated data to fine-tune existing prompt learning methods, such as KnowPrompt and TYP Marker, to improve few-shot performance.
  • Conduct exhaustive experiments on four benchmark datasets: TACRED, TACREV, RE-TACRED, and SciERC, under few-shot settings with K=8 and K=16.
  • Evaluate performance using micro-F1, comparing baseline methods, in-context learning, and data generation strategies.

Experimental results

Research questions

  • RQ1Can in-context learning with LLMs achieve competitive performance in few-shot relation extraction compared to traditional prompt learning?
  • RQ2How does adding task-related instructions improve the performance of LLMs in few-shot relation extraction?
  • RQ3To what extent can schema-constrained data generation from LLMs enhance few-shot relation extraction beyond in-context learning?
  • RQ4What are the limitations of LLMs in few-shot relation extraction, and how do they affect performance on long-distance or ambiguous relations?
  • RQ5Does data generated by LLMs outperform or complement human-annotated gold data in low-resource relation extraction settings?

Key findings

  • In-context learning with GPT-3.5 achieves micro-F1 scores comparable to previous prompt learning methods, with 31.9% F1 on TACRED (K=8) and 49.9% on RE-TACRED (K=8).
  • Incorporating task-related instructions improves performance slightly, achieving 31.0% F1 on TACRED (K=8) and 51.8% on RE-TACRED (K=8).
  • Schema-constrained data generation significantly boosts performance, achieving 64.3% F1 on RE-TACRED (K=8) and 67.8% on SciERC (K=16), setting new state-of-the-art results.
  • Human evaluation confirms that 78% of generated data are correctly labeled and of high quality, with higher accuracy on TACRED (85%) and TACREV (82.5%).
  • On TACRED and TACREV, generated data outperform gold data, likely due to the presence of noisy annotations in the original datasets.
  • LLMs struggle with long-distance entity relations, ambiguous relation labels, and semantically similar entity mentions, indicating limitations in reasoning and attention.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.