CondConv: Conditionally Parameterized Convolutions for Efficient Inference

Brandon Yang, Gabriel Bender, Quoc V. Le, Jiquan Ngiam
4/10/2019
cs.CVcs.AIcs.LG

Official code: tensorflow/tpu (5,282 stars, Apache-2.0, last commit 2026-06-22).

Abstract

Convolutional layers are one of the basic building blocks of modern deep neural networks. One fundamental assumption is that convolutional kernels should be shared for all examples in a dataset. We propose conditionally parameterized convolutions (CondConv), which learn specialized convolutional kernels for each example. Replacing normal convolutions with CondConv enables us to increase the size and capacity of a network, while maintaining efficient inference. We demonstrate that scaling networks with CondConv improves the performance and inference cost trade-off of several existing convolutional neural network architectures on both classification and detection tasks. On ImageNet classification, our CondConv approach applied to EfficientNet-B0 achieves state-of-the-art performance of 78.3% accuracy with only 413M multiply-adds. Code and checkpoints for the CondConv Tensorflow layer and CondConv-EfficientNet models are available at: https://github.com/tensorflow/tpu/tree/master/models/official/efficientnet/condconv.

View on arXivView PDF

Code Implementations(1)

tensorflow/tpuOfficial100%
Apache-2.0

Reference models and tools for Cloud TPUs.

5,2821,751C, GoJul 11, 20174 months agoApache-2.0

Cite this paper

@article{yang2019condconv,
  title  = {CondConv: Conditionally Parameterized Convolutions for Efficient Inference},
  author = {Brandon Yang and Gabriel Bender and Quoc V. Le and Jiquan Ngiam},
  year   = {2019},
  eprint = {1904.04971},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.04971}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1904.04971.svg)](https://codeofpaper.com/paper/1904.04971)

Discussion