Skip to main content
QUICK REVIEW

[Paper Review] CodeNet: Training Large Scale Neural Networks in Presence of Soft-Errors

Sanghamitra Dutta, Ziqian Bai|arXiv (Cornell University)|Mar 4, 2019
Advanced Memory and Neural ComputingEngineering89 references4 citations
TL;DR

CodeNet proposes a decentralized, coding-theory-inspired strategy to enable reliable, low-overhead training of large-scale deep neural networks in the presence of soft-errors—common in unreliable, low-power hardware. By encoding each layer independently and using error-detection and decoding in a decentralized manner, CodeNet achieves higher error tolerance than replication, reduces expected computation time, and matches replication in computational and communication costs while enabling biologically plausible, energy-efficient training.

ABSTRACT

This work proposes the first strategy to make distributed training of neural networks resilient to computing errors, a problem that has remained unsolved despite being first posed in 1956 by von Neumann. He also speculated that the efficiency and reliability of the human brain is obtained by allowing for low power but error-prone components with redundancy for error-resilience. It is surprising that this problem remains open, even as massive artificial neural networks are being trained on increasingly low-cost and unreliable processing units. Our coding-theory-inspired strategy, "CodeNet," solves this problem by addressing three challenges in the science of reliable computing: (i) Providing the first strategy for error-resilient neural network training by encoding each layer separately; (ii) Keeping the overheads of coding (encoding/error-detection/decoding) low by obviating the need to re-encode the updated parameter matrices after each iteration from scratch. (iii) Providing a completely decentralized implementation with no central node (which is a single point of failure), allowing all primary computational steps to be error-prone. We theoretically demonstrate that CodeNet has higher error tolerance than replication, which we leverage to speed up computation time. Simultaneously, CodeNet requires lower redundancy than replication, and equal computational and communication costs in scaling sense. We first demonstrate the benefits of CodeNet in reducing expected computation time over replication when accounting for checkpointing. Our experiments show that CodeNet achieves the best accuracy-runtime tradeoff compared to both replication and uncoded strategies. CodeNet is a significant step towards biologically plausible neural network training, that could hold the key to orders of magnitude efficiency improvements.

Motivation & Objective

  • To address the long-standing challenge of training deep neural networks reliably on error-prone, low-power hardware, inspired by von Neumann's 1956 vision of fault-tolerant computation.
  • To overcome the limitations of existing replication-based approaches, which incur high redundancy and are vulnerable to single points of failure.
  • To design a decentralized, coding-theory-based framework that allows all computational steps—including encoding, decoding, nonlinear activation, and matrix operations—to be error-prone while maintaining reliability.
  • To achieve higher error tolerance than replication with comparable computational and communication costs, enabling faster training under soft-error conditions.
  • To enable biologically plausible neural network training by mimicking the brain’s use of redundancy and error resilience in unreliable components.

Proposed method

  • CodeNet encodes each layer’s weight matrices using error-correcting codes, allowing independent encoding per layer to reduce overhead.
  • It employs a decentralized architecture where all primary operations—encoding, decoding, nonlinear activation, and matrix multiplication—can be performed by potentially faulty nodes.
  • Error detection is implemented via lightweight verification steps assumed to be error-free, enabling detection of corrupted data without a central authority.
  • The system uses a modified form of distributed matrix computation where sub-matrices are processed across nodes, and decoding is performed locally after computation.
  • It leverages coding theory to tolerate more errors than replication by exploiting the structure of neural network computations and error propagation.
  • The method avoids re-encoding matrices from scratch after each iteration, significantly reducing computational overhead.

Experimental results

Research questions

  • RQ1Can a decentralized, coding-theory-based approach achieve higher error tolerance than replication in distributed DNN training?
  • RQ2How can error-resilience be maintained across all stages of DNN training—including nonlinear activation and matrix operations—when all components are potentially faulty?
  • RQ3Can the overhead of coding be kept comparable to replication while still enabling reliable training on unreliable hardware?
  • RQ4Is it possible to design a system where even error-detection and decoding are error-prone, yet the overall computation remains reliable?
  • RQ5Can such a system achieve faster expected computation time than replication, accounting for checkpointing and error recovery?

Key findings

  • CodeNet achieves higher error tolerance than replication, enabling faster training by reducing the need for frequent checkpointing.
  • The expected computation time under CodeNet is lower than under replication, even when accounting for error detection and recovery overhead.
  • CodeNet maintains computational and communication costs on par with replication, making it scalable for large-scale distributed training.
  • Experiments show that CodeNet achieves the best accuracy-runtime tradeoff compared to both uncoded and replication-based strategies.
  • Even with a soft-error probability as low as 3×10⁻⁴, uncoded training suffers severe performance degradation, while CodeNet maintains high accuracy.
  • The decentralized design eliminates single points of failure and supports biologically plausible computation by allowing all operations to be error-prone.

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.