An Optical XNOR-Bitcount Based Accelerator for Efficient Inference of Binary Neural Networks

Sairam Sri Vatsavai, Venkata Sai Praneeth Karempudi, Ishan Thakkar
2/3/2023
cs.ARcs.CVcs.LG

Official code: uky-UCAT/B_ONN_SIM (2 stars, MIT, last commit 2026-03-07).

Abstract

Binary Neural Networks (BNNs) are increasingly preferred over full-precision Convolutional Neural Networks(CNNs) to reduce the memory and computational requirements of inference processing with minimal accuracy drop. BNNs convert CNN model parameters to 1-bit precision, allowing inference of BNNs to be processed with simple XNOR and bitcount operations. This makes BNNs amenable to hardware acceleration. Several photonic integrated circuits (PICs) based BNN accelerators have been proposed. Although these accelerators provide remarkably higher throughput and energy efficiency than their electronic counterparts, the utilized XNOR and bitcount circuits in these accelerators need to be further enhanced to improve their area, energy efficiency, and throughput. This paper aims to fulfill this need. For that, we invent a single-MRR-based optical XNOR gate (OXG). Moreover, we present a novel design of bitcount circuit which we refer to as Photo-Charge Accumulator (PCA). We employ multiple OXGs in a cascaded manner using dense wavelength division multiplexing (DWDM) and connect them to the PCA, to forge a novel Optical XNOR-Bitcount based Binary Neural Network Accelerator (OXBNN). Our evaluation for the inference of four modern BNNs indicates that OXBNN provides improvements of up to 62x and 7.6x in frames-per-second (FPS) and FPS/W (energy efficiency), respectively, on geometric mean over two PIC-based BNN accelerators from prior work. We developed a transaction-level, event-driven python-based simulator for evaluation of accelerators (https://github.com/uky-UCAT/B_ONN_SIM).

View on arXivView PDF

Code Implementations(1)

uky-UCAT/B_ONN_SIMOfficial100%
MIT

Binary Optical Neural Network Simulator

20PythonJan 31, 20237 months agoMIT

Similar Papers

Cite this paper

@article{vatsavai2023optical,
  title  = {An Optical XNOR-Bitcount Based Accelerator for Efficient Inference of Binary Neural Networks},
  author = {Sairam Sri Vatsavai and Venkata Sai Praneeth Karempudi and Ishan Thakkar},
  year   = {2023},
  eprint = {2302.06405},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.06405v2}
}

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/2302.06405.svg)](https://codeofpaper.com/paper/2302.06405)

Discussion