Skip to main content
QUICK REVIEW

[Paper Review] FinGPT: Instruction Tuning Benchmark for Open-Source Large Language Models in Financial Datasets

Neng Wang, Hongyang Yang|arXiv (Cornell University)|Oct 7, 2023
Topic ModelingComputer Science8 citations
TL;DR

This paper presents an Instruction Tuning framework for open-source LLMs in finance, benchmarking six base models (Llama2, Falcon, BLOOM, MPT, ChatGLM2, Qwen) across task-specific, multi-task, and zero-shot settings with financial datasets.

ABSTRACT

In the swiftly expanding domain of Natural Language Processing (NLP), the potential of GPT-based models for the financial sector is increasingly evident. However, the integration of these models with financial datasets presents challenges, notably in determining their adeptness and relevance. This paper introduces a distinctive approach anchored in the Instruction Tuning paradigm for open-source large language models, specifically adapted for financial contexts. Through this methodology, we capitalize on the interoperability of open-source models, ensuring a seamless and transparent integration. We begin by explaining the Instruction Tuning paradigm, highlighting its effectiveness for immediate integration. The paper presents a benchmarking scheme designed for end-to-end training and testing, employing a cost-effective progression. Firstly, we assess basic competencies and fundamental tasks, such as Named Entity Recognition (NER) and sentiment analysis to enhance specialization. Next, we delve into a comprehensive model, executing multi-task operations by amalgamating all instructional tunings to examine versatility. Finally, we explore the zero-shot capabilities by earmarking unseen tasks and incorporating novel datasets to understand adaptability in uncharted terrains. Such a paradigm fortifies the principles of openness and reproducibility, laying a robust foundation for future investigations in open-source financial large language models (FinLLMs).

Motivation & Objective

  • Introduce an Instruction Tuning paradigm tailored for open-source FinLLMs in the financial domain.
  • Provide a cost-effective, end-to-end benchmarking scheme from basic tasks to multi-task and zero-shot scenarios.
  • Analyze diverse open-source base models (Llama2, Falcon, BLOOM, MPT, ChatGLM2, Qwen) for financial tasks.
  • Promote openness and reproducibility by sharing data preparation, instructions, and training workflows.

Proposed method

  • Describe the three-phase Instruction Tuning paradigm: Task-Specific Tuning, Multi-Task Tuning, and Zero-Shot Tuning.
  • Use task-specific instructions for SA, HC, NER, and RE; reform NER/RE into classification variants (NER(CLS), RE(CLS)) for alignment.
  • Apply LoRA to six base models (Llama2-7B, Falcon-7B, BLOOM-7.1B, MPT-7B, ChatGLM2-6B, Qwen-7B) with specified hyperparameters (rank 8, alpha 32).
  • Construct and standardize prompts with an Instruction/Input/Answer format; augment zero-shot prompts with an Options section; use ten unique prompts per task.
  • Train in three phases with varying epochs per task (SA/HC/RE: 8 epochs; NER: 50 epochs; Multi-task: 4 epochs; Zero-shot: 1 epoch); validate with SA-based checkpoints.
  • Provide cost accounting (GPU setup, 90 hours total, ~$302.4) and FP16 training for efficiency.

Experimental results

Research questions

  • RQ1How do different open-source FinLLMs perform on finance-specific tasks after instruction tuning?
  • RQ2What is the impact of multi-task instruction tuning on task performance across SA, HC, NER, and RE?
  • RQ3Can zero-shot tuning generalize to unseen financial tasks, and how can prompts be reformulated to reduce hallucination?
  • RQ4Which base models best balance versatility and performance across classification and information extraction tasks in finance?
  • RQ5What are the practical considerations (data, prompts, training costs) for open-source FinLLMs in real-world finance applications?

Key findings

  • Llama2 achieves the best overall average ranking across tasks (average ranking 2.0).
  • BLOOM excels in information extraction tasks (NER, RE) but underperforms in SA/HC classification tasks.
  • MPT attains top SA performance but lags in NER and RE; Qwen shows balanced versatility across tasks.
  • Multi-task tuning yields mixed effects: improves RE substantially for most models, while classification tasks may decline for some models.
  • Zero-shot experiments reveal strong generalization for ChatGLM2 and Falcon, while BLOOM and Qwen struggle with certain classifications.
  • Zero-shot results indicate task reformulation and adaptive learning can mitigate hallucinations and improve alignment across unseen tasks.

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.