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

arXiv: https://arxiv.org/abs/2501.07639 · HTML: https://mlsanity.com/paper/2501.07639/

## Key facts

- Cited by 6 papers in the map (data through 14 Oct 2026).
- Builds on 6 of its 8 references that are in the map.
- First posted on arXiv 13 Jan 2025.

## Builds on (most cited first, 6 of 6)

- [Language Models are Few-Shot Learners](https://mlsanity.com/paper/2005.14165/) (2020)
- [The Llama 3 Herd of Models](https://mlsanity.com/paper/2407.21783/) (2024)
- [LoRA: Low-Rank Adaptation of Large Language Models](https://mlsanity.com/paper/2106.09685/) (2021)
- [Topology-aware Graph Neural Networks for Learning Feasible and Adaptive ac-OPF Solutions](https://mlsanity.com/paper/2205.10129/) (2022)
- [Large Foundation Models for Power Systems](https://mlsanity.com/paper/2312.07044/) (2023)
- [SafePowerGraph: Safety-aware Evaluation of Graph Neural Networks for Transmission Power Grids](https://mlsanity.com/paper/2407.12421/) (2024)

## Built on by (most cited first, 6 of 6)

- [X-GridAgent: An LLM-Powered Agentic AI System for Assisting Power Grid Analysis](https://mlsanity.com/paper/2512.20789/) (2025)
- [Two-Stage Active Distribution Network Voltage Control via LLM-RL Collaboration: A Hybrid Knowledge-Data-Driven Approach](https://mlsanity.com/paper/2602.21715/) (2026)
- [Evaluating Jailbreaking Vulnerabilities in LLMs Deployed as Assistants for Smart Grid Operations: A Benchmark Against NERC Standards](https://mlsanity.com/paper/2604.23341/) (2026)
- [Grid-Orch: An LLM-Powered Orchestrator for Distribution Grid Simulation and Analytics](https://mlsanity.com/paper/2605.12728/) (2026)
- [LLMs and Agentic AI Systems for Smart Grids: A Tutorial on Architectures and Applications](https://mlsanity.com/paper/2607.18147/) (2026)
- [RestoreBench: Can AI Agents Restore Power Flow Convergence?](https://mlsanity.com/paper/2609.00384/) (2026)

## Abstract (arXiv)

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.
