Skip to main content
QUICK REVIEW

[Paper Review] Temporal Data Meets LLM -- Explainable Financial Time Series Forecasting

Xinli Yu, Zheng Chen|arXiv (Cornell University)|Jun 19, 2023
Stock Market Forecasting MethodsDecision Sciences47 citations
TL;DR

The paper presents PALR, a framework that fine-tunes a 7B LLaMa-based model to generate personalized recommendations by combining user history with retrieval-grounded candidates, evaluated on two sequential recommendation datasets.

ABSTRACT

This paper presents a novel study on harnessing Large Language Models' (LLMs) outstanding knowledge and reasoning abilities for explainable financial time series forecasting. The application of machine learning models to financial time series comes with several challenges, including the difficulty in cross-sequence reasoning and inference, the hurdle of incorporating multi-modal signals from historical news, financial knowledge graphs, etc., and the issue of interpreting and explaining the model results. In this paper, we focus on NASDAQ-100 stocks, making use of publicly accessible historical stock price data, company metadata, and historical economic/financial news. We conduct experiments to illustrate the potential of LLMs in offering a unified solution to the aforementioned challenges. Our experiments include trying zero-shot/few-shot inference with GPT-4 and instruction-based fine-tuning with a public LLM model Open LLaMA. We demonstrate our approach outperforms a few baselines, including the widely applied classic ARMA-GARCH model and a gradient-boosting tree model. Through the performance comparison results and a few examples, we find LLMs can make a well-thought decision by reasoning over information from both textual news and price time series and extracting insights, leveraging cross-sequence information, and utilizing the inherent knowledge embedded within the LLM. Additionally, we show that a publicly available LLM such as Open-LLaMA, after fine-tuning, can comprehend the instruction to generate explainable forecasts and achieve reasonable performance, albeit relatively inferior in comparison to GPT-4.

Motivation & Objective

  • Motivate integrating user interaction history with large language models (LLMs) to improve recommendations.
  • Propose a multi-step PALR framework including user profile generation, candidate retrieval, and item ranking.
  • Demonstrate the effectiveness of instruction-based fine-tuning (PALR_v1 and PALR_v2) on public datasets.
  • Show that retrieval-grounded prompting and LLM reasoning can outperform traditional baselines in sequential recommendation.

Proposed method

  • Convert user interactions into natural language prompts to generate user profiles via an LLM.
  • Use a retrieval module to pre-filter candidates from the item pool based on the user profile.
  • Fine-tune a 7B LLaMa model with instruction-based tasks (Recommend and Recommend_Retrieval).
  • Train PALR_v1 to predict future items from past history; extend to PALR_v2 by incorporating a retrieval-aware objective.
  • Evaluate under a leave-one-out protocol using HR@10 and NDCG@10 on two datasets (Amazon Beauty and MovieLens-1M).
  • Show framework is retrieval-layer agnostic and improves ranking over SASRec, BERT4Rec, LightGCN baselines.

Experimental results

Research questions

  • RQ1Can an instruction-tuned 7B LLM effectively perform personalized sequential recommendations when supplied with user history and a grounded candidate pool?
  • RQ2Does adding a retrieval-grounded objective (Recommend_Retrieval) significantly improve ranking quality over a pure Recommend setup?
  • RQ3How does PALR compare to strong sequential baselines (SASRec, Caser, GRU4Rec) on standard datasets?
  • RQ4Is the PALR approach robust across different datasets and item domains?

Key findings

  • PALR_v2 significantly outperforms baselines on both datasets in HR@10 and NDCG@10.
  • PALR_v2 achieves HR@10 of 0.0721 and NDCG@10 of 0.0446 on Amazon Beauty, outperforming SASRec and other models.
  • PALR_v2 achieves HR@10 of 0.2110 and NDCG@10 of 0.1276 on MovieLens-1M, outperforming all baselines including SASRec.
  • Fine-tuning with retrieval-aware instructions (PALR_v2) yields substantial gains over the non-retrieval PALR_v1.
  • The framework is retrieval-agnostic and can work with various retrieval methods, yet retrieval improves performance significantly.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.