Stock Prediction via a Dual Relation Fusion Network incorporating Static and Dynamic Relations

Long Chen, Huixin Bai, Mingxin Wang, Xiaohua Huang, Ying Liu, Jie Zhao, Ziyu GuanarXiv 2025 · OpenReview

Abstract

Accurate modeling of inter-stock relationships is critical for stock price forecasting. However, existing methods predominantly focus on single-state relationships, neglecting the essential complementarity between dynamic and static inter-stock relations. To solve this problem, we propose a Dual Relation Fusion Network (DRFN) to capture the long-term relative stability of stock relation structures while retaining the flexibility to respond to sudden market shifts. Our approach features a novel relative static relation component that models time-varying long-term patterns and incorporates overnight informational influences. We capture dynamic inter-stock relationships through distance-aware mechanisms, while evolving long-term structures via recurrent fusion of dynamic relations from the prior day with the pre-defined static relations. Experiments demonstrate that our method significantly outperforms the baselines across different markets, with high sensitivity to the co-movement of relational strength and stock price.

Introduction

Predicting stock returns is a complex task due to the intricate web of relationships between companies, such as industry sectors, supply chain links, and competitive dynamics. Existing research often fails to balance long-term structural stability with short-term market volatility. Static models rely on fixed relationship graphs that cannot adapt to market shifts, while purely dynamic models are often noisy and unstable during crises. Furthermore, effectively integrating qualitative news sentiment with quantitative price indicators remains a significant challenge for modern forecasting frameworks.

Methodology

The Dual Relation Fusion Network (DRFN) addresses these challenges through a multi-stage architecture designed to fuse diverse data modalities and relationship types.

Architecture of the Dual Relation Fusion Network (DRFN) showing multimodal alignment and dual relation fusion.

Multimodal Alignment and Fusion

DRFN utilizes BERT to encode news data and GRUs for market indicators. To bridge the gap between these modalities, the model employs contrastive learning (InfoNCE) to align news sentiment and price signals for the same stock within the feature space. Bilinear tensor products are used to capture non-linear interactions between these aligned features, acknowledging that news sentiment may only impact price once it crosses specific intensity thresholds.

Dual Relation Learning

The network captures two distinct types of inter-stock relationships:

  1. Dynamic Relation Learning: This component identifies synergistic (positive) and adversarial (negative) correlations using a distance-aware cross-attention mechanism, capturing immediate market influences.
  2. Relative Static Relation Modeling: Instead of a fixed graph, DRFN "evolves" a predefined static relation matrix (sourced from Wikidata) by recurrently fusing it with the previous day’s dynamic relations and overnight information.

These features are merged via a bidirectional cross-attention mechanism, allowing the model to maintain a structural anchor of long-term stability while remaining responsive to sudden market shocks.

Adaptive Residual Connection

The final prediction layer employs learnable weights to adaptively balance the influence of news versus price indicators for each specific stock, recognizing that different sectors (e.g., technology vs. energy) exhibit varying sensitivities to qualitative information.

Experimental Results

The model was evaluated on two major benchmarks: CMIN-US (105 stocks over 1,006 trading days) and CMIN-CN (227 stocks over 968 trading days). Predefined static relations were sourced from Wikidata to construct initial relationship matrices.

Performance comparison of DRFN against baseline models on CMIN-US and CMIN-CN datasets.

As shown in the table above, DRFN consistently outperforms a wide range of baselines, including classic sequence models (LSTM, GRU) and advanced graph-based models (GAT, MASTER, SAMBA, LSR-IGRU). On the CMIN-US dataset, DRFN achieved an RMSE of 0.0166 and an MAE of 0.0117, representing a substantial improvement over the previous state-of-the-art, LSR-IGRU.

Ablation studies confirmed that both the modality alignment and the adaptive residual mechanism are vital for performance. Furthermore, the model demonstrated high sensitivity to stock co-movement, effectively tracking relational strength spikes in tandem with price surges, whereas purely dynamic models often lagged.

Conclusion

DRFN provides a robust framework for stock prediction by successfully integrating static and dynamic inter-stock relations with multimodal data. While the model shows high generalizability across US and Chinese markets, future work could address the computational intensity of training and explore automated methods for discovering latent static relationships to reduce reliance on external knowledge graphs.

Summary updated

BibTeX
@misc{chen2025stock,
  author = {Long Chen and Huixin Bai and Mingxin Wang and Xiaohua Huang and Ying Liu and Jie Zhao and Ziyu Guan},
  title = {{Stock Prediction via a Dual Relation Fusion Network incorporating Static and Dynamic Relations}},
  year = {2025},
  eprint = {2510.10695},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.10695},
}
Figure