Fault Tolerance in Transformers Favors Output Alignment over Hidden-State Consistency
Haonan Tan, Gene Wen, Yuxing Han
NeurIPS page · OpenReview · Open on the map
Category: LLM Reasoning, Memory & RAG › AI Text Detection · Type: new method · Keywords: fault tolerance, transformer robustness, output consistency, hardware faults, language model reliability
Areas: Safety & Security › Safe Alignment › Fragility of Safety Alignment
Summary
The paper investigates where to enforce consistency signals in Transformers to tolerate hardware faults, finding that output-level KL consistency dramatically reduces fault-induced perplexity degradation.
Explained to a 5-year-old
A language model is a computer program that writes text. It can break if the computer's hardware has tiny faults. The researchers wanted the model to keep working even with those faults. They added a rule that made the model’s final answer more consistent. This rule helped the model stay correct when hardware problems occurred.
Explained to a 5-year-old, longer
A language model is a computer program that writes text. It can break if the computer's hardware has tiny faults. The researchers wanted the model to keep working even with those faults. They trained the model while pretending some parts of the computer were broken. They added a rule that made the model’s final answer more consistent. They tried two ways to add this rule: one looked at the middle of the model, another looked at the final answer. The final-answer rule worked much better. The middle-part rule sometimes made things worse. The researchers also tested the idea on a much bigger model and it still worked. They compared it to other known ways to make models robust, but those didn’t help as much. They also simulated a way to detect hardware faults, which helped a little. Overall, the study shows that focusing on the final answer is a good trick for making language models fault-tolerant.
For a technical reader
The work injects tile-level GEMM faults during training and adds a KL consistency term on the output distribution to mitigate fault-induced perplexity loss. By comparing hidden-state and output-level consistency targets, they show output-level alignment yields a 60× reduction in degradation (12.9% → 0.21%) and outperforms hidden-state approaches across model scales. Gradient-alignment analysis explains why output consistency is easier to optimize, and existing robustness methods fail to close the gap.
Problem
How can large language models be trained to tolerate silent hardware faults, and where in the network should consistency be enforced to achieve this robustness?
Method
The approach injects simulated tile-level GEMM faults during training and adds a KL divergence consistency term on the output distribution, comparing hidden-state and output-level consistency targets while probing gradient alignment.
Results
Output-level KL consistency reduces fault-induced perplexity degradation from 12.9% to 0.21% (a 60× improvement), while hidden-state consistency can worsen it to 32.7%; at 8B scale the advantage remains, generic robustness methods do not close the gap, and with fault detection the perplexity ratio is 1.10× (unprotected inference yields NaN).
Contributions
The paper demonstrates that enforcing consistency at the output distribution is far more effective than at hidden states for tolerating hardware faults, explains this via gradient-alignment analysis, validates the finding at larger model scale, and shows that existing robustness methods cannot match the improvement.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction