Masked Multi-Step Multivariate Time Series Forecasting with Future Information

Yiwei Fu, Honggang Wang, Nurali Virani · DOI

Abstract

In this paper, we introduce Masked Multi-Step Multivariate Forecasting (MMMF), a novel and general self-supervised learning framework for time series forecasting with known future information. In many real-world forecasting scenarios, some future information is known, e.g., the weather information when making a short-to-mid-term electricity demand forecast, or the oil price forecasts when making an airplane departure forecast. Existing machine learning forecasting frameworks can be categorized into (1) sample-based approaches where each forecast is made independently, and (2) time series regression approaches where the future information is not fully incorporated. To overcome the limitations of existing approaches, we propose MMMF, a framework to train any neural network model capable of generating a sequence of outputs, that combines both the temporal information from the past and the known information about the future to make better predictions. Experiments are performed on two real-world datasets for (1) mid-term electricity demand forecasting, and (2) two-month ahead flight departures forecasting. They show that the proposed MMMF framework outperforms not only sample-based methods but also existing time series forecasting models with the exact same base models. Furthermore, once a neural network model is trained with MMMF, its inference speed is similar to that of the same model trained with traditional regression formulations, thus making MMMF a better alternative to existing regression-trained time series forecasting models if there is some available future information.

Introduction

Time series forecasting is a cornerstone of decision-making in industries ranging from energy to logistics. Often, we possess "known future information"—covariates like weather forecasts, scheduled holidays, or price projections—that significantly influence the target variable. However, standard deep learning frameworks often struggle to integrate this information effectively. This paper introduces Masked Multi-Step Multivariate Forecasting (MMMF), a training framework designed to bridge this gap.

The Problem with Existing Approaches

Traditional methods for time series forecasting generally fall into three categories, each with inherent limitations when dealing with future covariates:

  1. Sample-based Forecasting (SBF): Treats each time step as an independent sample, effectively losing the critical temporal dependencies and continuity of the series.
  2. Recursive Step-by-Step Forecasting (RSF): Predicts one step at a time, feeding the prediction back as input for the next step. This leads to "error accumulation," where small mistakes in early steps snowball over long horizons.
  3. Direct Multi-Step Forecasting (DMF): Maps a fixed history to a fixed future window. While it avoids error accumulation, it often fails to dynamically leverage future covariates during the training phase as effectively as a sequence-to-sequence approach.

Methodology: The MMMF Framework

MMMF is not a specific neural network architecture, but a self-supervised training paradigm applicable to any sequence-generating model (e.g., LSTM, TCN, Transformer). Inspired by masking techniques used in Natural Language Processing (like BERT), MMMF forces the model to "fill in the blanks" of a time series.

Comparison of MMMF with traditional forecasting frameworks: (a) MMMF, (b) SBF, (c) RSF, and (d) DMF. Blue cells represent known historical data, green cells represent known future predictors, and white cells represent targets to be predicted.

As illustrated in Figure 1, the core innovation lies in how the data is presented during training. For each training batch, the framework randomly selects a "mask length." It hides the target variables for the final steps of a sequence but keeps the "predictor" variables (the future information) visible. The loss is calculated only on the masked outputs, forcing the model to learn the relationship between future "knowns" (like a heatwave forecast) and future "unknowns" (the resulting spike in electricity usage).

Experimental Evaluation

The authors evaluated MMMF on two distinct real-world problems:

  • ISO New England Zonal Electricity Demand: Predicting daily peak demand across 8 zones using calendar variables and weather data (2011–2021).
  • Regional Flight Departures: Predicting daily passenger aircraft departures for 7 global regions using calendar data and monthly jet fuel price projections (2019–2022).

Key Results

The framework showed significant improvements over traditional Recursive (RSF) and Direct (DMF) formulations across various architectures:

  • Accuracy: In electricity forecasting (60-day horizon) using an LSTM base model, MMMF achieved a Mean Absolute Percentage Error (MAPE) of 5.46%, compared to 10.62% for RSF and 21.75% for DMF.
  • Information Fusion: In flight forecasting, MMMF successfully digested low-resolution future data (monthly fuel prices) to improve high-resolution daily forecasts, consistently achieving the lowest Mean Squared Error (MSE).
  • Efficiency: Because MMMF is a training-time modification, the resulting models maintain the same inference speed and memory footprint as traditionally trained models. Inference for the entire electricity dataset took approximately 0.03 seconds across all methods.

Conclusion

MMMF offers a robust, architecture-agnostic way to improve time series forecasting whenever future information is available. By transforming the forecasting problem into a series of diverse masking sub-tasks, it produces models that are more accurate and resilient to error accumulation without sacrificing performance at deployment.

Summary updated

BibTeX
@misc{fu2022masked,
  author = {Yiwei Fu and Honggang Wang and Nurali Virani},
  title = {{Masked Multi-Step Multivariate Time Series Forecasting with Future Information}},
  year = {2022},
  eprint = {2209.14413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.14413},
}
Figure