用市场反馈动态优化金融情感分析,提升印度股市预测准确率。
Adaptive Financial Sentiment Analysis for NIFTY 50 via Instruction-Tuned LLMs , RAG and Reinforcement Learning Approaches
- 用指令微调LLaMA 3.2 3B模型结合多源信息检索增强预测
- 通过次日涨跌结果调整信息源权重,实现自适应优化
- 引入强化学习使系统长期适应市场变化,适合量化交易研究
金融情感分析对投资决策、风险评估和股价趋势预测至关重要。现有方法未考虑股价或市场反馈对情感判断的影响。本文提出一种自适应框架,将大语言模型(LLMs)与真实股市反馈结合,用于印度股市情感分类。基于SentiFin数据集,采用指令学习微调LLaMA 3.2 3B模型。通过检索增强生成(RAG)管道,依据句向量余弦相似度动态选取多源上下文信息。引入反馈驱动模块,通过对比预测情感与实际次日股票收益,调整信息源可靠性,实现系统对市场行为的迭代适应。为泛化时间序列上的自适应机制,采用近端策略优化(PPO)训练强化学习代理,学习最优信息源加权策略。在2024至2025年NIFTY 50新闻标题上的实验表明,该系统显著优于基线模型和静态检索方法,在分类准确率、F1分数和市场一致性方面均有提升。结果验证了指令微调大模型结合动态反馈与强化学习在构建鲁棒、市场感知型金融情感模型方面的潜力。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。