Skip to main content
Back

East China Normal University's GCGNet Beats 10 Forecasting Models by Aligning Graph Structures

GCGNet jointly models time and channel correlations using graph-consistent generative networks, beating 10 baselines across 12 real-world datasets

Pro

  • GCGNet jointly models temporal and channel correlations via graph-consistent generative networks, avoiding the interference caused by two-step approaches used by TimeXer, TFT, and CrossLinear.
  • The model uses a Variational Generator for coarse predictions, a Graph Structure Aligner to enforce correlation consistency, and a Graph Refiner to improve accuracy and prevent degeneration.
  • Evaluated on 12 real-world datasets (electricity markets, wind farms, hydropower) against 10 baselines, GCGNet wins 18/24 first-place rankings on MSE and MAE.
  • GCGNet remains competitive even when future exogenous variables are unavailable, using its VAE to generate estimates instead, winning 8/12 datasets on MSE in that setting.
  • Robustness tests with up to 50% missing exogenous data show GCGNet consistently outperforms baselines under both zero-fill and random-fill masking strategies.
  • Code and all 12 datasets are publicly available at github.com/decisionintelligence/GCGNet.

Most time series forecasting models treat your target variable in isolation, relying only on its own history. But the real world rarely works that way. Electricity demand is shaped by temperature. Wind farm output depends on weather. Water levels track precipitation upstream. These outside influences are called exogenous variables, and handling them well is one of the harder open problems in forecasting.

A team from East China Normal University has published GCGNet, a Graph-Consistent Generative Network that takes a fundamentally different approach to this problem, and backs it up with results across 12 real-world datasets against 10 competitive baselines.

The two-step trap

To understand why GCGNet matters, you need to understand what everyone else is doing wrong. Forecasting with exogenous variables requires modeling two types of relationships simultaneously:

  • Temporal correlations: how past values predict future values (e.g., yesterday's electricity demand predicts today's)
  • Channel correlations: how exogenous variables influence the target (e.g., higher temperatures drive higher electricity demand)

Most existing methods adopt a two-step strategy, modeling temporal and channel correlations separately at different steps. Some models like TimeXer and ExoTST handle time first, then channels. Others like TFT and CrossLinear go channel-first, then time. This two-step modeling strategy may lead to interference between the correlations learned in the two steps, which in turn limits the model's capacity to capture temporal and channel correlations, ultimately resulting in suboptimal performance.

Architecture comparison: temporal-then-channel, channel-then-temporal, and joint modeling approaches

There is also a second problem that gets less attention: noise. In real-world scenarios, sensor failures, transmission errors, and manual recording mistakes frequently occur, which introduce diverse types of noises into the data. Standard models tend to overfit these noisy observations, learning spurious correlations instead of the real underlying structure.

Generate, align, refine

GCGNet addresses both problems with a three-stage pipeline. The key insight is to represent correlations as graphs, and then enforce consistency between the graph structure of the model's predictions and the graph structure of the ground truth.

Line graph showing air temperature and electricity demand across history and future time periods

Here is how the three modules work together:

  1. Variational Generator: Takes historical endogenous and exogenous variables and runs them through a VAE (Variational Autoencoder) to produce a coarse prediction of the future. A VAE is a generative model that learns a probability distribution over the data rather than a single deterministic output, which makes it naturally more robust to noise. If future exogenous variables are available (e.g., a weather forecast), they are plugged in directly; otherwise the VAE generates its own estimate of them.
  2. Graph Structure Aligner: This is the novel core of GCGNet. Both the coarse prediction and the ground truth are converted into patch embeddings (short overlapping windows of the time series), then fed into a Graph VAE that produces an adjacency matrix, essentially a map of which time steps and channels are most related to each other. The aligner then minimizes the L1 distance between the graph derived from the prediction and the graph derived from the ground truth. This forces the generator to produce outputs whose internal correlation structure matches reality, not just whose point-wise values are close.
  3. Graph Refiner: Takes the adjacency matrix from the aligner and uses a Graph Convolutional Network (GCN) to propagate information across the graph, refining the coarse predictions. It also serves a second purpose: it prevents a failure mode called degeneration, where the Graph VAE collapses to producing the same output regardless of input. By making the final prediction depend on the adjacency matrix, the refiner forces the VAE to keep producing meaningful, input-dependent graphs.

The full training loss combines four terms: a forecasting loss on the final output, a graph alignment loss between predicted and true correlation graphs, and two KL-divergence regularization terms from the two VAEs (one for the Variational Generator, one for the Graph VAE).

What the numbers say

Across both long-term and short-term forecasting settings on 12 real-world datasets, GCGNet achieves outstanding performance compared to forecasters of various architectures. Specifically, GCGNet achieves 18 first-place rankings in MSE and 20 in MAE. The 12 datasets span electricity price markets (Nord Pool, PJM, Belgium, France, Germany), energy generation (Chile), hydropower (Colbún, Rapel), and wind farm output (Longyuan), covering both hourly and daily resolution data.

The baselines are competitive and diverse. They include models built specifically for exogenous variables (TimeXer, TFT, TiDE) and recent state-of-the-art general forecasters adapted to use exogenous inputs (PatchTST, DUET, CrossLinear, Amplifier, TimeKAN, xPatch). GCGNet beats all of them on average.

The ablation results are particularly illuminating. Removing or replacing each component degrades performance significantly:

  • Replacing the Variational Generator's VAE with an MLP raises average MSE from 0.323 to 0.363
  • Removing the graph alignment loss raises average MSE from 0.323 to 0.474
  • Replacing the Graph VAE with a deterministic Graph Learner raises average MSE from 0.323 to 0.449
  • Removing the Graph Refiner entirely raises average MSE from 0.323 to 0.605, the largest degradation of all

Noise and missing data

One of GCGNet's practical strengths is robustness. The team tested it under three conditions where real-world data is messy:

  • No future exogenous variables: When future covariates are unavailable, GCGNet falls back to using its own VAE-generated estimates. GCGNet maintains strong performance even without future exogenous variables, highlighting its robustness and generalizability. It still wins 8 out of 12 datasets on MSE in this setting.
  • Missing exogenous data: The team simulated sensor failures by randomly masking 10%, 30%, and 50% of exogenous variable values, replacing them with zeros or random noise. GCGNet consistently outperforms all baselines across both masking strategies and all three ratios.
  • Longer look-back windows: More history usually helps, but it also introduces more noise. While other models exhibit large fluctuations in prediction performance as the look-back window increases, GCGNet maintains relatively stable metrics and even shows improvements as the look-back window increases.

Where it fits in your stack

GCGNet is most valuable when you have a target variable that is genuinely driven by external factors you can measure or forecast. The clearest use cases are:

  • Energy and electricity markets: forecasting prices or demand using grid load, wind/solar generation, and weather forecasts as covariates
  • Renewable energy output: predicting wind or solar farm generation using meteorological data
  • Hydrology: water level forecasting with precipitation and inflow data
  • Any domain where future covariates are available: weather forecasts, scheduled events, known future conditions

The model is less suited to pure endogenous forecasting tasks where no meaningful covariates exist, or to settings with very high-dimensional exogenous variable spaces where the graph structure becomes expensive to compute. The paper also notes that shallower GCN architectures (1-2 layers) work best, suggesting the learned graphs capture relatively direct relationships rather than long-range dependencies.

Code and data

All datasets and code are available at github.com/decisionintelligence/GCGNet. The repository includes the 12 evaluation datasets, implementation details, and the MLP fusion module used to extend baseline models to accept future exogenous variables for fair comparison. All experiments were run on a single NVIDIA Tesla-A800 GPU using PyTorch.