Hermes: A Multi-Scale Spatial-Temporal Hypergraph Network for Stock Time Series Forecasting

Xiangfei Qiu, Liu Yang, Xiangyu Xu, Hanyin Cheng, Xingjian Wu, Rongjia Wu, Zhang Zhigang, Tu ding, Chenjuan Guo, Bin Yang, Christian S. Jensen, Jilin HuNeurIPS 2026

TL;DR

Stocks don't move in a vacuum—a breakthrough in AI tech today might spark a rally in the energy sector weeks later, and trends that look aligned over a year can move in opposite directions day-to-day. Hermes is a new stock forecasting network that models entire industries as interconnected groups across multiple time scales, capturing how sectors lead and lag behind one another. Not only does it beat state-of-the-art baselines in predictive accuracy and simulated portfolio returns, it manages to run faster and use less memory than competing graph models.

What Problem Does This Paper Address?

Imagine watching a flock of starlings. Tracking a single bird tells you very little about where it will turn next; you have to watch its neighbors. Financial markets work similarly. Early deep learning approaches treated each stock as an isolated time series, ignoring the dense web of market interdependencies.

To fix this, researchers turned to hypergraphs. While a standard graph connects nodes in pairs, a hypergraph uses hyperedges to wrap around an entire group of nodes at once—making it a natural way to group stocks like Apple, Microsoft, and Alphabet into a single "Technology" industry bucket.

Intra-industry, lead-lag, and multi-scale correlations in stock prices

However, existing hypergraph models still miss two crucial pieces of market physics:

  1. Inter-industry lead-lag effects: Sectors don't just move together; they push and pull each other with a delay. For instance, booming AI innovation in tech drives up power demand, which subsequently lifts utility and energy stocks.
  2. Multi-scale dynamics: Zoom out to a coarse scale, and two industries might share a steady upward macro trend. Zoom in to a fine-grained daily scale, and they might be oscillating in completely opposite directions. Single-scale models blur these distinct signals together.

Methods

Hermes tackles these gaps by weaving multi-scale signal processing and temporal lead-lag tracking directly into a spatial-temporal hypergraph network.

Here is how data flows through the architecture:

  • Multi-Scale Feature Extraction: Taking a 16-day lookback window of stock indicators (open, close, high, low, volume), Hermes uses 1D convolutions of varying kernel sizes and strides to downsample the data into multiple time scales (from fine-grained to coarse). It applies Causal-Mixing—a set of Multi-Layer Perceptrons (MLPs) restricted so a given time step can only see the past, preventing future data leakage.
  • Adaptive Hypergraph Construction: Using predefined industry classifications, Hermes groups stocks into industry hyperedges at each scale, learning continuous attention-like weights so more relevant stocks contribute more to their industry's representation.
  • Hyperedge-based Moving Aggregation (Novel): To catch lead-lag dynamics, Hermes runs a sliding window across the industry hyperedges. Within each window patch, it measures how the entire historical window of one industry correlates with the final time step of another, passing messages forward from leading sectors to lagging ones.
  • Hyperedge-based Multi-scale Fusion (Novel): Next, all industry representations are upsampled back to a uniform length. Hermes uses metric learning (specifically, a learnable Mahalanobis distance) to automatically discover how industries at different time granularities relate to one another. After passing messages from edge-to-edge across scales, it projects those rich industry insights back down to individual stock nodes.
  • Prediction & Ranking Loss: Standard MLP heads with skip-connections predict 1-day stock return ratios. The network optimizes a hybrid loss (following prior work like StockMixer) that combines Mean Squared Error with a pairwise ranking loss, ensuring top-performing stocks are ordered accurately.

Datasets

No new benchmarks were introduced. The authors evaluated Hermes on three established, real-world US stock market datasets containing historical price/volume indicators alongside industry or Wiki-based company relations:

  • NASDAQ
  • NYSE
  • S&P 500

