Mamba在股票预测中超越Reformer:基于十大LLM的情感分析
Mamba Outpaces Reformer in Stock Prediction with Sentiments from Top Ten LLMs
AI总结:
本研究提出结合十大LLM情感分数与分钟级股价的预测框架,构建时间对齐数据集训练Reformer和Mamba模型,发现Mamba速度更快且预测精度更优,验证了LLM语义分析与高效时序建模结合提升实时金融预测的潜力。
摘要:
由于市场波动性高、新闻引发的变动以及金融时间序列的非线性特性,短期股市预测难度极大。本研究提出一种新型框架,利用十大不同大语言模型(LLM)生成的语义情感分数结合分钟级日内股价数据,提升分钟级预测精度。我们系统构建了2025年4月4日至5月2日期间AAPL新闻文章与苹果公司(AAPL)1分钟股价的时间对齐数据集。情感分析通过DeepSeek-V3、GPT系列变体、LLaMA、Claude、Gemini、Qwen和Mistral模型的API实现。每篇文章均获得全部十个LLM的情感分数,这些分数被缩放至[0, 1]区间,并与价格以及RSI、ROC、布林带宽度等技术指标相结合。我们分别在该数据集上训练了Reformer和Mamba两种当前最优模型,以每个LLM生成的情感分数作为输入。超参数通过Optuna进行优化,并采用3天评估期开展评估。Reformer的评估指标为均方误差(MSE),值得注意的是,在测试的10个LLM中,Mamba不仅运行速度更快,且在每个LLM对应的任务上表现均优于Reformer。Mamba搭配LLaMA 3.3--70B时表现最佳,最低误差达0.137。尽管Reformer能够捕捉数据中更广泛的趋势,但该模型似乎会过度平滑LLM捕捉到的突变。本研究凸显了将基于LLM的语义分析与高效时序建模相结合以提升实时金融预测的潜力。
英文摘要:
The stock market is extremely difficult to predict in the short term due to high market volatility, changes caused by news, and the non-linear nature of the financial time series. This research proposes a novel framework for improving minute-level prediction accuracy using semantic sentiment scores from top ten different large language models (LLMs) combined with minute interval intraday stock price data. We systematically constructed a time-aligned dataset of AAPL news articles and 1-minute Apple Inc. (AAPL) stock prices for the dates of April 4 to May 2, 2025. The sentiment analysis was achieved using the DeepSeek-V3, GPT variants, LLaMA, Claude, Gemini, Qwen, and Mistral models through their APIs. Each article obtained sentiment scores from all ten LLMs, which were scaled to a [0, 1] range and combined with prices and technical indicators like RSI, ROC, and Bollinger Band Width. Two state-of-the-art such as Reformer and Mamba were trained separately on the dataset using the sentiment scores produced by each LLM as input. Hyper parameters were optimized by means of Optuna and were evaluated through a 3-day evaluation period. Reformer had mean squared error (MSE) or the evaluation metrics, and it should be noted that Mamba performed not only faster but also better than Reformer for every LLM across the 10 LLMs tested. Mamba performed best with LLaMA 3.3--70B, with the lowest error of 0.137. While Reformer could capture broader trends within the data, the model appeared to over smooth sudden changes by the LLMs. This study highlights the potential of integrating LLM-based semantic analysis paired with efficient temporal modeling to enhance real-time financial forecasting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。