NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Slow-Layer Backdoors in Multi-Timescale Grid Control

Modern power grids are increasingly run by hierarchical controllers that split decisions across timescales: a slow layer, often a deep reinforcement learning agent, commits mechanical assets like capacitor banks on an hourly schedule, while a fast layer solves a physics-based optimization every second to dispatch smart inverters and keep voltages in bounds. This division of labor is attractive but it creates a new trust asymmetry. The slow layer is a learned neural network — exactly the kind of component that can carry a backdoor, a hidden behavior implanted during training that leaves normal performance untouched until a specific trigger appears in the input. No prior work has asked what happens when the learned, slow layer of a multi-timescale grid controller is backdoored, even though the fast layer can only work within the boundaries the slow layer hands down.

The core observation is that a hierarchical controller is a backdoor amplifier. In single-timescale reinforcement learning, a triggered malicious action causes a transient failure that the agent can recover from on the next step. In a two-timescale architecture, one malicious slow decision binds the fast physical layer for a full hour: mechanical capacitor banks cannot be re-switched, and if the committed configuration leaves too little reactive-power headroom, the fast layer's optimization problem becomes infeasible and voltages drift out of bounds continuously. Worse, the trigger need not be an artificial pattern pasted onto sensor readings — it can be a weather-typed renewable generation scenario that is statistically indistinguishable from real data. This proposal studies this attack surface, quantifies the amplification, and builds a defense that reuses the fast layer's own physics solver as a detector.

Core Claim

The claim has two parts. First, an attacker can poison the slow-timescale RL agent — the capacitor scheduler in the architecture of Two-Timescale Voltage Control in Distribution Grids Using Deep Reinforcement Learning — with a poisoning budget on the order of the ~0.003% of training transitions that BadRL: Sparse Targeted Backdoor Attack against Reinforcement Learning shows suffices for near-100% attack success in Atari, while using as the trigger a physically plausible spatiotemporal renewable pattern rather than an additive perturbation. Second, the resulting failures are detectable not by inspecting the network but by watching the fast layer's feasibility margins: when slow-layer setpoints cause reactive-power headroom to collapse far below what the observed weather regime warrants, that discrepancy is the signature of a dormant malicious policy.

Research Program

The first workstream builds the attack. Following the two-timescale design of Two-Timescale Voltage Control in Distribution Grids Using Deep Reinforcement Learning, a hyper-DQN schedules discrete capacitor banks hourly and a quadratic or second-order-cone program dispatches inverter reactive power each second. The backdoor trigger is a joint wind–photovoltaic scenario drawn from a specific weather class in the DDRE-33 dataset, which provides 300 wind–PV joint scenarios with explicit weather labels on the IEEE-33 bus network, generated by diffusion models to match real data closely (Wasserstein distance 0.0242 for wind and 0.0232 for PV sequences, lag-1 autocorrelation above 0.93, per A Large-Scale Dataset of Distributed Renewable Energy Scenarios on the IEEE-33 Bus Network). The poisoned target action is a capacitor configuration that is benign in most weather regimes but leaves insufficient headroom under the trigger regime. We adapt BadRL's machinery — its "attack value" state selection and mutual-information alignment of trigger gradients with the primary policy gradient — to select which transitions to poison, replacing its generic trigger templates with the weather-typed scenario templates. This differs from BadRL, which was evaluated only on single-agent Atari with uniform frame-by-frame execution and never touched physical systems, continuous dynamics, or downstream optimization layers.

The second workstream quantifies amplification. We define the amplification factor as the time-integrated voltage violation per triggered episode in the two-timescale system, divided by the same quantity for a matched backdoor in a single-timescale controller that switches capacitors at the fast rate. The hypothesis, grounded in the observation of Control of Multicarrier Energy Systems from Buildings to Networks that slow commitments coupled to fast loops are acutely vulnerable to forecast distortion, is that the hierarchy converts a one-step malicious action into an hour of binding infeasibility, while also making the attack cheaper — the slow agent makes one decision per hour, so far fewer poisoned transitions are needed to control behavior.

The third workstream builds the defense, which we call a feasibility-margin sentry. The fast layer already solves a constrained program every second; its solution exposes how close each inverter is to its reactive-power limit. We monitor the total remaining headroom $h_t$, and compare it to the headroom expected under the currently observed weather regime $\omega_t$:

$$z_t = \frac{\hat{h}(\omega_t) - h_t}{\sigma_h(\omega_t)},$$

where $\hat{h}(\omega_t)$ and $\sigma_h(\omega_t)$ are the mean and standard deviation of headroom under regime $\omega_t$, estimated from clean training trajectories. A large $z_t$ means the slow layer has committed the system to a state that the physics cannot healthily sustain given the weather — the backdoor's fingerprint. This deliberately inverts the logic of Recover Triggered States: Protect Model Against Backdoor Attack in Reinforcement Learning, which substitutes a neural surrogate's predicted clean state for the observed one. A purely neural surrogate, validated on the MuJoCo Hopper robot, would produce recovered states that violate Kirchhoff's laws when transplanted to a grid, and its authors already report compounding errors over multi-step trajectories. Our detector instead uses the grid's own solver, so every quantity it touches is physically consistent by construction.

Baselines

The "do nothing" reference is the unpoisoned two-timescale controller itself: the DRLCap scheme of Two-Timescale Voltage Control in Distribution Grids Using Deep Reinforcement Learning, which that paper reports achieves lower time-averaged cost and smoother voltage profiles than fixed capacitors (FixCap) and random switching (RandCap), though no reported numerical result for DRLCap is found on Lacuna. Every attack and defense run uses the same feeder, the same DDRE-33 scenario streams, and the same training compute, so any deviation from this reference measures the attack or defense, not a confound.

