arXiv:2610.30942eess.IVOct 2026

Manuscript Offprint

arXiv:2610.30942

GateFormer: Forecast-Space Decomposition for Intra-Hour Solar Irradiance Prediction from Sky Images

David Hamlyn, Sunny Chaudhary, Jonathon Hare, Tasmiat Rahman

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Sub-hourly dispatch, balancing, and storage control increasingly depend on forecasts that anticipate rapid variability in solar generation. However, accurate sky-image-based irradiance forecasting requires a combination of visual cloud dynamics with recent irradiance state while adapting to different short-term irradiance-change regimes, a challenge for many existing approaches. To address this, we introduce GateFormer, a GHI-conditioned dual-decoder Vision Transformer (ViT) for intra-hour global horizontal irradiance (GHI) forecasting through forecast-space decomposition. GateFormer embeds observed GHI into the visual token stream, allowing interaction with sky-image patch features through self-attention. From this shared representation, a Trajectory Head predicts future GHI sequence, while a Delta Head predicts final-horizon change from the latest observed GHI. The two final-horizon forecasts are adaptively weighted in prediction space, with magnitude- and direction-supervision targeting the remaining error. On the NREL-TSI benchmark, GateFormer attains 125.01 W/m² RMSE at +30 min, improving over a state-of-the-art transformer baseline by 9.6% under paired-timestamp evaluation. Across NREL-TSI, Chilbolton, and SIRTA, GateFormer achieves the lowest final-horizon RMSE among the evaluated baselines, with forecast skill of 22.97–28.86% relative to smart persistence. Component ablations show adaptive weighting outperforms both individual decoders and fixed averaging, distinguishing GateFormer from conventional forecast combination, while the supervised correction further reduces RMSE by 1.68 W/m² and MAE by 4.86 W/m². Ramp-regime diagnostics show larger gains during operationally important positive ramps, reducing RMSE by 26.27 W/m². These results identify forecast-space decomposition as an alternative forecasting formulation, with potential relevance to other multimodal short-horizon forecasting tasks and deployment using only sky images and measured GHI.

Keywords: Computer vision, Multimodal learning, Solar irradiance forecasting, Solar ramps, Vision transformer

1. Introduction

As photovoltaic (PV) penetration increases, power-system operation becomes more sensitive to rapid changes in solar generation. This sensitivity is becoming more operationally important as electricity systems move toward higher-granularity operation, including 5–15 min dispatch, sub-hourly balancing, and increasingly dynamic intraday markets [1],[2],[3],[4]. Sub-hourly irradiance forecasts are therefore important for grid balancing, storage scheduling, ramp-rate control, and short-term energy management [1],[2],[3],[4]. At these horizons, forecast errors often arise from local cloud advection, transient solar obstruction, and cloud-edge enhancement, which can rapidly change ground-level irradiance. Conventional numerical weather prediction (NWP) often falls short at this resolution due to spatial and temporal scales below those of typical operational weather-model outputs [5]. Ground-based sky images provide direct observations of the local cloud field, including cloud structure, motion cues, solar occlusion, and cloud-edge patterns, making them a valuable input for intra-hour global horizontal irradiance (GHI) forecasting [4],[6],[7],[8]. Accurate intra-hour forecasting therefore requires visual cloud information to be interpreted together with the current irradiance state.

Recent deep learning (DL) approaches have improved intra-hour irradiance forecasting by learning predictive representations directly from sky-image sequences [9], [10]. These advances include future visual-state prediction, transformer-based sequence modelling, and multimodal fusion of sky imagery with irradiance history and clear-sky information [9], [10], [11], [12]. However, strong performance in this setting still depends on how the model represents short-term irradiance change, particularly when cloud motion produces rapid departures from persistence-like behaviour. This motivates a forecasting formulation that does not rely on a single output pathway but instead forms distinct predictions of future irradiance state and learns how to effectively combine them.

Preprint submitted to Elsevier

Sep 22, 2026

To address this limitation, we introduce GateFormer, a dual-decoder Vision Transformer (ViT) that implements adaptive gating in the prediction space for intra-hour irradiance forecasting. Rather than using a single decoder to map encoded sky-image information directly to the final forecast, GateFormer first encodes the joint visual and irradiance state by embedding observed GHI into the visual token stream, allowing irradiance-state information to interact with sky-image patch features through self-attention. From this shared representation, a Trajectory decoder predicts GHI at each future step up to and including the final horizon, meaning the furthest point in time forecast by the model, while a Delta decoder predicts the change from the latest observed GHI directly to that same final horizon. The forecast-space decomposition means forming alternative forecasts with different prediction targets from a shared representation and exposing their values and disagreement to the gate before the final prediction is formed. The two final-horizon predictions allow a shared architecture to model complementary views of the prediction space which are then combined using a learned adaptive blend to form a Base forecast, and a residual head predicts the remaining post-blend correction using magnitude and direction supervision. Unlike conventional ensembles that combine independently trained models, or Mixture-of-experts (MoE) architectures that route inputs among alternative expert pathways, GateFormer forms both candidate forecasts from one shared representation using distinct prediction targets and applies gating only after explicit irradiance predictions have been produced. This structure allows the model to represent both gradual trajectory evolution and direct final-horizon displacement, adaptively blend them in prediction space and improve post-blend error.

Contributions and motivations. Reliable intra-hour irradiance forecasting is critical for ramp-rate control, storage scheduling, and grid stability, yet multimodal methods for forming and combining complementary predictions remain comparatively underexplored. Building on state-of-the-art ViTs, we introduce GateFormer, a novel forecast-space decomposition architecture. (1) A dual-decoder framework predicts absolute multi-horizon GHI trajectories and direct final-horizon GHI displacement from a shared GHI-conditioned visual representation, allowing the model to capture both stable trajectory behaviour and larger ramp displacements. (2) A prediction-space adaptive blending that learns a per sample combination of the two forecasts, rather than fusing latent features, benefiting from the decoders' complementary representations. (3) A separately supervised post-blend residual that predicts the magnitude and direction of the error remaining after adaptive gating. Experiments across three sky-imaging datasets and component-level ablations demonstrate the learned blend improves over both individual decoders and fixed averaging, while residual correction provides a further overall reduction in error especially in positive ramps.

References (43)