All benchmarks

  Peer-reviewed conference paper

A fine-tuned Luke-base beat GPT-4 at classifying relations in SEC filings

Made by Xianzhi Li and six co-authors

EMNLP 2023 Industry Track

The result

  • Quality

    Macro F1 on REFinD relation extraction (4,300 test examples). Small model: Luke-base (fine-tuned). Large model: GPT-4 (8k), 10 examples in the prompt.

    56.30%vs 46.87%

    Ahead by 9.43 points

    Luke-base, fine-tuned56.30%
    GPT-4, 10-shot46.87%

    Macro F1, REFinD relations · higher is better

The story

Company filings state many facts in prose: who works for whom, which company acquired which, whose revenue a figure is. Pulling those links out is relation extraction, which the authors call a foundational component of knowledge graphs, question answering and search in finance.

In 2023, researchers at Queen’s University and J.P. Morgan AI Research tested ChatGPT and GPT-4 on eight financial datasets. On one of them, REFinD, each example is a sentence from an SEC filing with two marked entities, and the answer is one of 22 relation types.

Data

REFinD

28,676 examples: 20,070 train, 4,306 dev, 4,300 test

Training 20,070Validation 4,306Test 4,300

Sentences from SEC 10-X filings of 2016-2017, built mainly by J.P. Morgan researchers (Kaur et al., SIGIR 2023)

22 relation types among 8 entity-pair types; released for non-commercial use

Two ways to read a filing

Small model

Luke-base (fine-tuned on REFinD)

not stated (base-size LUKE encoder) · Studio Ousia (LUKE)

Fine-tuned on REFinD’s training split with entity markers and a linear classifier on top (setup from the REFinD dataset paper)

Base
LUKE base (Yamada et al., 2020), loaded from Hugging Face; repository not named

Large model

GPT-4 (8k)

Size not disclosed · OpenAI

Used as released through OpenAI’s API, prompted with the sentence, both entities and their types, the 22 relation types and 10 worked examples

Base
OpenAI GPT-4, the version current on 7 July 2023

Training

Method
Per the REFinD dataset paper: fine-tuning with entity markers and a linear classifier, cross-entropy loss, Adam
Time
5 epochs at learning rate 2e-5, batch 32; wall time not reported

Not reported: hardware and cost.

On the 4,300 test examples, the fine-tuned Luke-base scored 56.3 macro F1. GPT-4 scored 46.87 with ten worked examples and 42.29 with none. The paper does not say whether Luke-base was re-run; the REFinD dataset paper reports the same 56.3, averaged over five seeds.

Evaluation

4,300 test items

Test set
REFinD test split
Metric
Macro F1
How it was compared
Same test split and metric for both. GPT-4 got instructions, the 22 relation types and 10 examples; its temperature is not stated, and the paper does not say whether Luke-base was re-run.

Where GPT-4 came out ahead

The result flips on numerical questions. On FinQA, GPT-4 with chain-of-thought reached 78.03% accuracy against 68.90% for the fine-tuned FinQANet. The authors conclude that fine-tuning still leads on structured tasks such as entity and relation extraction.

All the numbers

Show all numbersHide all numbersEvery model · Cost, latency and energy · 4 more results

Every model on the headline test

Cost, latency and energy, as reported

Cost
Not reported
Latency
Not reported
Energy
Not reported

More from the source

  • REFinD macro F1, other prompts: GPT-4 zero-shot 42.29, ChatGPT 10-shot 29.53

    Table 7

  • Gold-news headline classification, weighted F1: fine-tuned BERT vs GPT-4 five-shot (BloombergGPT 82.20)

    Small model 95.36Large model 86

    Table 5

  • Financial NER (FIN3), entity F1: CRF trained on FIN5 vs GPT-4 20-shot (BloombergGPT 60.82; CRF trained on CoNLL 17.20)

    Small model 82.7Large model 56.71

    CRF is a classic statistical model, not a language model; the NER test set has 98 samples (Table 1).

    Table 6

  • Where GPT-4 wins or ties

    FinQA accuracyGPT-4 with chain-of-thought 78.03 vs fine-tuned FinQANet 68.90
    Financial PhraseBank (100% agreement) F1GPT-4 five-shot 0.97 vs FinBert 0.95
    FiQA sentiment weighted F1GPT-4 five-shot 88.11 vs RoBERTa-large 87.09
    TweetFinSent weighted F1GPT-4 five-shot 72.12 vs RoBERTa-Twitter 71.96

    Tables 2, 3, 4, 8

Worth knowing

  • GPT-4 snapshot from mid-2023; newer models were not tested.
  • Where the fine-tuned baseline numbers come from (re-run or quoted) is not stated for Luke-base, BERT and CRF.
  • The NER test set is small (98 samples) and its winner is a CRF, not a language model.
  • No cost, latency or energy figures.
1 more caveat
  • Fine-tuned models learned from each training set; GPT-4 saw at most 10 (REFinD) or 20 (NER) examples.

Weights on Hugging Face

Base model on Hugging Face

Base model, verified on Hugging Face 03 Oct 2026. The exact fine-tuned REFinD checkpoint is not identified in the paper.

Sources

  1. Li et al., “Are ChatGPT and GPT-4 General-Purpose Solvers for Financial Text Analytics? A Study on Several Typical Tasks”, EMNLP 2023 Industry Track
  2. Same paper, PDF (ACL Anthology)
  3. arXiv preprint 2305.05862
  4. EMNLP 2023 Industry Track proceedings (6-10 Dec 2023), pp. 408-422. arXiv v1 10 May 2023 (2305.05862). GPT models were the versions current on 7 July 2023.
2 more sources behind this page
  1. arXiv 2305.05862v2
  2. arXiv 2305.18322v1
Share this benchmark

Drawing the image…

Post text