Toward Physics-guided Time Series Embedding

Jiaxi Hu, Bowen Zhang, Qingsong Wen, Fugee Tsung, Yuxuan Liang · DOI

Introduction

Deep learning has revolutionized time series analysis, yet it frequently encounters a "physics problem." Conventional models rely on trainable embedding layers to map raw data into latent spaces. While flexible, these "black-box" layers often lead to overfitting and poor generalization because they lack an understanding of the underlying physical laws—such as fluid dynamics or thermodynamics—governing the data. This paper addresses the gap between data-driven neural network fitting and first-principles dynamical systems modeling by introducing a framework for physics-guided embeddings.

Embedding Duality Theory

The core contribution of this work is Embedding Duality Theory. This theory posits that the hidden state representations in deep models are essentially trying to approximate the system's structure in "phase space." The authors provide a mathematical proof that a standard linear embedding layer is equivalent to an integral transformation. In this view, neural networks are not performing a "magical" operation; rather, they are executing a coordinate transformation intended to linearize the system's Jacobian.

The Embedding Duality Theory bridges dynamical systems in phase space with neural network embeddings in hidden space.

This duality suggests that instead of letting a model learn these transformations from scratch—which is computationally expensive and prone to noise—we can use non-parametric physical priors to guide the embedding process.

Physics-Guided Reconstruction Methods

The authors propose replacing learned embedding layers with four distinct physics-guided techniques that can be integrated into existing architectures like Transformers (e.g., PatchTST), CNNs (e.g., ModernTCN), or State Space Models (e.g., Time-SSM):

  1. Time Delay Embedding (TD-Emb): Grounded in Takens’ Theorem, this method uses lagged versions of a signal to reconstruct the multi-dimensional state space of the underlying system.
  2. High-order Derivatives Embedding (HD-Emb): This approach concatenates the signal with its derivatives (such as velocity and acceleration) to capture the temporal evolution of the system.
  3. Integral-differential Embedding (ID-Emb): By incorporating integrals, this method mitigates the sensitivity to noise often found in pure derivative-based embeddings.
  4. Principal Component Embedding (PC-Emb): This technique combines time delays with Principal Component Analysis (PCA) to reduce dimensionality while preserving the essential "attractor" shape of the dynamical system.

Experimental Evaluation

The approach was rigorously tested across eight mainstream time series datasets, including the Electricity Transformer Temperature (ETT) suite, Weather (meteorological factors), Exchange rates, Electricity consumption, and Traffic occupancy. The evaluation spanned various tasks, from long-term forecasting to zero-shot and few-shot transfer learning.

Key Results and Efficiency

The results demonstrate that physics-guided embeddings provide a "free lunch" in terms of efficiency and performance. By removing the need to train massive embedding matrices, the authors achieved a 10× reduction in parameters and a 3× increase in training speed.

Performance improvements across various tasks and models when using physics-guided embeddings compared to original baselines.

Beyond efficiency, the performance gains are substantial:

  • Forecasting Accuracy: "Expert" models trained from scratch saw performance boosts of up to 18%.
  • Superior Generalization: The most striking results appeared in transfer learning. Because physical structures are more universal than learned weights, the models achieved a 53% improvement in zero-shot tasks and a 22% improvement in few-shot scenarios.
  • The Dim Scaling Law: The research identified an "ideal" hidden dimension for datasets. While standard models often require meticulous tuning, physics-guided versions reached optimal performance using simple heuristics, such as the "CC method" for determining time delays.

Conclusion and Future Directions

Toward physics-guided time series embedding represents a significant step toward merging domain-specific physical knowledge with general-purpose deep learning. While the current implementation shows some sensitivity to noise in derivative-based embeddings, the overall framework offers a robust, interpretable, and highly efficient alternative to traditional black-box embeddings. Future work may involve making physical parameters learnable or scaling these techniques to massive Time Series Foundation Models (LTSFM).

Summary updated

BibTeX
@misc{hu2024toward,
  author = {Jiaxi Hu and Bowen Zhang and Qingsong Wen and Fugee Tsung and Yuxuan Liang},
  title = {{Toward Physics-guided Time Series Embedding}},
  year = {2024},
  eprint = {2410.06651},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.06651},
}
Figure