Beyond Data Scarcity: A Frequency-Driven Framework for Zero-Shot Forecasting

Liran Nochumsohn, Michal Moshkovitz, Orly Avner, Dotan Di Castro, Omri Azencot

TL;DR

Freq-Synth is a lightweight framework that generates task-specific synthetic time series data by focusing on fundamental frequencies and their harmonics. By aligning synthetic training data with the target domain's frequency profile, the authors enable both foundation and non-foundation models to achieve state-of-the-art zero-shot and few-shot forecasting performance while using 1000x less data than traditional methods.

What Problem Does This Paper Address?

Time series forecasting (TSF) is essential for everything from energy grid management to healthcare planning. However, traditional models require massive amounts of historical data to perform well. While "foundation models" (pre-trained on vast datasets) have emerged to handle zero-shot scenarios, they are computationally expensive and often fail to capture the specific periodic patterns of a new target domain.

The authors identify two core hurdles in current TSF learning:

  1. Frequency Confusion: Models often perform worse when trained on data containing many unrelated frequencies, even if the target frequency is present.
  2. Poor Frequency Generalization: Models struggle to predict periodic patterns they haven't explicitly seen during training.

The central question is: How can we generate compact, effective training data that helps a model generalize to new domains without the overhead of massive real-world datasets?

Methods

The authors propose Freq-Synth, a framework rooted in Fourier analysis. Instead of trying to mimic the complexity of real-world data, Freq-Synth generates synthetic signals based on the fundamental frequency ($\bar{\omega}$) of the target task.

The process involves two main steps:

  1. Creating a Pool of Sines: Given a fundamental frequency (derived from the target sampling rate, like 1/24 for hourly data), the system generates a pool of sine waves that are harmonics of that frequency (e.g., $2\bar{\omega}, 3\bar{\omega}$).
  2. Dataset Construction: Multivariate time series are created by randomly sampling and summing these sine waves. This creates a "clean" version of the periodic structures the model is expected to encounter.
Figure 3: We construct a pool of sine waves that are harmonics to a given fundamental frequency (left). We create a multivariate time series by sampling and adding sines per variate (right).

Crucially, this approach only requires the sampling rate of the target data to estimate the necessary frequencies, making it highly practical for zero-shot settings.

Datasets

The authors evaluated their approach using the standard Long-term Time Series Forecasting (LTSF) benchmark, which includes:

  • ETT (Electricity Transformer Temperature): Four subsets (ETTh1, ETTh2, ETTm1, ETTm2).
  • Electricity, Traffic, Weather, and Exchange datasets.

For training baselines, they used large-scale real-world repositories including Monash and PEMS. They compared Freq-Synth against other synthetic data generators like TimesFM, ForecastPFN, and KernelSynth.

Key Insights and Ideas

  • Frequency Alignment > Domain Similarity: The authors found that a model's ability to transfer knowledge depends more on the correlation of the training and testing sets in the frequency space (measured by periodogram similarity) than on whether they come from the same "sector" (e.g., energy vs. finance).
  • The "Less is More" Paradox: Adding more diverse frequencies to a training set can actually degrade performance due to "Frequency Confusion." Figure 1: Performance degrades as unrelated frequencies are added (left), and models fail significantly when the target frequency is missing from training (right).

  • Foundation Models Overfit Frequencies: Even massive models like GPT4TS and TimesFM show significant performance dips when tested on frequencies that weren't dominant in their pre-training data (e.g., they excel at hourly data but struggle with 15-minute intervals).

Figure 1: We show an example of frequency confusion, where adding more frequencies gradually degrades performance (left). We also observe large performance differences when the fundamental target frequency exist vs. absent in the train set, implying poor frequency generalization (right).

Key Results

  • Superior Zero-Shot Performance: Training solely on Freq-Synth data outperformed training on massive real-world datasets in 6 out of 8 benchmark tasks.
  • Efficiency: Freq-Synth uses roughly 1000x less data in volume compared to the real-world training sets used by state-of-the-art models.
  • Speed: Freq-Synth generated 1 million time points in 0.1 seconds, compared to 14.6 seconds for ForecastPFN and over 2 hours for KernelSynth.
  • Few-Shot Gains: When used for fine-tuning, Freq-Synth led to an average MSE reduction of 10.6% to 19.5% across various models (TTM, Timer, PatchTST) compared to fine-tuning on real data.

Limitations and Future Work

The primary limitation of Freq-Synth is its reliance on clear periodic patterns. It struggles with datasets like Exchange, which are characterized by high randomness and a lack of dominant fundamental frequencies. In these cases, the "natural" frequency estimation fails to capture the true spectral span of the data.

Future research directions include:

  • Combining Freq-Synth with real-world data to create hybrid training sets.
  • Developing more sophisticated methods to estimate fundamental frequencies in highly noisy or non-periodic signals.
  • Investigating how this frequency-driven approach can be integrated directly into the architecture of future foundation models.

Summary updated

BibTeX
@misc{nochumsohn2024beyond,
  author = {Liran Nochumsohn and Michal Moshkovitz and Orly Avner and Dotan Di Castro and Omri Azencot},
  title = {{Beyond Data Scarcity: A Frequency-Driven Framework for Zero-Shot Forecasting}},
  year = {2024},
  eprint = {2411.15743},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.15743},
}
Figure