SOTAVerified

Mamba Meets Financial Markets: A Graph-Mamba Approach for Stock Price Prediction

2024-09-26Code Available2· sign in to hype

Ali Mehrabian, Ehsan Hoseinzade, Mahdi Mazloum, Xiaohong Chen

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

Stock markets play an important role in the global economy, where accurate stock price predictions can lead to significant financial returns. While existing transformer-based models have outperformed long short-term memory networks and convolutional neural networks in financial time series prediction, their high computational complexity and memory requirements limit their practicality for real-time trading and long-sequence data processing. To address these challenges, we propose SAMBA, an innovative framework for stock return prediction that builds on the Mamba architecture and integrates graph neural networks. SAMBA achieves near-linear computational complexity by utilizing a bidirectional Mamba block to capture long-term dependencies in historical price data and employing adaptive graph convolution to model dependencies between daily stock features. Our experimental results demonstrate that SAMBA significantly outperforms state-of-the-art baseline models in prediction accuracy, maintaining low computational complexity. The code and datasets are available at github.com/Ali-Meh619/SAMBA.

Tasks

Reproductions