In-context learning enhanced large language model for robust distribution system state estimation

Existing data-driven distribution system state estimation (DSSE) methods face significant challenges in capturing useful information from massive zero injections that are prevalent in practical large-scale distribution systems. If zero-injection nodes are not explicitly utilized, limited real-time measurements can lead to a low observability problem. These methods are also vulnerable to bad data under heterogeneous data sources from different measurement units, such as advanced metering infrastructure (AMI), supervisory control and data acquisition (SCADA), and pseudo-measurements. This paper presents a proof-of-concept study of a large language model (LLM)-based DSSE method to address these challenges. The zero injections are transformed into textual content and are extracted through the self-attention mechanism of LLMs. The quantized low-rank adapter (QLoRA) and in-context learning (ICL) are utilized for efficient fine-tuning and quick adaptation, minimizing extensive weight adjustments across varied operational conditions. These strategies not only enhance the model’s scalability but also improve its adaptability and robustness to various situations. In particular, the self-attention mechanism allows the proposed method to deal with bad data effectively. The developed LLM-based method is evaluated against various data-driven approaches and the conventional weighted least squares (WLS) method on a realistic 2135-node Dominion Energy distribution feeder, which contains 60.98% zero-injection nodes. Specifically, incorporating zero-injection information reduces the voltage-magnitude mean absolute error (MAE) by 41.67% (from 0.0012 p.u. to 0.0007 p.u.), and under 10% bad data, the proposed method maintains a low MAE of 0.0049 p.u., compared with 0.0677 p.u. for the WLS method. These simulation results demonstrate the effectiveness and advantages of the proposed method under diverse measurement conditions and topology changes. • An LLM-based DSSE framework incorporating massive zero-injection nodes is proposed. • Zero-injection nodes supplement insufficient real-time measurements to enhance distribution system observability. • QLoRA and in-context learning enables efficient adaptation across practical large-scale distribution systems. • Consistently superior MAE outperforms WLS and multiple data-driven baselines under noise, missing/bad data, and topology changes. • Validated on a Dominion Energy 2135-node unbalanced three-phase feeder.

Authors

Institutions

Publication Details

Journal
Applied Energy
Published
2026-01-07
DOI
https://doi.org/10.1016/j.apenergy.2025.127344
Primary Topic
Power System Optimization and Stability
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

In-context learning enhanced large language model for robust distribution system state estimation

Y. -H. Liu, Yue Li, Gang Cheng, Junbo Zhao
Applied Energy
Power System Optimization and Stability
article

In-context learning enhanced large language model for robust distribution system state estimation

Y. -H. Liu, Yue Li, Gang Cheng, Junbo Zhao
article en

Abstract

Existing data-driven distribution system state estimation (DSSE) methods face significant challenges in capturing useful information from massive zero injections that are prevalent in practical large-scale distribution systems. If zero-injection nodes are not explicitly utilized, limited real-time measurements can lead to a low observability problem. These methods are also vulnerable to bad data under heterogeneous data sources from different measurement units, such as advanced metering infrastructure (AMI), supervisory control and data acquisition (SCADA), and pseudo-measurements. This paper presents a proof-of-concept study of a large language model (LLM)-based DSSE method to address these challenges. The zero injections are transformed into textual content and are extracted through the self-attention mechanism of LLMs. The quantized low-rank adapter (QLoRA) and in-context learning (ICL) are utilized for efficient fine-tuning and quick adaptation, minimizing extensive weight adjustments across varied operational conditions. These strategies not only enhance the model’s scalability but also improve its adaptability and robustness to various situations. In particular, the self-attention mechanism allows the proposed method to deal with bad data effectively. The developed LLM-based method is evaluated against various data-driven approaches and the conventional weighted least squares (WLS) method on a realistic 2135-node Dominion Energy distribution feeder, which contains 60.98% zero-injection nodes. Specifically, incorporating zero-injection information reduces the voltage-magnitude mean absolute error (MAE) by 41.67% (from 0.0012 p.u. to 0.0007 p.u.), and under 10% bad data, the proposed method maintains a low MAE of 0.0049 p.u., compared with 0.0677 p.u. for the WLS method. These simulation results demonstrate the effectiveness and advantages of the proposed method under diverse measurement conditions and topology changes. • An LLM-based DSSE framework incorporating massive zero-injection nodes is proposed. • Zero-injection nodes supplement insufficient real-time measurements to enhance distribution system observability. • QLoRA and in-context learning enables efficient adaptation across practical large-scale distribution systems. • Consistently superior MAE outperforms WLS and multiple data-driven baselines under noise, missing/bad data, and topology changes. • Validated on a Dominion Energy 2135-node unbalanced three-phase feeder.

Applied EnergyVol. 407
Dartmouth College (US), University of Connecticut (US)
Industry, innovation and infrastructure
Openalex Percentile: Top 94%
Power System Optimization and Stability
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.