LLM-driven power system transient stability assessment: From automated simulation to neural architecture design

arXiv:2511.20276 · eess.SY, cs.SY · Submitted 2025-11-25 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Robotics Radio. Generated commentary on the latest robotics and control papers.

Rosa: I'm Rosa.

Dev: And I'm Dev, here with Taro.

Rosa: We're looking at the paper: "LLM-Driven Transient Stability Assessment".

Paper summary: Dev: So wrapping up this paper called LLM-Driven Transient Stability Assessment: From Automated Simulation to Neural Architecture Design. The authors essentially showed that an end-to-end agentic workflow can automate the complete process of transient stability assessment, starting from generating the simulation scenarios and ending with designing the neural network architecture itself.

Rosa: What I find most important is that they bridge that gap between natural language instructions—just telling the system what disturbance to simulate—and actually producing a tested model architecture that works for those simulations. It’s about making this process accessible through prompts rather than requiring deep expertise in simulation scripting and neural network design separately.

Taro: From my side, it’s interesting how they built this collaborative LLM structure with the Strategist, Generator, and Operator roles to handle the search process. It shows a way to structure complex decision-making within the AI itself for tasks that used to require human experts juggling multiple steps.

Dev: Yeah, and even when we looked at their performance on larger systems like the IEEE one hundred eighteen bus system, they still got ninety six point sixty six percent test accuracy, which is high enough for practical application in assessing stability. The title of the paper really sums up what it does: taking a complex assessment task and automating the entire path from simulation to model design using these agentic LLMs.

Rosa: It moves us away from having to manually script every single case and then spending weeks hand-crafting a neural network architecture for each one. This framework suggests that we can use AI agents as intelligent assistants to drive the discovery of stable system configurations more efficiently than before.

Conclusion: Rosa: So we’re wrapping up this look at "LLM-Driven Transient Stability Assessment: From Automated Simulation to Neural Architecture Design." Basically, this paper shows how you can use AI agents to automate the whole process, from setting up simulations to designing the actual neural network.

Dev: Yeah, it moves away from you having to manually script every simulation case and then spending forever trying to figure out the best way to build a neural network for each one.

Rosa: Right. The authors used these LLM agents—one that handles the simulation setups and another that designs the network architecture through trial and error—to do it all at once using natural language instructions.

Taro: I'm interested in how they structured those three roles: the strategist, the generator, and the operator. That sounds like a smart way to manage a complex search process within an AI system.

Dev: It’s about giving each part a specific job so the whole thing doesn't just get lost in one big instruction. The Strategist keeps track of what it tried before, which is important for keeping the optimization going.

Rosa: And they used some clever tools to make sure those LLMs didn't just guess; they used prompt engineering and a specific knowledge base to ground the simulations in real power system facts.

Taro: So, what does this mean for someone who’s actually trying to run these tests outside of a computer? Does it help you test things in the field, or is it still mostly confined to a lab setting?

Dev: It’s still heavily rooted in simulation right now. But the point is that the initial setup—the part where you translate your idea into a simulation scenario—can be done much faster by just talking to an agent.

Rosa: And when you look at their results, they showed decent performance on larger systems, like that one hundred eighteen bus system, proving this isn't just a toy experiment in a small corner of the grid.

Taro: I’ve seen the accuracy numbers—ninety-six point sixty six percent on that bigger test—which shows it can handle more complexity than you might expect from an automated design process.

Dev: It’s high enough to be useful, but remember, they were optimizing a traditional neural network structure for that specific case. It’s a good start, but it doesn't automatically give you the perfect physics-informed architecture yet.

Rosa: Exactly. The conclusion is that this framework successfully bridges the gap between talking about what you want to test and actually getting a working model design on your desk much quicker.

Taro: But there’s more work ahead, right? They mentioned they need to fine-tune these agents even more using dedicated power system code libraries, which is the next step for making this truly reliable in the real world.

School of Electrical Engineering, Chongqing University · Department of Electrical and Electronic Engineering, Imperial College London

