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

通过指令调优LLMs、RAG和强化学习方法实现NIFTY 50的自适应金融情绪分析

Adaptive Financial Sentiment Analysis for NIFTY 50 via Instruction-Tuned LLMs , RAG and Reinforcement Learning Approaches

National Institute of Technology Karnataka(印度卡纳塔克国家理工学院);Gayatri Vidya Parishad College of Engineering(迦雅利维达帕希拉工程学院)

Chaithra, Kamesh Kadimisetty, Biju R Mohan

AI总结:

本文提出结合指令调优LLMs、RAG和强化学习的方法,提升NIFTY 50金融情绪分析的准确性和市场适应性。

摘要:

金融情绪分析在指导投资决策、评估市场风险和预测股票价格趋势中起着至关重要的作用。现有金融情绪分析研究未考虑股价或市场反馈对情绪分析的影响。本文提出了一种自适应框架,整合大型语言模型(LLMs)与现实中的股票市场反馈,以提高印度股市环境下的情绪分类效果。所提出的方法通过在SentiFin数据集上基于指令的学习微调LLaMA 3.2 3B模型。为了增强情绪预测,采用了一种检索增强生成(RAG)管道,该管道根据句子嵌入的余弦相似度动态选择多源上下文信息。此外,引入了一个反馈驱动模块,通过比较预测情绪与实际第二天股票回报来调整源的可靠性,使系统能够迭代适应市场行为。为了将这种自适应机制推广到时间序列数据,采用基于近端策略优化(PPO)训练的强化学习代理。PPO代理通过情绪-回报对齐的累积奖励信号学习优化源加权策略。在2024至2025年收集的NIFTY 50新闻标题上的实验结果表明,所提出的系统在分类准确率、F1分数和市场对齐性方面显著优于基线模型和静态检索方法。结果验证了将指令调优LLMs与动态反馈和强化学习结合用于稳健、市场感知的金融情绪建模的潜力。

英文摘要:

Financial sentiment analysis plays a crucial role in informing investment decisions, assessing market risk, and predicting stock price trends. Existing works in financial sentiment analysis have not considered the impact of stock prices or market feedback on sentiment analysis. In this paper, we propose an adaptive framework that integrates large language models (LLMs) with real-world stock market feedback to improve sentiment classification in the context of the Indian stock market. The proposed methodology fine-tunes the LLaMA 3.2 3B model using instruction-based learning on the SentiFin dataset. To enhance sentiment predictions, a retrieval-augmented generation (RAG) pipeline is employed that dynamically selects multi-source contextual information based on the cosine similarity of the sentence embeddings. Furthermore, a feedback-driven module is introduced that adjusts the reliability of the source by comparing predicted sentiment with actual next-day stock returns, allowing the system to iteratively adapt to market behavior. To generalize this adaptive mechanism across temporal data, a reinforcement learning agent trained using proximal policy optimization (PPO) is incorporated. The PPO agent learns to optimize source weighting policies based on cumulative reward signals from sentiment-return alignment. Experimental results on NIFTY 50 news headlines collected from 2024 to 2025 demonstrate that the proposed system significantly improves classification accuracy, F1-score, and market alignment over baseline models and static retrieval methods. The results validate the potential of combining instruction-tuned LLMs with dynamic feedback and reinforcement learning for robust, market-aware financial sentiment modeling.

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

↑