The strongest existing attack-side competitor is BadRL itself (BadRL: Sparse Targeted Backdoor Attack against Reinforcement Learning), transplanted onto the slow layer with its original generic trigger design and run at the same poisoning budget as our weather-typed variant. It reported near-100% attack success with ~0.003% poisoned transitions and an 84.9% performance drop in Breakout, so it is the bar for attack effectiveness; beating it here means achieving comparable attack success with a trigger that survives physical-plausibility screening, where its additive triggers may not. A second attack baseline adapts the behavioral triggers of BACKDOORL: Backdoor Attack against Competitive Reinforcement Learning, which reduced victim win rates by 17% to 37% in competitive MuJoCo, by keying the backdoor to a benign-observable event such as a sustained EV-charging cluster.

The strongest defense-side competitor is the fused hybrid detector of Hybrid data-driven physics model-based framework for enhance cyber-physical smart grid security, which combines weighted-least-squares physics residuals with an ensemble correlation detector and achieved a detection area under the ROC curve of 0.97 on the IEEE 118-bus system under 5% false-data contamination. It will be retrained on our feeders and trigger episodes with the same data and tuning budget as the sentry. Beating it means higher detection AUC on backdoor episodes at a false-positive rate below 0.2 on clean episodes, and — decisive for our claim — detecting triggers that its residual checks provably pass. The second defense baseline is an RTS-style surrogate-recovery guardian adapted from Recover Triggered States: Protect Model Against Backdoor Attack in Reinforcement Learning, which maintained 95.49% of original performance under a consecutive two-step attack on Hopper and limited cumulative reward loss to 1.41%; we run it with its action-regularized surrogate trained on the same clean trajectory budget. Fine-pruning from Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks and a Lagrangian constrained policy in the spirit of the RL2Grid benchmark's findings (RL2Grid: Benchmarking Reinforcement Learning in Power Grid Operations) round out the defense comparison.

The key ablation isolates weather conditioning: a sentry variant that thresholds raw headroom $h_t$ without the regime-conditioned expectation $\hat{h}(\omega_t)$. If the conditioned version does not beat the unconditioned one, the weather-typing ingredient — the part that lets the detector distinguish adversarial commitments from legitimate storm responses — is not earning its place.

Why not just…?

Why not just use the grid's existing false-data-injection detectors? These systems are built for additive bad data, and the evidence says they miss this attack class. The fused hybrid detector reached AUC 0.97 against 5% contamination with Ornstein–Uhlenbeck load dynamics (Hybrid data-driven physics model-based framework for enhance cyber-physical smart grid security), but a backdoor trigger appears in a tiny fraction of transitions (BadRL used ~0.003%) and, in our design, consists of renewable scenarios that respect physical bounds and realistic autocorrelation (A Large-Scale Dataset of Distributed Renewable Energy Scenarios on the IEEE-33 Bus Network). Still, this is a real threat: if the hybrid detector flags our trigger episodes, the stealth claim collapses. The head-to-head retraining experiment settles it either way, and we treat that outcome as a genuine possibility rather than arguing around it.

Why not just fine-tune or prune the suspected policy before deployment? The record is unfavorable on both halves. Clean fine-tuning failed to remove behavioral backdoors from recurrent RL agents in BACKDOORL: Backdoor Attack against Competitive Reinforcement Learning, and fine-pruning, though it took face-recognition attack success from 100% to 0%, only managed ~99% to ~30% on the more structured traffic-sign task (Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks). In a discrete capacitor scheduler, pruning that degrades clean behavior translates directly into voltage violations during normal operation. We will run both at a matched tuning budget so the comparison is empirical, not rhetorical.

Why not just drop the learned layer and use pure optimization everywhere? This removes the attack surface entirely, and it is the strongest structural objection. But the two-timescale literature exists precisely because the extremes fail: switching mechanical capacitors at the fast rate causes rapid equipment wear, fixed configurations (FixCap) and random switching (RandCap) cost more and allow severe voltage swings, and solving the exact second-order-cone program every second does not scale to large feeders (Two-Timescale Voltage Control in Distribution Grids Using Deep Reinforcement Learning). The honest answer is a trade-off, and our experiments quantify it by including FixCap and RandCap as reference points: if the defended two-timescale system does not retain a clear cost and voltage-compliance advantage over them, the case for learned slow layers weakens and the objection wins.

Decisive Checks

The proposal stands or falls on three measurements, all on the IEEE 123-bus feeder and the IEEE-33 network driven by DDRE-35-style scenario streams. First, attack success: the fraction of trigger episodes with a voltage violation beyond 0.05 per-unit or full inverter saturation should approach BadRL's near-100% level at a ~0.003% poisoning budget, while clean-episode cost and voltage profiles stay statistically indistinguishable from unpoisoned DRLCap. Second, amplification: the violation-time integral per triggered episode should exceed the matched single-timescale backdoor by a large factor — if it does not, the "hierarchy as amplifier" claim is wrong and the paper becomes a negative result about hierarchical robustness. Third, detection: the weather-conditioned sentry should exceed the hybrid detector's 0.97 AUC benchmark on backdoor episodes at low false-positive rates, where the RTS-style surrogate is expected to struggle with physically inconsistent recovered states. A useful sobering reference for how fragile unconstrained RL is on grids even without adversaries: vanilla DQN survived only 0.07 of episodes on the bus14 task in RL2Grid, versus 0.99 for heuristic-augmented PPO (RL2Grid: Benchmarking Reinforcement Learning in Power Grid Operations) — our attack operates on top of an already brittle control stack, which is exactly why it deserves study before these architectures are deployed, including in cloud-edge deployments where decentralized post-training poisoning is already documented (Backdoor Attacks on Decentralised Post-Training).