Fault Tolerance in Transformers Favors Output Alignment over Hidden-State Consistency
Haonan Tan ⋅ Yuxing Han ⋅ Gene Wen
Abstract
Latent hardware defects cause a substantial, recurrent class of silent data corruption (SDC) measured at fleet scale: a faulty compute unit returns a wrong value with no error signal. We ask whether a large language model can be trained to tolerate such faults, and where in the network the consistency signal should be enforced. Consistency-Aware Training (CAT) injects tile-level matrix-multiplication (GEMM) faults during training and adds a Kullback--Leibler (KL) consistency term on the output distribution; on GPT-2 Small it reduces fault-induced perplexity degradation from $12.9\%$ to $0.21\%$ (two-seed mean), a $60\times$ reduction. Most of the raw gain comes from training on the faulted pass, and the placement of the consistency term decides whether it helps or hurts: a hidden-only objective at the fault site raises degradation to $32.7\%$, and bounded hidden controls that add the corrupted-pass cross-entropy reach $1.74$--$1.76\%$, still above output KL ($0.84\%$) at a matched 80k-step horizon. On GPT-2, a local constraint hierarchy and gradient-alignment probes indicate that output-level consistency is less restrictive and easier to optimize than early hidden-state consistency. The output-over-hidden advantage also appears in a single-seed 8B probe, the GPT-2 ordering reproduces on held-out corpora, and generic robustness methods (sharpness-aware minimization, R-Drop, and tanh weight clamping) do not close the gap. In a simulated evaluation of a production-deployable detection-to-erasure interface, pairing the trained model with algorithm-based fault tolerance (ABFT) detection turns raw bit flips into erasures with a $1.10\times$ perplexity ratio, where unprotected inference produces NaN.
Successful Page Load