cs.LGOct 15, 2026

Physics-Aware Distillation of a Grid Foundation Model for Real-Time Edge Inference

Authors: Vlad Alexandru Sănduleac, Shahariya Rasheed Rayamarakkarveettil Puthanpurayil, Noman Khan, Remus Teodorescu

Organizations: Faculty of Power Engineering, National University of Science and Technology POLITEHNICA Bucharest, Bucharest, Romania · AAU Energy, Aalborg University, Aalborg, Denmark

Abstract

Grid foundation models (GridFMs) are graph transformers pretrained on a masked power-flow objective, and evaluate power flow orders of magnitude faster than an iterative solver. Their size, however, targets data-centre inference, whereas low-inertia operation increasingly asks for inference at the edge, next to the measurement, at batch size one and within a single synchrophasor (PMU) reporting frame. We distil a 20.1M-parameter, 12-layer GridFM teacher into a 0.62M-parameter, 6-layer student, a 32.5×32.5\times parameter reduction at half the message-passing depth, using an objective that combines the masked power-flow loss with output, physics-residual, latent-state and attention transfer. The physics-residual term, which matches the teacher's power-residual profile, has not previously been applied to typed power-grid graphs. We evaluate on a renewable variant of the IEEE 118-bus benchmark grid in which 26 of the conventional (synchronous) generators are replaced by inverter-based renewables with battery flexibility and standardised reactive-power limits (IEEE 1547), giving 97 52997\,529 physically valid (AC-OPF-feasible) operating scenarios, and we ablate all eight combinations of the transfer terms, reporting accuracy against ground truth and fidelity to the teacher separately. Distillation lowers student error on all four predicted quantities, by up to 48%48\% on active-power dispatch, and every distilled student is more accurate than its teacher on reactive-power dispatch. The gain is largely carried by the output matching term. The physics-residual term, in the layer-aggregated form used here, is consistently harmful, which we attribute to the spatial averaging it applies to a bus-level residual field. The resulting student is 32.5×32.5\times smaller in parameter count and has half the message-passing depth, making it a candidate for subsequent edge-device benchmarking.

Figures & tables

Explore similar work

CardsList
  1. GridSFM: A Foundation Model for Solving AC Optimal Power Flow

    Sep 24, 2026Luke Bhan, Weiwei Yang, Margaret Capetz +1Neural Surrogate ModelingOptimal Power Flow

  2. Knowledge Distillation for Efficient Transformer-Based Reinforcement Learning in Hardware-Constrained Energy Management Systems

    Mar 27, 2026Pascal Henrich, Jonas Sievers, Maximilian Beichter +3Policy DistillationTransformer-Based RL

  3. MxGPS: Multiplex Graph Transformers for a Power Grid Foundation Model

    Jul 15, 2026Charilaos Papaioannou, Ioannis Tsantilas, Dimitris Giannakakos +9Multi-Task LearningGraph Foundation Models