Fault Injection at Saturation: Qualifying the Degraded Modes of an FHE Accelerator

An FHE accelerator that loses an HBM pseudo-channel while idle still looks healthy. The on-chip scratchpad covers the lost bandwidth and every ciphertext decrypts. The same fault at saturation starves key switching and pushes bootstrapping past its budget. At worst, it sends work down a fallback path whose ciphertexts decrypt to plausible but wrong values. Qualification has to trigger the fault where it does damage: under full offered load, after thermal equilibrium, with correctness checked by decryption rather than assumed because no errors were reported.

Why the scratchpad hides the fault

Key switching is the part of the workload that eats memory bandwidth. At deep CKKS parameter sets the evaluation keys for each level are far too large to keep on chip, so they stream from HBM on every rotation and relinearization, and bootstrapping is mostly a long run of those operations. At light load the prefetcher has slack, so a remapped channel just adds latency that the pipeline hides behind NTT compute. Designs built around 3.2 TB/s of aggregate HBM3e bandwidth are usually sized so that key streaming uses most of that budget during bootstrapping. When the controller retires a pseudo-channel, the remap keeps the data intact but loses both the throughput and the address interleaving that the NTT datapath was scheduled around. The shortfall shows up as queueing, not as an error, and queueing only exists when there is a queue.

The test: canaries inside a saturated run

Run a production-shaped, bootstrapping-heavy job mix at the admission limit until die and stack temperatures settle. Settling matters because high-temperature refresh takes away a further slice of bandwidth, and you want the two effects combined, not tested apart. Mix in canary ciphertexts encrypted under a dedicated test key. A CPU reference computes their circuit outputs in advance, and they carry no marking the scheduler could use to tell them apart from production jobs. Partway through the run, use the memory controller's RAS test hooks to retire one pseudo-channel and the fabric's fence register to take one NTT lane offline, and hold the offered load constant. The run passes only if every canary decrypts within the precision bound of the parameter set, bootstrap tail latency stays under the sub-10ms target or the admission controller sheds load in a visible way, and the device's own health report matches exactly what the injector did. As an estimate, one canary per few hundred jobs catches a corrupting path within seconds without noticeably changing the workload mix.

What the failure looks like

This test is looking for a degraded scheduler that, after a lane is fenced, reorders RNS limbs or keeps using a stale twiddle table: the ciphertexts stay well formed, pass every ECC and parity check, and decrypt to values off by a few bits of precision that no hardware counter will flag.

Fail closed or degrade

The JEDEC memory specifications that define HBM reliability features tell you what the stack does on a fault, through ECC, row repair and channel retirement. They say nothing about whether the homomorphic computation running on top stays correct, so that belongs in your plan. The decision rule follows from it. A degraded mode qualifies only if it passes the saturated canary run with the fault injected. If any canary drifts outside its bound, the part must fail closed: refuse new jobs, drain what is in flight, and report itself down. The reason is that an FHE client cannot see its own plaintext on the server and has no way to notice a wrong answer. Latency violations alone are a softer failure, and throttling admission is acceptable as long as the shedding is explicit. The cost is that fail closed turns every lane fault into a full device outage. How many spare accelerators the fleet carries, so that refusing work is always cheaper than computing it wrong, is a decision for the capacity planner, not the test lead.

Why not qualify the degraded mode from ECC and RAS counters alone?

The counters describe the memory, not the arithmetic. A scheduler bug triggered by a fenced lane corrupts results that were stored and moved correctly, so every counter reads clean. Only decrypting known-answer ciphertexts under the same load shows whether the computation survived.

Back to FHEnc · Domains

← Back to FHEnc
Engineering & Architecture Brief

Fault Injection at Saturation: Qualifying the Degraded Modes of an FHE Accelerator

An FHE accelerator that loses an HBM pseudo-channel while idle still looks healthy. The on-chip scratchpad covers the lost bandwidth and every ciphertext decrypts. The same fault at saturation starves key switching and pushes bootstrapping past its budget. At worst, it sends work down a fallback path whose ciphertexts decrypt to plausible but wrong values. Qualification has to trigger the fault where it does damage: under full offered load, after thermal equilibrium, with correctness checked by decryption rather than assumed because no errors were reported.

Why the scratchpad hides the fault

Key switching is the part of the workload that eats memory bandwidth. At deep CKKS parameter sets the evaluation keys for each level are far too large to keep on chip, so they stream from HBM on every rotation and relinearization, and bootstrapping is mostly a long run of those operations. At light load the prefetcher has slack, so a remapped channel just adds latency that the pipeline hides behind NTT compute. Designs built around 3.2 TB/s of aggregate HBM3e bandwidth are usually sized so that key streaming uses most of that budget during bootstrapping. When the controller retires a pseudo-channel, the remap keeps the data intact but loses both the throughput and the address interleaving that the NTT datapath was scheduled around. The shortfall shows up as queueing, not as an error, and queueing only exists when there is a queue.

The test: canaries inside a saturated run

Run a production-shaped, bootstrapping-heavy job mix at the admission limit until die and stack temperatures settle. Settling matters because high-temperature refresh takes away a further slice of bandwidth, and you want the two effects combined, not tested apart. Mix in canary ciphertexts encrypted under a dedicated test key. A CPU reference computes their circuit outputs in advance, and they carry no marking the scheduler could use to tell them apart from production jobs. Partway through the run, use the memory controller's RAS test hooks to retire one pseudo-channel and the fabric's fence register to take one NTT lane offline, and hold the offered load constant. The run passes only if every canary decrypts within the precision bound of the parameter set, bootstrap tail latency stays under the sub-10ms target or the admission controller sheds load in a visible way, and the device's own health report matches exactly what the injector did. As an estimate, one canary per few hundred jobs catches a corrupting path within seconds without noticeably changing the workload mix.

What the failure looks like

This test is looking for a degraded scheduler that, after a lane is fenced, reorders RNS limbs or keeps using a stale twiddle table: the ciphertexts stay well formed, pass every ECC and parity check, and decrypt to values off by a few bits of precision that no hardware counter will flag.

Fail closed or degrade

The JEDEC memory specifications that define HBM reliability features tell you what the stack does on a fault, through ECC, row repair and channel retirement. They say nothing about whether the homomorphic computation running on top stays correct, so that belongs in your plan. The decision rule follows from it. A degraded mode qualifies only if it passes the saturated canary run with the fault injected. If any canary drifts outside its bound, the part must fail closed: refuse new jobs, drain what is in flight, and report itself down. The reason is that an FHE client cannot see its own plaintext on the server and has no way to notice a wrong answer. Latency violations alone are a softer failure, and throttling admission is acceptable as long as the shedding is explicit. The cost is that fail closed turns every lane fault into a full device outage. How many spare accelerators the fleet carries, so that refusing work is always cheaper than computing it wrong, is a decision for the capacity planner, not the test lead.

Technical FAQ: Why not qualify the degraded mode from ECC and RAS counters alone?

The counters describe the memory, not the arithmetic. A scheduler bug triggered by a fenced lane corrupts results that were stored and moved correctly, so every counter reads clean. Only decrypting known-answer ciphertexts under the same load shows whether the computation survived.

Related Architecture Specifications (PQCECOSYSTEM): militarytpm.com · mlkemkey.com · mlkemstandard.com

More Technical Articles on fhenc.com

Confidential AI: Training Deep Learning Models Directly Over Homomorphically Encrypted Data →From Python to Polynomial Circuits: Building Optimizing Compilers for Homomorphic Execution →When a stalled memory read stops the FHE pipeline →