eess.SY, cs.SY

Submitted: 2025-11-25

Updated: 2026-12-01

Journal ref: Sustainable Energy Technologies and Assessments 92 (2026) 105129

DOI: 10.1016/j.seta.2026.105129

License: http://creativecommons.org/licenses/by-nc-sa/4.0/

Importance score: 87/100

The gist: LLM-Driven Transient Stability Assessment: From Automated Simulation to Neural Architecture Design proposes an end-to-end agentic workflow that automates the complete transient stability assessment…

Key concepts

LLM-Driven Simulation Controller
This module takes a user's request in plain language about a power system scenario and converts it into an executable simulation setup. It uses prompt engineering and Retrieval-Augmented Generation (RAG) to ensure the simulation accurately reflects the requested conditions, making complex simulations accessible through simple text instructions.
LLM-Driven Neural Network Designer (LLM-NND)
This component automatically designs and optimizes neural network architectures using an iterative feedback loop. It employs a collaborative architecture with a Strategist, Generator, and Operator LLM to search for the best model structure that meets stability requirements through continuous testing and refinement.
Neural Architecture Search (NAS) Mechanism
The framework uses three specialized LLMs—a Strategist for planning, a Generator for building networks, and an Operator for evaluation—to perform NAS. This collaborative approach allows the system to intelligently search vast possibilities for neural network designs that are specifically tailored to power system stability tasks.
Customized RAG
A specialized Retrieval-Augmented Generation module stores domain-specific knowledge, such as power system guides and case studies. When a request is made, this module retrieves relevant supporting documents and their sources. This ensures the LLM's responses are factually consistent with real-world power system data, minimizing errors.

Terminology

Summary

LLM-Driven Transient Stability Assessment: From Automated Simulation to Neural Architecture Design proposes an end-to-end agentic workflow that automates the complete transient stability assessment (TSA) process, from simulation to neural network model design. p. 0

Where the paper says it

Highlights LLM-Driven Transient Stability Assessment: From Automated Simulation to Neural Architecture Design Lianzhe Hu, Yu Wang, Bikash Pal • End-to-end agentic LLM workflow automates TSA from simulation to model design • Natural language–driven scenario generation via tight LLM–ANDES integration • LLM–NND discovers compact models (4. 78M params) with 93.

<ref:2511.20276#pg2>. This approach is significant because it moves beyond manual simulation and hand-crafted architectures by using large language models as intelligent agents to manage the entire workflow. p. 1
Where the paper says it

LLM-Driven Transient Stability Assessment: From Automated Simulation to Neural Architecture Design Lianzhe Hua , Yu Wanga and Bikash Palb aSchool of Electrical Engineering, Chongqing University, Shazheng Street, Chongqing, 400044, , China bDepartment of Electrical and Electronic Engineering, Imperial College London, South Kensington Campus, London, SW7 2AZ, , United Kingdom A R T I C L E I N F O Keywords: Large Language Models Agentic Workflow Power Systems Transient Stability Assessment Neural Architecture Search Automated Scientific Discovery A B S T R A C T Existing transient stability assessment (TSA) methods rely heavily on manual simulationbased data generation and hand-crafted neural architectures, which limits the efficiency of the workflow. This paper proposes an LLM-driven agentic framework that automates the complete TSA workflow from simulation to neural network model design.

<ref:2511.20276#pg4>.

Workflow Automation Components

The proposed framework consists of two core modules: the LLM-Driven Simulation Controller and the LLM-Driven Neural Network Designer (LLM-NND).<ref:2511.20276#pg4, The framework consists of two core modules: the LLM-Driven Simulation Controller, which converts natural language instructions into executable simulation scenarios, and the LLM-Driven Neural Network Designer (LLM-NND), which automatically searches for optimal architectures through iterative feedback>. p. 3

Where the paper says it

