Systematic Generalization in Neural Networks-based Multivariate Time Series Forecasting Models

Hritik Bansal, Gantavya Bhatt, Pankaj Malhotra, Prathosh ApIJCNN 2021

Abstract: Systematic generalization aims to evaluate reasoning about novel combinations from known components, an intrinsic property of human cognition. In this work, we study systematic generalization of Neural Networks (NNs) in forecasting future time series of dependent variables in a dynamical system, conditioned on past time series of dependent variables, and past and future control variables. We focus on systematic generalization wherein the NN-based forecasting model should perform well on previously unseen combinations or regimes of control variables after being trained on a limited set of the possible regimes. For NNs to depict such out-of-distribution generalization, they should be able to disentangle the various dependencies between control variables and dependent variables. We hypothesize that a modular NN architecture guided by the readily-available knowledge of independence of control variables as a potentially useful inductive bias to this end. Through extensive empirical evaluation on a toy dataset and a simulated electric motor dataset, we show that our proposed modular NN architecture serves as a simple yet highly effective inductive bias that enabling better forecasting of the dependent variables up to large horizons in contrast to standard NNs, and indeed capture the true dependency relations between the dependent and the control variables.

Introduction

The ability to reason about novel combinations of known components—systematic generalization—is a hallmark of human intelligence. In the realm of dynamical systems, such as electric motors, chemical plants, or robotic arms, this translates to forecasting future states under previously unseen control regimes. Standard neural networks (NNs) often struggle here, as they tend to learn spurious correlations within the training data rather than the underlying causal mechanisms. This paper explores how modular architectures can serve as an effective inductive bias to achieve systematic generalization in multivariate time series forecasting.

The Challenge of Out-of-Distribution Generalization

In many real-world applications, data is collected from limited "operating regimes." A model might be trained on data where "Voltage is High" and "Load is Low," but it must perform accurately when "Voltage is High AND Load is High." Standard NNs often fail in these out-of-distribution (OOD) scenarios because they do not disentangle the independent influences of control variables on the system's state. If a training set only shows a heater turning on when a fan is at low speed, a standard NN might incorrectly assume the heater causes the fan to slow down. When tested on a new combination (Heater ON + Fan HIGH), the model's predictions collapse.

Figure 5: Visualization of the training distribution (orange) versus the out-of-distribution testing regime (blue) for two control variables, illustrating the gap the model must bridge.

Methodology: Modularity as an Inductive Bias

The authors propose that modularity is the key to breaking these spurious correlations. They introduce a modularized NN architecture designed to mirror the inherent independence of control variables (which are typically exogenous inputs we choose). The architecture incorporates three key inductive biases:

  1. Separate Control (SC) Encoders: Instead of a monolithic "black box" encoder, separate 1D Causal-CNNs are used for each control variable. This forces the model to acknowledge that controls are independent entities.
  2. Structured Latent Space Transition Model (TM): The transition model is factored into small sub-networks that model specific interactions between states and controls before aggregating them, rather than using a single large MLP.
  3. Hard Decoder (HD): The model uses separate decoders for each forecasted state variable, preventing the dynamics of one variable from "leaking" into the prediction of another.
Figure 4: Comparison of architectures from the baseline (1) to the proposed modular "Ours" model (4), highlighting the progression toward structured latent spaces and separate decoders.

Experimental Evaluation

The proposed approach was tested on two primary datasets:

  • Synthetic NARMA Scenarios: Modified Non-Linear Autoregressive Moving Average equations creating various causal scenarios, from simple one-to-one mappings to complex many-to-many dependencies.
  • Simulated Electric Motor (PMSM): A high-fidelity simulation of a Permanent Magnet Synchronous Motor, providing a test case with complex physical variables like voltages and rotor speed.

Key Results and Insights

  • OOD Performance: On synthetic data, the baseline's error was often 10x higher on OOD data than on seen data. The modular model maintained much lower error rates. In the PMSM motor simulation, the modular approach achieved an OOD Mean Squared Error (MSE) of 0.015, compared to 0.19 for the baseline—a massive improvement in reliability.
  • Causal Integrity: Through intervention testing—adding noise to controls that mathematically should not affect certain states—the authors demonstrated that the modular model correctly ignored irrelevant noise. In contrast, the baseline's performance plummeted, proving it had learned false causal links.
  • Long-Horizon Stability: By capturing true underlying dynamics, the modular models exhibited superior stability in "rolling" forecasts (using a prediction to make the next prediction), where errors in standard models typically compound rapidly.

Conclusion

This work demonstrates that modularity, guided by the known independence of control variables, provides a powerful inductive bias for time series forecasting. By structuring networks to reflect physical causal relationships, AI models can move beyond memorizing training patterns toward true systematic generalization in complex dynamical systems. Future work may involve "Neural Relational Inference" to allow models to discover these independent modules automatically.

Summary updated

BibTeX
@inproceedings{bansal2021systematic,
  author = {Hritik Bansal and Gantavya Bhatt and Pankaj Malhotra and Prathosh AP},
  title = {{Systematic Generalization in Neural Networks-based Multivariate Time Series Forecasting Models}},
  booktitle = {IJCNN},
  year = {2021},
  url = {https://openreview.net/forum?id=AnVmsaHQ0sA},
}
Figure