Fast-ParC: Position Aware Global Kernel for ConvNets and ViTs

Tao Yang, Haokui Zhang, Wenze Hu, Changwen Chen, Xiaoyu WangarXiv 2022 · DOI

Abstract

Fast-ParC introduces a novel "plug-and-play" neural network operation that provides Convolutional Neural Networks (ConvNets) with a global receptive field comparable to Vision Transformers (ViTs) while maintaining superior computational efficiency. By integrating global circular kernels, positional embeddings, and Fast Fourier Transform (FFT) acceleration, Fast-ParC achieves state-of-the-art performance across classification, detection, and segmentation tasks. This approach effectively bridges the gap between the strong inductive bias of convolutions and the global modeling capabilities of self-attention.

Introduction

The computer vision landscape is currently defined by a trade-off between Convolutional Neural Networks (ConvNets) and Vision Transformers (ViTs). ConvNets are highly efficient and possess a strong inductive bias for local patterns, yet they suffer from a limited receptive field. Conversely, ViTs utilize self-attention to capture global relationships across an entire image, but this comes at a quadratic computational cost ($O(n^2)$) relative to pixel count.

Existing hybrid models often introduce significant engineering complexity or lack optimized hardware support. Fast-ParC addresses this by proposing a pure convolutional operation that captures global features as effectively as a Transformer while operating with the efficiency and hardware-friendliness of a standard CNN.

Methodology

The core of this work is ParC (Position-aware circular convolution) and its accelerated variant, Fast-ParC. The architecture is built upon several key design innovations:

  1. Global Circular Kernels: Unlike standard $3 \times 3$ kernels, ParC employs kernels that match the full resolution of the feature map. To avoid the "edge blindness" caused by traditional zero-padding in large kernels, ParC uses periodic (circular) padding, ensuring every pixel interacts with valid kernel weights.
  2. Positional Embedding: Circular convolution can inherently lose absolute spatial information. To counteract this, learnable positional embeddings are added prior to the convolution, which is critical for location-sensitive tasks like object detection and semantic segmentation.
  3. 1D Decomposition: To maintain a low parameter count, the 2D global convolution is decomposed into two 1D passes—horizontal (ParC-H) and vertical (ParC-V).
  4. FFT Acceleration (Fast-ParC): By leveraging the Convolution Theorem, circular convolution is implemented as a point-wise product in the frequency domain using the Fast Fourier Transform. This reduces complexity from $O(n^{3/2})$ to $O(n \log n)$.
Architecture of ParC-V and ParC-H modules showing positional embedding and circular convolution logic.

Experimental Results

Fast-ParC was evaluated by integrating it into established architectures such as ResNet50, MobileNetV2, and ConvNeXt across several benchmarks:

  • ImageNet-1K (Classification): MobileViT-ParC-S achieved 78.6% Top-1 accuracy with only 5.0M parameters, outperforming the baseline MobileViT-S (78.4% with 5.6M parameters).
  • MS-COCO (Detection & Segmentation): ResNet50-ParC improved the box AP by 0.6 points while reducing the parameter count from 25.6M to 23.7M.
  • Hardware Efficiency: On specialized neural processors like the DP2000, ParC-based models demonstrated up to a 3.77x speedup over vanilla ViT counterparts while maintaining accuracy.

Analysis of Receptive Fields

A critical insight of this research is the visualization of the Effective Receptive Field (ERF). Standard CNNs typically focus on a small central region, regardless of the theoretical depth. In contrast, ParC-based models exhibit a "cruciform" global reach, allowing the network to perceive the entire spatial extent of objects simultaneously.

Effective Receptive Field (ERF) comparison between vanilla models and ParC-based variants across different resolutions.

Qualitative analysis using Grad-CAM further supports this, showing that ParC-based models focus on entire object instances (e.g., a whole animal) rather than isolated local features (e.g., just a head or limb), which significantly improves performance in complex, multi-object scenes.

Conclusion and Future Work

Fast-ParC provides a mathematically robust and hardware-efficient method for granting ConvNets a global view. While the current implementation is sensitive to input resolution changes between training and inference, it represents a significant step toward unifying the strengths of CNNs and Transformers. Future research will explore "Dynamic-ParC," where kernels are generated adaptively based on input content, and further optimizations to reduce peak memory overhead during FFT operations.

Summary updated

BibTeX
@misc{yang2022fast,
  author = {Tao Yang and Haokui Zhang and Wenze Hu and Changwen Chen and Xiaoyu Wang},
  title = {{Fast-ParC: Position Aware Global Kernel for ConvNets and ViTs}},
  year = {2022},
  eprint = {2210.04020},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.04020},
}
Figure