REVIEW 4 major objections 5 minor 19 references
Harden Deep Neural Networks Against Fault Injections Through Weight Scaling
T0 review · 4 major / 5 minor · reviewed 2026-08-12 · deepseek-v4-flash
Pith's one-line read Bit-flip errors in stored DNN weights behave enough like additive noise that multiplying each layer's weights by a constant before storage—and dividing after readout—sharply reduces their damage.
desk verdict Simple weight-scaling trick gives real robustness gains, especially for fixed-point Q2.5, but the FP32/FP16 results hinge on an unimplemented exponent-MSB protection assumption. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The load-bearing mechanism is the layer-wise scaling map $W_{i,j}\mapsto c_i W_{i,j}$ before storage, paired with the readout operation $c_i W_{i,j}\mapsto W_{i,j} - e(c_i W_{i,j},M_{i,j})/c_i$, where $c_i=t/\max_j |W_{i,j}|$ and $t$ is chosen per data type. The key observation is that the bit-flip error $e$ is not scale-invariant: scaling the weight before the flip makes the absolute error induced by the flip grow more slowly than the scaling constant, so the division step shrinks the residual error. For FP32 and FP16 this requires the exponent's most significant bit to stay at zero after scaling, which the paper proposes to ensure either with ECC or by clamping all weights to $(-2,2)$ plus sparse storage of outliers; for Q2.5 it requires the scaled weights to remain inside $[-2,1.984375]$.
What would settle it
Fault-inject with a nonzero bit-error rate at the exponent's most significant bit for FP32/FP16, or with scaled weights exceeding $[-2,1.984375]$ for Q2.5, and measure Top-1 accuracy: if accuracy stays near the reported scaled gains instead of collapsing, the paper's central assumption is wrong, and if it collapses, the assumption is confirmed.
Extended reading notes
Core claim
The central claim is that the error function $e(W,M)=W-f_D(b_D(W)\oplus M)$ is not scale-invariant in a way that favors larger stored values: when a layer's weights $W_i$ are replaced by $c_i W_i$ with $c_i>1$ and then corrupted by the same bit-flip process, the post-corruption error, after dividing back by $c_i$, is on average smaller than the error without scaling. The optimal constant for each layer is $c_i = t/\max_j |W_{i,j}|$, with $t=1.9999$ for FP32 and FP16 and $t=1.97$ for Q2.5, chosen so that scaled weights stay in a numerically safe region where the most dangerous exponent bit is zero and no fixed-point overflow occurs. The paper reports average Top-1 accuracy improvements of 42.17, 43.15, and 42.37 points for FP32, FP16, and Q2.5 models respectively under the tested bit-error rates.
Load-bearing premise
For FP32 and FP16 the method collapses if a bit-flip can reach the most significant bit of the exponent: a single flip there turns a weight into roughly $3.4\times 10^{38}$ or Inf, and the paper's guarantee of no flips at that bit rests on an ECC or clamping-plus-sparse-storage scheme that is described but not implemented or costed.
Editorial extensions
If this is right
- With $t=1.9999$ for FP32/FP16 and $t=1.97$ for Q2.5, the method improves fault-injected Top-1 accuracy across AlexNet, ResNet18, ResNet50, and DenseNet169.
- At the tested bit-error rates, the rescaled models land close to their no-flip baselines in several cases, such as Q2.5 ResNet18 reaching 63.88 percent under faults versus 66.87 percent without faults.
- FP16 with scaling is on average more resilient than FP32 under the same fault rate, suggesting the method does not depend on high-precision storage.
- Moving the division from every weight to the output logits reduces the number of divisions from $n$ weights to $a\cdot b$ (classes times batch size), at the cost of executing the network at higher magnitudes and restricting activation functions to those like ReLU rather than Sigmoid or Tanh.
- The method avoids the encoding and decoding overhead of ECC-based protections.
Reading between the lines
- Because the constant depends only on each layer's maximum weight magnitude, the same recipe should transfer to a newly trained network without retraining or hyperparameter search beyond choosing $t$; a testable extension would set $t$ adaptively per layer and per fault rate.
- The additive-noise interpretation suggests the rescaling step could be folded into batch-normalization or fused into adjacent operators at inference time, removing even the per-weight division overhead, though the paper does not explore this.
- The assumption that only the exponent's most significant bit must be protected implies a natural hybrid: keep the cheap scaling for all weights and add ECC only at that bit position rather than protecting full words; the paper proposes this direction but does not implement it.
- Whether the same scaling benefit holds for other fault models, such as stuck-at faults or multi-bit clustered errors, would require new fault-injection experiments, since the paper's analysis is built on independent bit-flips.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper proposes a pre-processing method for deep neural network weights before storing them in a fault-prone medium: each layer's weights are multiplied by a layer-wise constant c_i before write, and divided by c_i after read. The claim is that, by exploiting the scaling behaviour of bit-flip-induced errors, this rescaling reduces the absolute perturbation seen by the network, improving classification accuracy under random bit-flips. The method is evaluated on four torchvision ImageNet models (AlexNet, ResNet18, ResNet50, DenseNet169) under FP32, FP16, and Q2.5 quantized weight formats, across several bit-error rates (BERs), and compared against a baseline with c_i=1. The authors also propose to reduce division overhead by folding all c_i into a single division of the logits. The core quantitative results are improvements in top-1 accuracy, e.g., Q2.5 ResNet50 from 14.38% to 68.80% at BER=1e-4, and FP32 ResNet50 from 4.83% to 53.78% at BER=1e-3, using t=1.9999 (FP32/FP16) or t=1.97 (Q2.5).
Significance. If the results hold under a realistic fault model, the method is interesting because it is almost free: it requires only one element-wise multiplication before storage and one division after read, no training, and no ECC-like redundancy. The paper is honest in several respects: it explicitly reports standard deviations over 10 Monte Carlo runs, uses four standard pre-trained models, tests multiple BERs, and includes a detailed analysis in Section IV-C that connects the observed gains to exponent-bit structure and Q2.5 overflow. The strongest part of the paper is the cross-model Q2.5 evaluation, where the method's preconditions are internally consistent with the fixed-point range. The main weakness is that the FP32/FP16 results rely on a precondition (no bit-flips in the exponent MSB) that is not implemented, not costed, and not reflected in the abstract except as a parenthetical remark; therefore the paper's strongest general claim is conditional on hardware support it does not provide.
major comments (4)
- [Section IV-A, Eq. (1), Tables I-II] The FP32/FP16 results in Tables I-II are avowedly obtained under the assumption that no bit-flip ever occurs in the MSB of the exponent term (M_{i,j,2}=0). This assumption is stated in Section V-A, but Section IV-A only sketches two possible ways to enforce it (ECC, or clamping to (-2,2) with sparse outlier storage); neither is implemented, simulated, or assigned a hardware cost. Under the paper's own Eq. (1) fault model, which applies BER uniformly to every bit including the exponent MSB, a single flip in that bit can turn a weight from about (-2,2) into ~3.4e38 or Inf (as the authors themselves state), and no post-read division can repair such a value. Therefore, the reported FP32/FP16 improvements (e.g., ResNet50 FP32 from 4.83% to 53.78% at BER=1e-3) are not established for the unconstrained fault model stated in Eq. (1); they are conditional on an unverified protection mechanism. This is a load-bearing gap because the abstract and conclusion present the FP32/FP16 results as part of the claimed generalization across 'three data types'.
- [Section IV-D and Section V-A] The choice of t is fitted to the experimental setup. The paper first performs a tuning experiment on ResNet18 (Section V-A, Fig. 3) to find that t=1.9999 (FP32/FP16) and t=1.97 (Q2.5) give the highest accuracy, and then uses these same t values in the cross-model evaluation (Section V-B). While the formula c_i = t / max(|W_i|) is simple and layer-wise, the optimal t is not independently derived or validated on a separate model or a separate BER regime. The paper claims that 'following the optimal t values from the previous experiment' is acceptable, but this is a fitted hyperparameter. The manuscript should either (a) provide a principled derivation of the optimal t (e.g., from the analysis in Section IV-C) that does not require running the target model, or (b) evaluate the method with t values that are held fixed from the analysis without tuning on the same experimental protocol. Without this, the cross-model gains partially reflect the tuning of t.
- [Section IV-C, hypotheses 1 and 2] The central theoretical claim is only at the level of two informal hypotheses: 'e(c_i W,M) grows slower than c_i e(W,M)' and 'e(c_i W,M) behaves similarly to additive noise.' These statements are not formalized, not proved, and no explicit conditions on the weight distribution or bit-flip mask are given under which they hold. The simulation in Fig. 2 is illustrative but is performed on pseudo-weights uniformly spaced in [-0.5, 0.5], not on the actual weight distributions of the evaluated networks. The reader cannot tell whether the proposed scaling would be beneficial for a different weight distribution (e.g., a model with many weights near the range boundary) or for a different fault model (e.g., permanent stuck-at faults or multi-bit errors). I do not require a full theorem, but the paper should at least state the precise claim being tested and provide the distributional or structural condition under which c_i>1 is expected to help; otherwise the method is asserted rather than explained.
- [Section V-C] The logit-division method is presented as a way to reduce the number of divisions, but the experimental demonstration is limited to one model (FP32 AlexNet) and reports a drop from 56.55% to 54.13%, which is attributed to floating-point precision. There is no comparison with the per-weight division result (34.26% for FP32 AlexNet at BER=1e-3 in Table II is not the same experiment, since the logit-division test reports no BER and no Monte Carlo rounds). The claim that 'this method reduces the number of divisions' is true, but the claimed advantage is only meaningful if the resulting accuracy is competitive with the per-weight method under identical fault conditions; the paper does not provide that comparison. Please add a direct comparison on at least one model at the same BER and injection protocol.
minor comments (5)
- [Throughout] The manuscript contains multiple typos and incomplete sentences, e.g., 'the most weights are small' (Section II), 'Bi,j,2:9 are arranged' (Section IV-C), and the incomplete sentence after 'This ensures that most weights small' (Section II). The text should be proofread.
- [Equations (4)-(5)] The notation in Eq. (4) is confusing: the left-hand side 'c_i \tilde{W}_{i,j}' mixes the scaling constant with the corrupted weight. It would be clearer to define a corrupted scaled weight, e.g., \hat{cW}_{i,j}, and then define \tilde{W}_{i,j} = \hat{cW}_{i,j}/c_i in a separate equation.
- [Section IV-A] The claim that 'only two weights from torchvision pre-trained weights fall outside (-2,2)' is stated without a citation to a supplementary table or a version number of torchvision. Since the evaluation depends on this claim, please give the exact model list, version, and the two outlier values.
- [Section V-A, Fig. 3] The figure is hard to read because the error bars are too small to see the standard deviations, especially for the high-accuracy t values. The paper reports standard deviations in Table II in text but not in Fig. 3; please either add the numerical values as a table or enlarge the error bars.
- [Section V-B, Table II] The abstract states 'Top-1 Accuracy of 8-bit fixed point ResNet50 is improved by 54.418 at BER of 0.0001', but the improvement of 54.418 is the difference between 14.38% and 68.80% at BER=1e-4; the abstract does not clearly state that these are average Monte Carlo values. Please clarify that the numbers are averages over 10 runs with standard deviations.
Circularity Check
No significant circularity: the bit-flip robustness gains are measured on external pre-trained models and the scaling multiplier is not definitionally tied to the reported accuracy.
full rationale
The derivation is self-contained. The central claim is an empirical one: multiplying stored weights by layer-wise constants and dividing after readout lowers bit-flip-induced error. The paper's Eq. (5) defines the rescaled error as e(c_i W_{i,j}, M_{i,j})/c_i, but the inequality |e(cW,M)/c| < |e(W,M)| is not an algebraic consequence of Eq. (5); it is an observed property of the FP32, FP16, and Q2.5 encodings, established by Monte Carlo simulation over pseudo-weights in Section IV-C and then verified on four torchvision models in Section V. The paper explicitly states that e(c_i W_{i,j}, M_{i,j}) != c_i e(W_{i,j}, M_{i,j}), so no equation forces the improvement by construction. The multiplier c_i is set by Eq. (6), with t selected by a sweep on ResNet18 and then fixed for the other models; consequently the reported accuracy gains are not fitted to the benchmark being reported. The self-citation [10] appears only as a related-work example and is not used to justify the method's premise. The FP32/FP16 exponent-MSB precondition in Section IV-A is an unverified implementation assumption, but that is a robustness/correctness limitation, not circular reasoning.
Assumptions & free parameters
free parameters (1)
- t (scale target) =
1.9999 for FP32/FP16; 1.97 for Q2.5
assumptions (5)
- domain assumption Independent Bernoulli bit-flip model with per-bit probability BER
- domain assumption No bit-flip at MSB of the exponent for FP32/FP16 (M_{i,j,2}=0)
- domain assumption Pre-trained weights are mostly small enough that clamping/scaling into (-2,2) causes negligible accuracy loss
- ad hoc to paper The fault-injected error e(c_i W, M) grows more slowly than c_i e(W, M) or behaves like additive noise
- domain assumption Quantized weights converted from FP32 to FP16/Q2.5 preserve enough accuracy for evaluation
Cite this review
Pith. "Pith review of Harden Deep Neural Networks Against Fault Injections Through Weight Scaling." pith.science (2026). https://pith.science/paper/QMNQ4KUX
@misc{pith2026241118993,
author = {Pith},
title = {Pith review of: Harden Deep Neural Networks Against Fault Injections Through Weight Scaling},
year = {2026},
howpublished = {\url{https://pith.science/paper/QMNQ4KUX}},
note = {Machine review of arXiv:2411.18993}
}
read the original abstract
Deep neural networks (DNNs) have enabled smart applications on hardware devices. However, these hardware devices are vulnerable to unintended faults caused by aging, temperature variance, and write errors. These faults can cause bit-flips in DNN weights and significantly degrade the performance of DNNs. Thus, protection against these faults is crucial for the deployment of DNNs in critical applications. Previous works have proposed error correction codes based methods, however these methods often require high overheads in both memory and computation. In this paper, we propose a simple yet effective method to harden DNN weights by multiplying weights by constants before storing them to fault-prone medium. When used, these weights are divided back by the same constants to restore the original scale. Our method is based on the observation that errors from bit-flips have properties similar to additive noise, therefore by dividing by constants can reduce the absolute error from bit-flips. To demonstrate our method, we conduct experiments across four ImageNet 2012 pre-trained models along with three different data types: 32-bit floating point, 16-bit floating point, and 8-bit fixed point. This method demonstrates that by only multiplying weights with constants, Top-1 Accuracy of 8-bit fixed point ResNet50 is improved by 54.418 at bit-error rate of 0.0001.
Figures
Reference graph
Works this paper leans on
-
[1]
Swin transformer: Hierarchical vision transformer using shifted windows,
Z. Liu, Y . Lin, Y . Cao, H. Hu, Y . Wei, Z. Zhang, S. Lin, and B. Guo, “Swin transformer: Hierarchical vision transformer using shifted windows,” in Proceedings of the IEEE/CVF international conference on computer vision, 2021, pp. 10 012–10 022
2021
-
[2]
Yolov10: Real-time end-to-end object detection,
A. Wang, H. Chen, L. Liu, K. Chen, Z. Lin, J. Han, and G. Ding, “Yolov10: Real-time end-to-end object detection,” arXiv preprint arXiv:2405.14458, 2024
arXiv 2024
-
[3]
Llama: Open and efficient foundation language models,
H. Touvron, T. Lavril, G. Izacard, X. Martinet, M.-A. Lachaux, T. Lacroix, B. Rozi `ere, N. Goyal, E. Hambro, F. Azhar et al. , “Llama: Open and efficient foundation language models,” arXiv preprint arXiv:2302.13971, 2023
arXiv 2023
-
[4]
A survey of deep learning techniques for autonomous driving,
S. Grigorescu, B. Trasnea, T. Cocias, and G. Macesanu, “A survey of deep learning techniques for autonomous driving,” Journal of field robotics , vol. 37, no. 3, pp. 362–386, 2020
2020
-
[5]
Large lan- guage models for medicine: a survey,
Y . Zheng, W. Gan, Z. Chen, Z. Qi, Q. Liang, and P. S. Yu, “Large lan- guage models for medicine: a survey,” International Journal of Machine Learning and Cybernetics , pp. 1–26, 2024
work page 2024
-
[6]
Silent data corruptions at scale,
H. D. Dixit, S. Pendharkar, M. Beadon, C. Mason, T. Chakravarthy, B. Muthiah, and S. Sankar, “Silent data corruptions at scale,” arXiv preprint arXiv:2102.11245, 2021
arXiv 2021
-
[7]
Defect analysis and cost- effective resilience architecture for future dram devices,
S. Cha, O. Seongil, H. Shin, S. Hwang, K. Park, S. J. Jang, J. S. Choi, G. Y . Jin, Y . H. Son, H. Cho et al. , “Defect analysis and cost- effective resilience architecture for future dram devices,” in 2017 IEEE International Symposium on High Performance Computer Architecture (HPCA). IEEE, 2017, pp. 61–72
2017
-
[8]
Recent progress in the voltage-controlled magnetic anisotropy effect and the challenges faced in developing voltage-torque MRAM,
T. Nozaki, T. Yamamoto, S. Miwa, M. Tsujikawa, M. Shirai, S. Yuasa, and Y . Suzuki, “Recent progress in the voltage-controlled magnetic anisotropy effect and the challenges faced in developing voltage-torque MRAM,” Micromachines, vol. 10, no. 5, p. 327, 2019
2019
Show all 19 references
-
[9]
Terminal brain damage: Exposing the graceless degradation in deep neural networks under hardware fault attacks,
S. Hong, P. Frigo, Y . Kaya, C. Giuffrida, and T. Dumitras,, “Terminal brain damage: Exposing the graceless degradation in deep neural networks under hardware fault attacks,” in 28th USENIX Security Symposium (USENIX Security 19) , 2019, pp. 497–514
2019
-
[10]
Ef- ficient repetition coding for deep learning towards implementation using emerging non-volatile memory with write-errors,
N. Fuengfusin, H. Tamukoh, Y . Tanaka, O. Nomura, and T. Morie, “Ef- ficient repetition coding for deep learning towards implementation using emerging non-volatile memory with write-errors,” in 2023 International Joint Conference on Neural Networks (IJCNN) . IEEE, 2023, pp. 1–6
2023
-
[11]
Value-aware parity insertion ecc for fault- tolerant deep neural network,
S.-S. Lee and J.-S. Yang, “Value-aware parity insertion ecc for fault- tolerant deep neural network,” in 2022 Design, Automation & Test in Europe Conference & Exhibition (DATE) . IEEE, 2022, pp. 724–729
2022
-
[12]
In-place zero-space memory protection for cnn,
H. Guan, L. Ning, Z. Lin, X. Shen, H. Zhou, and S.-H. Lim, “In-place zero-space memory protection for cnn,” Advances in Neural Information Processing Systems, vol. 32, 2019
2019
-
[13]
A machine-learning-guided framework for fault-tolerant dnns,
M. Traiola, A. Kritikakou, and O. Sentieys, “A machine-learning-guided framework for fault-tolerant dnns,” in 2023 Design, Automation & Test in Europe Conference & Exhibition (DATE) . IEEE, 2023, pp. 1–2
2023
-
[14]
Torchvision: Pytorch’s computer vision library,
T. maintainers and contributors, “Torchvision: Pytorch’s computer vision library,” https://github.com/pytorch/vision, 2016
2016
-
[15]
Imagenet classification with deep convolutional neural networks,
A. Krizhevsky, I. Sutskever, and G. E. Hinton, “Imagenet classification with deep convolutional neural networks,”Advances in neural information processing systems, vol. 25, 2012
2012
-
[16]
Deep residual learning for image recognition,
K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in Proceedings of the IEEE conference on computer vision and pattern recognition , 2016, pp. 770–778
2016
-
[17]
Densely connected convolutional networks,
G. Huang, Z. Liu, L. Van Der Maaten, and K. Q. Weinberger, “Densely connected convolutional networks,” in Proceedings of the IEEE confer- ence on computer vision and pattern recognition , 2017, pp. 4700–4708
2017
-
[18]
Fingeroff, High-level synthesis: blue book
M. Fingeroff, High-level synthesis: blue book. Xlibris Corporation, 2010
2010
-
[19]
Imagenet: A large-scale hierarchical image database,
J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei, “Imagenet: A large-scale hierarchical image database,” in 2009 IEEE conference on computer vision and pattern recognition . Ieee, 2009, pp. 248–255
2009
Reviewed August 12, 2026 · model on record in the stance chip above.
Discussion (0). Continue with ORCID to comment.