Parameter-Efficient Domain Adaptation of Physics-Informed Self-Attention based GNNs for AC Power Flow Prediction
Organizations: Pattern Recognition Lab, Friedrich-Alexander-Universität Erlangen-Nürnberg, Erlangen, Germany · Institute of Electrical Energy Systems, Friedrich-Alexander-Universität Erlangen-Nürnberg, Germany
Abstract
Accurate AC power flow (AC-PF) prediction under domain shift is critical when models trained on medium-voltage (MV) grids are deployed on high-voltage (HV) networks. Existing physics-informed graph neural network (GNN) solvers typically rely on full fine-tuning for cross-regime transfer, incurring high retraining cost and offering limited control over the stability-plasticity trade-off between target-domain adaptation and source-domain retention. We study parameter-efficient domain adaptation for physics-informed self-attention-based GNNs, encouraging Kirchhoff-consistent behavior via a physics-based loss while restricting adaptation to low-rank updates. Specifically, we apply low-rank adaptation (LoRA) to attention projections with selective unfreezing of the prediction head to regulate adaptation capacity. This design yields a controllable efficiency-accuracy trade-off for physics-constrained inverse estimation under voltage-regime shift. Across multiple grid topologies, the proposed LoRA+PHead adaptation recovers near-full fine-tuning accuracy with a target-domain RMSE gap of while reducing the number of trainable parameters by . The physics-based residual remains comparable to full fine-tuning; however, relative to Full FT, LoRA+PHead reduces MV source retention by 4.7 percentage points (17.9% vs. 22.6%) under domain shift, while still enabling parameter-efficient and physically consistent AC-PF estimation.
Figures & tables
| TABLE I : Cross-regime AC-PF prediction performance (MV HV). Method Prediction Accuracy Efficiency RMSE RMSE V RMSE θ ( ∘ ) (%) (%) ZeroShot (Base) — — Full FT Head-only LoRA-only LoRA+PHead Best results are in bold . indicates lower/higher is better. RMSE: Root Mean Square Error. : Physics-informed PF loss. : Parameter reduction vs. Full FT. : MV retention, defined as . (paired Wilcoxon vs. Full FT over ). | TABLE II : MV/HV parameter ranges. Parameter (unit) MV HV Base voltage (kV) 10 110 Base power (MVA) 10 100 Line length (km) 1–20 1–50 Series resistance ( /km) 0.5–0.6 0.15–0.20 Series reactance ( /km) 0.30–0.35 0.35–0.45 Shunt capacitance (nF/km) 8–14 8–10 Active power (MW) Reactive power (MVAr) MV/HV experimental setup: Each graph has 4–32 buses; datasets contain 90,030 (MV) and 45,030 (HV) samples; Train/Val/Test split 1:1:1 |