TimeEmb: A Lightweight Static-Dynamic Disentanglement Framework for Time Series Forecasting

Mingyuan Xia, Chunxu Zhang, Zijian Zhang, Hao Miao, Qidong Liu, Yuanshao Zhu, Bo Yang

TL;DR

TimeEmb is a lightweight framework that boosts time series forecasting by explicitly disentangling data into "static" (long-term, persistent) and "dynamic" (short-term, fluctuating) components. By processing these components in the frequency domain using a learnable embedding bank and an efficient spectral filter, it achieves state-of-the-art accuracy with significantly fewer parameters and lower computational costs than heavy Transformer-based models.

The Challenge: Temporal Non-Stationarity

The biggest headache in time series forecasting is temporal non-stationarity—the reality that the underlying distribution of data changes over time. Consider traffic patterns: there is a "static" rhythm (rush hour happens every morning) and a "dynamic" fluctuation (a random accident causes a sudden jam).

Most existing models struggle because they conflate these two signals. They attempt to learn long-term trends and short-term noise simultaneously, often leading the model to mistake a temporary "blip" for a permanent change in the trend. Furthermore, many high-performing models (like Transformers) are computationally expensive, making them difficult to deploy on edge devices or in resource-constrained environments.

Methodology: Static-Dynamic Disentanglement

To address this, the authors introduce TimeEmb, which operates primarily in the frequency domain to separate these signals cleanly.

TimeEmb Architecture

The workflow follows three main steps:

  1. Domain Transformation: The input time series is transformed into the frequency domain using a Real-valued Fast Fourier Transform (rFFT). This reveals periodic structures that are often obscured in the time domain.
  2. Static-Dynamic Disentanglement:
    • The Embedding Bank (Static): The model maintains a "bank" of learnable embeddings indexed by timestamps (e.g., the hour of the day). These embeddings capture global, recurring patterns shared across the entire dataset.
  3. Frequency Filtering (Dynamic): After subtracting the static component, the remaining "dynamic" part is processed by a learnable frequency filter. This filter selectively reweights frequency bands to emphasize informative signals and suppress noise.
  4. Fusion and Prediction: The processed components are recombined, transformed back to the time domain via Inverse FFT (IFFT), and passed through a simple two-layer MLP to generate the final forecast.

What makes this novel is the global nature of the embedding bank—it learns patterns across the whole dataset rather than just local windows—and the use of frequency-domain operations to keep the architecture extremely lightweight.

Key Insights

  • Frequency Domain is a "Cheat Code" for Periodicity: By moving to the spectral space, complex temporal patterns become linear combinations of sine and cosine waves. This makes it much easier to "filter out" noise compared to working in the messy time domain.
  • Global vs. Local Patterns: Most models look at a local "lookback window" to predict the future. TimeEmb’s embedding bank allows it to remember global contexts (e.g., "it's 8:00 AM on a Monday") that local windows often miss.
  • Plug-and-Play Compatibility: TimeEmb's disentanglement mechanism can be added to other backbones (like DLinear or iTransformer) to improve their performance with negligible overhead.

Key Results

The authors evaluated TimeEmb on seven widely recognized real-world benchmarks, including ETT, Weather, Electricity (ECL), and Traffic datasets.

Performance vs Efficiency
  • Superior Accuracy: TimeEmb consistently outperformed SOTA baselines (including PatchTST, iTransformer, and CycleNet), showing an average MSE reduction of 3.0% to 8.7% across various horizons.
  • Extreme Efficiency: As shown in the performance comparison above, on the Electricity dataset, TimeEmb achieved the best predictive performance while using over 5x fewer parameters than iTransformer and requiring significantly less training time.
  • Robustness to Long Sequences: Unlike many models that degrade as the input length increases, TimeEmb maintained stable accuracy even with extended lookback windows (up to 720 timesteps).

Limitations and Future Work

The authors identify two primary areas for improvement:

  • Fixed Resolution: The current embedding bank uses a fixed resolution (e.g., hourly or daily). This might limit the model's ability to capture patterns that occur across multiple scales simultaneously (like a pattern that is both "Monday morning" and "First of the month").
  • Discrete Structure: The embeddings are currently discrete. Moving toward a continuous or kernelized representation could allow the model to generalize better to unseen temporal slots or evolving periodicities.

Future research could explore multi-scale embedding banks or integrating TimeEmb into even larger foundation models for time series.

Summary updated

BibTeX
@inproceedings{xia2025timeemb,
  author = {Mingyuan Xia and Chunxu Zhang and Zijian Zhang and Hao Miao and Qidong Liu and Yuanshao Zhu and Bo Yang},
  title = {{TimeEmb: A Lightweight Static-Dynamic Disentanglement Framework for Time Series Forecasting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=sLfMvrkn6T},
}
Figure