arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.14634cs.CLcs.AIcs.LGq-fin.CP
收藏

用ChatGPT“砸破银行”:面向金融领域的少样本文本分类

Breaking the Bank with ChatGPT: Few-Shot Text Classification for Finance

Athens University of Economics and Business(雅典经济与商业大学)

Lefteris Loukas, Ilias Stogiannidis, Prodromos Malakasiotis, Stavros Vassos

AI总结:

本研究针对金融领域少样本文本分类,提出基于GPT-3.5/4的上下文学习方案,同时用SetFit微调掩码语言模型取得SOTA,验证了生成式模型的少样本优势及专家选样本的增益,为标签有限的金融文本分类提供实用方案。

摘要:

我们提出使用对话式GPT模型,基于Banking77数据集实现金融领域简便快速的少样本文本分类。我们的方法采用GPT-3.5和GPT-4的上下文学习,既降低了所需的技术门槛,也无需昂贵的GPU计算,同时能快速得到准确结果。此外,我们使用近期提出的对比学习技术SetFit,对其他预训练掩码语言模型进行微调,在全数据和少样本设置下均取得了当前最优(SOTA)结果。研究发现,即便使用更少的样本,调用GPT-3.5和GPT-4的效果也能优于经过微调的非生成式模型;但这类方案的订阅费用对小型组织而言可能偏高。最后我们还发现,对于给定任务,向生成式模型展示由人类专家挑选的代表性样本,其表现优于展示随机样本。我们的结论是:a) 所提方法为标签有限的数据集上的少样本任务提供了实用解决方案;b) 我们取得的当前最优结果可为该领域的后续研究提供启发。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