NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Slim-neck by GSConv: A lightweight-design for real-time detector architectures

Hu-Lin Li, Jun Li, Hanbing Wei, Zheng Liu, Zhenfei Zhan, Ren Qi-liangarXiv 2022 · DOI

Abstract

Real-time object detection is significant for industrial and research fields. On edge devices, a giant model is difficult to achieve the real-time detecting requirement and a lightweight model built from a large number of the depth-wise separable convolutional could not achieve the sufficient accuracy. We introduce a new lightweight convolutional technique, GSConv, to lighten the model but maintain the accuracy. The GSConv accomplishes an excellent trade-off between the accuracy and speed. Furthermore, we provide a design suggestion based on the GSConv, Slim-Neck (SNs), to achieve a higher computational cost-effectiveness of the real-time detectors. The effectiveness of the SNs was robustly demonstrated in over twenty sets comparative experiments. In particular, the real-time detectors of ameliorated by the SNs obtain the state-of-the-art (70.9% AP50 for the SODA10M at a speed of ~ 100FPS on a Tesla T4) compared with the baselines.

Introduction: The Efficiency-Accuracy Trade-off

Real-time object detection on edge devices—such as mobile phones or embedded systems—faces a significant challenge often referred to as the "Goldilocks" problem. Standard Convolutions (SC) are highly accurate because they process all channel information simultaneously, but they are computationally prohibitive for limited hardware. Conversely, Depth-wise Separable Convolutions (DSC), popularized by architectures like MobileNet, are incredibly fast but often suffer from lower accuracy because they sever the connections between channels during calculation, losing vital spatial and semantic information.

Comparison of Standard Convolution (SC) and Depth-wise Separable Convolution (DSC) architectures.

Existing solutions like channel shuffling (ShuffleNet) or "cheap operations" (GhostNet) have attempted to bridge this gap, but they often fall short of the representational power of standard convolutions. This research introduces GSConv, a method designed to be nearly as fast as DSC while maintaining the accuracy of SC.

Methodology

GSConv: A Hybrid Convolutional Module

GSConv is the core building block of this proposal. It utilizes a hybrid approach that combines the strengths of both SC and DSC. The module passes half of the input through an SC layer and the other half through a DSC layer. The results are then concatenated and processed via a shuffle operation. This operation permeates the high-density channel information from the SC branch into the lightweight features of the DSC branch, effectively "mixing" the information to preserve representational power.

The Slim-Neck (SNs) Architecture

A key insight of this paper is that applying lightweight convolutions indiscriminately (e.g., in the backbone) can actually degrade performance. In the backbone, spatial information is being compressed into channels; using DSC here loses too much data.

Instead, the authors propose the Slim-Neck design. By keeping the backbone standard to extract rich features and using GSConv specifically in the "neck" (where features are fused), the model optimizes computation where feature maps are "slender"—characterized by high channel counts and low spatial resolution. This is the optimal stage to reduce computation without sacrificing semantic meaning.

VoV-GSCSP Block

Building on GSConv, the researchers designed a "One-Shot Aggregation" module (VoV-GSCSP). This module enhances the model's learning ability while remaining hardware-friendly by using linear fusion approaches supported by most edge computing hardware.

Experimental Results

The effectiveness of the Slim-Neck architecture was validated across several diverse benchmarks, including VOC07+12, WiderPerson, SODA10M, and DOTA1.0.

  • SODA10M Performance: Detectors enhanced with Slim-Neck achieved a state-of-the-art 70.9% AP50 at a speed of ~100 FPS on a Tesla T4 GPU.
  • Efficiency Gains: On the VOC07+12 dataset, a GSConv-based YOLOv5n reduced parameters by approximately 36% and FLOPs by 19% compared to the baseline, while actually improving accuracy (AP50 increased from 58.0% to 58.9%).
  • Edge Deployment: When tested on a Jetson Nano, the SNs-Yolov7-tiny model achieved 62.7% AP50, outperforming the baseline Yolov7-tiny (61.9%) while maintaining higher computational efficiency.

Conclusion

GSConv and the Slim-Neck architecture provide a robust framework for optimizing real-time detectors for edge deployment. By strategically placing hybrid convolutional modules in the neck of the network, the design achieves a superior trade-off between speed and accuracy. While GSConv is not a universal replacement for all layers—as excessive depth can increase data flow resistance—it represents a significant step forward in hardware-efficient deep learning.

Summary updated

BibTeX
@misc{li2022slim,
  author = {Hu-Lin Li and Jun Li and Hanbing Wei and Zheng Liu and Zhenfei Zhan and Ren Qi-liang},
  title = {{Slim-neck by GSConv: A lightweight-design for real-time detector architectures}},
  year = {2022},
  eprint = {2206.02424},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.02424},
}
Figure