Stock Selection via Spatiotemporal Hypergraph Attention Network: A Learning to Rank Approach

Quantitative trading and investment decision making are intricate financial tasks that rely on accurate stock selection. Despite advances in deep learning that have made significant progress in the complex and highly stochastic stock prediction problem, modern solutions face two significant limitations. They do not directly optimize the target of investment in terms of profit, and treat each stock as independent from the others, ignoring the rich signals between related stocks’ temporal price movements. Building on these limitations, we reformulate stock prediction as a learning to rank problem and propose STHAN-SR, a neural hypergraph architecture for stock selection. The key novelty of our work is the proposal of modeling the complex relations between stocks through a hypergraph and a temporal Hawkes attention mechanism to tailor a new spatiotemporal attention hypergraph network architecture to rank stocks based on profit by jointly modeling stock interdependence and the temporal evolution of their prices. Through experiments on three markets spanning over six years of data, we show that STHAN-SR significantly outperforms state-of-the-art neural stock forecasting methods. We validate our design choices through ablative and exploratory analyses over STHAN-SR’s spatial and temporal components and demonstrate its practical applicability.

[1]  Song Bai,et al.  Hypergraph Convolution and Hypergraph Attention , 2019, Pattern Recognit..

[2]  Maosong Sun,et al.  Enhancing Stock Movement Prediction with Adversarial Training , 2018, IJCAI.

[3]  M. Livingston INDUSTRY MOVEMENTS OF COMMON STOCKS , 1977 .

[4]  Lukasz Kaiser,et al.  Attention is All you Need , 2017, NIPS.

[5]  Seong Eun Maeng,et al.  Effects of global financial crisis on network structure in a local stock market , 2014 .

[6]  Samuel S. Schoenholz,et al.  Neural Message Passing for Quantum Chemistry , 2017, ICML.

[7]  Max Welling,et al.  Semi-Supervised Classification with Graph Convolutional Networks , 2016, ICLR.

[8]  Yulei Rao,et al.  A deep learning framework for financial time series using stacked autoencoders and long-short term memory , 2017, PloS one.

[9]  Albert Marcet,et al.  Stock Market Volatility and Learning , 2008, SSRN Electronic Journal.

[10]  M. Yor,et al.  Mathematical Methods for Financial Markets , 2009 .

[11]  Adriano Lorena Inácio de Oliveira,et al.  Expert Systems With Applications , 2022 .

[12]  Jinkyoo Park,et al.  WATTNet: Learning to Trade FX via Hierarchical Spatio-Temporal Representation of Highly Multivariate Time Series , 2019, Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence.

[13]  F. Diebold,et al.  UNIVERSITY OF SOUTHERN CALIFORNIA Center for Applied Financial Economics (CAFE) On the Network Topology of Variance Decompositions: Measuring the Connectedness of Financial Firms , 2011 .

[14]  Jaewoo Kang,et al.  HATS: A Hierarchical Graph Attention Network for Stock Movement Prediction , 2019, ArXiv.

[15]  Diego Reforgiato Recupero,et al.  Multi-DQN: An ensemble of Deep Q-learning agents for stock market forecasting , 2021, Expert Syst. Appl..

[16]  Jung-Hua Wang,et al.  Stock market trend prediction using ARIMA-based neural networks , 1996, Proceedings of International Conference on Neural Networks (ICNN'96).

[17]  E. Bacry,et al.  Hawkes Processes in Finance , 2015, 1502.04592.

[18]  Markus Krötzsch,et al.  Wikidata , 2014, Commun. ACM.

[19]  Yiqun Liu,et al.  Temporal Relational Ranking for Stock Prediction , 2018, ACM Trans. Inf. Syst..

[20]  Xiaofeng Wei,et al.  Stock trends prediction based on hypergraph modeling clustering algorithm , 2014, 2014 IEEE International Conference on Progress in Informatics and Computing.

[21]  Jingjing Xu,et al.  Modeling the Stock Relation with Graph Network for Overnight Stock Movement Prediction , 2020, IJCAI.

[22]  Yue Gao,et al.  Hypergraph Neural Networks , 2018, AAAI.

[23]  Ramit Sawhney,et al.  Deep Attentive Learning for Stock Movement Prediction from Social Media Text and Company Correlations , 2020, EMNLP.

[24]  Yang Liu,et al.  Adaptive Quantitative Trading: An Imitative Deep Reinforcement Learning Approach , 2020, AAAI.

[25]  Charu C. Aggarwal,et al.  Stock Price Prediction via Discovering Multi-Frequency Trading Patterns , 2017, KDD.

[26]  R. Shah,et al.  Spatiotemporal Hypergraph Convolution Network for Stock Movement Forecasting , 2020, 2020 IEEE International Conference on Data Mining (ICDM).

[27]  Fei Wang,et al.  Structural Deep Embedding for Hyper-Networks , 2017, AAAI.

[28]  Ruochi Zhang,et al.  Hyper-SAGNN: a self-attention based graph neural network for hypergraphs , 2019, ICLR.