Manuscript Offprint

arXiv:2611.02310

Detect, Repair and Audit: A Hierarchical Multi-Agent Defense Against Adversarial Attacks in Energy Forecasting

Zewei Shi, Ruoxi Sun, Minhui Xue, Feng Liu, Hua Ma, Xingliang Yuan, Surya Nepal

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

Abstract

Accurate electricity-demand forecasting is essential for the modern energy infrastructure. Recently, Times-Series Large Language Models (TS-LLMs) have emerged as a promising approach to forecasting more accurate demand from historical consumption data in zero-and few-shot settings, helping energy operators effectively plan supply and allocate energy resources. However, these models are vulnerable to compromised sensor inputs that can distort forecasts and lead to erroneous market orders or unnecessary load shedding. Existing defenses focus primarily on end-device forecasting, overlooking the distinct data-drift, latency, and audit requirements across energy infrastructure. To address this gap, we extract from major energy standards and regulatory frameworks a three-layer conceptual model that captures the security postures for each layer. Guided by this model, we develop a Multi-Agent Reinforcement Learning (MARL) detector coupled with signal repair at local control centers, designed to mitigate distributional data drift through complementary feature-based detection and clean-reference-calibrated repair while meeting latency budgets. We further deploy an evidence-grounded LLM auditing agent with human-in-the-loop validation for audit-critical Virtual Power Plants (VPPs). In our evaluation, the best MARL configuration achieves an F1 score above 0.91 across all dataset-attack pairs, while signal repair reduces adversarial-to-clean input Relative Squared Error (RSE) by up to 83%. The few-shot auditor detects 77.78% of attacks in the Sherlock dataset. On the evaluated hardware, detection and repair require 7.95 ms on average, with a worst-observed latency of 14.50 ms, remaining within the local-center latency budget informed by IEEE 1646.

1 Introduction

With the rapid proliferation of AI, energy has emerged as a critical foundation for AI infrastructure, powering both the computational resources used to train large language models (LLMs) and the cloud infrastructure that delivers AI inference services to end users [3, 8]. Leading cloud providers are now securing direct nuclear supply agreements [26] and co-locating data centers adjacent to generation assets [18, 32]. Within this infrastructure, electricity-demand forecasts derived from historical consumption data inform key decisions on supply scheduling, resource allocation, and market operations [23]. This growing reliance on energy infrastructure makes its security inseparable from AI service continuity. However, the need to protect this infrastructure is still underscored by real-world incidents. Industrioyer malware exploited Operational Technology (OT) protocol automation to trigger the 2016 blackout [1], and federal agencies recently warned that state-sponsored actors are actively exploiting programmable logic controllers at US energy and water facilities [28]. To model defenses across this

heterogeneous infrastructure, we synthesize major energy standards and regulatory frameworks covering device communication, grid cybersecurity, and distributed resource aggregation [5, 9, 10]. We derive from them a generalized three-layer model (Figure 1): resource-constrained end devices (L1), latency-sensitive local centers (L2), and audit-critical Virtual Power Plants (VPPs, L3), with distinct computational, latency, and audit requirements (as detailed in §3).

Traditional energy-demand forecasting relies on historical patterns (e.g., daily activity cycles and seasonal variations), while Time-Series Large Language Models (TS-LLMs) [7, 12, 15] leverage pre-trained representations for zero- and few-shot forecasting from historical data, making them a more promising demand forecasters at local control centers. However these capabilities do not guarantee robustness to distributional data drift: weather or behavioral changes (e.g., heatwaves increasing cooling demand) can shift demand away from historical distributions and reduce forecast accuracy. Beyond such benign changes, these models are vulnerable to adversarial perturbations [43], including black-box attacks that degrade forecasts using only input-output queries without parameter access [19, 43]. Yet existing defenses address only a fragment of this threat landscape. Specifically, adversarial training [13] can be costly for large TS-LLMs and overfit known attack distributions [31, 42], while randomized smoothing [4] provides guarantees under specific perturbation models that may not capture temporal attacks on energy data. Anomaly-detection classifiers (e.g., Isolation Forest [21], OC-SVM [36]) and signal filters (e.g., Kalman smoother [16], Savitzky-Golay [35]) must also accommodate benign distribution shifts [11, 22] rather than misclassifying or suppressing legitimate changes. Detection-only pipelines that discard suspicious inputs can interrupt forecast continuity, making signal repair an operational necessity. Meanwhile, detection and repair must also share the latency budget with message transmission when performed within control-message delivery paths subject to IEEE 1646's 16 ms limit [14] (§3). Beyond forecasting, VPPs require cross-device OT-log investigation, but manual auditing faces substantial evidence-preparation burdens and gaps in auditors' OT-domain knowledge [33]. Together, these gaps motivate adversarial detection and signal repair that accommodate benign distributional drift within latency constraints, complemented by evidence-grounded auditing at VPPs.

We address these gaps by modeling the energy infrastructure as three layers (§3) and developing a hierarchical defense that combines a cooperative Multi-Agent Reinforcement Learning (MARL) detector with Discrete Wavelet Transform (DWT)-based signal repair at local control centers (L2) with an evidence-grounded LLM auditing agent at VPPs (L3) (§4). We take distributional data drift into consideration through two complementary mechanisms. First, the MARL specialists combine evidence from six specialists, allowing the coordinator to assess a load change in context. Training across diverse temporal patterns and conditioning decisions on a rolling trusted context support context-responsive detection (§4.1). Second, for rejected inputs, a Discrete Wavelet Transform (DWT)-based repair module retrieves a similar clean historical window from the same user and calibrates wavelet soft-thresholds per window. Regarding latency, our experiments show that the full detection-and-repair pipeline achieves a mean latency of 7.95 ms and a worst observed latency of 14.50 ms on the evaluated hardware, both below the local-center budget (§5.6). At VPPs, the auditing agent correlates OT logs across devices to identify attacks and produces reports grounded in specific log entries for human-in-the-loop (HITL) validation (§4.3).

In summary, our contributions are threefold:

  • We systematically model energy infrastructure as three operational layers (i.e., end devices, local control centers, and VPPs) and formalize the threat model for each layer, identifying its data streams, attack surfaces, attacker objectives, and operational constraints (§3).

  • We develop a hierarchical defense framework combining cooperative MARL detection and DWT-based signal repair at local control centers with evidence-grounded LLM auditing and HITL validation at VPPs, addressing distinct latency and audit requirements while preserving forecast continuity (§4).

  • We evaluate local-center defense across three energy datasets under DGA [19] and GenIAS [6], and separately assess forensic auditing on Sherlock [41] benchmark. The best MARL configuration achieves F1 above 0.91 on every dataset-attack pair, DWT repair reduces adversarial-to-clean input RSE by up to 83%, and the few-shot auditing agent detects 77.78% of attack windows. On the evaluated hardware, detection and repair take 7.95 ms on average (14.50 ms worst observed), below the local-center budget (§5).

References (18)