Skip to main content
QUICK REVIEW

[Paper Review] Repair Brain Damage: Real-Numbered Error Correction Code for Neural Network

Ziqing Li, Myung Cho|arXiv (Cornell University)|Jan 21, 2026
Radiation Effects in ElectronicsEngineering0 citations
TL;DR

The paper introduces a real-number–based error correction code (ECC) that detects and corrects both memory and computational errors in neural networks by imposing linear constraints on weights, without adding parameters or harming accuracy. It uses LP-based detection/correction and demonstrates robustness on MNIST and CIFAR-10 benchmarks.

ABSTRACT

We consider a neural network (NN) that may experience memory faults and computational errors. In this paper, we propose a novel real-number-based error correction code (ECC) capable of detecting and correcting both memory errors and computational errors. The proposed approach introduces structures in the form of real-number-based linear constraints on the NN weights to enable error detection and correction, without sacrificing classification performance or increasing the number of real-valued NN parameters.

Motivation & Objective

  • Motivate robustness of neural networks against hardware-induced memory and datapath errors in safety-critical applications.
  • Propose a real-number ECC framework that imposes linear constraints on network weights to enable error detection and correction.
  • Develop an LP-based detection and correction pipeline that works without increasing model size or degrading accuracy.
  • Show practical effectiveness on standard datasets (MNIST, CIFAR-10) via layer-wise application and weight projection techniques.

Proposed method

  • Introduce two types of linear constraints on weights: general linear constraints via inner products with fixed matrices B_j, and a second type that induces linear structure on the outputs through vectors a_i.
  • Formulate error detection as checking a_i^T y = 0 for all i; errors are corrected by solving an LP that minimizes ||E||_1 subject to a_i^T(H+E)=0 and <B_j, H+E>=0, then recovering y_c = y - E x - e.
  • Project the vectorized weight matrix H onto the orthogonal complement of a constraint subspace to enforce Condition (1) during or after training (Equation 5).
  • Provide a potential jointly optimized formulation to recover both E and e by minimizing ||E||_1 + ||e||_1 subject to the same constraints and y = (H+E)x + e.
  • Describe a layer-wise application of the LP-based ECC (can be extended to multi-layer networks).
  • Demonstrate that increasing the number of constraints B_j linearly improves recoverability, with example needs quantified in experiments.

Experimental results

Research questions

  • RQ1Can a real-number ECC enforce structures in neural network weights that enable detection and correction of both memory and datapath errors?
  • RQ2What is the impact of these linear constraints on model performance and storage overhead?
  • RQ3How many constraint matrices B_j are needed to achieve reliable error correction in practice?
  • RQ4How does LP-based ECC perform on standard benchmarks with realistic memory and datapath faults?
  • RQ5Can the ECC framework be applied layer-by-layer across different network architectures (e.g., MLPs and CNNs)?

Key findings

  • ECC-DNN maintains near-baseline accuracy on MNIST up to 210 errors in 256×784 weight parameters when errors are introduced sparsely.
  • On CIFAR-10 with 5120-parameter output-layer weights, the method preserves accuracy up to 210 weight errors.
  • Approximately 800 constraint matrices B_j are needed for reliable recovery in a 200×199 weight matrix setting.
  • Applications on MNIST and CIFAR-10 demonstrate robustness to both memory and datapath errors without increasing trainable parameters.
  • The LP-based scheme achieves error detection with high probability and recovers the true sparsity pattern of memory faults under tested configurations.
  • The approach does not degrade classification performance while imposing real-valued structural constraints on weights.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.