Deep learning transformers reshape solar PV forecasting accuracy
Systematic review finds transformer architectures significantly improve solar generation predictions over traditional deep learning methods.

A systematic review of transformer-based deep learning architectures for solar photovoltaic forecasting has identified substantial accuracy gains over traditional methods, with second-generation models achieving near-perfect correlation between predicted and actual generation output.
Published in Sustainable Energy Research, the survey followed PRISMA guidelines and searched five academic repositories — IEEE Xplore, ScienceDirect, MDPI, SpringerLink and Google Scholar. From 450 initial records, the researchers synthesized 65 peer-reviewed studies published between 2017 and early 2025.
Solar PV is critical for clean energy transitions due to its sustainability, scalability and falling costs. However, weather intermittency from clouds, temperature shifts and seasonal changes causes severe generation fluctuations. Grid operators need reliable generation estimates for load balancing and dispatch.
Traditional methods such as recurrent neural networks (RNNs), long short-term memory (LSTM) networks, gated recurrent units (GRUs) and convolutional neural networks (CNNs) struggle with long-range temporal correlations. Transformers address this limitation through self-attention mechanisms that process long sequences simultaneously.
Foundational and specialized architectures
The review identified several foundational transformer models applied to solar forecasting: Autoformer, FEDformer, iTransformer and TimesNet. Specialized architectures include Informer, which uses ProbSparse attention to reduce computational complexity to linear-logarithmic bounds, and the Temporal Fusion Transformer (TFT), which offers multi-horizon interpretability through variable selection and gating mechanisms.
Hybrid frameworks that combine CNNs or RNNs with transformers for spatial and temporal modeling also featured prominently in the literature.
Second-generation variants introduced between 2023 and 2025 represent a significant step forward. These include Patch-Transformer, which segments time series into patches to capture local temporal textures; TSformer, a decomposable transformer architecture; and CT-PatchTST, a channel-time patch time-series transformer.
The Weather Embedding Cluster Transformer (WECT) uses K-means clustering on weather data with dual transformer modules. The SL-Transformer applies Savitzky-Golay filtering and local outlier factor (LOF) algorithms for data cleansing before transformer processing.
Benchmarking at a 10 MW plant in India
The researchers benchmarked models against three years of daily AC power and meteorological data from a 10 MW crystalline silicon PV plant in Vadodara, Gujarat, India.
The Temporal Fusion Transformer achieved a mean absolute error (MAE) of 0.95 during volatile generation intervals, demonstrating strong performance under challenging conditions such as rapid cloud cover changes.
The SL-Transformer delivered the highest overall accuracy, achieving an R² of 0.9989 — meaning predicted values explained 99.89 percent of variance in actual generation — and a symmetric mean absolute percentage error (sMAPE) of 5.8507 percent.
TSformer showed up to 22 percent reduction in relative root mean square error (RRMSE) over baseline models. A GRU-Transformer hybrid produced power projections at 15-minute to hourly intervals.
Remaining challenges
Despite these advances, the review identified persistent challenges. Standard transformers may produce non-physical estimates, such as predicting power generation during nighttime hours. Computational cost remains high, and uncertainty quantification is not yet standard practice.
The authors — Sharma, D., Kumar, C., Kumar, M. and Singla, B. B. — pointed to several promising research directions. Future work could explore physics-informed attention mechanisms that embed physical constraints directly into the attention layers, conformal prediction methods for rigorous uncertainty quantification, and graph-TCN coupling to better capture spatial dependencies across distributed PV fleets.
For solar industry professionals, the findings suggest that transformer-based forecasting is moving from academic research toward practical deployment. The ability to predict generation with R² values above 0.99 at 15-minute resolution could improve day-ahead trading strategies, reduce reserve requirements and lower integration costs for grid operators managing high shares of solar capacity.
The benchmarking results from the Vadodara plant, a 10 MW crystalline silicon installation in a region with significant seasonal weather variation, provide a realistic test case for model performance under Indian subcontinental conditions — a climate profile relevant to many fast-growing solar markets across Asia and Africa.