Deep Learning for Solar Power Forecasting: A Transformer-Based In-Context Learning Approach

Simionato, Chiara (2026) Deep Learning for Solar Power Forecasting: A Transformer-Based In-Context Learning Approach. [Laurea magistrale], Università di Bologna, Corso di Studio in Greening energy market and finance [LM-DM270]
Documenti full-text disponibili:
[thumbnail of Thesis] Documento PDF (Thesis)
Disponibile con Licenza: Salvo eventuali più ampie autorizzazioni dell'autore, la tesi può essere liberamente consultata e può essere effettuato il salvataggio e la stampa di una copia per fini strettamente personali di studio, di ricerca e di insegnamento, con espresso divieto di qualunque utilizzo direttamente o indirettamente commerciale. Ogni altro diritto sul materiale è riservato

Download (5MB)

Abstract

As the role of photovoltaic generation increases in the energy supply chain, forecast errors have larger operational and economic implications. Accordingly, accurate short-term PV forecasts acquire growing importance for the efficient management of power systems and for decision-making in electricity markets. In parallel, deep learning and transformers-based architectures have shown promising performance in forecasting tasks. Large Language Models (LLMs), that rely on a transformer architecture, have also shown benefits from providing as input example textual representations of input-output pairs, this practice is known as in-context learning. This thesis investigates whether in-context learning, performed with transformer encoders, can be used as auxiliary component in day-ahead PV power forecasting when combined with a numerical Long Short Term Memory-based model (LSTM). The empirical analysis uses inverter-level AC power from six ground-mounted PV plants in Italy, together with periodical meteorological inputs and the irradiance signal. The task is framed as a day-ahead forecast problem, leveraging a 168-hour multivariate context, with separate evaluation over full days and daylight hours. We chose Longformer, as encoder, to represent the structured prompt containing past k context exemplars with k ∈ {1, 2, 3}, whose representation is fused with the Long Short Term Memory (LSTM) output. On a held-out test set, text conditioning yields small but systematic improvements over the purely numerical baseline: configurations with one or two exemplars modestly reduce absolute errors, while k = 3 leads to noisy representations that affect the model performance. Overall, few-shot, text-based conditioning emerges as a complementary information channel for PV forecasting, providing modest benefits and suggesting scope for future work on probabilistic forecasts and richer prompt designs.

Abstract
Tipologia del documento
Tesi di laurea (Laurea magistrale)
Autore della tesi
Simionato, Chiara
Relatore della tesi
Correlatore della tesi
Scuola
Corso di studio
Indirizzo
RENEWABLE TECHNOLOGIES
Ordinamento Cds
DM270
Parole chiave
photovoltaic power forecastin, solar power forecasting, in-context learning, few-shot learning, transformer architecture
Data di discussione della Tesi
26 Marzo 2026
URI

Altri metadati

Statistica sui download

Gestione del documento: Visualizza il documento

^