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

Learnable Heterogeneous Convolution: Learning both topology and strength

Rongzhen Zhao, Zhenzhi Wu, Qikun ZhangNeural Networks 2021

Abstract

Existing convolution techniques in artificial neural networks suffer from huge computation complexity, while the biological neural network works in a much more powerful yet efficient way. Inspired by the biological plasticity of dendritic topology and synaptic strength, our method, Learnable Heterogeneous Convolution, realizes joint learning of kernel shape and weights, which unifies existing handcrafted convolution techniques in a data-driven way. A model based on our method can converge with structural sparse weights and then be accelerated by devices of high parallelism. In the experiments, our method either reduces VGG16/19 and ResNet34/50 computation by nearly 5x on CIFAR10 and 2x on ImageNet without harming the performance, where the weights are compressed by 10x and 4x respectively; or improves the accuracy by up to 1.0% on CIFAR10 and 0.5% on ImageNet with slightly higher efficiency.

Introduction

Convolutional Neural Networks (CNNs) have become the cornerstone of modern computer vision. However, their high computational complexity often limits their deployment on resource-constrained devices. Traditional approaches to efficiency include post-training pruning, expensive Neural Architecture Search (NAS), or the design of handcrafted efficient operators like Depth-wise or Group-wise convolutions. A fundamental limitation of these methods is the "rigid" nature of standard convolutions, which typically assume fixed square kernel shapes (e.g., $3\times3$).

In contrast, biological neural networks exhibit remarkable efficiency through plasticity—the ability to adapt both the strength of synaptic connections and the physical topology of dendritic structures. This paper introduces Learnable Heterogeneous Convolution (LHC), a novel layer that mimics this dual plasticity by simultaneously learning kernel weights and shapes in a data-driven manner.

Methods: Learnable Heterogeneous Convolution

The core of LHC is a masking mechanism that allows the network to "evolve" its own kernel shapes during training. Instead of a fixed $3\times3$ grid, LHC treats the kernel topology as a learnable parameter through "effect factors."

The Learnable Heterogeneous Convolution (LHC) block, illustrating the joint learning of masks (topology) and kernels (strength).

The authors propose two primary variants of LHC:

  1. LHCR (Rigid): The model selects from 15 empirically designed rigid shapes (e.g., lines, crosses).
  2. LHCF (Free): The model has the freedom to choose any of the $2^9 = 512$ possible binary masks for a $3\times3$ kernel.

To ensure hardware efficiency, LHC employs structural sparsity. By grouping kernel slices, the method avoids the fragmented computation issues common in unstructured pruning. The architecture is supported by a hardware-friendly design utilizing an Address Generation Unit (AGU) and an Address Look-Up Table (ALUT) to skip zero-value computations during inference.

Experimental Evaluation

LHC was evaluated by replacing standard layers in mainstream architectures such as VGG16/19 and ResNet34/50 on the CIFAR10 and ImageNet datasets.

Efficiency and Compression: On CIFAR10, LHC achieved nearly a 5× reduction in computation and a 10× compression of weights without sacrificing accuracy. On the larger ImageNet dataset, it delivered a 2× computation reduction and 4× weight compression.

Accuracy Improvements: Beyond efficiency, LHC often improved model performance. In several configurations, Top-1 accuracy increased by up to 1.0% on CIFAR10 and 0.5% on ImageNet. Spectral analysis suggests this is due to more uniform utilization of the network's capacity compared to standard dense convolutions.

Comparison of kernel topologies across different convolution types, showing the heterogeneous nature of LHCR and LHCF compared to standard (STD) kernels.

Key Insights and Discussion

  • Unification of Operators: LHC acts as a "super-set" of existing efficient convolutions. Under specific constraints, it can degenerate into Group-wise (GWC) or Depth-wise (DWC) convolutions, providing a unified framework for discovering optimal operators.
  • Layer-wise Evolution: Observations of learned topologies revealed that lower layers tend to retain denser shapes for basic feature extraction, while deeper layers evolve highly sparse, abstract shapes. This mirrors biological information processing hierarchies.

Conclusion

Learnable Heterogeneous Convolution offers a powerful, biologically-inspired alternative to rigid standard convolutions. By learning both topology and strength, it achieves significant gains in efficiency and accuracy. While the training process involves some overhead and full hardware speedups require specialized logic, LHC represents a significant step toward more flexible and efficient neural architectures.

Summary updated

BibTeX
@inproceedings{zhao2021learnable,
  author = {Rongzhen Zhao and Zhenzhi Wu and Qikun Zhang},
  title = {{Learnable Heterogeneous Convolution: Learning both topology and strength}},
  booktitle = {Neural Networks},
  year = {2021},
  url = {https://openreview.net/forum?id=BYu32tcHxr},
}
Figure