Key Insights and Ideas

  • Industry context beats pairwise links: Across all benchmarks, Hypergraph Neural Networks (HGNNs) outperform standard Graph Neural Networks (GNNs), which in turn beat univariate RNNs. Grouping stocks by sector captures higher-order market structure that pairwise links miss.
  • Complexity doesn't require bloat: Because Hermes relies on lightweight MLP structures for temporal mixing and operates without needing massive hidden dimensions, it uses less VRAM and trains faster than older hypergraph baselines despite modeling multi-scale and lead-lag interactions.
  • Both scales and lags do heavy lifting: Ablation studies show that stripping away either the multi-scale decomposition/fusion or the lead-lag moving aggregation causes a steep drop in risk-adjusted returns, proving the two mechanisms capture complementary market signals.

Key Results

Hermes was tested against 14 baselines spanning HGNNs, Transformers (e.g., iTransformer, PatchTST), MLPs (StockMixer, TimeMixer), GNNs, and RNNs.

Table 1: Comparison results on public stock market datasets (measured by t-test with p-value < 0.01). The methods for comparison are mainly divided into five types: HGNN (HyperGraph Neural Network), Transformer, MLP (Multi-Layer Perceptron), GNN (Graph Neural Network), and RNN (Recurrent Neural Network). Bold indicates the best (SOTA) results.
  • Predictive Accuracy & Risk-Adjusted Return: Hermes achieved State-of-the-Art (SOTA) across every metric—Information Coefficient (IC), Rank IC (RIC), and Sharpe Ratio (SR)—on all three datasets. For example, on NASDAQ, Hermes reached an SR of 2.161 (vs. 1.877 for iTransformer and 1.465 for StockMixer). On S&P 500, it hit an SR of 2.247 and an IC of 0.050.
  • Efficiency: Evaluated at batch size 1 on NASDAQ, Hermes required just 0.98 GB of memory and 42 ms inference time, compared to 9.62 GB / 163 ms for ESTIMATE and 1.99 GB / 58 ms for ASHyper.
  • Simulated Trading: In a 237-day backtest on NASDAQ (buying the top 5 predicted stocks daily with equal weights, before transaction costs), Hermes delivered a terminal cumulative return of 72.79% (SR 2.16), beating the runner-up iTransformer (63.40%, SR 1.88) by over 9 percentage points.

Limitations and Future Work

Not discussed in the paper. (Note: While the main text does not include a dedicated limitations or future work section, the authors explicitly note in their portfolio evaluation that simulated returns are calculated before transaction costs and assume a zero risk-free rate, and their hypergraph construction relies on datasets having predefined stock-industry or company relationship matrices.)

Summary updated

Abstract

Time series forecasting occurs in a range of financial applications providing essential decision-making support to investors, regulatory institutions, and analysts. Unlike multivariate time series from other domains, stock time series exhibit industry correlation. Exploiting this kind of correlation can improve forecasting accuracy. However, existing methods based on hypergraphs can only capture industry correlation relatively superficially. These methods face two key limitations: they do not fully consider inter-industry lead-lag interactions, and they do not model multi-scale information within and among industries. This study proposes the \textbf{Hermes} framework for stock time series forecasting that aims to improve the exploitation of industry correlation by addressing these limitations. The framework integrates moving aggregation and multi-scale fusion modules in a hypergraph network. Specifically, to more flexibly capture the lead-lag relationships among industries, Hermes proposes a hyperedge-based moving aggregation module. This module incorporates a sliding window and utilizes dynamic temporal aggregation operations to consider lead-lag dependencies among industries. Additionally, to effectively model multi-scale information, Hermes employs cross-scale, edge-to-edge message passing to integrate information from different scales while maintaining the consistency of each scale. Experimental results on multiple real-world stock datasets show that Hermes outperforms existing state-of-the-art methods.
BibTeX
@inproceedings{qiu2026hermes,
  author = {Xiangfei Qiu and Liu Yang and Xiangyu Xu and Hanyin Cheng and Xingjian Wu and Rongjia Wu and Zhang Zhigang and Tu ding and Chenjuan Guo and Bin Yang and Christian S. Jensen and Jilin Hu},
  title = {{Hermes: A Multi-Scale Spatial-Temporal Hypergraph Network for Stock Time Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=nMUDgtUWOF},
}
Figure