Keywords :
Graph embedding; LLM; low-rank adaptation (LORA); Fine tuning; Graph embeddings; Graph optimization; Grid graphs; Language model; Large language model; Low-rank adaptation; Optimal power flow problem; Power; Power grids; Energy Engineering and Power Technology; Electrical and Electronic Engineering; Training; Optimization; Graph neural networks; Generators; Protocols; Load flow; Context modeling; Biological system modeling; Reactive power
Abstract :
[en] Efficiently solving Optimal Power Flow (OPF) problems in power systems is crucial for operational planning and grid management. There is a growing need for scalable algorithms capable of handling the increasing variability, constraints, and uncertainties in modern power networks while providing accurate and fast solutions. To address this, machine learning techniques, particularly Graph Neural Networks (GNNs) have emerged as promising approaches. This letter introduces PowerGraph-LLM, the first framework explicitly designed for solving OPF problems using Large Language Models (LLMs). The proposed approach combines graph and tabular representations of power grids to effectively query LLMs, capturing the complex relationships and constraints in power systems. A new implementation of in-context learning and fine-tuning protocols for LLMs is introduced, tailored specifically for the OPF problem. PowerGraph-LLM demonstrates reliable performances using off-the-shelf LLM. Our study reveals the impact of LLM architecture, size, and fine-tuning and demonstrates our framework’s ability to handle realistic grid components and constraints.
Funding text :
Received 9 January 2025; revised 10 March 2025 and 13 May 2025; accepted 26 June 2025. Date of publication 7 August 2025; date of current version 22 October 2025. This work was supported in part by FNR CORE project LEAP under Grant 17042283, in part by European Commission under project iSTENTORE under Grant ID-101096787, and in part by We-Forming under Grant ID-101123556. Paper no. PESL-00006-2025. (Corresponsing author: Jun Cao.) Fabien Bernier and Maxime Cordy are with SnT, Universithy of Luxembourg, Alzette 1855, Luxembourg.
Scopus citations®
without self-citations
0