Abstract
Modern embedded applications, such as autonomous vehicles and drones, increasingly require the simultaneous execution of multiple Convolutional Neural Networks (CNNs). However, traditional FPGA-based accelerators are often optimized for single-model execution, leading to resource contention and performance bottlenecks when scaled. This paper presents f-CNNx, an automated toolflow that maps multiple CNNs onto a single FPGA. By employing a custom multi-engine hardware architecture and a novel "memory-aware" scheduling algorithm, f-CNNx achieves up to a 6.8x improvement in performance-per-Watt compared to high-end embedded GPUs.
Introduction
The demand for concurrent multi-model execution is rising in real-world AI applications. For instance, a self-driving car might simultaneously run models for object detection, road sign recognition, and lane tracking. On an FPGA, these models compete for limited on-chip compute resources (DSPs, BRAM) and external memory bandwidth.
Traditional approaches typically run models sequentially, which increases latency, or allow asynchronous memory access, leading to unpredictable contention and engine stalls. f-CNNx addresses these challenges by optimally partitioning FPGA resources and managing memory bandwidth to meet specific latency and throughput targets.
System Architecture and Methods
The f-CNNx framework is built upon three core pillars: a multi-engine architecture, analytical modeling, and a deterministic scheduler.
Multi-Engine Architecture
Rather than utilizing a single large, generic processor, f-CNNx generates a dedicated, customized "streaming" engine for each CNN in the workload. Each engine is fine-tuned using "folding factors" to match the specific computational requirements of its respective model. This spatial multiplexing approach ensures that each CNN has its own dedicated territory on the FPGA, which is critical for latency-sensitive tasks.
Synchronous Dataflow (SDF) Modeling
To navigate the vast design space, the toolflow uses an SDF model to analytically predict the performance of hardware configurations. This allows the system to explore thousands of potential designs (Design Space Exploration) efficiently without the need for time-consuming full synthesis for every iteration.
The "Slow-down" Scheduler
A key innovation of f-CNNx is the MCNN-HS hardware module and its associated scheduling algorithm. Instead of allowing engines to compete for bandwidth asynchronously, the scheduler calculates "slow-down" factors. It intentionally throttles the processing rate of specific engines to create a deterministic, contention-free data flow from external memory. This synchronization eliminates the overhead of runtime arbitration and increases overall system efficiency.
Experimental Evaluation
The authors evaluated f-CNNx using a diverse suite of CNN models, including LeNet-5, CIFAR-10, PilotNet (autonomous steering), ZFNet (object detection), SceneLabelCNN (scene labeling), and VGG16. These models were tested in various multi-tasking combinations.
Key Results
- Throughput Gains: Compared to contention-unaware FPGA designs, f-CNNx improved throughput by 77-91% in bandwidth-constrained scenarios.
- Comparison with GPUs: When compared to the NVIDIA Tegra X1 embedded GPU, f-CNNx delivered up to 6.85x higher performance-per-Watt. Under a strict 5W power budget, the f-CNNx design provided up to 19x higher throughput for specific models like PilotNet.
- Heuristic Efficiency: The proposed RCLS heuristic scheduler found near-optimal schedules in minutes, significantly outperforming standard ILP solvers which often failed on larger 4-CNN workloads.
Conclusion and Future Work
f-CNNx demonstrates that co-optimizing hardware parameters and memory schedules can significantly enhance the efficiency of multi-CNN deployments on FPGAs. While the current toolflow generates static hardware designs requiring re-synthesis for model changes, it provides a powerful foundation for high-performance, power-efficient embedded AI. Future work includes extending the framework to support dynamic cloud environments and reconfigurable mappings that can adapt to changing workloads without full re-synthesis.
Summary updated