Table of Contents
Fetching ...

On the Regularization of Learnable Embeddings for Time Series Forecasting

Luca Butera, Giovanni De Felice, Andrea Cini, Cesare Alippi

TL;DR

This work targets a key bottleneck in hybrid global-local time-series forecasting: local learnable embeddings can overfit by acting as identifiers, limiting transferability. It conducts an extensive empirical study across architectures and regularization strategies, highlighting that embedding perturbations—especially variational regularization, dropout, and forgetting—consistently improve performance with negligible overhead. The results suggest these perturbation-based methods structure the embedding space and disrupt co-adaptation, offering a practical design principle for robust, transferable time-series foundation models. Overall, embedding regularization emerges as a crucial, underappreciated component for strengthening transferability and robustness in spatiotemporal forecasting models.

Abstract

In forecasting multiple time series, accounting for the individual features of each sequence can be challenging. To address this, modern deep learning methods for time series analysis combine a shared (global) model with local layers, specific to each time series, often implemented as learnable embeddings. Ideally, these local embeddings should encode meaningful representations of the unique dynamics of each sequence. However, when these are learned end-to-end as parameters of a forecasting model, they may end up acting as mere sequence identifiers. Shared processing blocks may then become reliant on such identifiers, limiting their transferability to new contexts. In this paper, we address this issue by investigating methods to regularize the learning of local learnable embeddings for time series processing. Specifically, we perform the first extensive empirical study on the subject and show how such regularizations consistently improve performance in widely adopted architectures. Furthermore, we show that methods attempting to prevent the co-adaptation of local and global parameters by means of embeddings perturbation are particularly effective in this context. In this regard, we include in the comparison several perturbation-based regularization methods, going as far as periodically resetting the embeddings during training. The obtained results provide an important contribution to understanding the interplay between learnable local parameters and shared processing layers: a key challenge in modern time series processing models and a step toward developing effective foundation models for time series.

On the Regularization of Learnable Embeddings for Time Series Forecasting

TL;DR

This work targets a key bottleneck in hybrid global-local time-series forecasting: local learnable embeddings can overfit by acting as identifiers, limiting transferability. It conducts an extensive empirical study across architectures and regularization strategies, highlighting that embedding perturbations—especially variational regularization, dropout, and forgetting—consistently improve performance with negligible overhead. The results suggest these perturbation-based methods structure the embedding space and disrupt co-adaptation, offering a practical design principle for robust, transferable time-series foundation models. Overall, embedding regularization emerges as a crucial, underappreciated component for strengthening transferability and robustness in spatiotemporal forecasting models.

Abstract

In forecasting multiple time series, accounting for the individual features of each sequence can be challenging. To address this, modern deep learning methods for time series analysis combine a shared (global) model with local layers, specific to each time series, often implemented as learnable embeddings. Ideally, these local embeddings should encode meaningful representations of the unique dynamics of each sequence. However, when these are learned end-to-end as parameters of a forecasting model, they may end up acting as mere sequence identifiers. Shared processing blocks may then become reliant on such identifiers, limiting their transferability to new contexts. In this paper, we address this issue by investigating methods to regularize the learning of local learnable embeddings for time series processing. Specifically, we perform the first extensive empirical study on the subject and show how such regularizations consistently improve performance in widely adopted architectures. Furthermore, we show that methods attempting to prevent the co-adaptation of local and global parameters by means of embeddings perturbation are particularly effective in this context. In this regard, we include in the comparison several perturbation-based regularization methods, going as far as periodically resetting the embeddings during training. The obtained results provide an important contribution to understanding the interplay between learnable local parameters and shared processing layers: a key challenge in modern time series processing models and a step toward developing effective foundation models for time series.

Paper Structure

This paper contains 40 sections, 8 equations, 10 figures, 6 tables.

Figures (10)

  • Figure 1: Overview of the hybrid global-local time series forecasting framework.
  • Figure 2: Validation curves when regularizing whole model or just local parameters in a time series forecasting task (STGNN model, METR-LA dataset, 50 runs, $\pm 1std$). Models and datasets are discussed in Sec. \ref{['sec:exp']}.
  • Figure 3: Validation curves for different training scenarios (5 runs, $\pm 1std$). Plot names follow the convention model (embedding size) [dataset].
  • Figure 4: Test performance degradation on embeddings perturbation (5 runs, $\pm 1std$, , ). Left: Adding zero-mean Gaussian noise. Right: (Left) random shuffling, (Middle) replaced with their mean, and (Right) replaced by a draw from their sample normal.
  • Figure 5: Sensitivity to forgetting period $k$ across different learning rates and datasets (5 runs, ). A period of $0$ indicates no regularization.
  • ...and 5 more figures