ProOPF: Benchmarking and Improving LLMs for Professional-Grade Power Systems Optimization Modeling
Chao Shen, Zihan Guo, Xu Wan, Zhenghao Yang, Yifan Zhang, Wengi Huang, Jie Song, Zongyan Zhang, Mingyang Sun
TL;DR
ProOPF introduces ProOPF-D and ProOPF-B to benchmark how well Large Language Models can handle professional-grade power system optimization modeling, specifically Optimal Power Flow (OPF). It reframes OPF as a modification-based problem, using a canonical base model and a structured set of parameter patches and structural extensions, enabling scalable, physics-consistent data generation across four difficulty levels. Empirically, state-of-the-art LLMs excel at explicit parameter changes but struggle with semantic parameter inference and complex structural modifications; fine-tuning on ProOPF-D substantially improves performance on harder levels, though abstract modeling remains challenging. The work provides a foundation for domain-specific data generation and evaluation, guiding future research toward physics-informed supervision and more robust, industry-ready LLM capabilities for power-system optimization tasks.
Abstract
Growing renewable penetration introduces substantial uncertainty into power system operations, necessitating frequent adaptation of dispatch objectives and constraints and challenging expertise-intensive, near-real-time modeling workflows. Large Language Models (LLMs) provide a promising avenue for automating this process by translating natural-language (NL) operational requirements into executable optimization models via semantic reasoning and code synthesis. Yet existing LLM datasets and benchmarks for optimization modeling primarily target coarse-grained cross-domain generalization, offering limited, rigorous evaluation in power-system settings, particularly for Optimal Power Flow (OPF). We therefore introduce \textbf{ProOPF-D} and \textbf{ProOPF-B}, a dataset and benchmark for professional-grade OPF modeling: ProOPF-D contains 12K instances pairing NL requests with parameter adjustments and structural extensions to a canonical OPF, together with executable implementations; ProOPF-B provides 121 expert-annotated test cases with ground-truth code, enabling end-to-end evaluation under both concrete and abstract OPF modeling regimes.
