AlphaFin: Benchmarking Financial Analysis with Retrieval-Augmented Stock-Chain Framework

Xiang Li, Zhenyu Li, Chen Shi, Yong Xu, Qing Du +3 more
3/19/2024
cs.CL

No official code found. Best implementation: AlphaFin-proj/AlphaFin (1,028 stars, MIT, last commit 2026-04-03).

Abstract

The task of financial analysis primarily encompasses two key areas: stock trend prediction and the corresponding financial question answering. Currently, machine learning and deep learning algorithms (ML&DL) have been widely applied for stock trend predictions, leading to significant progress. However, these methods fail to provide reasons for predictions, lacking interpretability and reasoning processes. Also, they can not integrate textual information such as financial news or reports. Meanwhile, large language models (LLMs) have remarkable textual understanding and generation ability. But due to the scarcity of financial training datasets and limited integration with real-time knowledge, LLMs still suffer from hallucinations and are unable to keep up with the latest information. To tackle these challenges, we first release AlphaFin datasets, combining traditional research datasets, real-time financial data, and handwritten chain-of-thought (CoT) data. It has a positive impact on training LLMs for completing financial analysis. We then use AlphaFin datasets to benchmark a state-of-the-art method, called Stock-Chain, for effectively tackling the financial analysis task, which integrates retrieval-augmented generation (RAG) techniques. Extensive experiments are conducted to demonstrate the effectiveness of our framework on financial analysis.

View on arXivView PDF

Code Implementations(1)

MIT
1,02890Shell, PythonMar 17, 20246 months agoMIT

Similar Papers

Cite this paper

@article{li2024alphafin,
  title  = {AlphaFin: Benchmarking Financial Analysis with Retrieval-Augmented Stock-Chain Framework},
  author = {Xiang Li and Zhenyu Li and Chen Shi and Yong Xu and Qing Du and Mingkui Tan and Jun Huang and Wei Lin},
  year   = {2024},
  eprint = {2403.12582},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.12582v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.12582.svg)](https://codeofpaper.com/paper/2403.12582)

Discussion