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

FinLlama:面向算法交易应用的金融情感分类

FinLlama: Financial Sentiment Classification for Algorithmic Trading Applications

Imperial College London(帝国理工学院);MIT(麻省理工学院)

Thanos Konstantinidis, Giorgos Iacovides, Mingxue Xu, Tony G. Constantinides, Danilo Mandic

AI总结:

针对金融新闻情感分析中词典方法缺乏上下文和LLM非专用的问题,提出基于Llama 2 7B微调并融合神经网络决策的FinLlama框架,实现情感分类与强度量化,提升投资组合回报与韧性。

摘要:

在线金融新闻来源众多,它们影响市场走势和交易者的决策。这凸显了在拥有适当的算法交易技术之外,还需要进行准确的情感分析,以便做出更明智的交易决策。基于标准词典的情感方法已展现出其在辅助金融决策方面的能力。然而,已知这些方法存在与上下文敏感性和词序相关的问题。大型语言模型(LLMs)也可用于此场景,但它们并非金融专用,且往往需要大量的计算资源。为构建金融专用的LLM框架,我们提出了一种基于Llama 2 7B基础模型的新方法,以利用其生成特性和全面的语言处理能力。这是通过对Llama2 7B模型在少量有监督的金融情感分析数据上进行微调来实现的,从而联合处理金融词汇和上下文的复杂性,并进一步为其配备基于神经网络的决策机制。这种生成器-分类器方案,称为FinLlama,不仅训练用于分类情感效价,还量化其强度,从而为交易者提供对金融新闻文章的细致洞察。此外,通过LoRA实现参数高效微调,优化了可训练参数,从而在不牺牲准确性的前提下,最大限度地减少了计算和内存需求。仿真结果表明,所提出的FinLlama能够为增强投资组合管理决策和提高市场回报提供框架。这些结果证实了FinLlama能够构建高回报投资组合,即使在波动时期和不可预测的市场事件中也能表现出更强的韧性。

英文摘要:

There are multiple sources of financial news online which influence market movements and trader's decisions. This highlights the need for accurate sentiment analysis, in addition to having appropriate algorithmic trading techniques, to arrive at better informed trading decisions. Standard lexicon based sentiment approaches have demonstrated their power in aiding financial decisions. However, they are known to suffer from issues related to context sensitivity and word ordering. Large Language Models (LLMs) can also be used in this context, but they are not finance-specific and tend to require significant computational resources. To facilitate a finance specific LLM framework, we introduce a novel approach based on the Llama 2 7B foundational model, in order to benefit from its generative nature and comprehensive language manipulation. This is achieved by fine-tuning the Llama2 7B model on a small portion of supervised financial sentiment analysis data, so as to jointly handle the complexities of financial lexicon and context, and further equipping it with a neural network based decision mechanism. Such a generator-classifier scheme, referred to as FinLlama, is trained not only to classify the sentiment valence but also quantify its strength, thus offering traders a nuanced insight into financial news articles. Complementing this, the implementation of parameter-efficient fine-tuning through LoRA optimises trainable parameters, thus minimising computational and memory requirements, without sacrificing accuracy. Simulation results demonstrate the ability of the proposed FinLlama to provide a framework for enhanced portfolio management decisions and increased market returns. These results underpin the ability of FinLlama to construct high-return portfolios which exhibit enhanced resilience, even during volatile periods and unpredictable market events.

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

↑