[Paper Review] DNN is not all you need: Parallelizing Non-Neural ML Algorithms on Ultra-Low-Power IoT Processors
This paper proposes efficient parallelization of non-neural machine learning algorithms—such as Gaussian Naive Bayes, logistic regression, and random forests—on ultra-low-power PULP-based IoT processors (GAP8 and PULP-OPEN). By optimizing memory access, leveraging fine-grained parallelism, and using a target-optimized floating-point emulation library, the authors achieve up to 7.04× speedup and 87% reduction in latency and energy on octa-core platforms, outperforming ARM Cortex-M4 by 12.87× in speed and 98% in energy efficiency.
Machine Learning (ML) functions are becoming ubiquitous in latency- and privacy-sensitive IoT applications, prompting a shift toward near-sensor processing at the extreme edge and the consequent increasing adoption of Parallel Ultra-Low Power (PULP) IoT processors. These compute- and memory-constrained parallel architectures need to run efficiently a wide range of algorithms, including key Non-Neural ML kernels that compete favorably with Deep Neural Networks (DNNs) in terms of accuracy under severe resource constraints. In this paper, we focus on enabling efficient parallel execution of Non-Neural ML algorithms on two RISCV-based PULP platforms, namely GAP8, a commercial chip, and PULP-OPEN, a research platform running on an FPGA emulator. We optimized the parallel algorithms through a fine-grained analysis and intensive optimization to maximize the speedup, considering two alternative Floating-Point (FP) emulation libraries on GAP8 and the native FPU support on PULP-OPEN. Experimental results show that a target-optimized emulation library can lead to an average 1.61x runtime improvement and 37% energy reduction compared to a standard emulation library, while the native FPU support reaches up to 32.09x and 99%, respectively. In terms of parallel speedup, our design improves the sequential execution by 7.04x on average on the targeted octa-core platforms leading to energy and latency decrease up to 87%. Lastly, we present a comparison with the ARM Cortex-M4 microcontroller (MCU), a widely adopted commercial solution for edge deployments, which is 12.87x slower and 98% less energy-efficient than PULP-OPEN.
Motivation & Objective
- To enable efficient execution of non-neural ML algorithms on resource-constrained, ultra-low-power IoT processors.
- To address the performance gap between DNNs and non-neural ML kernels in edge inference under strict energy and memory constraints.
- To optimize parallel execution of six key non-neural ML algorithms on RISC-V-based PULP platforms (GAP8 and PULP-OPEN).
- To evaluate the impact of FP emulation libraries and native FPU support on runtime and energy efficiency.
- To compare the performance of PULP platforms against the widely used ARM Cortex-M4 MCU for edge ML workloads.
Proposed method
- Designed and optimized parallel implementations of six non-neural ML kernels—Gaussian Naive Bayes, logistic regression, linear SVM, random forest, k-NN, and GEMM-based kernels—for octa-core PULP platforms.
- Performed fine-grained analysis of memory access patterns and thread-level parallelism to maximize data reuse and load balance across cores.
- Implemented and compared two floating-point emulation libraries on FPU-less GAP8: standard libgcc and a target-optimized RVfplib library.
- Leveraged native FPU support on PULP-OPEN to achieve high-precision, low-latency floating-point operations.
- Applied compiler optimizations including loop unrolling, hardware loop support, and fused multiply-add (FMA) instructions to reduce cycle count.
- Used cycle-accurate profiling on both GAP8 and PULP-OPEN to measure performance and energy efficiency across sequential and parallel configurations.
Experimental results
Research questions
- RQ1Can non-neural ML algorithms achieve competitive performance and energy efficiency on ultra-low-power PULP IoT processors compared to DNNs?
- RQ2How does the choice of floating-point emulation library affect runtime and energy consumption on FPU-less PULP platforms?
- RQ3What level of parallel speedup can be achieved by optimizing non-neural ML kernels on octa-core PULP architectures?
- RQ4How does the performance of PULP-OPEN compare to the widely deployed ARM Cortex-M4 in edge ML inference workloads?
- RQ5What architectural factors limit speedup in PULP-based systems, and how can they be mitigated through algorithmic and compiler-level optimizations?
Key findings
- The target-optimized RVfplib floating-point emulation library on GAP8 achieved an average 1.61× speedup and 37% energy reduction compared to the standard libgcc library.
- Native FPU support on PULP-OPEN delivered up to 32.09× speedup and 99% energy reduction compared to libgcc emulation.
- Parallel execution on the 8-core cluster of PULP-OPEN achieved an average 7.04× speedup, reducing latency and energy by up to 87%.
- PULP-OPEN outperformed the ARM Cortex-M4 MCU by 12.87× in speed and 98% in energy efficiency, even in single-core mode.
- The sequential execution on PULP-OPEN was 1.36× to 2.39× faster than on Cortex-M4, with GEMM-based kernels showing the highest improvement.
- Architectural factors such as single-cycle load operations, hardware loop support, and pipelined FMA instructions contributed significantly to performance gains.
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.