A Few-Shot LLM Framework for Extreme Day Classification in Electricity Markets

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Alghumayjan, Saud, Yi, Ming, Xu, Bolun
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915805646553088
author Alghumayjan, Saud
Yi, Ming
Xu, Bolun
author_facet Alghumayjan, Saud
Yi, Ming
Xu, Bolun
contents This paper proposes a few-shot classification framework based on Large Language Models (LLMs) to predict whether the next day will have spikes in real-time electricity prices. The approach aggregates system state information, including electricity demand, renewable generation, weather forecasts, and recent electricity prices, into a set of statistical features that are formatted as natural-language prompts and fed to an LLM along with general instructions. The model then determines the likelihood that the next day would be a spike day and reports a confidence score. Using historical data from the Texas electricity market, we demonstrate that this few-shot approach achieves performance comparable to supervised machine learning models, such as Support Vector Machines and XGBoost, and outperforms the latter two when limited historical data are available. These findings highlight the potential of LLMs as a data-efficient tool for classifying electricity price spikes in settings with scarce data.
format Preprint
id arxiv_https___arxiv_org_abs_2602_16735
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle A Few-Shot LLM Framework for Extreme Day Classification in Electricity Markets
Alghumayjan, Saud
Yi, Ming
Xu, Bolun
Machine Learning
Systems and Control
This paper proposes a few-shot classification framework based on Large Language Models (LLMs) to predict whether the next day will have spikes in real-time electricity prices. The approach aggregates system state information, including electricity demand, renewable generation, weather forecasts, and recent electricity prices, into a set of statistical features that are formatted as natural-language prompts and fed to an LLM along with general instructions. The model then determines the likelihood that the next day would be a spike day and reports a confidence score. Using historical data from the Texas electricity market, we demonstrate that this few-shot approach achieves performance comparable to supervised machine learning models, such as Support Vector Machines and XGBoost, and outperforms the latter two when limited historical data are available. These findings highlight the potential of LLMs as a data-efficient tool for classifying electricity price spikes in settings with scarce data.
title A Few-Shot LLM Framework for Extreme Day Classification in Electricity Markets
topic Machine Learning
Systems and Control
url https://arxiv.org/abs/2602.16735