Zero-shot Load Forecasting for Integrated Energy Systems: A Large Language Model-based Framework with Multi-task Learning

Jiaheng Li, Donghe Li, Ye Yang, Huan Xi, Yu Xiao, Li Sun, Dou An, Qingyu Yang · DOI

Abstract

The growing penetration of renewable energy sources in power systems has increased the complexity and uncertainty of load forecasting, especially for integrated energy systems with multiple energy carriers. Traditional forecasting methods heavily rely on historical data and exhibit limited transferability across different scenarios, posing significant challenges for emerging applications in smart grids and energy internet. This paper proposes the TSLLM-Load Forecasting Mechanism, a novel zero-shot load forecasting framework based on large language models (LLMs) to address these challenges. The framework consists of three key components: a data preprocessing module that handles multi-source energy load data, a time series prompt generation module that bridges the semantic gap between energy data and LLMs through multi-task learning and similarity alignment, and a prediction module that leverages pre-trained LLMs for accurate forecasting. The framework's effectiveness was validated on a real-world dataset comprising load profiles from 20 Australian solar-powered households, demonstrating superior performance in both conventional and zero-shot scenarios. In conventional testing, our method achieved a Mean Squared Error (MSE) of 0.4163 and a Mean Absolute Error (MAE) of 0.3760, outperforming existing approaches by at least 8%. In zero-shot prediction experiments across 19 households, the framework maintained consistent accuracy with a total MSE of 11.2712 and MAE of 7.6709, showing at least 12% improvement over current methods. The results validate the framework's potential for accurate and transferable load forecasting in integrated energy systems, particularly beneficial for renewable energy integration and smart grid applications.

Introduction

As the global energy landscape shifts toward decentralized renewable sources like rooftop solar, predicting household energy demand has become increasingly difficult. Traditional forecasting models, such as Convolutional Neural Networks (CNNs) or Long Short-Term Memory (LSTM) networks, are notoriously "data-hungry." They require extensive historical datasets for every new deployment, creating a significant "cold-start" problem for new smart homes or neighborhoods without established records. Furthermore, these models often fail to generalize across different geographical locations or energy usage patterns.

To overcome these limitations, this research introduces the TSLLM-Load Forecasting Mechanism. By repurposing pre-trained Large Language Models (LLMs)—which possess inherent pattern-recognition and reasoning capabilities—the framework enables zero-shot load forecasting. This allows for accurate predictions on energy sequences the model has never encountered during training.

The TSLLM Framework

The TSLLM framework transitions from traditional iterative training cycles to a prompt-based inference model. The architecture is divided into three primary stages:

  1. Data Preprocessing: Raw energy data is cleaned and normalized using reversible instance normalization. This step is crucial for handling the non-stationary nature of energy consumption, where patterns fluctuate significantly across different seasons and times of day.
  2. Time Series Prompt Generation: This core innovation bridges the gap between numerical data and the semantic space of LLMs. The system decomposes data into trend, seasonal, and residual components. It then utilizes Multi-Task Learning (MTL) to process solar generation and appliance loads simultaneously, capturing hidden correlations. Finally, Similarity Alignment maps these numerical patches to the LLM’s internal vocabulary using cosine similarity, effectively translating energy patterns into a "language" the model can process.
  3. Prediction Module: The framework utilizes a pre-trained GPT-2 backbone. Rather than retraining the entire model, the researchers employ selective fine-tuning on specific layers (positional embeddings and layer normalization). This approach preserves the LLM's broad pre-existing knowledge while adapting it to the specific rhythms of power loads.
Comparison of traditional load forecasting workflows (a) versus the proposed LLM-based zero-shot framework (b).

Experimental Setup and Results

The framework was evaluated using the Australian solar household dataset (Ausgrid), featuring 30-minute interval data from solar-equipped households. To test zero-shot capabilities, the model was trained on data from a single household and then tasked with predicting the loads of 19 entirely different households.

Performance Metrics

The TSLLM framework demonstrated significant improvements over established baselines like Informer and Autoformer:

  • Conventional Accuracy: In standard scenarios, the model achieved a Mean Squared Error (MSE) of 0.4163, representing an 8% improvement over state-of-the-art methods.
  • Zero-Shot Transfer: The model excelled in zero-shot tests, showing a 12% performance boost over existing models. It maintained high accuracy across all 19 unseen households, proving its robust transferability.
  • Ablation Insights: The study confirmed that using Cosine Similarity for semantic alignment outperformed standard Euclidean distance, as it more effectively captured the high-dimensional relationships between energy data points.

Conclusion

The TSLLM-Load Forecasting Mechanism demonstrates that LLMs can be effectively repurposed for specialized numerical tasks like energy forecasting. By treating time-series data as a semantic language, the framework solves the cold-start problem and provides a highly transferable solution for smart grid management. Future work will focus on scaling these methods to larger models like Llama 3 and optimizing computational efficiency for deployment on edge devices within integrated energy systems.

Summary updated

BibTeX
@misc{li2025zero,
  author = {Jiaheng Li and Donghe Li and Ye Yang and Huan Xi and Yu Xiao and Li Sun and Dou An and Qingyu Yang},
  title = {{Zero-shot Load Forecasting for Integrated Energy Systems: A Large Language Model-based Framework with Multi-task Learning}},
  year = {2025},
  eprint = {2502.16896},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.16896},
}
Figure