Skip to main content
QUICK REVIEW

[Paper Review] TinBiNN: Tiny Binarized Neural Network Overlay in about 5,000 4-LUTs and 5mW

Guy Lemieux, Joe Edwards|arXiv (Cornell University)|Mar 5, 2019
Advanced Neural Network ApplicationsComputer Science5 citations
TL;DR

TinBiNN presents a compact, 5,000 LUT, 5mW FPGA-based hardware overlay for accelerating inference in binarized neural networks using 1-bit weights and 8-bit activations. It achieves 13.6% error on CIFAR-10 with a 10-category classifier in 1,315ms and 0.4% error on a 1-category face detector in 195ms, demonstrating ultra-low power and area efficiency through a custom RISC-V vector processor with specialized CNN acceleration and fixed-point computation.

ABSTRACT

Reduced-precision arithmetic improves the size, cost, power and performance of neural networks in digital logic. In convolutional neural networks, the use of 1b weights can achieve state-of-the-art error rates while eliminating multiplication, reducing storage and improving power efficiency. The BinaryConnect binary-weighted system, for example, achieves 9.9% error using floating-point activations on the CIFAR-10 dataset. In this paper, we introduce TinBiNN, a lightweight vector processor overlay for accelerating inference computations with 1b weights and 8b activations. The overlay is very small -- it uses about 5,000 4-input LUTs and fits into a low cost iCE40 UltraPlus FPGA from Lattice Semiconductor. To show this can be useful, we build two embedded 'person detector' systems by shrinking the original BinaryConnect network. The first is a 10-category classifier with a 89% smaller network that runs in 1,315ms and achieves 13.6% error. The other is a 1-category classifier that is even smaller, runs in 195ms, and has only 0.4% error. In both classifiers, the error can be attributed entirely to training and not reduced precision.

Motivation & Objective

  • To design a minimal, low-power hardware accelerator for binarized neural network inference on resource-constrained FPGAs.
  • To reduce network size and precision while maintaining high accuracy, using 1-bit weights and 8-bit fixed-point activations.
  • To achieve high performance and energy efficiency through a custom RISC-V processor with Lightweight Vector Extensions (LVE) and dedicated CNN acceleration.
  • To demonstrate practical embedded vision applications, such as person detection, using minimal hardware and power.
  • To show that accuracy degradation in binarized networks is due to training, not reduced precision, by maintaining high accuracy with fixed-point arithmetic.

Proposed method

  • The system uses a modified BinaryConnect network with 89% fewer operations, reduced from 2×128C3 to 2×48C3, and uses 8-bit unsigned integers for activations and 16/32-bit signed integers for intermediate sums.
  • A custom hardware accelerator computes two overlapping 3×3 convolutions in parallel using 32-bit operands fetched per cycle, with two passes per input column to produce four outputs.
  • The TinBiNN overlay integrates a pipelined RISC-V ORCA processor with Lightweight Vector Extensions (LVE), enabling efficient vector and matrix operations without loop or address generation overhead.
  • Custom ALU instructions are added to the LVE pipeline: a 16b-to-32b SIMD add and a 32b-to-8b activation function, allowing overflow-safe accumulation and 8-bit output generation.
  • A DMA engine streams weights from SPI Flash ROM and image data from a VGA camera into a 128kB scratchpad, with hardware scaling and de-interleaving for 40×30 pixel input processing.
  • The system uses a 32×32 centered region for convolutions and processes data in 32-bit-aligned chunks, maintaining alignment across passes.

Experimental results

Research questions

  • RQ1Can a binarized neural network with 1-bit weights and 8-bit activations achieve high accuracy while operating within 5,000 LUTs and 5mW power budget on an FPGA?
  • RQ2To what extent can network size be reduced without significant accuracy loss when using fixed-point arithmetic and binarized weights?
  • RQ3How effective is a custom RISC-V vector processor with specialized instructions in accelerating binarized CNN inference compared to software-only execution?
  • RQ4Can ultra-low-power embedded systems achieve real-time person detection using minimal hardware and fixed-point computation?
  • RQ5Is the observed error in binarized networks primarily due to training limitations rather than precision reduction?

Key findings

  • The 10-category classifier achieves 13.6% error on CIFAR-10 using 89% fewer operations than the original BinaryConnect network, with no loss in accuracy from the 1-bit weight representation.
  • The 1-category face detector achieves 0.4% error with a 195ms inference time on the iCE40 UltraPlus FPGA, consuming only 21.8 mW, and 4.6 mW at one frame per second.
  • The hardware accelerator improves convolution layer runtime by 73× compared to software-only execution on the ORCA RISC-V core.
  • The LVE extension improves dense layer performance by 8×, resulting in a 71× overall speedup over pure software execution.
  • The system uses only 4,895 out of 5,280 4-LUTs and 4 out of 8 DSP blocks, fitting within the iCE40 UltraPlus-5K FPGA with 5,000 LUTs and 5mW power.
  • The error in the 10-category classifier is attributed entirely to training, not reduced precision, as fixed-point computation maintains the same 13.6% error rate as floating-point.

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.