PMLF: A Physics-Guided Multiscale Loss Framework for Structurally Heterogeneous Time Series

Xinghong Chen, Weilin Wu, Kunping Yang, Guannan ChenNeurIPS 2025

Overview

The Physics-Guided Multiscale Loss Framework (PMLF) moves beyond the "one-size-fits-all" approach to training time series models. By decomposing signals into seasonal and trend components and applying distinct, physics-inspired loss functions—quadratic for oscillations and logarithmic for trends—it significantly improves forecasting accuracy and long-term stability across a wide variety of neural architectures.

The Challenge of Structural Heterogeneity

Real-world time series are rarely simple; they are "structurally heterogeneous." This means they contain high-frequency seasonal fluctuations (like daily temperature swings) and low-frequency trends (like seasonal climate shifts).

The authors identify a major gap in current research: while we have invented complex architectures (Transformers, Mamba, etc.) to represent these scales, we still use a single, uniform loss function—usually Mean Squared Error (MSE)—to optimize them. This creates a mismatch. Seasonal components are sensitive to phase shifts and need strict local alignment, while trends are more tolerant of local "jitter" but highly susceptible to long-term drift. Using a uniform loss often leads to models that overfit to seasonal noise or fail to capture the underlying trend, resulting in poor long-term forecasts.

The PMLF Approach

PMLF introduces a "supervision-level" innovation rather than a new model architecture. It is model-agnostic, meaning it can be plugged into almost any existing forecasting backbone to boost performance.

Overview of the Physics-Guided Multiscale Loss Framework (PMLF)

The framework operates in three main steps:

  1. Structural Decomposition: The model’s prediction and the ground truth are split into seasonal and trend components using a shared operator (such as a moving average filter).
  2. Physics-Inspired Loss Design: Instead of applying MSE across the board, the authors draw an analogy from molecular dynamics to assign component-specific objectives.
  3. Dynamic Loss Balancing: Because these two physical processes operate at different energy scales, the framework uses a softmax-based weighting strategy. This adaptively balances the gradients from the seasonal and trend branches during training, preventing one from drowning out the other.

Core Innovations

The "Aha" Analogy: Physics-Guided Loss

The most striking idea in this paper is linking time series components to molecular physics. By treating seasonality as a harmonic oscillator and trends as a dissipative system undergoing relaxation, the authors provide a theoretical grounding for why different loss shapes are necessary.

Analogy between molecular dynamics and time series components
  • Seasonal $\approx$ Molecular Vibration: High-frequency oscillations around an equilibrium are modeled using a Quadratic Loss. This imposes a strict penalty on small deviations, ensuring fine-grained alignment.
  • Trend $\approx$ Molecular Drift: Long-term evolution under external force is modeled using a Logarithmic Loss. This reflects a sublinear energy profile, making the model more robust to local errors while preventing the "drift" that ruins long-range predictions.

Logarithmic Robustness

The use of a logarithmic penalty for trends is a clever way to handle long-term drift. It prevents the model from becoming overly obsessed with matching every point on a slow-moving line, focusing instead on the overall trajectory.

Evaluation and Performance Highlights

The authors evaluated PMLF on eight widely recognized public benchmarks in the time series community, including ETT (Electricity Transformer Temperature), Weather, ECL (Electricity consumption), Traffic, and Solar-Energy datasets.

PMLF was tested against five state-of-the-art baselines (including iTransformer, TimeMixer, and S-Mamba), yielding impressive results:

  • Consistent Gains: Across almost all datasets and horizons, PMLF reduced both MSE and MAE.
  • MAE Dominance: The improvements were particularly notable in the Mean Absolute Error (MAE) metric. For example, in 60 out of 64 test cases for the iTransformer model, PMLF outperformed the standard MSE baseline.
  • Long-Term Stability: Models trained with PMLF produce trend lines that stay much closer to the ground truth over long horizons compared to those trained with standard MSE, which often drift away.

Limitations and Future Directions

  • Separability Assumption: PMLF assumes that the time series can be cleanly decomposed into seasonal and trend components. In signals dominated by abrupt, non-periodic regime shifts (like sudden financial crashes), this decomposition might struggle.
  • Fixed Decomposition: The current version uses a fixed moving average for decomposition. The authors suggest that adaptive decomposition mechanisms—where the model learns how to split the signal dynamically—could be a promising next step.
  • Single-Scale Signals: The benefits of PMLF are most apparent in heterogeneous data. For very simple, single-scale signals, the added complexity of the multiscale loss might not be necessary.

Summary updated

BibTeX
@inproceedings{chen2025pmlf,
  author = {Xinghong Chen and Weilin Wu and Kunping Yang and Guannan Chen},
  title = {{PMLF: A Physics-Guided Multiscale Loss Framework for Structurally Heterogeneous Time Series}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=NWtkmDPAA6},
}
Figure