# Test Time Training for AC Power Flow Surrogates via Physics and Operational Constraint Refinement

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

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 4 of its 11 references that are in the map.
- First posted on arXiv 27 Nov 2025.

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

- [PowerFlowNet: Power Flow Approximation Using Message Passing Graph Neural Networks](https://mlsanity.com/paper/2311.03415/) (2023)
- [Fast Calculation of Probabilistic Power Flow: A Model-based Deep Learning Approach](https://mlsanity.com/paper/1906.06017/) (2019)
- [Data-Driven Power Flow Linearization: A Regression Approach](https://mlsanity.com/paper/1710.10621/) (2017)
- [KCLNet: Physics-Informed Power Flow Prediction via Constraints Projections](https://mlsanity.com/paper/2506.12902/) (2025)

## Abstract (arXiv)

Power Flow (PF) calculation based on machine learning (ML) techniques offer significant computational advantages over traditional numerical methods but often struggle to maintain full physical consistency. This paper introduces a physics-informed test-time training (PI-TTT) framework that enhances the accuracy and feasibility of ML-based PF surrogates by enforcing AC power flow equalities and operational constraints directly at inference time. The proposed method performs a lightweight self-supervised refinement of the surrogate outputs through few gradient-based updates, enabling local adaptation to unseen operating conditions without requiring labeled data. Extensive experiments on the IEEE 14-, 118-, and 300-bus systems and the PEGASE 1354-bus network show that PI-TTT reduces power flow residuals and operational constraint violations by one to two orders of magnitude compared with purely ML-based models, while preserving their computational advantage. The results demonstrate that PI-TTT provides fast, accurate, and physically reliable predictions, representing a promising direction for scalable and physics-consistent learning in power system analysis.
