[Paper Review] Single Stream Parallelization of Recurrent Neural Networks for Low Power and Fast Inference
This paper proposes single-stream time-domain parallelization of Recurrent Neural Networks (RNNs) using QRNN and SRU architectures to reduce DRAM accesses and accelerate inference on mobile and embedded systems. By processing multiple time steps simultaneously, the method reuses weights across steps, significantly cutting memory bandwidth usage and achieving up to 1,434.6% speed-up on ARM CPUs with 128-step parallelization.
As neural network algorithms show high performance in many applications, their efficient inference on mobile and embedded systems are of great interests. When a single stream recurrent neural network (RNN) is executed for a personal user in embedded systems, it demands a large amount of DRAM accesses because the network size is usually much bigger than the cache size and the weights of an RNN are used only once at each time step. We overcome this problem by parallelizing the algorithm and executing it multiple time steps at a time. This approach also reduces the power consumption by lowering the number of DRAM accesses. QRNN (Quasi Recurrent Neural Networks) and SRU (Simple Recurrent Unit) based recurrent neural networks are used for implementation. The experiments for SRU showed about 300% and 930% of speed-up when the numbers of multi time steps are 4 and 16, respectively, in an ARM CPU based system.
Motivation & Objective
- Address the high DRAM bandwidth bottleneck in RNN inference on mobile and embedded systems where on-chip memory is insufficient.
- Overcome the challenge of limited parallelism in single-stream RNNs due to sequential recurrence dependencies.
- Enable efficient inference on low-power, single-user systems like smartphones by reducing memory access overhead.
- Demonstrate that simple RNN variants like QRNN and SRU allow effective time-domain parallelization despite feedback structures.
- Achieve high-speed, low-power inference by reusing weights across multiple time steps through algorithmic parallelization.
Proposed method
- Apply multi-time-step parallelization to single-stream RNN inference, processing multiple time steps simultaneously to reuse weights.
- Leverage the simple feedback structure of QRNN and SRU models, which allows isolation and parallelization of the recurrent component.
- Design a single-stream parallel algorithm that fetches weights once and applies them across multiple time steps, reducing DRAM access frequency.
- Implement the method on both Intel and ARM CPU platforms to evaluate performance across different memory subsystems.
- Use SRU and QRNN models as testbeds due to their computational simplicity and reduced recurrence complexity compared to LSTM.
- Measure speed-up and execution time across varying levels of parallelization (from 1 to 128 steps) to quantify performance gains.
Experimental results
Research questions
- RQ1Can single-stream RNN inference be accelerated by parallelizing multiple time steps despite sequential recurrence dependencies?
- RQ2To what extent does multi-time-step parallelization reduce DRAM access frequency in RNNs on embedded systems?
- RQ3How do QRNN and SRU architectures enable more effective time-domain parallelization compared to traditional RNNs like LSTM?
- RQ4What performance gains are achievable in terms of speed-up on ARM versus Intel CPU platforms with increasing parallelization levels?
- RQ5Does the benefit of reduced DRAM access scale with model size and system memory bandwidth?
Key findings
- On an ARM CPU, 128-step parallelization of the large QRNN model achieved a 1,434.6% speed-up compared to single-step inference.
- For the small QRNN model on ARM, 128-step parallelization yielded a 1,108.9% speed-up, demonstrating strong scalability on low-bandwidth systems.
- On Intel CPUs, the large SRU model achieved a 1,325.0% speed-up with 128-step parallelization, indicating high efficiency on high-bandwidth platforms.
- The speed-up was consistently higher on ARM systems than on Intel CPUs, due to the greater impact of reduced DRAM access on systems with lower memory bandwidth.
- Larger RNN models showed higher relative speed-up gains than smaller models, as the fixed cost of weight fetching becomes more amortized.
- The method achieved over 500% speed-up on Intel CPUs and over 1,250% on ARM CPUs, confirming its effectiveness for low-power, high-performance inference.
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.