GPT-FinRE: In-context Learning for Financial Relation Extraction using Large Language Models

Pawan Kumar Rajpoot, Ankur Parikh
6/30/2023
cs.CL

No official code found. Best implementation: Upaya07/GPT-FinRE (3 stars, MIT, last commit 2024-02-09).

Abstract

Relation extraction (RE) is a crucial task in natural language processing (NLP) that aims to identify and classify relationships between entities mentioned in text. In the financial domain, relation extraction plays a vital role in extracting valuable information from financial documents, such as news articles, earnings reports, and company filings. This paper describes our solution to relation extraction on one such dataset REFinD. The dataset was released along with shared task as a part of the Fourth Workshop on Knowledge Discovery from Unstructured Data in Financial Services, co-located with SIGIR 2023. In this paper, we employed OpenAI models under the framework of in-context learning (ICL). We utilized two retrieval strategies to find top K relevant in-context learning demonstrations / examples from training data for a given test example. The first retrieval mechanism, we employed, is a learning-free dense retriever and the other system is a learning-based retriever. We were able to achieve 3rd rank overall. Our best F1-score is 0.718.

View on arXivView PDF

Code Implementations(1)

Upaya07/GPT-FinRECommunity100%
MIT

code for paper "GPT-FinRE: In-context learning for financial relation extraction using large language models" accepted at FinNLP @ IJCNLP-AACL-2023

31Shell, PythonFeb 9, 20242 years agoMIT

Similar Papers

Cite this paper

@article{rajpoot2023gptfinre,
  title  = {GPT-FinRE: In-context Learning for Financial Relation Extraction using Large Language Models},
  author = {Pawan Kumar Rajpoot and Ankur Parikh},
  year   = {2023},
  eprint = {2306.17519},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.17519v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.17519.svg)](https://codeofpaper.com/paper/2306.17519)

Discussion