LLM-Powered Agentic Workflow for Power System TSA This section describes the proposed framework for automating the TSA workflow from simulation to model design. The framework consists of two core modules: the LLM-Driven Simulation Controller, which converts natural language instructions into executable simulation scenarios, and the LLM-Driven Neural Network Designer (LLM-NND), which automatically searches for optimal architectures through iterative feedback.

  1. The LLM-Driven Simulation Controller translates natural language descriptions into executable simulation scenarios using prompt engineering and Retrieval-Augmented Generation (RAG). p. 2

    Where the paper says it

    Building upon the aforementioned concepts and exploring the feasibility of LLM-driven applications in TSA, this paper makes three primary contributions by integrating LLMs as intelligent agents into a complete power system TSA workflow: LLM-Driven Simulation Control Agent: We first propose a novel LLM-simulator integration framework that translates natural language descriptions into executable simulation scenarios. By leveraging prompt engineering and RAG to enhance the LLM’s domain-specific understanding of transient simulations, this agent achieves autonomous scenario generation, automated parameter configuration, and LLM-based result interpretation, while simultaneously broadening the coverage of critical operating conditions.

    <ref:2511.20276#pg5>.

  2. The LLM-Driven Neural Network Designer (LLM-NND) employs an iterative performance-driven feedback loop to automatically design and optimize neural network architectures. p. 3

    Where the paper says it

    LLM-Powered Agentic Workflow for Power System TSA This section describes the proposed framework for automating the TSA workflow from simulation to model design. The framework consists of two core modules: the LLM-Driven Simulation Controller, which converts natural language instructions into executable simulation scenarios, and the LLM-Driven Neural Network Designer (LLM-NND), which automatically searches for optimal architectures through iterative feedback.

    <ref:2511.20276#pg8>.

Knowledge Integration and Reasoning Enhancement

The reliability of the agentic workflow is enhanced through several advanced techniques designed to inject domain knowledge into the LLMs.<ref:2511.20276#pg5, The framework consists of four modules and multiple technologies: (i) Prompt Engineering, (ii) Enhanced RAG, and (iii) Simulation and Feedback Loop>. p. 4

Where the paper says it

Figure 1 shows the overall architecture of LLM-driven simulation controller framework. The proposed framework consists of four modules and multiple technologies: (i) Prompt Engineering, (ii) Enhanced RAG, and (iii) Simulation and Feedback Loop, as illustrated in Figure 1 and detailed below.

(i) Prompt Engineering

The authors designed a foundational prompt that establishes the LLM’s awareness of its functional role by sequentially enabling Chain-of-Thought (CoT) reasoning.<ref:2511.20276#pg5, By integrating these techniques, all proven effective in the LLM domain, we define a foundational, comprehensive prompt that establishes the LLM’s awareness of its functional role>. p. 4

Where the paper says it

This process operates sequentially: first, a prompt ensures that CoT is enabled for simulation identification; this is followed by a prompt that employs an Automatic Prompt Engineer (APE) for automatic syntax optimization[31]; subsequently, a ’simulation factuality’ prompt prevents the LLM from fabricating data due to hallucinations; finally, a prompt facilitates the LLM’s understanding and conversion of natural language. By integrating these techniques, all proven effective in the LLM domain, we define a foundational, comprehensive prompt that establishes the LLM’s awareness of its functional role.

(ii) Customized RAG

A specific RAG module was constructed for power system transient simulation by storing user guides and case studies to ensure factual consistency and reduce hallucinations.<ref:2511.20276#pg6, This module begins by having the RAG accept an input and retrieve a set of relevant/supporting documents, providing their sources and types>. p. 5

Where the paper says it

This paper constructs an RAG module specifically for power system transient stability simulation. This module begins by having the RAG accept an input and retrieve a set of relevant/supporting documents, providing their sources and types.

Neural Architecture Search Mechanism

The LLM-NND framework utilizes a collaborative LLM architecture to perform Neural Architecture Search (NAS) by leveraging specialized roles for different models.<ref:2511.20276#pg9>.

