Few-Shot Forecasting of Time-Series with Heterogeneous Channels

Lukas Brinkmeyer, Rafael Rêgo Drumond, Johannes Burchert, Lars Schmidt-Thieme · DOI

Abstract

Traditional multivariate time-series forecasting models are typically constrained by fixed input dimensions and specific channel identities, making them difficult to adapt to new domains without extensive retraining. This paper introduces TimeHetNet, a framework designed for few-shot forecasting across datasets with completely different variables (heterogeneous channels). By utilizing a permutation-invariant architecture and a novel meta-dataset of 40 diverse time-series sources, TimeHetNet learns generalizable forecasting rules that significantly outperform traditional single-task and state-of-the-art univariate models.

Introduction

In fields like computer vision, pre-training on massive datasets like ImageNet to enable few-shot learning on new tasks is a standard practice. However, time-series forecasting has historically lacked this flexibility. Most multivariate models are "bespoke," meaning they are architecturally tied to a specific set of sensors or features. For instance, a model trained on weather data (Temperature, Humidity) cannot be easily applied to industrial sensor data (Vibration, Pressure) because the input shape and the semantic meaning of the channels differ fundamentally.

This research addresses the challenge of Few-Shot Forecasting with Heterogeneous Channels. The goal is to develop a model capable of learning universal "forecasting logic" from a wide variety of data types, allowing it to make accurate predictions on a brand-new dataset using only a handful of support samples.

Methodology: TimeHetNet

The core innovation of TimeHetNet is its ability to treat input channels as a set rather than a fixed-order vector. This is achieved through a "Deep Sets" inspired architecture that ensures the model is permutation-invariant regarding its input channels.

1. Deep Set-Blocks

Instead of assigning a fixed position to specific variables (e.g., position 1 is always "Voltage"), TimeHetNet processes each channel independently through an inner function ($f$) and then aggregates the results through a global function ($g$). This allows the model to handle any number of channels in any order, making it truly channel-agnostic.

2. Temporal Inductive Biases

While standard Deep Set models are designed for static data, time-series require an understanding of temporal dynamics. TimeHetNet incorporates Gated Recurrent Units (GRUs) and 1D-Convolutional layers within its set-blocks. This allows the model to capture the "rhythm," seasonality, and historical dependencies of the data before aggregating channel-wise information.

3. Inference and Prediction Networks

The framework employs a dual-network strategy:

  • Inference Network: Analyzes a small number of "support" examples from a new task to extract a task-specific embedding.
  • Prediction Network: Uses this embedding as context to generate forecasts for new "query" data from the same task.

The First Multivariate Meta-Dataset

To train and evaluate TimeHetNet, the authors assembled the first comprehensive meta-dataset for multivariate forecasting. This collection includes 40 datasets from diverse domains:

  • UCR & UEA Archives: Standard benchmarks for time-series classification and regression.
  • Monash Time Series Archive: Large-scale forecasting data.
  • Informer Datasets: Including Electricity Transformer Temperature (ETT) data.
  • Specialized Sources: Motion capture (PeekDB) and manufacturing data (CNC mill tool wear).

By sampling 11,000 tasks per dataset and varying the number of channels (between 5 and 10), the researchers ensured the model learned to extract useful signals regardless of the specific variable identities.

Key Insights and Results

TimeHetNet was compared against a variety of baselines, including single-task models (GRU, FCN) and state-of-the-art univariate forecasters (N-BEATS, SCINet).

Superior Accuracy

TimeHetNet achieved the lowest Mean Squared Error (MSE) across all tested forecasting horizons. At a horizon of $t_0+10$, TimeHetNet achieved an MSE of 0.389, significantly outperforming the best non-meta-learning baseline, SCINet, which recorded an MSE of 0.594.

Zero-Shot and Few-Shot Capability

The model demonstrated remarkable "out-of-the-box" performance. Even when presented with a dataset it had never encountered during training, TimeHetNet provided more accurate forecasts than models trained specifically on that single dataset's limited support samples. Furthermore, performance generally improved as more covariate channels were provided (up to approximately 8), indicating the model effectively filters and utilizes information from heterogeneous inputs.

Discussion and Limitations

While TimeHetNet represents a significant step toward a "foundation model" for time-series, several challenges remain:

  • Computational Cost: Meta-learning across 40 datasets is computationally intensive during the training phase, though inference remains fast.
  • Horizon Focus: The current implementation focuses on point-forecasting. Future iterations could expand to rolling forecasts or full-horizon distribution predictions.
  • Structural Metadata: The model currently ignores potential hierarchical or graph-based relationships between channels. Incorporating such metadata could further enhance predictive power.

Conclusion

TimeHetNet proves that there is a shared underlying logic to how covariates influence targets across different time-series domains. By moving away from fixed-channel architectures and embracing permutation-invariant temporal processing, researchers can now build models that generalize across the vast and fragmented landscape of multivariate time-series data.

Summary updated

BibTeX
@inproceedings{brinkmeyer2022few,
  author = {Lukas Brinkmeyer and Rafael Rêgo Drumond and Johannes Burchert and Lars Schmidt-Thieme},
  title = {{Few-Shot Forecasting of Time-Series with Heterogeneous Channels}},
  booktitle = {ECML/PKDD},
  year = {2022},
  url = {https://openreview.net/forum?id=NPCOVLYJCq},
}
Figure