NeFT: Negative Feedback Training to Improve Robustness of Compute-In-Memory DNN Accelerators

Yifan Qin, Zheyu Yan, Dailin Gan, Jun Xia, Zixuan Pan +3 more
5/23/2023
7 citations
cs.LGcs.AIcs.AR

Official code: YifanQin-ND/NeFT_CIM (7 stars, Python, MIT, last commit 2025-02-05).

Abstract

Compute-in-memory accelerators built upon non-volatile memory devices excel in energy efficiency and latency when performing deep neural network (DNN) inference, thanks to their in-situ data processing capability. However, the stochastic nature and intrinsic variations of non-volatile memory devices often result in performance degradation during DNN inference.

Show full abstract

Introducing these non-ideal device behaviors in DNN training enhances robustness, but drawbacks include limited accuracy improvement, reduced prediction confidence, and convergence issues. This arises from a mismatch between the deterministic training and non-deterministic device variations, as such training, though considering variations, relies solely on the model's final output. In this work, inspired by control theory, we propose Negative Feedback Training (NeFT), a novel concept supported by theoretical analysis, to more effectively capture the multi-scale noisy information throughout the network. We instantiate this concept with two specific instances, oriented variational forward (OVF) and intermediate representation snapshot (IRS). Based on device variation models extracted from measured data, extensive experiments show that our NeFT outperforms existing state-of-the-art methods with up to a 45.08% improvement in inference accuracy while reducing epistemic uncertainty, boosting output confidence, and improving convergence probability. These results underline the generality and practicality of our NeFT framework for increasing the robustness of DNNs against device variations. The source code for these two instances is available at https://github.com/YifanQin-ND/NeFT_CIM

View on arXivView PDF

Code Implementations(1)

MIT

Open source code for paper https://arxiv.org/abs/2305.14561

71PythonJan 9, 20241 years agoMIT

Similar Papers

Cite this paper

@article{qin2023neft,
  title  = {NeFT: Negative Feedback Training to Improve Robustness of Compute-In-Memory DNN Accelerators},
  author = {Yifan Qin and Zheyu Yan and Dailin Gan and Jun Xia and Zixuan Pan and Wujie Wen and Xiaobo Sharon Hu and Yiyu Shi},
  year   = {2023},
  eprint = {2305.14561},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.14561v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.14561.svg)](https://codeofpaper.com/paper/2305.14561)

Discussion