Homomorphic encryption lets a server compute on data it cannot read, but even a modest encrypted neural network inference can take long enough that a single hardware fault becomes a real risk. Spreading the work over a mixed pool of accelerators from different vendors would shorten jobs, and that pool is exactly where silent errors and vendor-specific kernel bugs live. Today a corrupted encrypted result is indistinguishable from a correct one until the client decrypts it. Often it is not even caught then, and the whole job has to be rerun. We propose to add one extra "check" component to the standard internal representation of an encrypted number. This makes every encrypted value self-checking at roughly the cost of one more channel of arithmetic. It also lets the computation rebuild a channel lost to a crashed or stalled device, so the job does not have to restart.
The two-sentence version is this. Practical homomorphic schemes already store each ciphertext as a set of independent integer channels, one per small prime modulus. If we carry one redundant channel, assign it to a device from a different vendor than the channels it guards, and check consistency at points where the scheme already mixes channels, we get detection of silent corruption, detection of vendor kernel bugs, and recovery from device loss. All three come at a few percent overhead instead of the doubling that duplicated execution costs.
Why this gap exists
Each of the three directions in the research file stops short of this problem. Work on homomorphic encryption overhead treats hardware as reliable. FLASH-FHE builds an on-chip accelerator that mixes bootstrapping-capable clusters with lightweight ones, reporting 1.4× over CraterLake on deep workloads. It has no fault detection, so a memory or compute fault is unrecoverable. Its "heterogeneity" is also confined to one chip from one designer. Compilers such as Orion and Porcupine optimize packing and the placement of bootstrapping, the costly operation that refreshes a ciphertext's noise. Both assume the executed program is computed correctly. The file's own list of open problems names the missing piece: acceleration kernels are tied to specific hardware and lack a portable representation across multi-vendor clusters.
Fault-tolerance research motivates the same gap from the other side. Vernik et al. show that data-parallel runtimes must handle partial failures and speculative-execution races rather than clean crashes. The file notes these runtimes still lack lightweight primitives for detecting silent corruption without job-level rollback. Work on embedded systems from Knoll et al. shows that when triple redundancy is too expensive, systems fall back on checkpointing and rollback. We want something cheaper than both.
On the interoperability side, the Campus5G deployment shows that "standard" interfaces across vendors still produce timing and parameter mismatches that only manual profiling uncovers. That is the kind of hidden divergence we want caught automatically.
The existing work connecting fault tolerance and encryption addresses a different layer. ATASSES tolerates parties dropping out of threshold decryption: any T of N key holders can decrypt, with 3.83× to 15.4× speedups over noisy-share schemes. It deals with missing participants in a protocol, not wrong arithmetic inside the server's evaluation. Federated-learning systems such as BatchCrypt (23× to 93× speedup), ESAFL and SHE-LoRA reduce encryption cost but run synchronously and assume correct hardware. SLSGD and Koyejo's framework handle faulty updates with robust statistics on plaintext only. None of these papers checks the correctness of encrypted evaluation itself.
Core Claim
Modern lattice schemes such as CKKS, BGV and BFV store each ciphertext coefficient in residue number system (RNS) form: a big integer modulo $Q = q_1 \cdots q_L$ is kept as its $L$ remainders modulo the individual primes $q_i$, often called "limbs." Most server-side operations act on each limb independently. These include addition, multiplication in the transform domain, the number-theoretic transform (the integer analogue of an FFT), rotations, and rescaling. All of this is exact integer arithmetic, so a correct result is bit-identical whichever vendor's device computes it. Plaintext machine learning has no such property, because floating-point results differ legitimately across hardware.
We add a check prime $p$ and carry the extra limb $x \bmod p$ through every operation. Consistency of the full residue vector then becomes a membership test. Let $\tilde{x}$ be the unique integer modulo $Qp$ with the given residues. A fault-free computation guarantees
$$\tilde{x} \in [-(B+\tfrac{1}{2})Q,\ (B+\tfrac{1}{2})Q),$$
where $B$ is a small known bound on the multiples of $Q$ introduced by the scheme's approximate base conversions. Those conversions are the steps where the scheme re-expresses a value in a different set of primes, as in key switching and bootstrapping.
A random corruption of any single limb moves $\tilde{x}$ to an essentially uniform position modulo $Qp$. It therefore escapes detection with probability about $(2B+1)/p$, which is negligible for a 60-bit $p$. The same redundancy handles the loss of a channel. If the device holding limb $i$ crashes or stalls, the remaining limbs determine $\tilde{x}$ uniquely whenever $p > (2B+1)q_i$, so limb $i$ is rebuilt by one base conversion instead of a restart. If one 60-bit check prime cannot cover the slack, we use two.
The claim is that this "check limb" gives three properties at an overhead of about $1/L$ of the per-limb work plus periodic checks. The first is detection of silent corruption. The second is detection of systematic vendor kernel bugs, provided the check limb runs on a different vendor's device than the limbs it guards. The third is single-device erasure recovery. With $L$ typically in the tens at ring dimension $2^{16}$, which FLASH-FHE identifies as the throughput sweet spot, we expect the overhead to be in the single-digit percent range. This expectation follows from the per-limb cost model, not from any measurement, and testing it is part of the work.
Scope matters. The scheme targets faults and bugs, not a malicious server: an adversary who controls all devices can compute a consistent wrong check limb. Defending against that requires proofs of correct computation, which ATASSES likewise leaves open.
Research Program
The first piece is a limb-partitioned runtime. Limbs, plus the check limb, are distributed across a mixed pool: a CPU backend built on Lattigo (the library ATASSES uses), and per-limb kernels we write for GPUs from two different vendors. The unit of exchange between devices is a limb buffer of exact integers. That makes it a vendor-neutral interface by construction, and we think it is the natural answer to the file's "no portable representation" problem for this one class of workload.
The second piece is the check schedule. Operations that act on each limb independently propagate the check limb with no extra logic. Rescaling extends exactly to the check limb, using the same subtract-and-multiply-by-inverse rule as every other limb. The delicate points are key switching and bootstrapping, where base conversion mixes limbs and introduces the slack $B$. We will place consistency checks immediately after these steps. There the limbs are already gathered for conversion, so the extra exact base conversion to $p$ shares data movement the scheme pays for anyway. The floating-point correction term in that conversion may differ across vendors by at most one multiple of $Q$, and the slack $B$ absorbs it. We will check this bound empirically across backends.
The third piece is recovery policy. On a failed check, the runtime localizes the bad limb by recomputing candidate limbs and testing them against the range condition. It then rebuilds that limb and re-runs only the segment since the last passed check. A device that stalls past a deadline is treated as an erasure, so a slow device is handled like a crashed one, with the same speculative-reconstruction logic Stocator-style runtimes need. We will also study placement: which vendor hosts the check limb, and whether it should rotate. Placement determines whether a systematic bug in one vendor's modular reduction can be caught at all.
Baselines
The naive reference point is unprotected execution with the client's end-to-end sanity check: run the workload across the same mixed pool, decrypt, reject outputs that violate expected ranges or task accuracy, and rerun the whole job on rejection. We run it on the identical device pool and workloads. Beating it means equal or better correct-output rate at substantially lower time-to-correct-result under injected faults.
The strongest competitor is dual modular redundancy across vendors. The whole encrypted computation runs twice, on devices from two different vendors, and results are compared limb by limb. Because the arithmetic is exact, any mismatch signals a fault. This is the most reliable cheap-to-implement detector, and it also catches vendor bugs. It is the bar the proposal must clear on cost while matching detection. We give it the same total device budget, either half the devices per copy or the same devices for twice the wall-clock time, and report both. Beating it means detection within a few points of its rate at under a third of its overhead, plus erasure recovery, which plain duplication lacks. No reported result found on Lacuna for duplication or any other fault-detection overhead in homomorphic evaluation, so the duplication numbers will be our own measurements.
A third baseline is checkpoint-and-rollback at bootstrapping boundaries, following the Knoll-style recovery approach, combined with end-to-end checks. It isolates whether cheap detection matters or whether frequent checkpoints alone suffice.
Two ablations isolate the key ingredients. The first places the check limb on the same vendor as the limbs it guards, which isolates the value of vendor diversity against systematic bugs. The second keeps detection but disables reconstruction and restarts instead, which isolates the value of erasure recovery.
For speed context, we report FLASH-FHE's 1.4× over CraterLake only as a reference for workload choice. It is an ASIC simulation result and is not comparable to our measured software numbers.
Why not just…?
Why not just duplicate the computation on two vendors' devices? It works, and it is our main baseline. Its cost is a full second copy of compute and memory, on workloads that are already orders of magnitude slower than plaintext. It also only detects: when the two copies disagree, a third run is needed to find the correct one, and a crashed device still forces a restart. The check limb is a residue code with one extra channel in place of a second full copy. The duplication comparison in our experiments will show whether that cheaper redundancy loses meaningful detection power. If it loses more than a few points of detection on our fault models, duplication wins and we will say so.
Why not just rely on the client noticing bad decryptions? A corrupted limb usually decrypts to garbage, so the client often notices. But the client notices only after the entire job, which for bootstrapped inference is the expensive case, and cannot say which device or vendor failed. In encrypted federated aggregation of the BatchCrypt or ESAFL kind, the output is a model update with no obvious valid range, so plausible-looking wrong results can slip through. The time-to-correct-result and silent-acceptance-rate measurements against the naive baseline settle this directly.
Why not just use algorithm-based checksums on the transforms, as in high-performance computing? Random linear checksums cheaply verify linear steps such as the number-theoretic transform and rotations. Verifying a pointwise product of two ciphertexts this way costs as much as computing it, and checksums give no erasure recovery. We include transform-only checksums as a comparison. The two methods may be complementary: checksums on transforms, check limbs across the whole pipeline.
Proposed Experiments
The workloads come from the file. The first is the deep workloads FLASH-FHE evaluates, logistic-regression training and LSTM inference, at ring dimensions $2^{14}$ to $2^{16}$. The second is CNN inference compiled by Orion's packing and bootstrap placement, which we reimplement on our backends. The third is BatchCrypt's encrypted cross-silo aggregation setting: FMNIST with a 3-layer network, CIFAR-10 with AlexNet, and Shakespeare with an LSTM over 9 silos. That setting checks that the method helps additive aggregation pipelines as well as deep circuits.
Fault injection has four types. The first is random bit flips in limb buffers and intermediate registers at swept rates. The second is a planted systematic bug: a wrong modular reduction for one prime on one vendor backend, standing in for a vendor kernel defect. The third is a device crash mid-job. The fourth is a straggler that slows one device by a set factor, standing in for gray failures.
The metrics are detection rate and false-positive rate. False positives should be exactly zero on fault-free runs across all backend pairings. If they are not, the slack bound is wrong, and finding that out is itself a decisive check. We also measure runtime and memory overhead relative to unprotected execution, time-to-correct-result as a function of fault rate, and final decrypted accuracy or precision.
The decisive outcomes are as follows. Overhead must stay below roughly 10% at $L \ge 20$ while detection on random flips matches cross-vendor duplication. Cross-vendor placement must catch the planted kernel bug, and same-vendor placement should miss it whenever the bug also corrupts the check limb consistently. Erasure recovery must finish a job after a device crash faster than checkpoint-and-rollback. If overhead instead scales well above $1/L$ because checks after key switching dominate, the core claim fails. We would then report at what check frequency the method stops being cheaper than duplication.
References
- FLASH-FHE: A Heterogeneous Architecture for Fully Homomorphic Encryption Acceleration
- Orion: A Fully Homomorphic Encryption Compiler for Private Deep Neural Network Inference
- Porcupine: A Synthesizing Compiler for Vectorized Homomorphic Encryption
- Stocator: a high performance object store connector for spark
- Campus5G: A Campus Scale Private 5G Open RAN Testbed
- Arbitrary-Threshold Fully Homomorphic Encryption with Lower Complexity
- BatchCrypt: Efficient Homomorphic Encryption for Cross-Silo Federated Learning
- ESAFL: Efficient Secure Additively Homomorphic Encryption for Cross-Silo Federated Learning
- SHE-LoRA: Selective Homomorphic Encryption for Federated Tuning with Heterogeneous LoRA
- SLSGD: Secure and Efficient Distributed On-device Machine Learning
- Towards Fault-Tolerant Federated and Distributed Machine Learning