Skip to main content
QUICK REVIEW

[Paper Review] Soft Conditional Computation.

Brandon Yang, Gabriel Bender|arXiv (Cornell University)|Apr 10, 2019
Advanced Neural Network ApplicationsComputer Science15 references7 citations
TL;DR

This paper proposes Conditionally Parameterized Convolutions (CondConv), a method that learns specialized convolutional kernels for each input example, enabling larger network capacity without increasing inference cost. By replacing standard convolutions in EfficientNet-B0 with CondConv, the approach achieves 78.3% top-1 accuracy on ImageNet with only 413M multiply-adds, setting a new state of the art.

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: this https URL.

Motivation & Objective

  • To address the limitation of fixed, shared convolutional kernels across all inputs in standard CNNs.
  • To enable larger, more expressive networks without increasing inference cost.
  • To improve the accuracy and inference cost trade-off in existing CNN architectures.
  • To demonstrate the effectiveness of conditional kernel parameterization on classification and detection tasks.

Proposed method

  • CondConv learns a routing network that predicts kernel weights for each input example.
  • Each convolutional kernel is a weighted sum of a set of basis kernels, with the weights determined by the input.
  • The routing network is differentiable and trained end-to-end with the rest of the network.
  • The method replaces standard convolutions in existing architectures like EfficientNet with CondConv layers.
  • The approach maintains computational efficiency by using a small number of basis kernels per layer.
  • The model is trained using standard backpropagation with gradient-based optimization.

Experimental results

Research questions

  • RQ1Can conditional kernel parameterization improve model capacity without increasing inference cost?
  • RQ2How does CondConv affect the accuracy and FLOP trade-off in existing CNNs?
  • RQ3Does CondConv generalize across different tasks such as image classification and object detection?
  • RQ4What is the optimal number of basis kernels for effective performance scaling?
  • RQ5Can CondConv achieve state-of-the-art performance on ImageNet with low FLOP count?

Key findings

  • CondConv applied to EfficientNet-B0 achieves 78.3% top-1 accuracy on ImageNet, setting a new state of the art.
  • The model achieves this performance with only 413M multiply-adds, indicating high efficiency.
  • The method improves the accuracy and inference cost trade-off across multiple CNN architectures.
  • The performance gain is attributed to the ability to learn specialized kernels per input example.
  • The approach maintains low inference cost by using a small number of basis kernels and conditional routing.
  • Code and checkpoints for the CondConv layer and models are publicly available.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.