Abstract
Convolutional Neural Networks (CNNs) have become indispensable for solving machine learning tasks in speech recognition, computer vision, and other areas that involve high-dimensional data. A CNN filters the input feature using a network containing spatial convolution operators with compactly supported stencils. In practice, the input data and the hidden features consist of a large number of channels, which in most CNNs are fully coupled by the convolution operators. This coupling leads to immense computational cost in the training and prediction phase. In this paper, we introduce LeanConvNets that are derived by sparsifying fully-coupled operators in existing CNNs. Our goal is to improve the efficiency of CNNs by reducing the number of weights, floating point operations and latency times, with minimal loss of accuracy. Our lean convolution operators involve tuning parameters that controls the trade-off between the network's accuracy and computational costs. These convolutions can be used in a wide range of existing networks, and we exemplify their use in residual networks (ResNets). Using a range of benchmark problems from image classification and semantic segmentation, we demonstrate that the resulting LeanConvNet's accuracy is close to state-of-the-art networks while being computationally less expensive. In our tests, the lean versions of ResNet in most cases outperform comparable reduced architectures such as MobileNets and ShuffleNets.
Introduction
Standard Convolutional Neural Networks (CNNs) are computationally "heavy" because their layers are typically fully coupled. In a standard layer, every input channel interacts with every output channel across a spatial window (e.g., $3 \times 3$). This leads to a parameter count and computational cost proportional to $C_{in} \times C_{out} \times \text{kernel size}$. While mobile-friendly architectures like MobileNet use depth-wise separable convolutions to break this coupling, they often apply spatial and channel-wise operations sequentially, which can lead to memory bottlenecks and accuracy loss. LeanConvNets seek a structured, "lean" way to sparsify convolutions that maintains high accuracy and maps efficiently to parallel hardware.
Methodology: The Lean Convolutional Operator
The core innovation is the Lean Convolutional Operator, which redefines how channels and space interact through a hybrid approach.
The Hybrid Operator and Sparse Stencils
Instead of a single dense convolution, LeanConvNets utilize a hybrid operator: the sum of a $1 \times 1$ convolution (handling channel coupling) and a sparse, grouped spatial convolution. To further reduce costs, the standard 9-point $3 \times 3$ stencil is replaced with sparse alternatives, such as 5-point "cross" shapes or 1D stencils. This move is motivated by Partial Differential Equation (PDE) theory, which suggests that a 5-point stencil is sufficient to express mass terms and discretize first and second spatial derivatives, while ignoring redundant "mixed" partial derivatives found in the corners of a $3 \times 3$ kernel.
Tunable Grouping and Sparsity
By adjusting the group size ($g$) in the spatial component, researchers can trade off between computational budget and accuracy. Unlike MobileNet, which separates depth-wise and point-wise operations with an activation layer in between, LeanConvNets sum them. This allows for better hardware optimization because the spatial filtering can happen while the data is already in shared memory for the $1 \times 1$ matrix multiplication, reducing global memory passes.
Experimental Evaluation
The authors evaluated LeanConvNets across a wide variety of standard benchmarks, including ImageNet, CIFAR-100, and Cityscapes.
- ImageNet Classification: A LeanResNeXt model with only 3.9M parameters achieved 72.1% top-1 accuracy, slightly outperforming MobileNetV2 (71.9% with 3.47M params) and significantly outperforming ShiftResNet (70.1% with 4.1M params).
- Semantic Segmentation: On the Cityscapes dataset, LeanResNet34 backbones achieved a Mean Intersection over Union (mIoU) of 61.7%, notably higher than MobileNetV2 (56.9%) and ShuffleNetV2 (53.5%) when used in a U-Net architecture.
- Efficiency: Custom CUDA implementations showed that as the number of channels increases, the overhead of the spatial convolution becomes negligible compared to the $1 \times 1$ part, effectively providing "spatial filtering for free" by minimizing memory bandwidth bottlenecks.
Conclusion
LeanConvNets introduce a new family of efficient convolutional layers that replace standard, "fully-coupled" convolutions with a hybrid operator. By leveraging PDE-motivated sparse stencils and fused hardware implementations, these networks significantly reduce parameters and FLOPs while maintaining or exceeding the accuracy of popular mobile architectures. Future work will investigate optimization for non-GPU devices like smartphones and drones, as well as applications in high-dimensional imaging.
Summary updated