The three components are:

  1. Strategist LLM: Responsible for strategy generation and maintaining persistent memory across iterations to propose initial structures and subsequent updates. p. 7

    Where the paper says it

    Strategist LLM has persistent memory that can be used to maintain the context across iterations. It has a certain understanding of the entire dataset and all the features of the dataset, and it has the ability to propose an initial neural network structure and subsequent updates.

    <ref:2511.20276#pg8, The Strategist LLM has persistent memory that can be used to maintain the context across iterations>. p. 7
    Where the paper says it

    LLM-Driven Neural Architecture Design Implementation As illustrated in the figure, this module primarily consists of three components, with each component embodied by an LLM customized with Prompt Engineering and RAG: the Strategist LLM, responsible for strategy generation; the Generator LLM, responsible for generating the specific neural network structure; and the Operator LLM, responsible for intermediate coordination and evaluating their execution. Strategist LLM has persistent memory that can be used to maintain the context across iterations.

  2. Generator LLM: A generative model responsible for creating specific neural network frameworks based on the current strategy without retaining previous iteration data. p. 9

    Where the paper says it

    LLM-Powered Agentic Workflow for Power System TSA 𝑡 = GeneratorLLM(𝑡 ) (7) The Generator focuses exclusively on the current strategy without retaining memory from previous iterations, enabling diverse exploration within the guided search space. Operator LLM: Manages the overall search process by verifying architecture legality, evaluating performance, and maintaining an archive of visited architectures .

    <ref:2511.20276#pg8>.

  3. Operator LLM: Coordinates the process by assessing legality, evaluating performance against requirements, and determining whether to stop optimization. p. 7

    Where the paper says it

    Then, it evaluates the results based on the user-defined requirements, such as target accuracy, training time, and parameters used, etc. According to the data returned by the Generator LLM, It will determine whether to stop the construction or optimization process of the neural network.

    <ref:2511.20276#pg8, It will determine whether to stop the construction or optimization process of the neural network>. p. 7
    Where the paper says it

    Then, it evaluates the results based on the user-defined requirements, such as target accuracy, training time, and parameters used, etc. According to the data returned by the Generator LLM, It will determine whether to stop the construction or optimization process of the neural network.

Performance and Scalability Results

The validation on the IEEE 39-bus system showed that the LLM-NND framework achieved a test accuracy of 93.71% with an optimized traditional neural network architecture. p. 1

Where the paper says it

Specifically, domain knowledge and simulation templates are encoded into structured prompts with Retrieval-Augmented Generation (RAG) to enhance reasoning via Chain-of-Thought (CoT). Besides, an LLM-driven neural network design pipeline automatically discovers optimized architectures through iterative performance feedback, replacing traditional manual architecture engineering.

<ref:2511.20276#pg12, The LLM-NND framework autonomously discovered a deep MLP architecture with 4 hidden layers: [2048, 1024, 512, 256], processing 276-dimensional statistical features extracted from time-series data>. p. 2
Where the paper says it

