English

Full-Stack Optimization for CAM-Only DNN Inference

Hardware Architecture 2024-01-24 v1 Emerging Technologies Machine Learning

Abstract

The accuracy of neural networks has greatly improved across various domains over the past years. Their ever-increasing complexity, however, leads to prohibitively high energy demands and latency in von Neumann systems. Several computing-in-memory (CIM) systems have recently been proposed to overcome this, but trade-offs involving accuracy, hardware reliability, and scalability for large models remain a challenge. Additionally, for some CIM designs, the activation movement still requires considerable time and energy. This paper explores the combination of algorithmic optimizations for ternary weight neural networks and associative processors (APs) implemented using racetrack memory (RTM). We propose a novel compilation flow to optimize convolutions on APs by reducing their arithmetic intensity. By leveraging the benefits of RTM-based APs, this approach substantially reduces data transfers within the memory while addressing accuracy, energy efficiency, and reliability concerns. Concretely, our solution improves the energy efficiency of ResNet-18 inference on ImageNet by 7.5x compared to crossbar in-memory accelerators while retaining software accuracy.

Keywords

Cite

@article{arxiv.2401.12630,
  title  = {Full-Stack Optimization for CAM-Only DNN Inference},
  author = {João Paulo C. de Lima and Asif Ali Khan and Luigi Carro and Jeronimo Castrillon},
  journal= {arXiv preprint arXiv:2401.12630},
  year   = {2024}
}

Comments

To be presented at DATE24

R2 v1 2026-06-28T14:24:31.840Z