Skip to main content
QUICK REVIEW

[论文解读] Breaking the Bank with ChatGPT: Few-Shot Text Classification for Finance

Lefteris Loukas, Ilias Stogiannidis|arXiv (Cornell University)|Aug 28, 2023
Topic ModelingComputer Science被引用 18
一句话总结

该论文在 Banking77 上使用 in-context learning 与 GPT-3.5/GPT-4 以及 SetFit 的 MPNet 变体进行微调的少样本金融文本分类,显示生成式大模型在少样本场景下可超越微调模型;经人工筛选的样本进一步提升性能,同时注意成本考虑。

ABSTRACT

We propose the use of conversational GPT models for easy and quick few-shot text classification in the financial domain using the Banking77 dataset. Our approach involves in-context learning with GPT-3.5 and GPT-4, which minimizes the technical expertise required and eliminates the need for expensive GPU computing while yielding quick and accurate results. Additionally, we fine-tune other pre-trained, masked language models with SetFit, a recent contrastive learning technique, to achieve state-of-the-art results both in full-data and few-shot settings. Our findings show that querying GPT-3.5 and GPT-4 can outperform fine-tuned, non-generative models even with fewer examples. However, subscription fees associated with these solutions may be considered costly for small organizations. Lastly, we find that generative models perform better on the given task when shown representative samples selected by a human expert rather than when shown random ones. We conclude that a) our proposed methods offer a practical solution for few-shot tasks in datasets with limited label availability, and b) our state-of-the-art results can inspire future work in the area.

研究动机与目标

  • 证明使用 Banking77 的对话式大型语言模型(GPT-3.5/GPT-4)进行少样本金融意图分类。
  • 展示在有限数据条件下,信息上下文学习可以优于微调的非生成模型。
  • 评估以 SetFit 为基础的 MPNet 变体在全数据与少样本设置下的最新技术水平。
  • 评估包括成本和 LLM 基方法的令牌限制等实际考虑因素。
  • 为未来在少样本金融 NLP 任务中的工作提供指南。

提出的方法

  • 使用 GPT-3.5 和 GPT-4 进行少样本金融文本分类的 in-context learning,针对 Banking77。
  • 通过 SetFit 对 MPNet 基变体(S-MPNet-v2 和 P-MPNet-v2)进行微调,以适用于少样本和全数据设置。
  • 人工专家标注以筛选有代表性的样本(每类前 3 名,共 10 个样本)以提升少样本训练效果。
  • 提示工程实验,比较 3-shot GPT-4 的先前对话历史与系统上下文提示。
  • 使用全数据和少样本设置下的 micro-F1 和 macro-F1 指标进行评估。

实验结果

研究问题

  • RQ1在极少样本的情况下,GPT-3.5 和 GPT-4 的信息上下文学习是否能在 Banking77 上实现有竞争力的性能?
  • RQ2在人类筛选的代表性样本是否优于随机样本在提示 LLM 进行少样本金融意图分类方面的表现?
  • RQ3SetFit 与 MPNet 变体是否能够在全数据和 10-shot 设置下实现state-of-the-art?
  • RQ4使用生成式 LLM 进行少样本金融 NLP 任务的成本和实际权衡是什么?

主要发现

  • GPT-3.5 和 GPT-4 的信息上下文学习在极少样本的情况下就能实现与微调、非生成模型相当或更优的结果。
  • 对于 GPT-3.5 和 GPT-4,人工筛选的代表性样本在信息上下文学习中的表现优于随机样本。
  • SetFit 与 MPNet-v2 变体在全数据和 10-shot 设置下达到行业领先的结果。
  • 提示策略(系统上下文 vs 先前对话历史)对 GPT-4 的表现有影响,系统上下文显示出强劲的结果。
  • Genative LLM 方法在订阅和令牌成本方面的考量可能对小型组织构成障碍。

阅读本论文

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

在 Nubint 中阅读本论文

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