[Paper Review] RAPIDNN: In-Memory Deep Neural Network Acceleration Framework
RAPIDNN reinterprets DNN computations to operate inside memory, using a memory-centric accelerator with codebook-based representations and lookup-table blocks to perform multiplication, addition, activation, and pooling in-place, achieving large energy and speedups with minimal quality loss.
Deep neural networks (DNN) have demonstrated effectiveness for various applications such as image processing, video segmentation, and speech recognition. Running state-of-the-art DNNs on current systems mostly relies on either generalpurpose processors, ASIC designs, or FPGA accelerators, all of which suffer from data movements due to the limited onchip memory and data transfer bandwidth. In this work, we propose a novel framework, called RAPIDNN, which processes all DNN operations within the memory to minimize the cost of data movement. To enable in-memory processing, RAPIDNN reinterprets a DNN model and maps it into a specialized accelerator, which is designed using non-volatile memory blocks that model four fundamental DNN operations, i.e., multiplication, addition, activation functions, and pooling. The framework extracts representative operands of a DNN model, e.g., weights and input values, using clustering methods to optimize the model for in-memory processing. Then, it maps the extracted operands and their precomputed results into the accelerator memory blocks. At runtime, the accelerator identifies computation results based on efficient in-memory search capability which also provides tunability of approximation to further improve computation efficiency. Our evaluation shows that RAPIDNN achieves 68.4x, 49.5x energy efficiency improvement and 48.1x, 10.9x speedup as compared to ISAAC and PipeLayer, the state-of-the-art DNN accelerators, while ensuring less than 0.3% of quality loss.
Motivation & Objective
- Motivate reducing data movement and memory bottlenecks in DNN inference for IoT and edge devices.
- Introduce a digital, memory-centric accelerator that performs core DNN operations inside memory to improve energy efficiency and speed.
- Develop a framework to reinterpret DNN models into representations compatible with in-memory processing while controlling accuracy loss.
- Provide software and hardware co-design methods to map weights and activations into memory-based tables for efficient lookup.
Proposed method
- Convert DNN computations into a sequence of four memory-amenable operations: multiplication, addition, activation, and pooling.
- Use k-means clustering to create representative codebooks for weights and inputs, enabling in-memory lookups for multiplications.
- Employ a multi-level (tree-based) encoding of operands to trade off accuracy and memory/compute cost; offload multiplications to precomputed tables stored in crossbars.
- Model activation functions and encoding/pooling via associative memory blocks acting as lookup tables, enabling full in-memory execution without analog computation paths.
- Retrain and iteratively refine the reinterpreted network to meet a target error tolerance, balancing accuracy with memory table sizes.
- Use a dedicated RNA (resistive neural accelerator) block architecture with crossbar memory for weighted accumulation and AM blocks for activation/ pooling.
Experimental results
Research questions
- RQ1How can DNN computations (multiplication, addition, activation, pooling) be transformed to operate predominantly inside memory?
- RQ2What clustering and encoding strategies preserve inference accuracy while enabling compact, table-based in-memory computation?
- RQ3Can a digital, memristor-based accelerator perform all core DNN operations without analog-to-digital conversions and multi-level memristors?
- RQ4What are the accuracy and energy/speed trade-offs when reinterpreting standard DNNs for in-memory processing across common layer types (convolution, fully-connected, pooling)?
Key findings
- RAPIDNN achieves up to 68.4× energy efficiency improvement and 48.1× speedup compared to ISAAC for evaluated workloads; up to 49.5× energy and 10.9× speedup versus PipeLayer.
- The framework maintains less than 0.5% quality loss on six DNN applications.
- Encoding via multi-level codebooks and offline clustering enables accurate in-memory multiplications and activations without relying on unreliable multi-level memristors.
- All core operations (multiplication, addition, activation, pooling) are implemented inside memory blocks, avoiding complex ADC/DAC paths and enabling scalable, digital-based computation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.