arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.03659cs.LGcs.CLq-fin.ST
收藏

利用自反思大型语言模型学习生成可解释的股票预测

Learning to Generate Explainable Stock Predictions using Self-Reflective Large Language Models

National University of Singapore(新加坡国立大学);Eastspring Investments(东盛投资)

Kelvin J. L. Koa, Yunshan Ma, Ritchie Ng, Tat-Seng Chua

AI总结:

本文提出 SEP 框架,结合自反思智能体与 PPO,使 LLM 无需人工解释标注即可自主生成可解释股票预测,并在股票分类和投资组合构建任务中验证有效性。

摘要:

解释股票预测对于传统的非生成式深度学习模型而言通常是一项困难任务,其解释仅限于可视化重要文本上的注意力权重。如今,大型语言模型(LLM)为这一问题提供了解决方案,因为它们具备为自身决策过程生成人类可读解释的已知能力。然而,股票预测任务对 LLM 而言仍具挑战性,因为它需要具备权衡混乱的社交文本对股价的不同影响的能力。随着解释组件的引入,问题变得愈发困难,该组件要求 LLM 用语言说明为何某些因素比其他因素更重要。另一方面,为这类任务微调 LLM,需要针对训练集中的每一次股票走势提供由专家标注的解释样本,这成本高昂且难以规模化。为解决这些问题,我们提出了 Summarize-Explain-Predict(SEP)框架,该框架利用自反思智能体和近端策略优化(PPO),让 LLM 以完全自主的方式自学如何生成可解释的股票预测。反思智能体通过自我推理学习如何解释过往股票走势,而 PPO 训练器训练模型从输入文本中生成最可能的解释。PPO 训练器的训练样本同样是反思过程中生成的回复,从而消除了对人工标注者的需求。利用我们的 SEP 框架,我们微调了一个 LLM,在股票分类任务的预测准确率和 Matthews 相关系数上,其表现优于传统深度学习方法和 LLM 方法。为证明该框架的泛化能力,我们进一步在投资组合构建任务上对其进行测试,并通过多项投资组合指标证明了其有效性。

英文摘要:

Explaining stock predictions is generally a difficult task for traditional non-generative deep learning models, where explanations are limited to visualizing the attention weights on important texts. Today, Large Language Models (LLMs) present a solution to this problem, given their known capabilities to generate human-readable explanations for their decision-making process. However, the task of stock prediction remains challenging for LLMs, as it requires the ability to weigh the varying impacts of chaotic social texts on stock prices. The problem gets progressively harder with the introduction of the explanation component, which requires LLMs to explain verbally why certain factors are more important than the others. On the other hand, to fine-tune LLMs for such a task, one would need expert-annotated samples of explanation for every stock movement in the training set, which is expensive and impractical to scale. To tackle these issues, we propose our Summarize-Explain-Predict (SEP) framework, which utilizes a self-reflective agent and Proximal Policy Optimization (PPO) to let a LLM teach itself how to generate explainable stock predictions in a fully autonomous manner. The reflective agent learns how to explain past stock movements through self-reasoning, while the PPO trainer trains the model to generate the most likely explanations from input texts. The training samples for the PPO trainer are also the responses generated during the reflective process, which eliminates the need for human annotators. Using our SEP framework, we fine-tune a LLM that can outperform both traditional deep-learning and LLM methods in prediction accuracy and Matthews correlation coefficient for the stock classification task. To justify the generalization capability of our framework, we further test it on the portfolio construction task, and demonstrate its effectiveness through various portfolio metrics.

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

↑