Introduction
In the domain of time series forecasting, deep learning architectures such as Transformers and CNNs have traditionally prioritized "local" observations—the immediate historical data points within a look-back window. While effective for capturing short-term trends, these models often treat timestamps (e.g., hour of day, day of week) as secondary features, frequently merging them into data embeddings where their distinct physical significance is diluted.
This paper introduces the Global-Local Adaptive Fusion Framework (GLAFF), a plug-and-play module that elevates timestamps to a primary "global" signal. By modeling timestamps independently and adaptively fusing them with existing forecasting backbones, GLAFF addresses the inherent vulnerability of local-only models to data anomalies and sensor glitches.
The Problem: The Overlooked Global Signal
Most state-of-the-art models utilize "early fusion," where timestamp embeddings are mixed with raw data at the input layer. This approach is problematic because noise or anomalies in the local data can pollute the stable, seasonal signal provided by the timestamps. For instance, if a sensor fails during a holiday, a model relying solely on local history will likely produce an erroneous forecast, failing to recognize the predictable seasonal return to normalcy. GLAFF seeks to bridge this gap by treating timestamps as a reliable global anchor that guides the local prediction.
The GLAFF Architecture
GLAFF is designed as a model-agnostic framework that can be integrated into any standard forecasting backbone, such as iTransformer, DLinear, or TimesNet. It operates through three core components:
- Attention-based Mapper: This module processes timestamps from both history and future windows using a simplified Transformer encoder. It maps these temporal dependencies into a "standard distribution" that represents the underlying global pattern, isolated from the volatility of the raw data.
- Robust Denormalizer: To combat "data drift"—where statistical properties change over time—this component performs inverse normalization on the global mapping. Unlike traditional methods that use mean and variance, GLAFF utilizes medians and inter-quartile ranges (IQR). This makes the system significantly more resilient to outliers and point anomalies.
- Adaptive Combiner: Recognizing that not all datasets are equally predictable via timestamps, this module employs a Multilayer Perceptron (MLP) to dynamically weight the global (timestamp-based) and local (backbone-based) predictions. When local data is chaotic, the system automatically leans more heavily on the stable global signal.
Key Insights: Late Fusion and Quantile Robustness
A central contribution of this work is the validation of late fusion. By allowing the timestamp model and the data model to run independently before combining their outputs, GLAFF prevents data noise from corrupting the clean temporal signal. Furthermore, the shift to quantile-based normalization represents a significant step forward in robustness; while a single data spike can skew a mean-based model, medians remain stable, preserving the model's sense of scale even during extreme events.
Experimental Results
The authors evaluated GLAFF across nine diverse benchmark datasets spanning energy consumption (Electricity, ETT), transportation (Traffic), economics (Exchange), climate (Weather), and healthcare (ILI).
- Performance Gains: GLAFF improved the accuracy of four mainstream backbones (Informer, DLinear, TimesNet, and iTransformer) by an average of 12.5%.
- State-of-the-Art Comparison: The framework outperformed the previous state-of-the-art, iTransformer, by 5.5%.
- LLM Integration: GLAFF also demonstrated compatibility with Large Language Model-based forecasters like FPT, providing consistent performance boosts.
- Qualitative Robustness: In scenarios where local data was misleading—such as a temporary traffic dip during a holiday—GLAFF-enabled models correctly predicted the return to normal peaks, whereas standard models failed by projecting the temporary dip forward.
Limitations and Future Directions
While GLAFF offers substantial accuracy and robustness gains, it introduces a modest computational overhead. The stacked attention blocks in the Mapper increase training time by approximately 23 seconds and memory usage by roughly 25MB on average. While negligible for high-performance servers, this may impact deployment on resource-constrained edge devices. Future research will focus on developing "lighter" versions of the framework, potentially utilizing dilated convolutions or graph neural networks to optimize for real-time IoT applications.
Conclusion
GLAFF demonstrates that timestamps are not merely metadata but are essential global signals that provide a foundation for robust forecasting. By decoupling temporal patterns from local data noise and employing robust statistical normalization, GLAFF sets a new standard for accuracy and reliability in time series analysis.
Summary updated