arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.04027cs.CLq-fin.STq-fin.TR
收藏

基于检索增强大语言模型的金融情感分析增强方法

Enhancing Financial Sentiment Analysis via Retrieval Augmented Large Language Models

The University of Adelaide(阿德莱德大学);Columbia University(哥伦比亚大学);Brown University(布朗大学)

Boyu Zhang, Hongyang Yang, Tianyu Zhou, Ali Babar, Xiao-Yang Liu

AI总结:

针对大语言模型直接用于金融情感分析时预训练目标不匹配、金融文本缺上下文的问题,提出含指令微调模块和检索增强模块的框架,较传统模型及ChatGPT、LLaMA等准确率和F1值提升15%至48%。

摘要:

金融情感分析对资产估值和投资决策至关重要。然而,传统自然语言处理模型受限于参数量和训练数据集范围,其泛化能力与在该领域的有效性均受到制约。近年来,在大规模语料上预训练的大语言模型(LLMs)凭借出色的零样本能力,在各类自然语言处理任务中展现出优异性能。但直接将大语言模型应用于金融情感分析仍存在挑战:大语言模型的预训练目标与情感标签预测之间的差异会损害其预测性能。此外,金融新闻通常简洁明了,往往缺乏足够上下文,这会大幅降低大语言模型情感分析的可靠性。为应对这些挑战,我们提出一种面向金融情感分析的检索增强大语言模型框架。该框架包含一个指令微调大语言模型模块(确保大语言模型发挥情感标签预测器的作用),以及一个检索增强模块(从可靠外部来源检索额外上下文信息)。在与传统模型以及ChatGPT、LLaMA等大语言模型的基准对比测试中,我们的方法在准确率和F1值上实现了15%至48%的性能提升。

英文摘要:

Financial sentiment analysis is critical for valuation and investment decision-making. Traditional NLP models, however, are limited by their parameter size and the scope of their training datasets, which hampers their generalization capabilities and effectiveness in this field. Recently, Large Language Models (LLMs) pre-trained on extensive corpora have demonstrated superior performance across various NLP tasks due to their commendable zero-shot abilities. Yet, directly applying LLMs to financial sentiment analysis presents challenges: The discrepancy between the pre-training objective of LLMs and predicting the sentiment label can compromise their predictive performance. Furthermore, the succinct nature of financial news, often devoid of sufficient context, can significantly diminish the reliability of LLMs' sentiment analysis. To address these challenges, we introduce a retrieval-augmented LLMs framework for financial sentiment analysis. This framework includes an instruction-tuned LLMs module, which ensures LLMs behave as predictors of sentiment labels, and a retrieval-augmentation module which retrieves additional context from reliable external sources. Benchmarked against traditional models and LLMs like ChatGPT and LLaMA, our approach achieves 15\% to 48\% performance gain in accuracy and F1 score.

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

↑