Adaptive Electromagnetic Transient-level Digital Twins for Data Centers via In-Context Learning with LLMs
Authors: Amit Jena, Bin Wang, Aoxia Chen, Brad Chadwell, Billy Yancey, Le Xie
Organizations: Department of Electrical and Computer Engineering, Texas A&M University, College Station, TX 77843 USA · Advanced Technology Solutions, ISO New England, Holyoke, MA 01040 USA · Electric Power Engineers (EPE), Austin, TX USA · School of Engineering and Applied Sciences, Harvard University, Boston, MA 02134 USA
The rapid growth of artificial intelligence (AI) workloads has significantly increased data center (DC) power demand. Frequent operational and configurational changes, such as load surges caused by dynamic workload allocation, can induce electromagnetic transients (EMTs) whose accurate prediction is critical for reliable DC operation and maintenance. Although high-fidelity EMT solvers are widely adopted for transient analysis, their computational cost limits large-scale and multi-scenario studies. Digital twins address this computational bottleneck by emulating the behavior of a physical system and enabling fast prediction in place of expensive high-fidelity simulation. However,data-driven digital twins are non-adaptive and fail to generalize once the DC configuration changes. To address this limitation, this paper proposes an adaptive EMT-level digital twin for DCs based on in-context learning (ICL) with large language models (LLMs). We formulate the EMT prediction task as a system identification problem under parametric uncertainty and develop a GPT-2-based framework that adapts to unseen DC configurations at inference time from a small set of EMT trajectory samples, without model retraining. The proposed framework is validated on three representative EMT scenarios and benchmarked against three baseline non-adaptive twins. Results demonstrate superior prediction accuracy, improved adaptability to unseen operating conditions, and substantial computational speedups compared to high-fidelity EMT simulation.
Figures & tables
Fig. 1 : Overview of the Proposed ICL-based Adaptive Digital Twin Framework . The twin is meta-trained on multi-configuration EMT data, adapted to unseen configurations using a few test-time samples, and evaluated by predicting EMT waveforms with high fidelity.
Fig. 2 : Schematic Diagram of the DC Power System Model. The DC is supplied power through two different paths, thus leading to two distinct operating modes. (1) Grid-connected mode : an upstream transmission grid and an interface transformer power the IT load, gated by a circuit breaker. (2) Off-grid mode : A battery-backed grid-forming inverter provides power to the IT load, gated by a separate circuit breaker. The two paths join at the point of common coupling (PCC), which employs a droop-controlled actuator (inset) that regulates the PCC voltage by tracking active and reactive power ( PPCC , QPCC ) through low pass filtering, sample-and-hold, and P−f and Q−V droop control loops to set an internal three-phase voltage behind an output impedance.
Parameter
Symbol
Value
EMT simulation timestep
Δtsim
5 μ s
Nominal grid voltage
Vgrid
345 kV
Transformer rating
ST
100 MVA
Nominal PCC frequency
fPCCref
60 Hz
Nominal PCC voltage
VPCCref
1.0 p.u.
P – f droop gain
Kp
0.0005
TABLE I : Nominal PSCAD Model Parameters (Common to All Cases)
Case
Dist. Type
Stoch. Param.
Nominal Value
Variation Range
Step- change
Step load
PL
25 MW
[0, 320] MW
QL
8.44 MVAR
[0, 105.2] MVAR
Gradual- change
Ramp load
PL
25 MW
[0, 320] MW
QL
8.44 MVAR
[0, 105.2] MVAR
Mode- switch
Breaker toggle
SGFM
150 MVA
[ − 80, 80] MVA
TABLE II : Configuration Parameters for the Three EMT Case Studies
Parameter
Symbol
Value
Model Architecture (GPT-2 backbone)
Number of transformer layers
L
6
Number of attention heads
H
4
Embedding dimension
d
128
Context length
n
36
Training and Test Configuration
TABLE III : ICL Model Architecture and Training Hyperparameters
Method
Adapts?
Step-change
Gradual-change
Mode-switching
Avg. over all cases
MAE
RMSE
MAE
RMSE
MAE
RMSE
ET (s)
Gain ( × )
PSCAD (ground truth)
–
–
–
–
–
–
–
128.06
1×
ICL (ours)
✓
0.00078
0.00316
0.00152
0.00438
0.00119
0.00524
9.911
12.92 ×
ARMAX
×
0.06613
0.09493
0.05090
0.07071
0.08273
0.10764
0.026
4925 ×
LSTM
×
0.00842
0.01343
0.00067
0.00092
0.00248
0.01201
1.156
110.78 ×
PINN
×
0.04139
0.04818
0.03338
0.04204
0.01977
0.03332
0.791
161.90 ×
TABLE IV : Comparison of Three-Phase PCC Voltage Prediction Accuracy, Execution Speed, and Adaptivity Across Methods and Test Cases
Fig. 3 : EMT prediction results . The top row presents the detailed Case 1 (step-change): (a) the applied load disturbance, (b) the ground-truth three-phase PCC voltage, and (c) the corresponding adaptive digital twin prediction. The bottom row presents single-phase cross-method comparisons: (d) PCC voltage and (e) PCC current for Case 1, and (f) PCC voltage for Case 3 (mode-switching). The proposed ICL-based adaptive digital twin accurately reproduces both the voltage and current EMT responses. The quantitative results for all cases, including Case 2 (gradual-change), are reported in Table IV .
This study proposes a scalable Digital Twin framework for energy optimization in data centers.The framework integrates IoT-based data acquisition, cloud computing, and machine learning techniques to enable real-time monitoring, forecasting, and intelligent energy management. A controlled small-scale data center environment was developed to monitor variables such as power consumption, temperature, and computational workload. Long Short-Term Memory (LSTM) models were employed to predict energy demand and support operational decision-making. Experimental results demonstrated improvements in energy efficiency, including reductions in power consumption and enhancements in Power Usage Effectiveness (PUE). Despite being evaluated in a constrained environment, the proposed framework demonstrates strong potential as a scalable and cost-effective solution for sustainable data center management.
Raphael Hendrigo de Souza Gonçalves, Wendel Marcos dos Santos
Federal University of São João del-Rei (UFSJ) · Federal Institute of Education, Science and Technology of São Paulo (IFSP)
The emerging of large language models (LLMs) has posed significant challenges to the thermal management of data center. Intense GPU computation for LLMs results in localized hotspots. Moreover, spiking thermal loads during training and inference bursts make real-time cooling response more difficult to predict and control. Thermal-aware capacity planning of data center requires massive expensive high-fidelity CFD simulations. AI models can perform real-time prediction for unseen designs. However, existing works either have large prediction error, or have over-simplified assumptions for data center operations. This work presents an AI-driven framework that can perform thermal-aware capacity planning for a real-world data center in seconds. The embedded AI model learns from numerous key parameters (rack power, server power, server placement, HVAC settings etc.), and provides temperature prediction within milliseconds. This AI model is tested against high-fidelity CFD simulations, and results show that for unseen data center designs, model can achieve high accuracy with 10000X speedup. Driven by the AI model, the authors design the thermal-aware capacity planning framework. This framework can help data center designers and operators instantaneously optimize both workload distribution and HVAC cooling efficiency.
The growing scale and complexity of modern data centers present major challenges in balancing energy efficiency with outage risk. Although Deep Reinforcement Learning (DRL) shows strong potential for intelligent control, its deployment in mission-critical systems is limited by data scarcity and the lack of real-time pre-evaluation mechanisms. This paper introduces the Dual-Loop Control Framework (DLCF), a digital twin-based architecture designed to overcome these challenges. The framework comprises three core entities: the physical system, a digital twin, and a policy reservoir of diverse DRL agents. These components interact through a dual-loop mechanism involving real-time data acquisition, data assimilation, DRL policy training, pre-evaluation, and expert verification. Theoretical analysis shows how DLCF can improve sample efficiency, generalization, safety, and optimality. Leveraging DLCF, we implemented the DCVerse platform and validated it through case studies on a real-world data center cooling system. The evaluation shows that our approach achieves up to 4.09% energy savings over conventional control strategies without violating SLA requirements. Additionally, the framework improves policy interpretability and supports more trustworthy DRL deployment. This work provides a foundation for reliable AI-based control in data centers and points toward future extensions for holistic, system-wide optimization.
Qingang Zhang, Yuejun Yan, Guangyu Wu +4
College of Computing and Data Science, Nanyang Technological University, 639798, Singapore · Alibaba Group, Hangzhou, 311121, China