Abstract
Most existing multivariate time series forecasting methods adopt an all-to-all paradigm that feeds all variable histories into a unified model to predict their future values without distinguishing their individual roles. However, this undifferentiated paradigm makes it difficult to identify variable-specific causal influences and often entangles causally relevant information with spurious correlations. To address this limitation, we propose an all-to-one forecasting paradigm that predicts each target variable separately. Specifically, we first construct a Structural Causal Model from observational data and then, for each target variable, we partition the historical sequence into four sub-segments according to the inferred causal structure: endogenous, direct causal, collider causal, and spurious correlation. The prediction relies solely on the first three causally relevant sub-segments, while the spurious correlation sub-segment is excluded. Furthermore, we propose Causal Informed Transformer (CAIFormer), a novel forecasting model comprising three components: Endogenous Sub-segment Prediction Block, Direct Causal Sub-segment Prediction Block, and Collider Causal Sub-segment Prediction Block, which process the endogenous, direct causal, and collider causal sub-segments, respectively. Their outputs are then combined to produce the final prediction. Extensive experiments on multiple benchmark datasets demonstrate the effectiveness of the CAIFormer.
Introduction
Most modern multivariate time series forecasting (MTSF) models follow an "all-to-all" paradigm, feeding the historical data of every available variable into a single model to predict all future values simultaneously. However, this approach ignores structural heterogeneity. In a complex system, not every variable influences every other variable in the same way. Some are direct causes, some are effects, and some are just "spurious correlations"—variables that look related but have no actual causal link. When a model treats them all the same, it risks entangling noise with signal, leading to poor generalization and a lack of interpretability.
Methodology
The Causal Informed Transformer (CAIFormer) moves away from the standard all-to-all approach to a targeted "all-to-one" paradigm. It is built on three main pillars:
1. Structural Causal Decomposition
Instead of a flat input, CAIFormer partitions variables for each target into four sub-segments based on causal theory:
- Endogenous: The target variable’s own history.
- Direct Causal: Variables that are direct parents or children of the target.
- Collider Causal: Variables that share a common "child" with the target (spouses).
- Spurious: Everything else that should be ignored to avoid noise.
2. Dynamic Causal Adapters
Causal discovery is notoriously difficult and often imperfect. Rather than relying on a fixed causal graph, CAIFormer uses the Peter-Clark (PC) algorithm to create an initial "warm-start" graph. It then uses learnable weights in Dynamic Causal Adapters to refine this graph during training, allowing the model to correct errors in the initial discovery through gradient descent.
3. Causal Constrained Mechanisms
- Segment Attention: A custom attention mask ensures that information flows from the causal segments into the target's reasoning anchor without letting spurious noise leak between contexts.
- Spouse Projection: Based on mathematical proof, the authors apply a projection-based constraint to the output. This specifically mitigates the bias created by "colliders," which can induce fake dependencies that trick standard models.
Experimental Results
The model was evaluated on eight widely recognized real-world MTSF benchmarks, including ETT (Electricity Transformer Temperature), Weather, Exchange, ECL (Electricity Consumption Load), and Traffic.
- Superior Accuracy: CAIFormer consistently outperformed 15 representative baselines (including iTransformer, PatchTST, and TiDE) across almost all datasets and prediction horizons.
- Robustness to Noise: In perturbation tests where 30% of true causal edges were removed, CAIFormer’s dynamic refinement allowed it to maintain nearly full accuracy, while static causal models saw an 18% drop in performance.
- Generalization: The Spouse Projection module significantly narrowed the generalization gap (the difference between training and testing loss), proving that causal constraints prevent the model from overfitting to coincidental patterns.
Key Insights and Conclusion
The most significant shift in CAIFormer is the realization that forecasting is more accurate when building a target-specific causal context rather than a generic global representation. By treating the causal graph as a prior rather than a rigid rule, the model remains robust to discovery errors. While the authors acknowledge a moderate computational overhead during training due to the additional causal adapter computations, the gains in accuracy and robustness to spurious correlations make CAIFormer a powerful new paradigm for multivariate time series forecasting.
Summary updated