The large-scale "Grid-LLM" model trained on power system data and documents in specific domains provides a new way to obtain simulation data [? Well-trained LLMs can make time series predictions on multi-dimensional data such as load, electricity price and renewable energy data.

(Binary Classification Performance)

For the binary stability classification task (stable vs. unstable), the PowerSystemStabilityNet architecture achieved an exceptional test accuracy of 98. p. 9

Where the paper says it

At each iteration 𝑡: 𝑡 ← GeneratorLLM(𝑡−1) 𝑡 ← {Evaluate(𝛼𝑖 ) ∣ 𝛼𝑖 ∈ 𝑡 ⧵ , isValid(𝛼𝑖 )} 𝛼 ∗ , 𝑝∗ ← arg max (𝛼𝑖 ,𝑝𝑖 )∈𝑡 𝑝𝑖 s. 𝐶(𝛼𝑖 ) ≤ Λ 𝑡 ← NavigatorLLM(𝑡−1 ∪ {(𝑡−1, 𝑡 )}) (9) The search terminates when either the target accuracy is achieved (𝑝 ∗ ≥ 𝑃𝑡𝑎𝑟𝑔𝑒𝑡) or the iteration limit is reached.

19% with an AUC-ROC of 0.9973.<ref:2511.20276#pg15, This result significantly exceeds the 96% target accuracy and demonstrates the framework’s capability for high-confidence stability assessment>. p. 2
Where the paper says it

Later, it could provide stability margin assessment and also support security-oriented decision-making [30]. The power system stability assessment technology using artificial intelligence has attracted extensive attention from researchers due to its high efficiency and accuracy.

(Scalability)

The framework demonstrated scalability by successfully validating its performance on larger systems, achieving 96.66% test accuracy on the IEEE 118-bus binary classification task. p. 5

Where the paper says it

It can select and utilize various IEEE standard test systems (e. , IEEE 9-bus, IEEE 39-bus, IEEE 118-bus), generate scenarios with different penetration levels and types of wind and photovoltaic (PV) power, set corresponding fault types (e.

<ref:2511.20276#pg17, The LLM-NND framework achieves 96. p. 2
Where the paper says it

Building upon the aforementioned concepts and exploring the feasibility of LLM-driven applications in TSA, this paper makes three primary contributions by integrating LLMs as intelligent agents into a complete power system TSA workflow: LLM-Driven Simulation Control Agent: We first propose a novel LLM-simulator integration framework that translates natural language descriptions into executable simulation scenarios. By leveraging prompt engineering and RAG to enhance the LLM’s domain-specific understanding of transient simulations, this agent achieves autonomous scenario generation, automated parameter configuration, and LLM-based result interpretation, while simultaneously broadening the coverage of critical operating conditions.

66% test accuracy on the IEEE 118-bus binary classification task>. p. 5
Where the paper says it

It can select and utilize various IEEE standard test systems (e. , IEEE 9-bus, IEEE 39-bus, IEEE 118-bus), generate scenarios with different penetration levels and types of wind and photovoltaic (PV) power, set corresponding fault types (e.

(Renewable Integration)

When extended to the IEEE 39-bus system with wind power integration, the LLM-NND framework achieved a system accuracy of 95.39%.<ref:2511.20276#pg19, The LLM-NND framework achieves 95. p. 2

Where the paper says it

Building upon the aforementioned concepts and exploring the feasibility of LLM-driven applications in TSA, this paper makes three primary contributions by integrating LLMs as intelligent agents into a complete power system TSA workflow: LLM-Driven Simulation Control Agent: We first propose a novel LLM-simulator integration framework that translates natural language descriptions into executable simulation scenarios. By leveraging prompt engineering and RAG to enhance the LLM’s domain-specific understanding of transient simulations, this agent achieves autonomous scenario generation, automated parameter configuration, and LLM-based result interpretation, while simultaneously broadening the coverage of critical operating conditions.

39% test accuracy on the IEEE 39-bus renewable integration dataset>. p. 4
Where the paper says it

Based on the system topology, load distribution, and critical operating points, propose fault scenarios that comprehensively test the system’s stability. ” Architecture Prompt: “Generate a Python script using ANDES that creates the following scenario: (1) System: IEEE 39-bus system with 30% wind power penetration; (2) Fault: Three-phase short circuit at bus 16; (3) Duration: 100ms; (4) Clearing: Line trip.

Conclusion and Future Directions

The paper concludes that the LLM-driven agentic framework successfully bridges natural language interaction and power system simulation by automating scenario generation and model design.<ref:2511.20276#pg4>. Future work will focus on enhancing domain-specific capabilities through fine-tuning on dedicated power system code libraries and developing physics-informed neural architecture search. p. 8

Where the paper says it

LLM-Powered Agentic Workflow for Power System TSA Algorithm 1: LLM-NND Framework Algorithm Input: Data features 𝐷, performance requirements 𝑅, maximum iterations 𝑇 Output: Optimal neural network architecture 𝐴∗ Initialize: 𝐴∗ ← ∅, 𝑃 ∗ ← 0; for 𝑡 = 1 to 𝑇 do // Architecture generation 𝐴𝑡 ← LLM generates architecture(𝐷, 𝑅, 𝑓 𝑒𝑒𝑑𝑏𝑎𝑐𝑘𝑡−1); // Performance evaluation 𝑃𝑡 ← Evaluate architecture(𝐴𝑡 , 𝐷); // Update optimal architecture if 𝑃𝑡 > 𝑃 ∗ then 𝐴∗ ← 𝐴𝑡 ; 𝑃 ∗ ← 𝑃𝑡 ; // Generate feedback 𝑓 𝑒𝑒𝑑𝑏𝑎𝑐𝑘𝑡 ← LLM generates feedback(𝐴𝑡 , 𝑃𝑡 , 𝑅); // Convergence check if convergence condition satisfied then break; return 𝐴∗ ; 2. Theoretical Foundation of LLM-based Neural Architecture Search The recent development of large language models has demonstrated that they can understand complex technical fields through extensive pre-training on technical literature and code libraries.

<ref:2511.20276#pg4>.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Prompt Engineering for Scenario Generation: Implement a 'step-by-step' prompt approach involving a Role Prompt, Architecture Prompt, Feedback Prompt, and Simulation Factuality prompt to establish an LLM’s functional role and prevent data fabrication. This enables the system to autonomously generate executable simulation scripts from natural language descriptions.

  2. Customized Retrieval Augmented Generation (RAG): Construct a specific RAG module for power system transient stability simulation by indexing user guides, syntax manuals, and case studies in vectors. This allows the LLM to retrieve verified knowledge and convert long natural language requests into sub-requests corresponding to simulation tool APIs without retraining the model.

  3. LLM-Driven Neural Network Design Agent (LLM-NND): Implement a closed-loop feedback system where an LLM acts as a Strategist, Generator, and Operator. The Strategist proposes architectures, the Generator writes code to build them, and the Operator coordinates execution and evaluates results against user requirements. This system can autonomously discover optimized architectures by iteratively applying performance-driven feedback until requirements are met.

  4. Physics-Informed Neural Architecture Search: Develop a search space formulation that incorporates power system dynamics directly into the design process, moving beyond purely data-driven optimization. This allows the LLM to reason about architectural design at the semantic level and combine domain knowledge with computational constraints like accuracy, cost, and latency simultaneously.

  5. Scalable Validation Across System Sizes: Extend validation to larger systems like IEEE 118-bus networks and scenarios with renewable energy integration by using the LLM-Simulation pipeline to automatically configure complex wind generator models (REGCV2) and determine optimal injection buses. This demonstrates the framework's capability to handle high-dimensional feature spaces without manual tuning.

Abstract

This paper presents an LLM-driven, end-to-end workflow that addresses the lack of automation and intelligence in power system transient stability assessment (TSA). The proposed agentic framework integrates large language models (LLMs) with a professional simulator (ANDES) to automatically generate and filter disturbance scenarios from natural language, and employs an LLM-driven Neural Network Design (LLM-NND) pipeline to autonomously design and optimize TSA models through performance-guided, closed-loop feedback. On the IEEE 39-bus system, the LLM-NND models achieve 93.71% test accuracy on four-class TSA with only 4.78M parameters, while maintaining real-time inference latency (less than 0.95 ms per sample). Compared with a manually designed DenseNet (25.9M parameters, 80.05% accuracy), the proposed approach jointly improves accuracy and efficiency. Ablation studies confirm that the synergy among domain-grounded retrieval, reasoning augmentation, and feedback mechanisms is essential for robust automation. The results demonstrate that LLM agents can reliably accelerate TSA research from scenario generation and data acquisition to model design and interpretation, offering a scalable paradigm that is readily extensible to other power system tasks such as optimal power flow, fault analysis, and market operations.

Sources

Related papers