Skip to main content
QUICK 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 Science被引用 8
一句话总结

该论文提出面向开源FinLLMs 的指令微调框架,覆盖任务特定、多任务和零-shot 设置,并以金融数据集对六个基础模型进行基准测试。

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).

研究动机与目标

  • 为金融领域的开源 FinLLMs 引入指令微调范式。
  • 提供从基本任务到多任务与零-shot 情景的低成本端到端基准测试方案。
  • 分析用于金融任务的多种开源基础模型(Llama2、Falcon、BLOOM、MPT、ChatGLM2、Qwen)的表现。
  • 通过共享数据准备、指令和训练工作流,促进开放性与可复现性。

提出的方法

  • 描述三阶段的指令微调范式:任务特定微调、 多任务微调和零-shot 微调。
  • 对 SA、HC、NER 和 RE 使用任务特定指令;将 NER/RE 重新表述为分类变体(NER(CLS)、RE(CLS))以实现对齐。
  • 对六个基础模型(Llama2-7B、Falcon-7B、BLOOM-7.1B、MPT-7B、ChatGLM2-6B、Qwen-7B)应用 LoRA,指定超参数(秩 rank=8,alpha=32)。
  • 构建并标准化带有 Instruction/Input/Answer 的提示;通过在零-shot 提示中加入 Options 部分进行增强;每个任务使用十个唯一提示。
  • 在三个阶段进行训练,任务不同的 epoch 设置(SA/HC/RE:8 轮;NER:50 轮;多任务:4 轮;零-shot:1 轮);用基于 SA 的检查点进行验证。
  • 提供成本核算(GPU 设置,总计 90 小时,约 $302.4)以及为提高效率的 FP16 训练。

实验结果

研究问题

  • RQ1指令微调后,不同开源 FinLLMs 在金融特定任务上的表现如何?
  • RQ2多任务指令微调对 SA、HC、NER、RE 等任务的性能有何影响?
  • RQ3零-shot 微调能否泛化到未见过的金融任务,提示如何改写以降低幻觉?
  • RQ4在金融分类与信息提取任务之间,哪些基础模型在多任务场景下兼具多样性与性能?
  • RQ5在实际金融应用中,开源FinLLMs 的数据、提示和训练成本等实际考量是什么?

主要发现

  • Llama2 在所有任务的综合平均排名中表现最佳(平均排名 2.0)。
  • BLOOM 在信息提取任务(NER、RE)上表现出色,但在 SA/HC 分类任务上表现较弱。
  • MPT 在 SA 上达到顶尖水平,但在 NER 和 RE 上落后;Qwen 显示在各任务上趋于均衡的多样性。
  • 多任务微调的效果参差不齐:对大多数模型显著提升 RE;而某些模型在分类任务上可能下降。
  • 零-shot 实验显示 ChatGLM2 与 Falcon 的泛化能力较强,而 BLOOM 与 Qwen 在某些分类任务上存在困难。
  • 零-shot 结果表明任务重构与自适应学习可缓解幻觉并提升对未见任务的对齐程度。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。