TL;DR
Researchers from the Karlsruhe Institute of Technology demonstrate that training a single "global" Transformer model across hundreds of different electricity customers significantly outperforms traditional local or multivariate approaches. By treating multiple time series as a massive shared dataset, the global strategy reduces forecasting errors by up to 21.8% compared to standard multivariate methods.
What Problem Does This Paper Address?
As we transition to smart grids, utilities need highly accurate, fine-grained load forecasts to balance supply and demand, especially with the rise of volatile renewables and heavy loads like electric vehicles. While smart meters provide a wealth of data, the history for any individual household or building is often too short to train complex deep learning models effectively.
The core challenge is determining the best way to train models when you have many related time series (e.g., 300 different houses). Should you train one model per house (Local)? One giant model that looks at every house at once (Multivariate)? Or one model that learns from everyone but predicts for one at a time (Global)?
Methods
The authors utilize a standard encoder-decoder Transformer architecture, originally designed for natural language processing but adapted here for time series. Key features include cyclical encoding for time (sine/cosine for hours/months) and a direct multi-step forecasting approach where the decoder predicts the entire horizon at once.
The paper compares three distinct training strategies:
- Multivariate: A single model receives all $C$ time series as a single multi-dimensional input and predicts all $C$ outputs simultaneously.
- Local: $C$ separate models are trained, each seeing only the data from one specific client.
- Global: A single univariate model is trained on the pooled data from all $C$ clients. During training, it sees samples from different houses; during inference, it is applied to each house individually.
Datasets
The study evaluates these strategies on two major benchmarks:
- Electricity Dataset: Hourly load data from 321 clients of a Portuguese energy supplier (offices, factories, etc.) spanning 2012–2014.
- Ausgrid Solar Home Dataset: Hourly data from 299 private Australian homes with rooftop solar, spanning 2010–2013.
Key Insights and Ideas
- Transformers are Data-Hungry: The "Local" strategy fails because individual client histories aren't large enough to satisfy the Transformer's need for data, leading to poor generalization.
- The Multivariate Trap: While multivariate models are popular in research, they are prone to overfitting and struggle with the high dimensionality of hundreds of clients. They often fail to beat simple "persistence" baselines (predicting that next week will look exactly like last week).
- Global Training as Transfer Learning: The Global strategy acts as a form of zero-shot transfer learning. By seeing thousands of different daily patterns across hundreds of clients, the model learns a generalized "language" of electricity usage that is far more robust than what it could learn from a single house.
- Lookback Matters: Global models benefit significantly from longer lookback windows (up to 2 weeks of history), whereas local models often plateau or degrade with more history due to their limited total training samples.
Key Results
- Superior Accuracy: The Global Transformer achieved 21.8% lower error than the multivariate strategy and 12.8% lower error than the local strategy on average.
- State-of-the-Art Performance: The global approach outperformed well-known specialized architectures like Informer, Autoformer, and FEDformer on the Electricity dataset for short-term horizons.
- Efficiency: Training one global model is significantly faster and more computationally efficient than training hundreds of individual local models, which the authors found to be the most time-consuming approach by far.
- Comparison to Linear Models: While Transformers are powerful, the authors note that simple linear models (like LTSF-Linear) remain surprisingly strong baselines, especially for very long forecasting horizons (e.g., one month ahead).
Limitations and Future Work
The authors identify several areas for improvement:
- Exogenous Variables: The current models do not include weather data (temperature, solar radiation), which are primary drivers of electrical load.
- Clustering: A potential middle ground could involve clustering similar clients (e.g., all "offices" or all "supermarkets") and training one global model per cluster to balance data volume with data similarity.
- Architecture Refinement: While the standard Transformer performed well, newer variations like PatchTST (which uses patching to handle time series) showed even better results for long-term horizons, suggesting that the strategy (Global) is just as important as the architecture.
Summary updated