Skip to main content
QUICK REVIEW

[Paper Review] Stock2Vec: A Hybrid Deep Learning Framework for Stock Market Prediction with Representation Learning and Temporal Convolutional Network

Xing Wang, Yijun Wang|arXiv (Cornell University)|Sep 29, 2020
Stock Market Forecasting MethodsDecision Sciences6 citations
TL;DR

This paper proposes Stock2Vec, a hybrid deep learning framework that combines representation learning for stock relationships and temporal convolutional networks (TCN) to predict S&P 500 stock prices. By learning entity embeddings (Stock2Vec) and leveraging 1D dilated causal convolutions to capture long-term temporal patterns across stocks, the model outperforms benchmark models like random forest, XGBoost, and LSTM in forecasting accuracy while better capturing market trends and volatility.

ABSTRACT

We have proposed to develop a global hybrid deep learning framework to predict the daily prices in the stock market. With representation learning, we derived an embedding called Stock2Vec, which gives us insight for the relationship among different stocks, while the temporal convolutional layers are used for automatically capturing effective temporal patterns both within and across series. Evaluated on S&P 500, our hybrid framework integrates both advantages and achieves better performance on the stock price prediction task than several popular benchmarked models.

Motivation & Objective

  • To develop a global deep learning framework that jointly models cross-sectional stock relationships and temporal price dynamics for improved stock prediction.
  • To learn a distributional representation (Stock2Vec) that captures intrinsic relationships among stocks based on historical price data.
  • To leverage temporal convolutional networks (TCN) for automatic extraction of complex temporal patterns across multiple stocks.
  • To address the limitations of isolated stock modeling and tree-based ensemble methods in capturing long-term dependencies and market-wide trends.
  • To enable better handling of cold-start stocks by transferring knowledge from correlated market-wide patterns.

Proposed method

  • The framework uses entity embeddings (Stock2Vec) to learn low-dimensional representations of stocks based on their return patterns, capturing implicit relationships akin to word embeddings in NLP.
  • Temporal Convolutional Networks (TCN) with dilated causal convolutions are employed to model long-range temporal dependencies in price series across all S&P 500 stocks.
  • The model is trained end-to-end to predict daily stock prices, with the TCN component learning autoregressive features and shared temporal factors across the market.
  • Stock2Vec is trained using a contrastive learning objective on historical return sequences, enabling the model to infer structural similarities between stocks.
  • The hybrid architecture integrates Stock2Vec embeddings as input features into the TCN, allowing the network to jointly learn cross-sectional and temporal patterns.
  • The model is evaluated on S&P 500 data, with performance compared against random forest, XGBoost, and LSTM-based baselines using standard regression metrics.

Experimental results

Research questions

  • RQ1Can a global deep learning model that jointly learns stock relationships and temporal dynamics improve stock price prediction over isolated or tree-based models?
  • RQ2To what extent can representation learning (Stock2Vec) capture intrinsic relationships among stocks that are not apparent from raw price data?
  • RQ3How does the TCN component compare to RNNs in capturing long-term, nonlinear temporal patterns in stock price series?
  • RQ4Can the global model effectively handle cold-start stocks with limited historical data by leveraging market-wide correlations?
  • RQ5Does integrating both cross-sectional (Beta-like) and temporal (Alpha-like) learning improve forecasting accuracy and trend detection?

Key findings

  • The TCN-Stock2Vec model achieves superior performance in predicting daily stock prices compared to random forest, XGBoost, and LSTM-based models, with lower overall prediction errors.
  • Stock2Vec embeddings effectively capture latent relationships among stocks, enabling the model to generalize better than models relying solely on individual stock features.
  • The TCN component successfully learns complex, nonlinear trends and seasonality in price data without requiring hand-engineered technical indicators.
  • Tree-based models (random forest, XGBoost) exhibit lagged predictions and flat prediction periods due to overfitting and insufficient splitting, even with large ensemble sizes.
  • The hybrid model reduces wild oscillations in predictions by learning shared temporal patterns across the entire market, resulting in more stable and accurate forecasts.
  • The global modeling approach enables effective cold-start prediction by transferring knowledge from correlated stocks and market-wide patterns.

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.