Abstract
With the development of neural networks based machine learning and their usage in mission critical applications, voices are rising against the \textit{black box} aspect of neural networks as it becomes crucial to understand their limits and capabilities. With the rise of neuromorphic hardware, it is even more critical to understand how a neural network, as a distributed system, tolerates the failures of its computing nodes, neurons, and its communication channels, synapses. Experimentally assessing the robustness of neural networks involves the quixotic venture of testing all the possible failures, on all the possible inputs, which ultimately hits a combinatorial explosion for the first, and the impossibility to gather all the possible inputs for the second. In this paper, we prove an upper bound on the expected error of the output when a subset of neurons crashes. This bound involves dependencies on the network parameters that can be seen as being too pessimistic in the average case. It involves a polynomial dependency on the Lipschitz coefficient of the neurons activation function, and an exponential dependency on the depth of the layer where a failure occurs. We back up our theoretical results with experiments illustrating the extent to which our prediction matches the dependencies between the network parameters and robustness. Our results show that the robustness of neural networks to the average crash can be estimated without the need to neither test the network on all failure configurations, nor access the training set used to train the network, both of which are practically impossible requirements.
Introduction
As neural networks transition from general-purpose computing environments to specialized neuromorphic hardware—chips like IBM’s TrueNorth designed to mimic biological neural structures—the issue of hardware reliability becomes paramount. In mission-critical applications such as autonomous vehicles or satellite systems, the failure of individual hardware components (neurons or synapses) should not lead to catastrophic system failure.
Traditionally, assessing a network's robustness required exhaustive testing of all possible failure combinations across all potential inputs. For even a modest network, this leads to a combinatorial explosion; for instance, a network with 150 neurons where 50 might fail presents approximately $2 \times 10^{40}$ combinations. This paper addresses this challenge by deriving a mathematical upper bound for the expected output error, allowing robustness to be estimated directly from a network's internal parameters.
Methodology: The $Erf$ Estimator
The authors model a neural network as a distributed system where a "failure" is defined as a neuron crashing and outputting zero. To avoid brute-force testing, they derive a theoretical estimator, $Erf$ (and its average-case variant $Erf_{av}$), which provides an upper bound on the expected error $E[\|F_{neu} - F_{fail}\|]$.
The derivation relies on several key parameters:
- Lipschitz Continuity ($K$): The Lipschitz coefficient of activation functions (e.g., Sigmoid or ReLU) bounds how much an error at one layer can amplify as it propagates.
- Synaptic Weights: The bound incorporates the maximum or average absolute values of weights.
- Network Depth ($L$): The error bound is proven using induction across the depth of the network.
The $Erf$ estimator is validated by comparing it against $\Omega$, the actual measured error across all possible failure states, computable only for small "toy" networks.
Experimental Validation and Insights
The researchers evaluated their framework using both randomly generated small networks for exhaustive testing and realistic feed-forward networks trained on the MNIST handwritten digit dataset.
The Role of Activation Functions and Depth
A critical finding is the differing behavior of activation functions. While ReLU functions can propagate errors polynomially—making them fragile if weights are large—Sigmoid functions exhibit a "saturating" effect. Beyond a certain point, increasing the steepness ($K$) of a Sigmoid does not necessarily increase average-case fragility.
Furthermore, depth acts as a "double-edged sword." If the Lipschitz constant $K < 1$, deeper networks can actually be more robust as errors diminish through layers. Conversely, if $K > 1$, deeper networks become exponentially more fragile.
Weight Scaling and Robustness
Experiments confirmed that scaling weights significantly impacts robustness. For ReLU networks, scaling weights by a factor of 10 increases the error bound by $10^{L+1}$, highlighting the multiplicative nature of error propagation in deep architectures.
Dropout as a Safety Feature
Interestingly, the study found that Dropout, a common regularization technique, also serves as a powerful robustness enhancer. Networks trained with higher dropout rates remained much closer to their theoretical error bounds when neurons were "killed," suggesting that dropout forces the network to develop redundant, failure-tolerant representations.
Conclusion
This work demonstrates that the robustness of neural networks to component failure can be estimated without exhaustive testing or access to training data. While the derived bounds can be pessimistic—overestimating error by assuming worst-case scenarios—they provide a necessary safety guarantee for hardware deployment. Future research will focus on extending these proofs to more complex architectures like Convolutional Neural Networks (CNNs) and finding the "sweet spot" between robustness and training efficiency.
Summary updated