Analog Computing for AI Sometimes Needs Correction by Digital Computing: Why and When

Abstract

Analog computing is a compute-in-memory technology that allows multiple dot-product operations to be performed in parallel, and can extremely accelerate matrix-vector multiplications in AI. However, computation in analog computing devices is imperfect due to its non-idealities. This can severely degrade its accuracy, and prevents the analog computing from being widely used. In this paper, we propose a correction-based approach to mitigate these non-idealities of analog computing. The proposed method exploits the confidence score calculated from analog computing, and leverages digital computing to correct the result if the confidence is low. We propose two algorithms that efficiently improve accuracy without requiring offline profiling or training. First, the digital rate-based correction algorithm optimizes the accuracy with given the target digital computing usage rate. Second, the confidence threshold based correction algorithm balances the digital computing usage rate and the accuracy by finding the appropriate threshold from online profiling. We use several image recognition models to show that the proposed algorithms improve the accuracy of AI on analog computing by efficiently utilizing the digital computing.

Cite

Text

Kim et al. "Analog Computing for AI Sometimes Needs Correction by Digital Computing: Why and When." NeurIPS 2024 Workshops: MLNCP, 2024.

Markdown

[Kim et al. "Analog Computing for AI Sometimes Needs Correction by Digital Computing: Why and When." NeurIPS 2024 Workshops: MLNCP, 2024.](https://mlanthology.org/neuripsw/2024/kim2024neuripsw-analog/)

BibTeX

@inproceedings{kim2024neuripsw-analog,
  title     = {{Analog Computing for AI Sometimes Needs Correction by Digital Computing: Why and When}},
  author    = {Kim, Changdae and Yoon, Daegun and Kim, Taehoon and Jeong, Yeonjeong and Kim, Kangho and Koh, Kwangwon and Pak, Eunji},
  booktitle = {NeurIPS 2024 Workshops: MLNCP},
  year      = {2024},
  url       = {https://mlanthology.org/neuripsw/2024/kim2024neuripsw-analog/}
}