English

PowerGraph-LLM: Novel Power Grid Graph Embedding and Optimization with Large Language Models

Artificial Intelligence 2026-01-28 v3

Abstract

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.

Keywords

Cite

@article{arxiv.2501.07639,
  title  = {PowerGraph-LLM: Novel Power Grid Graph Embedding and Optimization with Large Language Models},
  author = {Fabien Bernier and Jun Cao and Maxime Cordy and Salah Ghamizi},
  journal= {arXiv preprint arXiv:2501.07639},
  year   = {2026}
}

Comments

Published at IEEE Transactions on Power Systems

R2 v1 2026-06-28T21:05:09.975Z