Power grids that run mostly on solar, wind and batteries have lost the spinning mass of large generators. That mass used to slow frequency swings after a sudden loss of supply. The replacement is software: fleets of inverters and batteries coordinated by a controller that reacts within fractions of a second. Running that coordinator on a cloud server exposes commercially sensitive telemetry, such as battery headroom and industrial load margins. Homomorphic encryption avoids the exposure by letting the server compute directly on encrypted numbers. It has one structural problem. Every encrypted multiplication adds noise to the ciphertext, and a controller with memory multiplies its internal state at every time step. The noise therefore piles up until decryption fails. The existing remedies all fit poorly with a grid that has little inertia. Bootstrapping, which re-encrypts the data homomorphically, is too slow. Resetting the controller state to zero injects a step in power. A finite-window filter keeps a long ciphertext history whenever the grid has slow oscillation modes.
We propose a simple alternative and test it on standard power-system benchmarks. The server runs several copies of the encrypted controller whose start times are staggered. Each copy is restarted from zero before its noise budget runs out. The output sent to the inverters is a blend of the copies, with weights fixed in advance and known in plaintext. A copy gets nonzero weight only after its zero-start transient has died out, and it is faded out before it is reset. Blending with plaintext weights costs no extra multiplicative depth. If the controller is stable, the blended output tracks an ideal, never-reset controller to within a bound that shrinks exponentially in the warm-up length. The noise refresh then becomes invisible to the grid. It needs no bootstrapping, no extra communication round trips, and a memory footprint set by the number of copies rather than by the length of the controller's impulse response.
Core Claim
Consider a stable discrete-time controller $x_c(k+1)=A_c x_c(k)+B_c y(k)$, $u(k)=C_c x_c(k)+D_c y(k)$. The matrices are public to the server, and the measurements $y$ arrive encrypted. Each copy uses one plaintext-by-ciphertext multiplication per step. In a leveled scheme, one with a fixed budget of multiplications and no refresh, a copy can therefore live about $L$ steps, where $L$ is the number of levels. We run $M$ copies whose restart times $r_i$ are spaced $L/M$ steps apart, and we output
$$u(k)=\sum_{i=1}^{M} w_i(k)\,u_i(k),\qquad \sum_i w_i(k)=1,$$
where $w_i(k)\ge 0$ is a plaintext schedule. It is zero during the first $W$ steps after a copy's restart, ramps smoothly up, and ramps back to zero before the copy is reset again. A copy restarted from zero differs from the ideal controller only through the state it forgot. Its output error is therefore
$$\|u_i(k)-u^\star(k)\| \le \|C_c A_c^{\,k-r_i}\|\,\|x_c^\star(r_i)\|,$$
where $u^\star$ and $x_c^\star$ are the output and state of the never-reset controller. When a copy first receives weight, its error has decayed like $\rho(A_c)^{W}$, with $\rho(A_c)$ the spectral radius of $A_c$. The scheme is feasible when the controller's settling time, measured in steps, fits inside a copy's usable lifetime of about $L(1-1/M)$ minus the ramp.
The claim is threefold. First, this staggered-blend realization removes the power steps that single-copy periodic resets cause. Second, it approaches the performance of the finite-impulse-response (FIR) controller at a fraction of FIR's ciphertext memory when the grid has lightly damped slow modes. Third, its periodically time-varying closed loop admits the same lifted robust-performance certificates already developed for bootstrapped encrypted control.
Where This Sits
The closest work is the comparison of encrypted dynamic controllers by Schlor and Allgöwer. That paper catalogues state re-encryption, periodic state resets, FIR realizations, periodic bootstrapping and integer reformulations, and bounds each with linear-matrix-inequality certificates on a chemical batch reactor. It supplies our baselines and our analysis machinery. It treats resets as single-copy impulsive disturbances, considers no smooth handover, and never touches frequency dynamics. Bootstrapping Guarantees models bootstrapping's polynomial approximation error as a sector-bounded nonlinearity. It handles periodic bootstrapping by "lifting" the system over one period, rewriting it as a larger time-invariant system. We reuse that lifting, because our blended controller is periodic with period $L/M$. We replace the uncertainty channel with an exact time-varying linear map. Tran et al. already use a resetting controller to clear accumulator bit growth in Paillier-encrypted control of an inverted pendulum at 500 Hz. That paper motivates our work: resets are practical. It also constrains it: a hard reset on a pendulum is not a hard reset on a grid.
The lifetime limit itself is well documented. Leveled Homomorphic Encryption for Deep Neural Networks notes that computation cannot continue past the allocated depth without a refresh. Privacy-Preserving Recurrent Neural Networks shows that recurrent state updates compound noise over the horizon. Deep Learning over Encrypted Data with Bootstrapping and Precision Considerations in Bootstrapping establish that bootstrapping dominates runtime. These papers motivate avoiding bootstrapping rather than accelerating it. Noise-aware operation ordering in Cheetah is complementary, and we use its multiply-before-rotate principle when packing copies.
On the grid side, the application is the dynamic virtual power plant of Häberle et al.. There, a coordinator turns a desired aggregate transfer function into device setpoints through dynamic participation factors, which are linear filters designed offline. This is an outer loop. The fast grid-forming voltage and current loops stay local and in plaintext, which sidesteps the latency gap between encryption and inverter control. Poolla et al. and the PLL wind-farm analysis show why abrupt power or phase steps are dangerous at low inertia: they produce frequency-slope spikes and loss of synchronization. This is the evidence that single-copy resets are unacceptable here. The safe-band criterion of Zhang and Cortés gives our pass/fail metric. Most of the cryptographic overhead is avoided because no ciphertext-by-ciphertext multiplication is needed. The method also works with additively homomorphic schemes such as Paillier, where it addresses bit growth rather than lattice noise.
Research Program
The first strand is analysis. We write the $M$-copy blended controller as a linear periodically time-varying system and lift it over one stagger period. We then compute $\ell_2$-gain bounds with the linear-matrix-inequality machinery of Schlor et al.. This makes our numbers directly comparable to the reset, FIR and bootstrapping bounds in Schlor and Allgöwer. Fixed-point quantization of the scaled matrices enters as a bounded additive disturbance.
We also study the design trade-off among four quantities: number of copies $M$, warm-up $W$, ramp shape, and per-step cost. Smooth polynomial ramps limit the rate of change of the commanded power. That rate is what drives the frequency slope after a handover.
One obstacle needs a dedicated treatment: integral action. An integrator never forgets its initial state, so a zero-restarted copy never converges. We separate the integrating mode, which in grid control is the slow secondary restoration channel. It can be realized either by additions alone, whose noise grows linearly and which therefore lives much longer, or by infrequent state re-encryption on a timescale of minutes. All stable modes go through the staggered copies.
The second strand is implementation. We build the encrypted coordinator in a lattice scheme at 128-bit security: CKKS for fixed-point data, and BFV with integerized matrices as an alternative. Copies are packed into ciphertext slots so that $M$ copies cost close to one copy's operations. We measure per-step latency on a commodity CPU against sampling periods of 20 to 100 ms.
The third strand is grid evaluation. We co-simulate the encrypted coordinator, decrypting only the outputs at the device side, with the benchmark networks. Wide-area delays are drawn from the SCION latency traces.
Baselines
The naive reference is the same coordinator run in plaintext with no encryption. It defines the nominal nadir, frequency slope and $\ell_2$-gain. For the reactor benchmark, Schlor and Allgöwer report a nominal bound of 1.8030. A second naive point is single-copy periodic reset to zero, at the same reset period that the noise budget forces on each of our copies. The same paper reports bounds between 1.8869 and 1.9508 for this approach on the reactor. It is the baseline the proposal most directly claims to fix.
The strongest existing competitor is the FIR realization. Among non-bootstrapping methods it achieved the tightest reported bound, an $\ell_2$-gain of 1.8819 on the batch reactor in Schlor and Allgöwer. It also has bounded depth by construction. We run it at two settings. In the first, its window length is tuned for best performance with no memory limit. In the second, it is restricted to the same number of stored ciphertexts and the same per-step operation count as our $M$ copies. Both methods use identical encryption parameters, quantization and hardware.
Periodic bootstrapping is the infinite-horizon method. Its reported bound is 2.0332 on the reactor in the same paper, and we include it with measured latency. State re-encryption through the key holder is the exact method. We run it with one additional round trip per refresh, drawing delays from the SCION traces.
Beating the field means three things on the reactor. We must reproduce the published bounds. We must reach an $ell_2$-gain at or below FIR's 1.8819 at equal or smaller ciphertext memory. And we must clearly beat the single-copy reset range. On the grid benchmarks, beating the field means equal or shallower nadirs than every encrypted baseline, with no reset-induced frequency-slope spike. For the grid benchmarks, no encrypted-control result was found on Lacuna, so the plaintext controller is the reference there.
Two ablations isolate the key ingredient. Staggered copies with hard switching instead of blending test whether smooth weighting, rather than redundancy alone, removes the transients. Sweeping warm-up length tests the exponential bound.
Why not just…?
Why not just use the FIR controller? This is the real threat. On the reactor it is already close to nominal. For grid coordinators it suffers when slow inter-area or aggregation modes are lightly damped, because the window must then cover many seconds of samples. Every sample is a stored ciphertext that is multiplied and summed at every step. The staggered scheme stores $M$ states regardless of impulse-response length. The matched-memory comparison on the South-East Australian system will settle the question. If FIR at equal memory matches us, our contribution shrinks to smoothness under a memory limit, and we will report that.
Why not just reset to a smarter state, or re-encrypt the state at the key holder? A nonzero reset state must come from somewhere. Computing it on the server inherits the noise. Getting it from the key holder is state re-encryption, which is exact but adds a round trip per refresh. With 99th-percentile wide-area latencies near 410 ms under SCION and 480 ms under BGP (Zhang et al.), that round trip consumes most of a sub-second response window. Where latency is low, re-encryption may simply win. Our delay-sweep experiment locates the crossover instead of assuming it.
Why not just bootstrap? Bootstrapping is the most expensive homomorphic operation (Nandakumar et al.). It also had the loosest reported bound of the four approaches (2.0332). Our circuit is a few plaintext multiplications per step, so bootstrapping would dominate latency. We include it only to quantify that gap.
Why not just use Paillier, as in the pendulum demonstration? Our scheme needs only additions and plaintext scaling, so it runs on Paillier too, and we will test it there. The alternative changes the cryptosystem, not the reset problem. Tran et al. still needed a resetting controller to control bit growth. Their 256- and 512-bit keys are below modern security levels. The lattice implementation is the secure default.
Proposed Experiments
The first check is a replication on the chemical batch reactor at $h=0.1$ s. We reproduce the published nominal, FIR, reset and bootstrapping bounds, then add the staggered-blend bound for $M\in\{2,3,4\}$ and several warm-up lengths.
The decisive grid experiment uses the IEEE 9-bus system with the medium-voltage distribution feeder and no synchronous generators, under the 28 MW load step of Häberle et al.. We place the load step at adversarial times: just before, during and after a refresh instant. We record nadir, maximum frequency slope over a 100 ms window, and peak device power. The prediction is that single-copy resets produce a visible slope spike at the refresh instant, that hard-switched copies produce a smaller one, and that blended copies produce none beyond the bound.
Scale and slow modes are tested on the 14-generator, 59-bus South-East Australian model with load steps up to 250 MW, as in Poolla et al.. This is where the matched-memory comparison with FIR is decisive. On the IEEE 39-bus system we report the fraction of randomized load events whose frequency leaves the 59.8–60.2 Hz band used by Zhang and Cortés. All grid runs are repeated with delays resampled from the SCION seven-country traces. Each run reports measured per-step encrypted latency next to the sampling period.
The idea fails if any of three things happens. Blending cannot suppress refresh transients at feasible warm-up lengths, which would mean grid coordinators are too slow-forgetting for leveled lifetimes. FIR at equal memory matches it everywhere. Or the per-step latency exceeds the outer-loop sampling period.
References
- Comparison and performance analysis of dynamic encrypted control approaches
- Bootstrapping Guarantees: Stability and Performance Analysis for Dynamic Encrypted Control
- Implementing homomorphic encryption based secure feedback control
- Logistic regression model training based on the approximate homomorphic encryption
- CRYPTOGRU: Low Latency Privacy-Preserving Text Analysis With GRU
- Towards Deep Neural Network Training on Encrypted Data
- Privacy-Preserving Machine Learning With Fully Homomorphic Encryption for Deep Neural Network
- Cheetah: Optimizing and Accelerating Homomorphic Encryption for Private Inference
- Grid-Forming and Spatially Distributed Control Design of Dynamic Virtual Power Plants
- Placement and Implementation of Grid-Forming and Grid-Following Virtual Inertia and Fast Frequency Response
- Analysis on the Transient Synchronization Stability of a Wind Farm with Multiple PLL-Based PMSGs
- Distributed Transient Frequency Control in Power Networks
- Fast frequency response with heterogeneous communication delay management under the SCION Internet architecture