Homomorphic encryption lets a cloud server run a model on data it cannot read: the client encrypts its input, the server computes on the ciphertext, and only the client can decrypt the answer. Privacy of this kind is expensive. A single encrypted image classification can take minutes and move tens of gigabytes, against well under a second unencrypted. Meanwhile, the carbon cost of a kilowatt-hour differs by more than fifty times across European grids, from about 15 g/kWh in Sweden to about 895 g/kWh in Poland. Encrypted inference is therefore among the most carbon-heavy work a data center does per query, and it is also unusually easy to delay and move, because it is usually batched. Yet nobody can say accurately how much carbon an encrypted inference emits. The carbon estimators in use count floating-point operations (FLOPs), and under homomorphic encryption FLOPs are a poor guide to cost.
This note proposes two things. The first is a carbon estimator for encrypted inference that predicts energy from the cryptographic work actually performed: how many ciphertext multiplications, rotations, rescalings and refresh operations run, and at what encryption parameters. The second is a placement policy that uses those estimates to decide where and when a batch of ciphertexts should run. Unlike existing carbon-aware schedulers, it accounts for the large one-time cost of shipping the server-side evaluation keys to a site and for ciphertext size, which grows with model depth. The central claim can be checked directly. FLOP-based carbon estimates will misrank encrypted models, and in some cases reverse the ranking. A placement policy that ignores key staging and ciphertext transfer will move workloads that should stay put. Both errors are large enough to change deployment decisions.
Background and the gap
Homomorphic schemes built on lattice problems add a small random "noise" term to protect data. Each ciphertext-by-ciphertext multiplication enlarges that noise. Once the noise passes a threshold, the result decrypts to garbage unless the ciphertext is refreshed by bootstrapping, an expensive procedure that evaluates decryption under encryption. In "leveled" use, which avoids bootstrapping, the designer fixes a maximum multiplicative depth in advance. That depth sets the ring dimension $N$ and the size of the ciphertext modulus $Q$, and both inflate the cost of every operation. HEMET names the consequence the "Depth Trap". Mobile-style backbones such as SqueezeNet and Inception cut plaintext FLOPs by stacking layers, so under encryption they need larger parameters and run slower. HEMET's redesign cuts CIFAR-10 latency from 72.7 s to 29.6 s for SqueezeNet and from 213.2 s to 83.2 s for Inception. NASS shows a related effect: small increases in network size or bit-width push the parameter choice over a threshold and cause multi-fold "steppy" jumps in latency. These two papers motivate the proposal. They show that encrypted cost depends on depth and parameter regime rather than on arithmetic volume, but they measure only wall-clock time on a single machine and never energy or carbon.
The carbon side relies on exactly the proxy those papers discredit. DiTCarbon predicts the operational and embodied carbon of diffusion transformers from operator FLOPs, hardware efficiency, data-center overhead (PUE) and grid intensity. It reaches 10.7% mean absolute percentage error on plaintext workloads and shows a 45× spread between Indian and Norwegian grids. Hugging Carbon normalizes emissions per exaFLOP. FedGreen assumes that narrowing a model by a factor $p$ cuts energy by $p^2$. We reuse DiTCarbon's decomposition into compute, hardware efficiency, PUE, grid and embodied carbon, which supplies the method, but we replace its FLOP term.
On placement, CASPER routes web requests to greener regions within a latency budget. CarbonEdge places edge containers using a mixed-integer program over regional carbon differences of up to 10.8×. MASAC (Zhang et al.) uses multi-agent reinforcement learning to move generative-AI fine-tuning between data centers. All three treat a workload as a generic job with a size and a runtime. For homomorphic jobs that abstraction drops the two terms that matter most. Evaluation keys can run to gigabytes but are reused across many batches. Payload per query differs by orders of magnitude across configurations: CryptoNets ciphertexts are roughly 92 KB per MNIST image (CryptoNets), while Haralampieva et al. measure about 56 GB of traffic for a single Malaria-cell inference under HE-Transformer.
One constraint shapes the scope. Hybrid protocols that mix homomorphic encryption with garbled circuits, such as SAFENet, DeepReDuce and Circa, need many client-server round trips, so the computation is effectively pinned near the client. The estimator covers these protocols. The placement policy is restricted to non-interactive encrypted inference, where the client uploads once and the server computes alone.
Core Claim
The energy of an encrypted inference is well predicted by a weighted count of homomorphic primitives, with per-primitive costs that depend on the parameter set and the hardware. It is poorly predicted by FLOPs. Concretely, we model the energy of one batch under parameter set $(N, L)$, with $L$ the number of modulus levels, on hardware $h$ as
$$E(N, L, h) = \sum_{k} n_k \, c_k(N, L, h) + E_{\text{idle}}(h)\,T,$$
where $n_k$ counts operations of type $k$ (ciphertext multiplication, rotation and key-switching, rescaling, plaintext multiplication, bootstrapping), $c_k$ is a measured per-operation energy, and the final term is idle energy over runtime $T$. The counts come from the compiled circuit. The unit costs are calibrated once per machine type with microbenchmarks.
The carbon cost of running that batch at site $s$, starting at time $t$, is
$$C_s(t) = \text{PUE}_s\, I_s(t)\, E(N, L, h_s) + e_{\text{net}}\, I_{\text{path}} \left( B_{\text{ct}} + B_{\text{key}}\,\mathbb{1}[\text{keys not staged at } s] \right) + C^{\text{emb}}_s.$$
Here $I_s(t)$ is grid intensity, $B_{\text{ct}}$ and $B_{\text{key}}$ are the ciphertext and evaluation-key volumes, $e_{\text{net}}$ is network energy per byte, and $C^{\text{emb}}_s$ is the embodied-carbon share of the hardware. The file reports no figure for network energy per byte on Lacuna, so $e_{\text{net}}$ is treated as a swept parameter rather than a constant. The second claim follows from this expression. Whether moving a job saves carbon depends on its compute-to-bytes ratio and on whether its keys are already staged at the destination. Because that ratio spans several orders of magnitude across encrypted models, a scheduler that sees only runtime will be right for some models and badly wrong for others.
Research Program
The first component is a measured model zoo. We will compile non-interactive encrypted models in both approximate-arithmetic (CKKS) and exact-integer (BFV) form: the CryptoNets MNIST network, HEMET's SqueezeNet and Inception variants with and without its redesign on CIFAR-10 and CIFAR-100, NASS-style variants that cross parameter thresholds, and the Malaria Model Z configuration from Haralampieva et al. We add the SAFENet, DeepReDuce and Circa hybrids as estimator-only cases. Each configuration runs on at least two CPU types and one GPU. We record wall-plug or on-chip energy, primitive counts, ciphertext and key sizes, and accuracy.
The second component is the estimator. We fit the per-primitive costs $c_k$ from microbenchmarks only, then predict whole-model energy for the zoo without refitting. This tests whether the decomposition carries over to models it was not fitted on.
The third component is the placement policy. It is a receding-horizon mixed-integer program in the style of CarbonEdge, but its decisions cover site, start time within a batch deadline, and key staging. Staging decisions persist across batches, so the one-time key transfer is amortized. The policy is driven by Electricity Maps intensity traces for the European and US regions those papers study, and by arrival processes taken from the Alibaba GPU cluster trace and rescaled to encrypted-batch sizes. Following the environmental-equity analysis of Li et al., we add a per-region load cap as a constraint, so that the policy cannot meet its target by dumping all encrypted work on one clean but water-stressed site.
Baselines
The naive reference point is local execution: every batch runs where it arrives, with no shifting. Savings are reported relative to it.
The strongest existing estimator is a DiTCarbon-style model that maps FLOPs to energy through a fitted hardware-efficiency factor and then multiplies by PUE and grid intensity. DiTCarbon reports 10.7% MAPE on operational carbon for plaintext diffusion transformers. There is no reported result on Lacuna for any FLOP-based estimator applied to homomorphically encrypted inference. To keep the comparison fair, we give that baseline the same calibration budget as ours: it may refit its efficiency factor per machine on the same microbenchmark data, and both estimators are scored on the same held-out models. Our estimator beats it if it roughly halves MAPE on held-out encrypted models and correctly orders the HEMET pairs that FLOPs misorder.
The strongest existing placement method is a CarbonEdge-style mixed-integer placement. CarbonEdge reports a 78.7% emission reduction against a latency-only baseline on its Central Europe testbed. CASPER reports 70% when the latency budget is relaxed to 500 ms. We run this baseline with the per-job energy measured by our own estimator, on the same traces, sites and deadlines. The only thing it lacks is our key-staging and ciphertext-transfer terms. It therefore doubles as the ablation that isolates the proposal's key ingredient. A second ablation removes the depth-aware energy model and feeds the scheduler FLOP-based energy instead. We count the proposal as beating these baselines only if the full system lowers total carbon, including network carbon, by a margin that survives the whole sweep of plausible network-energy values, and especially on high-payload models. A static "always run in the cleanest country" policy and a TEE reference using the 0.14 s SGX figure from Haralampieva et al. bracket the results.
Why not just…?
Why not just multiply FLOPs by grid intensity, as current trackers do? HEMET and NASS show that encrypted latency moves with depth and parameter thresholds, not with FLOPs. The SqueezeNet versus Inception redesigns cut runtime by about 60% while changing the arithmetic only modestly. We expect FLOP-based estimates to misrank these models. Experiment 1 tests this directly, and if FLOPs turn out to rank the zoo correctly, the estimator half of this proposal fails.
Why not just treat encrypted jobs as generic delay-tolerant batch jobs and reuse an existing carbon-aware scheduler? This is the real threat. For compute-heavy, low-payload models like CryptoNets, a generic scheduler given good energy numbers may capture almost all the available savings. Our ablation makes that comparison explicit. If the gap is small across the whole payload range, we will report that the contribution lies in the estimator and not in the placement terms. We expect the gap to open for configurations near the 56 GB-per-inference end and when keys are not yet staged at the destination, but this is an empirical question.
Why not just use secure enclaves (TEEs), which run about 3,900× faster on Malaria Model Z per Haralampieva et al.? Where hardware trust is acceptable, enclaves are the greener choice, and we report them as a reference point. They do not apply where trust rests on a mathematical guarantee rather than on the hardware vendor, as in the multi-hospital setting of Geva et al.. That is the regime this proposal targets.
Why not just always deploy in Sweden or France? PCAM shows that static averages produce large accounting errors. Concentrating long, power-hungry jobs in one place also creates the local water burden documented by Li et al. The static policy is included as a baseline so that the size of its shortfall is measured rather than assumed.
Proposed Experiments
Experiment 1 measures estimator fidelity. We report MAPE and Spearman rank correlation of predicted against measured energy across held-out encrypted models and hardware, for our estimator and for the FLOP baseline. A decisive outcome is the FLOP baseline ranking an unmodified HEMET backbone as cheaper than its redesigned version while measured energy says the opposite.
Experiment 2 is a break-even analysis. For each model we compute the compute-to-bytes ratio and the intensity gap at which shifting the work pays for its transfer, as a function of $e_{\text{net}}$ and of how many batches share one key staging.
Experiment 3 is trace-driven placement over a year of intensity data. We report total carbon with network and embodied carbon included separately, deadline violations, and the maximum share of load landing on any one region, for all baselines and ablations.
The proposal is falsified if the generic-scheduler ablation comes within a few percent of the full system across the payload range, and if the FLOP estimator ranks the model zoo as well as the primitive-count estimator does.
References
- HEMET: A Homomorphic-Encryption-Friendly Privacy-Preserving Mobile Neural Network Architecture
- NASS: Optimizing Secure Inference via Neural Architecture Search
- DiTCarbon: Predictive Carbon Footprint Estimation for Diffusion Transformer Inference
- Hugging Carbon: Quantifying the Training Carbon Emissions of AI Models at Scale
- FedGreen: Carbon-Aware Federated Learning with Model Size Adaptation
- CASPER: Carbon-Aware Scheduling and Provisioning for Distributed Web Services
- CarbonEdge: Leveraging Mesoscale Spatial Carbon-Intensity Variations for Low Carbon Edge Computing
- Sustainable AIGC Workload Scheduling of Geo-Distributed Data Centers: A Multi-Agent Reinforcement Learning Approach
- CryptoNets: Applying Neural Networks to Encrypted Data with High Throughput and Accuracy
- A Systematic Comparison of Encrypted Machine Learning Solutions for Image Classification
- SAFENet: A Secure, Accurate and Fast Neural Network Inference
- DeepReDuce: ReLU Reduction for Fast Private Inference
- Circa: Stochastic ReLUs for Private Deep Learning
- Towards Environmentally Equitable AI via Geographical Load Balancing
- Collaborative Privacy-Preserving Analysis of Oncological Data using Multiparty Homomorphic Encryption
- Unveiling the Uncertainty in Embodied and Operational Carbon of Large AI Models through a Probabilistic Carbon Accounting Model