arXiv:2610.32487eess.SYOct 2026

Manuscript Offprint

arXiv:2610.32487

State Estimation as In-context Tabular Prediction

Ayushi Jolotia, Parikshit Pareek

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

Ayushi Jolotia Student Member, IEEE, Parikshit Pareek †^{\dagger}, Member, IEEE

Abstract—This letter poses state estimation (SE) as an in-context tabular prediction (ICTP) problem. The key idea is a tabular arrangement in which historical measurement vectors and corresponding state estimates serve as the context, and a new measurement vector forms the query for which we predict a state vector. We propose to use tabular foundation models (TFMs), pretrained on synthetic data, whose weights are never updated, so power system data is needed only as context. With frozen TFM weights we estimate the state of 14-, 30-, 33-, 70-, and 118-bus transmission and distribution networks, and do so where weighted least squares (WLS) fails or degrades, under low observability and with bad data. ICTP errors are 11 to 57× below the per-bus average of the context at full metering, and 1.3 to 4.0× below it with only 5% of measurements available. With measurements at six buses biased by 8σ, the ICTP angle error rises 1.8 to 5.0× over its bias-free value against 2.5 to 12.7× for WLS with bad-data detection. Without retraining, ICTP has lower voltage error than DSS² on both of its feeders, and lower than a retrained TAPINE on two of three reconfiguration sets.

Index Terms—Power system state estimation, foundation models, in-context learning, weighted least squares.

I. INTRODUCTION

The state of a power system, the voltage magnitude and phase angle at every bus, underpins monitoring, control, and planning. It is estimated from meter readings that carry measurement and communication errors. The standard estimator, weighted least squares (WLS), minimizes the weighted sum of squared residuals, which is the maximum-likelihood estimate when errors are zero-mean Gaussian with known covariance. WLS relies on two conditions that are not guaranteed in practice. First, errors must be Gaussian. A gross error from a stuck meter or a mis-scaled transducer is still weighted by its meter's assumed variance. Residual-based χ2\chi^{2} and largest-normalized-residual tests are applied afterward, but a gross error at a leverage point pulls the estimate onto itself and escapes detection [1]. Second, the system must be observable. Meters go out of service or lose communication, and WLS fails abruptly once observability is lost.

Recently, learned estimators have been proposed that map measurements to states using historical data. DSS 2^{2} trains a graph neural network by penalizing power-flow violations, without seeing true states [2], while TAPINE builds the physics into its architecture [3]. Both are tied to their training network: a new network, measurement configuration, or topology requires retraining. The same is true for Bayesian and data-driven estimators, which infer the state of unobservable systems from historical data [4], [5] and require network-specific model training. This letter addresses both the WLS failure modes and the need for network-specific training by posing SE as an in-context tabular prediction (ICTP) problem. The main idea is that, given historical measurements with their estimated states, the current state can be inferred by a pretrained tabular foundation model (TFM). TFMs such as TabPFN v2 [6] and TabICL v2.1 [7] are transformer-based in-context learners, pretrained on synthetic tables, learning how columns relate to one another and to the target. Given SE data in this tabular format as context, the model predicts the label of a new query in a single forward pass. We stress-test ICTP under measurement loss, noise variation, bad data, and topology change, against classical and learned estimators. Our main contributions are:

  1. State estimation as in-context tabular prediction. Measurements form the input columns, and per-bus voltage magnitudes and per-line angle differences form the target columns. No step uses the measurement Jacobian or the admittance matrix. Each TFM uses a single pretrained checkpoint across all five networks.

  2. Estimation without an observability precondition. ICTP returns a full state vector at every measurement level tested. WLS can fail with more measurements than states. On the 118-bus system it returns no estimate once half the meters are gone, with 362 readings for 235 states. On the radial 33-bus feeder with a single unmetered bus, WLS returns angle estimates worse than each bus's historical average, even with bad-data checks. Over the same dark-bus sweep, the ICTP angle error grows at most 4.4×4.4\times over its full-metering value on all three networks.

  3. Robustness to bad data and evaluation on published benchmarks. With six buses biased by 8σ8\sigma, the WLS angle error rises 2.5 to 12.7×12.7\times against 1.8 to 5×5\times for ICTP. On TAPINE's reconfiguration sets, where TAPINE degrades by 19 and 35×35\times in voltage once the feeder is reconfigured beyond what it was trained on, the TabPFN voltage error varies by at most 1.2×1.2\times across all three sets.