SMOF: Streaming Modern CNNs on FPGAs with Smart Off-Chip Eviction
Petros Toupas, Zhewen Yu, Christos-Savvas Bouganis, Dimitrios Tzovaras
TL;DR
This work tackles the memory bottleneck in streaming FPGA CNN accelerators by introducing activation eviction, weight fragmentation, and subgraph reconfiguration to enable mapping of modern architectures with long skip connections onto memory-constrained devices. It integrates these mechanisms into the fpgaConvNet toolflow and employs a greedy, iterative design-space exploration to optimize on-chip/off-chip memory usage and partitioning. Across 2D and 3D vision tasks, SMOF demonstrates competitive and, in several cases, state-of-the-art throughput, achieving up to $10.65\times$ improvements over previous approaches. By leveraging off-chip memory as a buffering layer and enabling flexible subgraph reconfiguration, the method broadens FPGA applicability to complex CNNs with limited on-chip resources.
Abstract
Convolutional Neural Networks (CNNs) have demonstrated their effectiveness in numerous vision tasks. However, their high processing requirements necessitate efficient hardware acceleration to meet the application's performance targets. In the space of FPGAs, streaming-based dataflow architectures are often adopted by users, as significant performance gains can be achieved through layer-wise pipelining and reduced off-chip memory access by retaining data on-chip. However, modern topologies, such as the UNet, YOLO, and X3D models, utilise long skip connections, requiring significant on-chip storage and thus limiting the performance achieved by such system architectures. The paper addresses the above limitation by introducing weight and activation eviction mechanisms to off-chip memory along the computational pipeline, taking into account the available compute and memory resources. The proposed mechanism is incorporated into an existing toolflow, expanding the design space by utilising off-chip memory as a buffer. This enables the mapping of such modern CNNs to devices with limited on-chip memory, under the streaming architecture design approach. SMOF has demonstrated the capacity to deliver competitive and, in some cases, state-of-the-art performance across a spectrum of computer vision tasks, achieving up to 10.65 X throughput improvement compared to previous works.
