Manuscript Offprint

arXiv:2609.02538

A Comparative Study of Graph Representations for GNN-Based Power Grid Control in L2RPN

Adrian Degenkolb, Qiong Huang, Benjamin Schäfer

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Adrian Degenkolb*

Karlsruhe Institute of Technology

Karlsruhe, Germany

adrian.degenkolb@partner.kit.edu

Qiong Huang*†

Karlsruhe Institute of Technology

Karlsruhe, Germany

qiong.huang@kit.edu

Benjamin Schäfer

Karlsruhe Institute of Technology

Karlsruhe, Germany

benjamin.schaefer@kit.edu

Abstract—Graph construction is a critical but underexamined design choice in deep reinforcement learning for power grid control. We present a controlled experimental comparison of different graph representations, including physical topology, electrical-sensitivity, and hybrid variants for topology control in the Learning to Run a Power Network (L2RPN) environment. Our findings indicate that matching graph complexity to task granularity is more important than maximizing representational richness, and highlight the importance of controlled representation studies at scale.

Index Terms—L2RPN, Graph representation, Graph neural networks, Reinforcement learning, Power grid control

I. INTRODUCTION

Variable renewable generation increases fluctuations in power injections and can aggravate transmission congestion [1]. Grid operators commonly mitigate congestion through measures such as redispatch and curtailment, which can be costly and counteract the efficient use of renewable energy. Topology reconfiguration offers an alternative by switching lines or changing busbar assignments to redirect power flows [2]. Selecting these topology actions is challenging, as their effects are nonlocal and sequential, while the number of feasible configurations grows rapidly with grid size.

Reinforcement learning (RL) addresses such sequential decisions by learning a policy through interactions with the environment. Learning to Run a Power Network (L2RPN) standardizes this setting through the package Grid2Op [3], [4]. Its environments combine time-varying generation and demand with line limits, contingencies, cooldown constraints, and cascading disconnections. An agent must therefore maintain secure operation over long episodes rather than solve a single static operating point. L2RPN competitions and subsequent studies have demonstrated the potential of RL while highlighting challenges in action-space design, safety, and generalization [2].

Graph neural networks (GNNs) encode grid structure by sharing parameters across components and propagating information along edges [5], [6]. However, the physical power system does not prescribe a unique computational graph. Nodes may represent substations, busbars, line endpoints, or individual elements, while edges may encode physical,

switchable, or electrical relations. This choice determines the state granularity, message-passing paths, and computational cost.

Graph construction is nevertheless rarely isolated from choice of RL algorithms, action space, and policy architecture [2], [7]. We address this gap by comparing topology-based, power-flow-based, and hybrid graph representations in l2rpn_case14_sandbox under a fixed GNN-PPO pipeline with action space, training budget, evaluation set, and five random seeds. A non-graph MLP serves as an additional baseline. We compare learning behavior, held-out survival, and spatial action patterns. Our results show that graph representation materially affects learning and robustness, with the compact substation graph outperforming more detailed physical and electrical-sensitivity representations.

Code and supplementary material are available in our public repository¹.

References (24)