Abstract
Modern computer vision (CV) is increasingly adopting hybrid architectures that interleave Convolutional Neural Networks (CNNs) and Graph Neural Networks (GNNs) to process non-Euclidean data and complex object relationships. However, the computational disparity between dense CNN operations and sparse GNN operations, coupled with significant data manipulation overhead, limits the efficiency of traditional hardware. This paper presents GCV-Turbo, a domain-specific accelerator (DSA) featuring a unified hardware architecture and a data-layout-centric compiler. Evaluated on an FPGA, GCV-Turbo achieves a 4.1× speedup over state-of-the-art GPUs across diverse CV tasks.
1. Introduction
Traditional computer vision has long been dominated by CNNs, which are optimized for regular grid structures like images. Recently, GNNs have emerged as a powerful tool for handling irregular data, such as 3D point clouds, or for modeling high-level relationships, such as human skeleton actions. Despite the performance gains of these hybrid models, executing them on general-purpose hardware or specialized single-domain accelerators is inefficient. CNNs are characterized by dense, regular computations, while GNNs are irregular and sparse. GCV-Turbo is designed to bridge this gap by providing a unified execution environment that handles both paradigms natively.
2. The Challenges of Hybrid CV Models
Two primary bottlenecks hinder the performance of GNN-based CV tasks on existing hardware:
- Computational Personality Mismatch: CNN accelerators struggle with the sparsity and irregular memory access of GNNs, while GNN accelerators are often inefficient for the high-throughput dense matrix multiplications required by CNNs.
- Data Manipulation (DM) Overhead: Moving data between CNN layers (feature maps) and GNN layers (nodes and edges) requires significant reshaping and reordering. On high-end GPUs, these DM operations can consume up to 15% of total execution time, representing a significant "hybrid tax."
3. GCV-Turbo Architecture and Compiler
GCV-Turbo addresses these challenges through a hardware-compiler co-design implemented on a Xilinx Alveo U250 FPGA.
3.1 Unified Hardware Architecture
Rather than utilizing separate cores for CNN and GNN operations, GCV-Turbo employs a resource-sharing strategy. The architecture is built around five fundamental matrix primitives that cover the requirements of both domains:
- DDMM: Dense-Dense Matrix Multiplication (CNNs).
- SpDMM: Sparse-Dense Matrix Multiplication (GNN message passing).
- SDDMM: Sampled Dense-Dense Matrix Multiplication.
- PSVM & PVVA: Parallel vector and scalar operations.
The Processing Elements (PEs) feature a reconfigurable data path and memory organization capable of switching between these primitives in a single clock cycle, maximizing hardware utilization and minimizing "dark silicon."
3.2 Data-Layout-Centric Compiler
The GCV-Turbo compiler optimizes PyTorch models through a five-step process. Its core innovation is Data Layout Centric Mapping, which automatically generates and fuses DM layers. By scheduling the hardware's internal routing network to shuffle data on-the-fly, the compiler effectively hides the latency of data transformations behind active computation cycles.
4. Experimental Evaluation
GCV-Turbo was evaluated across six diverse GNN-based CV tasks to demonstrate its versatility:
- Image Classification: Few-shot (Omniglot) and Multi-label (MS-COCO).
- Segmentation: Cityscapes.
- Action Recognition: Skeleton-based (NTU RGB+D).
- Specialized Sensing: SAR target classification (MSTAR).
- 3D Vision: Point cloud classification (ModelNet40).
4.1 Performance Results
Compared to an Nvidia RTX A5000 GPU, GCV-Turbo achieved an average 4.1× reduction in latency. When compared to high-end CPUs, the speedup reached 68.4×. Notably, GCV-Turbo remains competitive even on pure CNN or pure GNN tasks, proving that its generalized architecture does not sacrifice single-domain performance. The hardware overhead for this flexibility is modest, requiring only 31% more logic (LUTs) than a single-purpose PE design.
5. Conclusion and Future Work
GCV-Turbo demonstrates that a unified, resource-sharing architecture is superior to specialized, heterogeneous cores for modern hybrid CV workloads. By treating data manipulation as a primary architectural concern, it eliminates the overhead typically associated with CNN-GNN transitions. Future iterations of GCV-Turbo will focus on incorporating support for Vision Transformers (ViTs) and exploiting dynamic sparsity within feature maps to further enhance efficiency.
Summary updated