Homomorphic encryption lets a server run a neural network on data it cannot read. The client encrypts its input, the server computes directly on the encrypted numbers (ciphertexts), and only the client can decrypt the answer. The price is enormous. Encrypted inference is three to six orders of magnitude slower than ordinary inference, and a single CIFAR-sized image can occupy the hardware for 30 to 80 seconds (HEMET). When that computation runs on small, weakly cooled machines, such as an edge gateway, a bedside medical box, or a Jetson- or DGX-Spark-class module, it is exactly the kind of long, unbroken load that overheats the chip. The chip's built-in governor then cuts its own clock speed to cool down, a behavior called thermal throttling. Every latency figure in the encrypted-inference literature is computed by compilers or analytical estimators that assume the clock never drops. No one has measured what happens to these workloads under a real heat limit.
This note proposes to exploit a property that encrypted computation has and ordinary inference lacks. Because the server cannot see the data, it cannot branch on it. The sequence of operations is therefore fixed and fully known before the input arrives. That predictability turns thermal management from a reactive control problem into an offline planning problem. Before deployment, one can compute an execution plan that does three things. It reorders independent operations so that memory-heavy and arithmetic-heavy work alternate. It splits large arithmetic operations along mathematically independent pieces of the ciphertext. It assigns a clock frequency to each phase. The goal is to keep the chip just below its temperature ceiling instead of letting it overshoot and collapse. The central claim is that such a plan sustains more encrypted inferences per hour, at the same temperature cap, than both the stock governor and the best single locked frequency. A secondary claim is that thermal limits can reverse which encrypted-model designs look fastest.
What the two directions bring
On the thermal side, the literature establishes three facts. Sustained workloads on passively cooled hardware lead to clock collapse. Memory stalls act as accidental cooling pauses. Shaping the power curve helps. Genssler et al. show the second fact sharply. Hyperdimensional computing is 3.1× faster than a CNN when unconstrained on a Raspberry Pi 4, yet it loses 62% of its throughput under a 60°C skin-contact limit, compared with 16% for the CNN, because it keeps the processor fully busy. Schultheis et al. show that splitting a large matrix multiply into chunks interleaved with memory-bound work flattens power spikes. On DGX Spark this yields up to a 21.6% FLOPS increase and 10°C lower peaks, but the chunk sizes were profiled by hand and only plaintext kernels were tested. These two papers motivate the proposal and supply its power-shaping primitive. Lotus and TADF/HSWD are the strongest controllers for plaintext inference. Lotus uses a reinforcement-learning agent that sets CPU and GPU frequencies twice per frame for two-stage detectors. TADF/HSWD splits each convolution's channels between CPU and GPU on shared memory. Both have to react to variability that depends on the data: Lotus exists because the number of region proposals varies from frame to frame. Encrypted inference has no such variability. That is why this proposal plans offline rather than learning a reactive policy.
On the encryption side, the literature has optimized cost models that contain no notion of heat. HEMET shows that FLOP-minimizing mobile architectures become slower under encryption because they add multiplicative depth. Multiplicative depth is the number of sequential multiplications, and it dictates ciphertext size. HEMET fixes this with a depth-aware search and with coefficient merging. NASS searches architectures and cryptographic parameters together. It finds sharp cost "cliffs" at parameter boundaries and halves latency against Gazelle on CIFAR-10. SAFENet replaces activations channel by channel. All three measure cost with simulators or analytical estimators at a constant clock. The FHE accelerator survey and Trinity establish that encrypted workloads contain two very different kinds of phase. Number-theoretic transforms (NTTs, the FFT-like step behind polynomial multiplication) are dense arithmetic. Key switching, which needs large precomputed evaluation keys, is dominated by memory traffic. Neither paper examines power or temperature. This mixture of phases is the reason a plan can help: there are memory-bound phases available to interleave as cooling pauses, and arithmetic phases that can be split.
The research file raises one constraint directly. Chunking encrypted operations might break noise budgets or add prohibitive memory traffic for intermediate ciphertexts (Gap 3 of the file). The proposal answers it with a structural fact about the standard CKKS implementation. Ciphertexts are stored in residue-number-system form, as a set of independent "limbs," one per prime modulus. NTTs and element-wise products act on each limb separately. Splitting work by limb therefore changes nothing about the cryptographic result or its noise, and it creates no new intermediate ciphertexts. The only cost is extra kernel launches, which the experiments measure.
Core Claim
For a fixed encrypted program on thermally constrained hardware, the throughput that can be sustained is set by heat, not by operation count. Because the program is data-oblivious, the best thermal schedule can be computed in advance. The planner calibrates a lumped thermal model of the device, in which the chip has one heat capacity and one path to ambient. It then solves
$$\min_{\pi, f} \; \text{makespan}(\pi, f) \quad \text{subject to} \quad C\,\dot T(t) = P_{\pi,f}(t) - \frac{T(t) - T_{amb}}{R}, \;\; T(t) \le T_{max}.$$
In this problem $\pi$ is an ordering and limb-level split of the operation graph that respects its dependencies, and $f$ assigns a clock frequency to each phase. $P_{\pi,f}(t)$ is the predicted power, built from per-operation power profiles measured once. $C$ and $R$ are the fitted thermal capacitance and resistance, $T_{amb}$ is ambient temperature, and $T_{max}$ is the cap, for example 85°C for the hardware or 60°C for wearables. A thin feedback layer only rescales $f$ when ambient temperature drifts. The expected gain has a specific source. During key-switching phases the processor mostly waits on memory, so a high clock buys little speed but still generates heat. A plan that runs those phases slowly and spends the saved heat on the NTT phases should beat any single frequency.
Research Program
The work proceeds in three stages.
The first stage is characterization, which fills the file's Gap 2. Using an open-source CKKS library, the project runs HEMET-style CIFAR-10 networks, a ResNet-20 of the kind the survey uses, and a logistic-regression workload back to back for 30 minutes. This is done on a Raspberry Pi 4 (CPU only, the platform Genssler et al. used), a Jetson Nano and Orin Nano (shared memory between CPU and GPU), and DGX Spark. External power sensors and on-chip temperature sensors record at sub-second resolution, and every trace is aligned to the operation stream: NTT, key switching, rescaling, rotations, and bootstrapping where it is used. This stage answers a question no paper in the file has answered: do the memory stalls of encrypted computation cool the chip enough to prevent throttling, or do the transform phases trip it partway through an inference?
The second stage builds the planner. It profiles each operation type's power and duration across the available frequencies, fits $R$ and $C$ from step-response experiments, and searches over schedules. A greedy list scheduler handles interleaving and limb splitting, and a small dynamic program over phases assigns frequencies. The model is validated by predicting temperature traces for held-out programs.
The third stage asks whether rankings reverse. The planner is used as a cost model to rerank candidate architectures and parameter sets: HEMET's searched blocks against its baselines, and bootstrapped-deep against leveled-shallow variants. The test is whether the thermally capped ranking differs from the constant-clock ranking HEMET and NASS rely on.
Baselines
The naive reference point runs the encrypted program as an off-the-shelf library would emit it, under the platform's default governor. This shows the throttling users would actually experience. It also lets us state for the first time how far HEMET's reported 29.6 s per SqueezeNet inference, measured at a constant clock, inflates when inferences run back to back under a cap. For sustained encrypted inference under a thermal limit, there is no reported result found on Lacuna.
The strongest simple competitor locks the clock at a single frequency. Before any comparison, a sweep picks the highest frequency at which a 30-minute run never crosses $T_{max}$. The search gets the same total profiling time as the planner's calibration, and it runs on the same programs, devices, ambient chamber temperature, and cap. Beating it means at least 10% more sustained inferences per hour at equal or lower peak temperature. A smaller gain would not justify the machinery.
The strongest existing controller is a Lotus-style reinforcement-learning frequency governor (Gong et al.). It is retrained on the encrypted programs, with decision points at phase boundaries, and given the same profiling budget. On plaintext detectors Lotus reports up to a 30.8% speedup in average inference time and a 72.8% reduction in latency jitter. Those numbers are not directly transferable, but they set the scale of gain that a learned reactive policy can deliver. The planner must match or beat Lotus on sustained throughput and jitter without its online learning overhead, which Lotus reports at about 8.52 ms per inference.
A plaintext-style chunking baseline applies Schultheis et al. as published. It uses hand-profiled fixed chunk sizes at the default frequency, with no reordering and no frequency plan.
Three ablations isolate the ingredients: ordering only, limb splitting only, and the frequency plan only. If frequency-only captures nearly all of the gain, the proposal's real content is "phase-aware frequency scaling for encrypted programs," and that is the claim the paper should make.
Why not just…?
Why not just lock the clock low? This is the most serious threat. If the encrypted program's power were roughly uniform across phases, one well-chosen frequency would be nearly optimal, and the planner would add little. The argument against it rests on phase heterogeneity. Key switching is memory-bound and NTTs are compute-bound (SoK; Trinity), so a single frequency either wastes heat on memory waits or slows down the arithmetic. The stage-one traces settle this directly. If the measured power varies little across phases, the project reports that locking the clock suffices, and it narrows to characterization plus reranking.
Why not just compress the model further? Compression changes encrypted cost in ways that are not monotone. Fewer FLOPs can mean more depth and a slower encrypted program (HEMET), and small bit-width changes can push parameters over cost cliffs (NASS). Removing memory stalls can also make a workload hotter (Genssler et al.). Compression and planning are complementary. Stage three tests whether the compressed models favored by constant-clock cost models remain favored once a temperature cap applies.
Why not just insert idle pauses? Duty cycling, meaning sleeping between inferences, is the crudest form of power shaping. It is included alongside the frequency lock and receives the same tuning budget. The project expects it to lose because it throws away cycles that interleaved memory-bound work could use productively. If it ties the planner, that is an informative negative result.
Why not just learn a reactive governor? A Lotus-style agent is run as a baseline. Learned reactive governors earn their keep when load varies with the data. Encrypted programs have no such variance, so planning ahead should avoid both the cost of exploration and the risk of overshoot. Planning also yields a power trace that is fixed and independent of the input. This matters because SAFENet's threat model, like the others in the file, ignores physical side channels.
Proposed Experiments and Decisive Checks
The workloads are CIFAR-10 SqueezeNet and CIFAR-100 Inception networks in the configurations of HEMET, ResNet-20 and logistic regression as in the SoK, and an MNIST network matching NASS's 98.6% setup. The hardware is the four devices above, tested at room ambient and at 40°C ambient, the condition TADF/HSWD used. The caps are 85°C and 60°C. The metrics are sustained inferences per hour over 30 minutes, energy per inference, latency jitter, peak temperature, and time spent above the cap. Accuracy is unchanged by construction, and the check is that decrypted outputs are bit-identical to the unplanned run's.
Three checks decide the outcome. The first asks whether the planner beats the best locked frequency by 10% or more in sustained throughput on at least two devices. The second asks whether the thermal model predicts held-out temperature traces within a few degrees, so that a plan made offline can be trusted. The third asks whether any pair of architectures or parameter sets swaps rank between constant-clock cost and thermally capped cost. A positive answer on the third check would mean that published encrypted-inference cost models systematically mislead deployment on small devices, and that would hold even if the planner itself gave modest gains.
References
- HEMET: A Homomorphic-Encryption-Friendly Privacy-Preserving Mobile Neural Network Architecture
- Brain-Inspired Hyperdimensional Computing: How Thermal-Friendly for Edge Computing?
- One Simple Trick for Improving the Performance of Energy-Limited Local Inference and Training
- LOTUS: learning-based online thermal and latency variation management for two-stage detectors on edge devices
- Thermal-Aware on-Device Inference Using Single-Layer Parallelization with Heterogeneous Processors
- NASS: Optimizing Secure Inference via Neural Architecture Search
- SAFENet: A Secure, Accurate and Fast Neural Network Inference
- SoK: Fully Homomorphic Encryption Accelerators
- Trinity: A General Purpose FHE Accelerator