arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.14926cs.CE
收藏

在金融情感分析中将LLM与人类指令和股票市场反馈对齐

Aligning LLMs with Human Instructions and Stock Market Feedback in Financial Sentiment Analysis

Zijie Zhao, Roy E. Welsch

AI总结:

本文提出一种融合指令微调与市场反馈的自适应RAG框架来微调7B至70B的LLMs,用于金融情感分析,在准确率、F1分数及投资组合夏普比率上均优于现有方法。

摘要:

金融情感分析对交易和投资决策至关重要。本研究引入了一种面向大语言模型(LLMs)的自适应检索增强框架,该框架通过指令微调(Instruction Tuning)与人类指令对齐,并融合市场反馈以动态调整检索增强生成(RAG)模块中不同知识源的权重。在LLaMA 2等基础模型之上,我们微调了一系列规模从7B到70B的LLMs,并通过指令微调和RAG进行增强,同时进一步利用直接反馈和基于强化学习(RL)的优化方法对RAG的源权重进行改进。通过广泛评估,我们证明所提LLMs的情感输出能更准确地反映文本数据的内在情感,在准确率和F1分数上相比现有最先进模型和领先的对话式AI系统提升了1%至6%。此外,提取的情感更能指示股票价格变动的方向。在此基础上,我们成功构建了投资组合,在牛市市场中其夏普比率比标普500基准高出3.61%。这些投资组合在熊市中也表现出韧性,与标普500通常经历的回报损失相比,回报损失减少了5倍。

英文摘要:

Financial sentiment analysis is crucial for trading and investment decision-making. This study introduces an adaptive retrieval augmented framework for Large Language Models (LLMs) that aligns with human instructions through Instruction Tuning and incorporates market feedback to dynamically adjust weights across various knowledge sources within the Retrieval-Augmented Generation (RAG) module. Building upon foundational models like LLaMA 2, we fine-tune a series of LLMs ranging from 7B to 70B in size, enriched with Instruction Tuning and RAG, and further optimized through direct feedback and Reinforcement Learning (RL)-based refinement methods applied to the source weights of RAG.Through extensive evaluation, we demonstrate that the sentiment outputs from our LLMs more accurately mirror the intrinsic sentiment of textual data, showcasing a 1% to 6% boost in accuracy and F1 score over existing state-of-the-art models and leading conversational AI systems. Moreover, the sentiments extracted are more indicative of the directions in stock price movements. On top of that, we successfully construct portfolios that yield a 3.61% higher Sharpe ratio compared to the S&P 500 baseline in bullish markets. These portfolios also demonstrate resilience in bearish markets, with a 5x reduction in return losses compared to those typically experienced by the S&P 500.

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

↑