Neighbouring grid operators want to plan power flows together, but each treats its loads, rooftop-solar output and generator costs as confidential. Existing privacy-preserving schemes run an iterative negotiation between regions: the regions exchange encrypted boundary quantities for tens of rounds until they agree. As wind and solar make conditions swing faster, those rounds become the bottleneck. This note proposes to cut them.
A shared neural network would predict a good starting point for the negotiation. It would run on encrypted inputs, so no one, including whoever hosts the model, sees any region's data. This is only practical because of a structural fact about power grids. The physics that matters for a starting point is linear (current conservation at every node) or quadratic (AC power balance). A small quadratic network followed by a linear "snap onto the physics" step can therefore be evaluated under homomorphic encryption with a shallow circuit and no bootstrapping. Homomorphic encryption lets a server compute on ciphertexts it cannot read. Bootstrapping is the expensive refresh step that usually makes it slow.
Core Claim
A degree-2 polynomial surrogate, evaluated under CKKS encryption with a homomorphic projection onto Kirchhoff's current law, should reduce the number of encrypted coordination rounds that multi-region AC optimal power flow needs. CKKS is a lattice-based scheme that supports approximate arithmetic on real-valued vectors. Optimal power flow (OPF) is the optimization that sets generator outputs subject to network physics. The surrogate predicts both the boundary voltages and flows and the dual prices of the coordination algorithm, and it needs no ciphertext-ciphertext multiplication beyond depth two.
The claim has three parts that can each fail.
- Beating the cheap starting point. The encrypted starting point must beat simply reusing the previous dispatch interval's solution, especially during fast renewable ramps and line outages.
- Needing the quadratic term. The quadratic term must matter. A linear predictor, which additively homomorphic Paillier encryption could already evaluate, must be measurably worse. Otherwise the stronger cryptography is unjustified.
- Paying for itself. The encrypted inference time must be smaller than the time saved in skipped rounds.
Prior Work and Positioning
Two papers motivate the problem.
- Privacy-Preserving Distributed Optimal Power Flow with Partially Homomorphic Encryption runs the Alternating Direction Method of Multipliers (ADMM), an iterative scheme in which regions solve local problems and a coordinator updates dual prices. It uses Paillier encryption and an ℓ1 penalty so that only mismatch signs are exchanged. It reaches a 0.8754% optimality gap in 35 iterations on an 85-bus tree network at about 1 ms per encryption operation. Its exactness proof covers only radial networks, and Paillier cannot multiply ciphertexts, so no learned component can enter the loop.
- Differentially Private Distributed Optimal Power Flow instead adds Laplace noise to the exchanged signals on IEEE 118-bus. It pays a 3.83% (dynamic) to 20.41% (static) cost increase, and up to 300 iterations. This evidence constrains the design: noise-based privacy is a poor fit for physical dispatch.
We keep the encrypted ADMM protocol fixed as the downstream solver and change only where it starts.
Two papers supply the grid-side method.
- Smart-PGSim trains a multitask network to predict primal and dual variables of AC-OPF as solver warm starts. It gets a 2.60x average speedup and needs only 16.3–29.5% of the iterations, but everything runs in plaintext with full system visibility.
- KCLNet adds an orthogonal projection $y \leftarrow y - A^{+}(Ay+b)$ onto the current-law constraints $Ay+b=0$. Here $A$ is the bus-line incidence matrix and $A^{+}$ its pseudoinverse. It reports zero violation and an MSE of 0.273 on IEEE 118-bus, including N-1 outages.
The observation driving this proposal is that the projection's matrix $I - A^{+}A$ is public when the tie-line topology is public. It is therefore one plaintext-ciphertext matrix product under CKKS: one rescaling level and no ciphertext-ciphertext multiplication. Under CKKS the violation will be small rather than exactly zero, set by encryption precision, and we measure it.
The encryption-side method comes from four papers.
- HEMET shows that fewer operations can still mean more latency if multiplicative depth grows. We adopt its depth-aware design and its trick of folding normalization and scaling constants into single plaintext coefficients.
- Activation-Free Backbones shows that pointwise activations can be replaced by polynomial mixing without collapse. This supports a network that is quadratic by construction instead of a ReLU network approximated after the fact, the costly route described by SecureNets.
- Orion supplies packing and scale management.
- The smart-metering study A Privacy-Preserving Framework Using Homomorphic Encryption for Smart Metering Systems is both a method source and a warning. It used Lattigo's multiparty CKKS for per-party trust boundaries, which we reuse for threshold decryption. Yet even plain summation over 100 meters took about 58 s, so careless CKKS pipelines are too slow for dispatch.
To our knowledge no work in this file evaluates a learned, physics-projected surrogate under homomorphic encryption for grid control.
Research Program
Parties and threat model. Each region holds its private net-injection vector: load minus local renewable output. The public inputs are the tie-line topology and the trained surrogate. The regions jointly generate a threshold CKKS key, so no single party can decrypt. The regions encrypt their injection vectors and send them to an honest-but-curious coordinator, meaning one that follows the protocol but tries to learn what it can. This is the same adversary model as the Paillier ADMM paper.
Encrypted computation. The coordinator packs the encrypted vectors into SIMD slots, i.e. many values batched into one ciphertext. It then evaluates the surrogate $$\hat{z} = P\left(W_2\,(W_1 x)^{\odot 2} + W_3 x + c\right),$$ where $x$ is the stacked net-injection vector and $W_1, W_2, W_3, c$ are learned plaintext weights. The squaring $(\cdot)^{\odot 2}$ is elementwise, and $P = I - A^{+}A$ is the KCL projection restricted to the boundary variables. The output $\hat{z}$ contains the boundary voltages, tie-line flows and ADMM dual prices. The total depth is three levels, which fits within a single CKKS modulus chain without bootstrapping. Each region jointly decrypts only its own slice of $\hat{z}$ and starts the unchanged encrypted ADMM from it.
Training. The surrogate is trained in plaintext offline on simulated scenarios. The loss is ADMM-aware: it weights errors on dual prices by their measured effect on round count, estimated from a held-out calibration set. We also inject simulated CKKS noise during training, in the spirit of HEAT's approximation-weight co-adaptation, so that the weights tolerate encryption error.
Topology changes. For N-1 outages, $A$ changes but stays public. One projection matrix is precomputed per credible contingency, so no new rotation keys are needed and packing is unchanged. This sidesteps the key-regeneration cost the smart-metering study identified.
Baselines
No warm start. The encrypted ADMM protocol from the Paillier paper is started from a flat voltage profile and zero duals. On the 85-bus tree this should reproduce the reported 0.8754% gap and 35 iterations, which validates our reimplementation. Any warm start must beat this in rounds without worsening the gap.
Previous-interval warm start. ADMM is started from the prior interval's converged solution. We expect this to be the strongest competitor, because renewable profiles in DDRE-33 have lag-1 autocorrelation above 0.93, so consecutive intervals look alike. It costs nothing cryptographically. It runs on exactly the same scenario sequences. Beating it means fewer median rounds on the top quartile of ramp-magnitude intervals and on N-1 intervals, while not losing on calm intervals.
Paillier-compatible linear surrogate. This is the same pipeline with the quadratic term removed ($W_1 = 0$), which additive encryption could already run. It uses the same training data, loss and hyperparameter search budget. It isolates whether the move to CKKS is earned. Our method beats it only if the rounds saved outweigh the extra encrypted inference time.
Plaintext upper bound. Two references give the best case with privacy ignored: the same surrogate evaluated in plaintext, and a Smart-PGSim-style multitask network. The file reports iteration fractions of 16.3–29.5% for centralized solves, not distributed ADMM. No reported result was found on Lacuna for learned warm starts of distributed ADMM.
Projection ablation. The CKKS surrogate is run without $P$, to test whether physics-consistent starting points shorten the negotiation rather than merely looking cleaner.
Differentially private ADMM. DP-ADMM on the partitioned 118-bus system is reported as context. The published figures are a 3.83% cost increase and up to 300 iterations.
Why not just…?
Why not just reuse the previous interval's solution? This is the real threat. On calm intervals it may match any learned predictor. The proposal survives only if the gap opens where renewable integration actually hurts: cloud fronts, wind ramps and line trips. That is why every result is stratified by ramp magnitude and contingency status. If the gap does not open, the conclusion is that encrypted learned warm starts are unnecessary. That would be a useful negative result for the field.
Why not just keep Paillier and use a linear predictor? Paillier is fast, and a linear warm start is within its reach. But AC losses and voltage coupling are quadratic in injections, so a linear map should degrade exactly when flows are heavy or reversed. The linear-surrogate ablation measures this directly. If the degradation is negligible, we recommend Paillier.
Why not just let each region predict its own starting point locally? A region cannot see its neighbours' injections, and the boundary flows and prices depend on them. We run this local-only variant as an additional ablation, to quantify how much of the benefit requires cross-region information.
Why not just add differential-privacy noise? The 118-bus evidence shows cost increases of 3.83–20.41% and slower convergence. A warm start corrupted by noise would lose most of its value.
Proposed Experiments
Testbeds. We use three:
- the 85-bus tree in three regions, for direct comparison with the Paillier ADMM paper;
- IEEE 118-bus in meshed partitions matching the differential-privacy study, where the SDP guarantee no longer holds and ADMM uses local nonconvex AC solves;
- the IEEE 33-bus system driven by the 2,000 single-node and 300 joint wind-PV scenarios of DDRE-33, with its meteorological labels used to define ramp regimes.
DDRE-33 per-unit profiles are also mapped onto renewable buses of the larger systems, and N-1 outages are sampled per interval.
Metrics. We report:
- ADMM rounds to a fixed residual tolerance;
- optimality gap against centralized AC-OPF;
- KCL and voltage-limit violations of both the warm start and the final solution;
- decryption-precision error of the projection;
- end-to-end wall-clock time, broken into CKKS inference, communication of ciphertexts, and ADMM rounds.
Implementation. CKKS runs in Lattigo multiparty mode or in OpenFHE with HEXL, via the DictPFL codebase.
Decisive checks. The proposal succeeds only if the encrypted quadratic surrogate:
- reduces median rounds against the previous-interval baseline on high-ramp and N-1 intervals;
- beats the linear surrogate by enough to cover its extra inference time;
- keeps the final optimality gap within that of the unmodified protocol;
- shows a projection residual under CKKS that is small relative to the ADMM tolerance.
Failure on the first check alone ends the line of work. Failure on the second alone redirects it toward Paillier.
References
- Privacy-Preserving Distributed Optimal Power Flow With Partially Homomorphic Encryption
- Differentially Private Distributed Optimal Power Flow
- Smart-PGSim: using neural network to accelerate AC-OPF power grid simulation
- KCLNet: Physics-Informed Power Flow Prediction via Constraints Projections
- HEMET: A Homomorphic-Encryption-Friendly Privacy-Preserving Mobile Neural Network Architecture
- Activation-Free Backbones for Image Recognition: Polynomial Alternatives within MetaFormer-Style Vision Models
- SecureNets: Secure Inference of Deep Neural Networks on an Untrusted Cloud
- Orion: A Fully Homomorphic Encryption Compiler for Private Deep Neural Network Inference
- A Privacy-Preserving Framework Using Homomorphic Encryption for Smart Metering Systems
- HEAT: Faster Fully Homomorphic Inference via Approximations-Weights Co-Adaptation
- A Large-Scale Dataset of Distributed Renewable Energy Scenarios on the IEEE-33 Bus Network