Skip to main content
QUICK REVIEW

[Paper Review] Dynamic Capacity Networks

Amjad Almahairi, Nicolas Ballas|arXiv (Cornell University)|Nov 24, 2015
Advanced Neural Network ApplicationsComputer Science27 references8 citations
TL;DR

This paper introduces the Dynamic Capacity Network (DCN), a neural network that adaptively allocates high-capacity computation to task-relevant input regions using a gradient-based hard-attention mechanism. By combining low-capacity sub-networks for global inference and high-capacity sub-networks for selective regions, DCNs reduce computational cost by up to 80% while achieving state-of-the-art performance on Cluttered MNIST and SVHN, even without prior knowledge of digit locations.

ABSTRACT

We introduce the Dynamic Capacity Network (DCN), a neural network that can adaptively assign its capacity across different portions of the input data. This is achieved by combining modules of two types: low-capacity sub-networks and high-capacity sub-networks. The low-capacity sub-networks are applied across most of the input, but also provide a guide to select a few portions of the input on which to apply the high-capacity sub-networks. The selection is made using a novel gradient-based attention mechanism, that efficiently identifies input regions for which the DCN's output is most sensitive and to which we should devote more capacity. We focus our empirical evaluation on the Cluttered MNIST and SVHN image datasets. Our findings indicate that DCNs are able to drastically reduce the number of computations, compared to traditional convolutional neural networks, while maintaining similar or even better performance.

Motivation & Objective

  • To address the inefficiency of uniform computation in deep networks, where all input regions are processed with equal capacity despite uneven information distribution.
  • To develop a conditional computation mechanism that dynamically allocates high-capacity sub-networks only to relevant input regions, reducing inference cost.
  • To enable effective performance in transfer learning scenarios where training data is canonicalized but test data is noisy or cluttered, such as in SVHN.
  • To train the attention mechanism end-to-end via backpropagation without reinforcement learning or policy networks.

Proposed method

  • The DCN architecture combines two types of sub-networks: low-capacity coarse networks applied globally, and high-capacity fine networks applied only to selected regions.
  • The coarse network generates feature maps that guide a novel gradient-based hard-attention mechanism to identify input patches where the network’s output is most sensitive.
  • The attention mechanism selects specific spatial patches based on gradient magnitudes, enabling selective application of the high-capacity fine network.
  • The model is trained end-to-end using backpropagation, avoiding the need for reinforcement learning or differentiable relaxation of hard attention.
  • The coarse and fine networks are trained independently, and the attention mechanism is applied at test time, enabling efficient transfer learning.
  • The method uses a convex combination of cross-entropy loss and attention hints during training to stabilize the attention learning.

Experimental results

Research questions

  • RQ1Can a neural network dynamically allocate computational capacity to only the most informative input regions, reducing overall computation without sacrificing performance?
  • RQ2Can a gradient-based hard-attention mechanism be trained end-to-end without reinforcement learning, enabling efficient and differentiable region selection?
  • RQ3How well does the DCN perform in transfer learning settings where training data is clean and test data is noisy or cluttered, such as in SVHN?
  • RQ4To what extent can the DCN reduce inference time and FLOPs compared to standard convolutional networks on large input images?

Key findings

  • On the Cluttered MNIST benchmark, the DCN achieved a test error rate of 11.6%, outperforming prior state-of-the-art models.
  • The DCN reduced inference time to 10.8ms on the largest SVHN test images, compared to 62.6ms for the full fine model, achieving a 52ms speedup.
  • The DCN achieved a 16.6% error rate on SVHN using only 3 patches at 3 scales, while the full fine model achieved 18.2%, showing that the DCN’s selective computation is more efficient.
  • The DCN reduced computational cost by up to 80% compared to standard convolutional networks, with minimal performance drop.
  • The model successfully recognized multi-digit sequences in SVHN directly from raw, cluttered images without prior knowledge of digit locations, demonstrating robustness in transfer learning.
  • The coarse model alone achieved 18.2% error, but the DCN improved this to 11.6% by selectively applying high-capacity computation only where needed.

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.