arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.01368cs.IRq-fin.CP
收藏

结合金融数据与新闻文章利用大语言模型进行股价走势预测

Combining Financial Data and News Articles for Stock Price Movement Prediction Using Large Language Models

Ali Elahi, Fatemeh Taghvaei

AI总结:

本研究结合表格型金融数据与新闻文本,利用检索增强的大语言模型构建分类器预测股价走势,在20家高交易量公司数据集上取得了58.5%-59.1%的加权F1值。

摘要:

预测金融市场与股价走势需要分析公司业绩、历史价格走势、行业特定事件,以及社交媒体、新闻报道等人为因素的影响。我们假设财务报告(如利润表、资产负债表、现金流量表)、历史价格数据和近期新闻文章能够共同代表上述因素。我们将表格形式的金融数据与文本新闻文章相结合,采用预训练大语言模型(LLMs)预测市场走势。近期大语言模型相关研究已证明其能够同时执行表格和文本分类任务,因此我们将其作为多模态数据分类的核心模型。我们利用检索增强技术,检索新闻文章的相关片段并将其附加到对应公司的财务指标上,在零样本、2样本和4样本设置下对大语言模型进行提示。我们的数据集包含从不同来源收集的新闻文章、历史股价,以及股票市场中不同行业交易量最高的20家公司的财务报告数据。我们使用了最新发布的语言模型构建基于大语言模型的分类器,包括GPT-3、GPT-4以及LLaMA-2、LLaMA-3模型。我们提出了一种基于大语言模型的分类器,能够结合表格(结构化)和文本(非结构化)数据执行分类任务。通过使用该模型,我们在数据集上对特定股票的价格走势进行预测,在3个月和6个月周期下的加权F1值分别为58.5%和59.1%,马修斯相关系数均为0.175。

英文摘要:

Predicting financial markets and stock price movements requires analyzing a company's performance, historic price movements, industry-specific events alongside the influence of human factors such as social media and press coverage. We assume that financial reports (such as income statements, balance sheets, and cash flow statements), historical price data, and recent news articles can collectively represent aforementioned factors. We combine financial data in tabular format with textual news articles and employ pre-trained Large Language Models (LLMs) to predict market movements. Recent research in LLMs has demonstrated that they are able to perform both tabular and text classification tasks, making them our primary model to classify the multi-modal data. We utilize retrieval augmentation techniques to retrieve and attach relevant chunks of news articles to financial metrics related to a company and prompt the LLMs in zero, two, and four-shot settings. Our dataset contains news articles collected from different sources, historic stock price, and financial report data for 20 companies with the highest trading volume across different industries in the stock market. We utilized recently released language models for our LLM-based classifier, including GPT- 3 and 4, and LLaMA- 2 and 3 models. We introduce an LLM-based classifier capable of performing classification tasks using combination of tabular (structured) and textual (unstructured) data. By using this model, we predicted the movement of a given stock's price in our dataset with a weighted F1-score of 58.5% and 59.1% and Matthews Correlation Coefficient of 0.175 for both 3-month and 6-month periods.

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

↑