Stock Movement Prediction Based on Bi-Typed Hybrid-Relational Market Knowledge Graph via Dual Attention Networks

Yu Zhao, Huaming Du, Ying Liu, Shaopeng Wei, Xingyan Chen, Fuzhen Zhuang, Qing Li, Gang KouIEEE TKDE 2022 · DOI

Abstract

Predicting stock market movements is a complex task where the "momentum spillover effect"—the phenomenon where price fluctuations in one company affect others—serves as a vital predictive signal. Traditional models often overlook the intricate, heterogeneous nature of market relationships, relying on simplistic homogeneous graphs. This paper proposes a Bi-typed Hybrid-relational Market Knowledge Graph (MKG) that incorporates both companies and executives, linked by explicit and dynamically inferred implicit relations. We introduce Dual Attention Networks for Stock Movement Prediction (DANSMP), a novel architecture designed to capture these multi-typed interactions. Experimental results on two new datasets, CSI100E and CSI300E, demonstrate that DANSMP significantly outperforms state-of-the-art models in both predictive accuracy and simulated trading profitability.

Introduction

Stock Movement Prediction (SMP) is fundamental to financial forecasting. While historical price data and news sentiment are standard inputs, recent research has pivoted toward Graph Neural Networks (GNNs) to model market interdependencies. However, existing GNN approaches typically utilize homogeneous graphs with basic relations (e.g., shared industry). These models fail to capture the "hidden" connections that drive modern markets, such as shared executive backgrounds or latent correlations driven by macroeconomic shifts. This research addresses these gaps by modeling the market as a complex, heterogeneous network of companies and individuals.

Methodology: The Market Knowledge Graph and DANSMP

The authors construct a Bi-typed Hybrid-relational Market Knowledge Graph (MKG) to represent the financial ecosystem more accurately.

Bi-typed Entities and Hybrid Relations

The MKG distinguishes between two types of nodes: companies and executives. Relationships are categorized into:

  • Explicit Relations: Direct business links such as supply chains, investments, and industry categories.
  • Implicit Relations: Dynamically inferred connections based on similarities in historical price movements and news sentiment.
  • Executive-based Meta-paths: Indirect connections between companies formed through executive relationships (e.g., two CEOs who were classmates).
The Bi-typed Hybrid-relational Market Knowledge Graph illustrating explicit, implicit, and executive-based meta-path relations.

Dual Attention Networks (DANSMP)

To process this heterogeneous data, the DANSMP architecture employs a multi-stage approach:

  1. Sequential Embeddings: A Neural Tensor Network (NTN) fuses daily price data and news sentiment, which is then processed by a Gated Recurrent Unit (GRU) to capture temporal dynamics.
  2. Dual Attention Mechanism: Unlike standard GNNs, DANSMP uses Inter-class attention to model interactions between different entity types (executives and companies) and Intra-class attention for interactions within the same type (company-to-company links).
  3. Prediction: The combined temporal and relational embeddings are passed through a feed-forward network to generate a binary movement prediction (Up/Down).

Datasets

Due to the lack of existing benchmarks with executive data, two new datasets were curated from the China Securities Index:

  • CSI100E: 73 companies and 163 executives.
  • CSI300E: 185 companies and 275 executives. Both datasets span from November 2017 to December 2019 and integrate historical prices, financial news, and multi-layered relational data.

Results and Discussion

DANSMP was evaluated against nine state-of-the-art baselines. The model achieved a predictive accuracy of 57.75% on CSI100E and 55.79% on CSI300E, consistently outperforming models like AD-GAT and STHAN-SR.

Comparative Analysis

A key differentiator for DANSMP is its comprehensive integration of market signals. As shown in the comparison with existing literature, DANSMP is the only model to simultaneously leverage historical data, media news, and a full spectrum of explicit, implicit, and executive-based relations within a heterogeneous GNN framework.

Comparison of DANSMP with state-of-the-art stock prediction methods across various market signals and GNN types.

Key Insights

  • The Executive Factor: Ablation studies revealed that removing executive nodes significantly degrades performance, confirming that executive networks are critical conduits for market spillover.
  • Implicit Signal Strength: Visualization of attention weights showed that the model prioritizes dynamically inferred implicit relations over traditional industry or supply chain categories.
  • Profitability: In back-testing, DANSMP achieved a Cumulative Investment Return Rate (IRR) of up to 16.97%, whereas many baseline models resulted in net losses.

Conclusion

This research demonstrates that modeling the stock market as a heterogeneous knowledge graph significantly improves movement prediction. By accounting for the influence of executives and latent implicit relations, DANSMP provides a more nuanced understanding of market dynamics. Future work may involve incorporating real-time executive social media sentiment and factual event data to further enhance early-signal detection.

Summary updated

BibTeX
@article{zhao2022stock,
  author = {Yu Zhao and Huaming Du and Ying Liu and Shaopeng Wei and Xingyan Chen and Fuzhen Zhuang and Qing Li and Gang Kou},
  title = {{Stock Movement Prediction Based on Bi-Typed Hybrid-Relational Market Knowledge Graph via Dual Attention Networks}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2022},
  doi = {10.1109/tkde.2022.3220520},
}
Figure