Elamur Research

Batch-Shaping for Learning Conditional Channel Gated Networks

Paper · 2019 · Babak Ehteshami Bejnordi, Tijmen Blankevoort and Max Welling

Summary

An image recognition network typically computes the same set of features for every picture. Yet the features that help separate similar animals may be irrelevant to a picture of a street, and a crowded street may call for distinctions that a quieter scene does not. The authors ask whether a network can learn a large collection of features while computing only the ones it needs for the image in front of it. Their design gives individual convolutional channels switches, called gates. Each gate looks at information already available inside the network and decides whether to compute a particular feature. The network can vary both which features it uses and how many it uses from image to image.

The difficulty is getting the switches to remain responsive to the input as the network learns. In early training, the authors found that many gates settled into doing the same thing for nearly every example. They counter this with batch-shaping, a training penalty that gives each gate a target distribution for its scores across a batch of images. The distribution encourages a mix of low and high scores, so a gate can learn to open for some images and close for others. The penalty fades during training, leaving room for widely useful features to become consistently active. A separate penalty introduced later raises the cost of opening gates and lets the authors try different balances of prediction quality and computation.

The comparison on ImageNet illustrates what that balance can buy. At an average arithmetic cost comparable to the ungated ResNet18 baseline, the experiments section reports top-1 accuracy of 72.55% for the gated ResNet34 and 74.40% for the gated ResNet50. The baseline reached 69.76%. The abstract gives 74.60% for the gated ResNet50 in a similar-cost comparison and leaves the difference between the reported figures unexplained. The CIFAR-10 results also show that a deeper gated network can outperform a shallower one at comparable average computation. In a preliminary Cityscapes segmentation experiment, gating improved both the overlap between predicted and annotated regions and the fraction of correctly labeled pixels while reducing the arithmetic count.

Average savings alone cannot tell whether a network changes its computation from one image to the next. In a separate ImageNet comparison at the same sparsity, most gates trained with batch-shaping changed state across validation images, whereas a large number of gates trained with the complexity penalty alone were effectively closed for every image. The authors also show examples in which visually demanding scenes use more features, alongside cases where relatively inexpensive images still activate specialized features deep in the network. Together, these observations explain what the authors gain by training the switches to respond to individual inputs before asking the network to use fewer of them.

Deep dive: Batch-Shaping for Learning Conditional Channel Gated Networks

Batch-shaping teaches image recognition networks to choose which convolutional channels to compute for each input, balancing accuracy and cost. · about 35 minutes to read

The problem and its context

Why the cost of a prediction can depend on the image

A convolutional network builds up an image representation by applying learned filters. A filter produces a feature map, a grid of responses that records how strongly the filter responds at different positions. Each map occupies a channel in the representation passed onward. In an ordinary dense pass through the network, every filter scheduled for a layer is applied to every image. Some responses may end up small, but by the time those responses are available, the work of producing them has already been done.

The paper asks whether the network can decide to leave out some of that work in advance. Its example concerns the features needed to tell dog breeds apart. Such features can be useful to have available across an image collection even if many pictures contain no dog. If the representation entering a block already carries clues about what is in the picture, the authors reason that those clues can help select the computations that refine it. A gate's job is to make that choice from the information available at its own location in the network.

This proposal distinguishes the capacity available across a dataset from the work done on an individual input. Increasing depth provides more stages at which a network can transform its representation. Increasing width provides more channels within those stages. The paper treats both as ways to expand what a network can learn, citing prior research on residual architectures and wider variants. In a dense architecture, additional capacity generally comes with additional training and inference work. The authors' hypothesis concerns inference in particular. A network with more available depth or width might retain the advantage of that capacity while using only part of it on a typical image. Deep Residual Learning for Image Recognition · Wide Residual Networks

The paper places this question under conditional computation. In a gated connection, information from one part of a network controls whether another contribution is allowed through. The authors trace the idea back through work on connections with a binary control, including gated restricted Boltzmann machines for learning image transformations. They also point to the Mixture of Experts as an early use of gating to build a sparse network. The channel is the unit of selection in the present paper. This gives the network a decision to make about an individual feature within a convolutional layer.

How earlier approaches reduced computation

Static compression starts with the goal of finding a smaller computation that can serve all inputs. The paper describes methods that factor a layer into more economical operations and methods that prune complete channels. It also cites approaches that eliminate channels during training through a sparsity penalty or a compression objective. Permanent removal can be appropriate when a channel contributes little across the dataset. It cannot preserve a channel for the occasional input on which that channel is useful. Conditional gating makes it possible to keep the filter available and leave it idle much of the time.

Early-exit networks make an input-dependent decision at the level of the prediction path. In the paper's descriptions of BranchyNet and the multi-scale dense network, an easy example may receive a prediction at an intermediate stage, while a harder example goes on to later stages. The channel-gated architecture makes choices inside the stages that an example traverses. An image can reach a deep block using few channels along the way, and a deep block can still compute a feature that proves useful for that image. The authors propose combining the two approaches as future work.

Other techniques place the decision in space. One line of work adjusts how many layers are executed for different image regions. Another uses a convolution that operates on selected parts of a feature map. The paper also describes a method organized around spatial tiles that demonstrates an improvement in elapsed processing time. These techniques address the fact that different locations within an image can call for different amounts of work. A channel switch in the authors' architecture applies across the spatial extent of a feature map, so its decision concerns whether to compute that type of response anywhere in the map.

The closest alternatives differ in how much choice they give the network at each decision. ConvNet-AIG and SkipNet switch entire residual blocks on or off. Their controller can save all the work of a block, but the block is a single unit from the controller's point of view. Dynamic Channel Pruning selects individual channels, which is much closer to the authors' design. Its selection uses a fixed number of the highest-ranked candidates. That rule lets the identity of the active filters vary without giving that decision the same freedom to vary the number of active filters. Gaternet also selects channels, but uses a separate gating network. The authors question whether that extra computation is needed and whether the learned gates vary enough across inputs.

Why putting switches in the network is only part of the problem

A gate can be available to make an image-dependent decision and still learn a nearly constant policy. If some switches close for almost all images, the network can lower its average arithmetic count simply by settling into a smaller effective architecture. That is a valid way to save work. It leaves less room for the behavior that motivated the paper, where different images make use of different parts of a larger feature collection. This is why the authors treat the training objective as a separate contribution from the block design.

The distinction also affects how the paper thinks about interpreting a network. Gate decisions give researchers a record of when a filter was selected. They can look for categories or image patterns associated with a particular gate, which is a narrower question than trying to explain the entire prediction. The authors also see a possible connection to continual learning, where a network learns from data presented in sequence and can lose abilities acquired earlier. Their proposed mechanism is that an inactive part of the network could avoid updates while a different task is being learned. That possibility motivates the design, while the experiments address image prediction and the behavior of gates. Interpretability

The method, step by step

Make a decision before computing the feature map

The authors insert the gates into a residual block. A residual block receives a representation and learns an update to it. The existing representation travels along a shortcut, while convolutions in the residual branch build the update. The block adds the two paths and applies an activation function. This structure gives the authors a place to make selective computations while preserving a route for the incoming representation to reach the output.

Inside the residual branch, the first convolution would ordinarily produce all the channels expected by the next convolution. The gate module instead uses the block's input to decide which of those intermediate channels should be present. An inactive channel creates an opportunity to save work on both sides of the intermediate representation. The first convolution can skip producing the map, and the next convolution can omit the map's contribution to every output channel. The block can still update the complete output representation, because each retained intermediate map can contribute to that update.

The gate module begins by averaging each input channel over its spatial positions. It therefore receives one value per channel, regardless of where the responses occurred within the map. A small fully connected network combines those averages and produces a score for each candidate intermediate channel. A binary decision determines which maps to compute. The residual equation places the mask after the inner activation, but the module has already made its decision from the block input. An implementation can use that decision to select the filters before performing either convolution.

How a gated residual block processes an image

The steps in order.

How a gated residual block processes an imageStep 1: Receive the block's input feature maps1. Receive the block's input feature mapsStep 2: Average each channel over spatial positions2. Average each channel over spatial positionsStep 3: Compute scores for the intermediate channels3. Compute scores for the intermediate channelsStep 4: Convert scores into binary gate decisions4. Convert scores into binary gate decisionsStep 5: Compute and activate the selected intermediate maps5. Compute and activate the selected intermediate mapsStep 6: Combine those maps in the next convolution6. Combine those maps in the next convolutionStep 7: Add the shortcut and apply the output activation7. Add the shortcut and apply the output activation

Expressing the residual block and its gates

The paper starts from the following residual block equation.

xₗ₊₁ = r(F(xₗ) + xₗ)

Here l is the block index, xₗ is the input representation and xₗ₊₁ is the output representation. F is the learned transformation on the residual branch. The + inside r adds the branch's output to the shortcut. The + in the output subscript advances the index to the next representation. The function r is a rectified linear unit, or ReLU. It passes through positive responses and suppresses negative ones.

The input representation has the following shape.

xₗ ∈ ℝ^(cˡ × wˡ × hˡ)

xₗ is the input to block l. The symbol ∈ indicates that the tensor belongs to the real-valued space denoted by ℝ with the indicated dimensions. cˡ, wˡ and hˡ give its channel count, width and height. The superscript l identifies the representation. The × signs separate its dimensions.

The output is described in corresponding notation.

xₗ₊₁ ∈ ℝ^(cˡ⁺¹ × wˡ⁺¹ × hˡ⁺¹)

xₗ₊₁ is the output of block l. The ∈ sign again denotes membership, ℝ indicates real-valued entries and × separates the dimensions. The quantities cˡ⁺¹, wˡ⁺¹ and hˡ⁺¹ specify the output channel count and spatial dimensions at index l+1.

For the block used to introduce the method, the residual transformation comprises successive convolutions with an activation in between.

F(xₗ) = W₂ ∗ r(W₁ ∗ xₗ)

F(xₗ) is the residual update computed from the input xₗ at block l. W₁ and W₂ are the weight tensors for the first and second convolutions, respectively. The ∗ signs denote convolution and r is ReLU. The authors also use batch normalization after the convolutional layers. The displayed equation isolates the main transformations so that the location of the gate can be seen when it is added.

The first convolution takes the block input channels to the intermediate channels.

W₁ ∈ ℝ^(cˡ × (c₁)ˡ⁺¹ × k × k)

W₁ is the first weight tensor and ∈ places it in a space of real-valued tensors, marked ℝ. cˡ is the input channel count of block l, and (c₁)ˡ⁺¹ is the intermediate channel count, indicated by the subscript 1. k gives the side length of the square convolution kernel. The × signs delimit the axes for incoming channels, outgoing channels and the spatial dimensions of the kernel.

The next convolution takes the intermediate channels to the output channels of the residual branch.

W₂ ∈ ℝ^((c₁)ˡ⁺¹ × cˡ⁺¹ × k × k)

W₂ is the second weight tensor, ∈ denotes membership and ℝ indicates real entries. (c₁)ˡ⁺¹ counts the channels shared by the two convolutional layers. cˡ⁺¹ is the output channel count for the block indexed by l, and each k is the length of a spatial side of the kernel. The × signs separate these axes.

With gating, the equation becomes the following.

xₗ₊₁ = r(W₂ ∗ (G(xₗ) · r(W₁ ∗ xₗ)) + xₗ)

G is the gate module, and G(xₗ) is its vector of decisions for block input xₗ. The dot · multiplies each intermediate map by its own gate value at every spatial position. W₁ and W₂ are the convolutional weights, ∗ denotes convolution and r denotes ReLU. The residual update and the shortcut xₗ are added by + before the outer activation produces xₗ₊₁. The indices refer to the current and next representations.

The module's output has an entry for every intermediate map.

G(xₗ) = [g₁, g₂, g₃, …, g_(c₁)ˡ⁺¹]

G(xₗ) is the vector evaluated on the current block input xₗ. Each g is a channel decision, with its subscript indicating the channel position. The brackets enclose the vector, the ellipsis indicates continuation and (c₁)ˡ⁺¹ identifies its last channel. At the level of an individual decision, the paper uses a binary value.

g꜀ ∈ {0, 1}

g꜀ is the gate for intermediate channel c. The membership sign ∈ restricts its value to the set in braces. 0 means the first convolution does not need to compute that channel, and 1 means the channel is retained. The same decision determines whether the next convolution receives that channel's contribution.

The placement of this multiplication matters during training as well as execution. When the switch is closed, the activated map is multiplied by zero, which blocks the prediction gradient through that map. The authors report that placing the gate before the ReLU led to unstable training. They also tried arrangements with more gate locations, including placements around convolutional layers, and favored the design that gates the representation between the convolutions. That placement leaves the first convolution's selected filters free to use the full input and lets the second convolution send updates to all output channels.

Giving a binary decision a training signal

Global average pooling supplies the gate module with a vector of channel averages. Its first fully connected layer produces a hidden representation, followed by batch normalization and ReLU. The second layer maps that representation to the scores for the gates. The paper specifies the weights of the first layer as follows.

Wg₁ ∈ ℝ^(cˡ × 16)

Wg₁ denotes the weights of the first fully connected layer in G. The sign ∈ denotes membership in the space of real-valued matrices indicated by ℝ. cˡ is the input channel count at block l, 16 is the number of hidden units and × separates the two dimensions.

The weights for the output projection have the complementary shape.

Wg₂ ∈ ℝ^(16 × (c₁)ˡ⁺¹)

Wg₂ denotes the second fully connected weight matrix in G. The symbol ∈ again denotes membership, ℝ indicates real entries and × separates dimensions. The projection takes the 16 hidden values to (c₁)ˡ⁺¹ gate scores, one for each intermediate channel in block l.

The paper writes the score for a channel using a log parameterization.

π̂ₖ = ln(πₖ)

π̂ₖ is the unnormalized score, or logit, for gate index k. πₖ is the positive quantity whose natural logarithm ln gives that score. Here k selects a gate and has a different local meaning from the kernel side length in the convolution shapes. The authors report that the additional multiply-accumulate work of the gate module accounts for 0.018%–0.087% of a residual block's multiply-accumulate usage.

Hard gate decisions present a familiar optimization problem. An argmax selects the option with the largest score and returns a discrete choice. Small changes to the scores typically leave that choice unchanged, so ordinary differentiation through the hard decision gives no useful direction for changing it. The authors use binary Gumbel-Softmax sampling, described as a Binary Concrete relaxation. A training pass uses a discrete choice to compute the prediction, and the backward pass uses a smooth function to send a learning signal to the gate. The Concrete Distribution

The smooth function is a sigmoid with a temperature.

σᵨ(x) = σ(x / ρ)

σ is the sigmoid, a smooth function that maps a real-valued score into the unit interval. x is the score supplied to the relaxation. ρ denotes the temperature, written as τ in the paper, and σᵨ is the resulting temperature-scaled sigmoid. The division by ρ controls the steepness of the transition between low and high values. The authors use the temperature 2/3 in their experiments.

Shaping a distribution across examples

A differentiable approximation gives a gate a way to learn. It does not specify what distribution its decisions ought to have. When the authors began training the channel-gated architecture, many gates quickly gravitated toward a single state. For a feature whose usefulness depends on the image, the authors want the gate to experience a broader range of responses early enough for the associated filter to learn.

Batch-shaping takes a collection of values for the same feature across the examples in a mini-batch. A mini-batch is a group processed together during a training update. The values are sorted and compared with positions in a target distribution chosen by the authors. Sorting is useful because a distribution describes the collection of responses independently of their order. Once the values are ranked, the lowest response can be assessed against a low cumulative probability, the highest against a high probability, and the intervening values against their respective positions.

The paper calls the distribution it is shaping a marginal aggregated posterior. In this use, aggregation means collecting the output values across examples, and marginal means considering one feature at a time. The target is a prior in the sense that the authors specify the desired shape before seeing what that feature learns. The procedure does not designate which images should yield low or high values. The same list of scores would receive the same batch-shaping penalty if the scores were reassigned to different images in the batch. Learning which image should receive which score also depends on the prediction objective and on the representation supplied to the gates.

Formally, the paper considers learning a feature written X(θ). Here X is the feature and θ denotes the network parameters on which it depends. The aim is to make the feature's output distribution resemble a target density f(x), where x is a possible feature value and f describes the density at that value. The cumulative distribution function, or CDF, F(x) gives the target probability of being at or below x. An empirical CDF Fₙ(x) describes the same cumulative proportion for the sampled values. The authors begin with the Cramér–von Mises criterion.

ω² = ∫₋∞^∞ [Fₙ(x) − F(x)]² dF(x)

ω² denotes the squared discrepancy used by the criterion. Fₙ is the empirical cumulative distribution over a batch of N samples, and its subscript denotes that sample count. F is the target CDF and x ranges over possible feature values. The subtraction − compares the cumulative probabilities at the same value, and the square removes the sign of their difference. The integral ∫ runs from negative to positive infinity. The measure dF(x) weights the comparison according to the target cumulative distribution.

For the training loss, the authors replace the target integration measure with the empirical one, use sorted samples and normalize by the batch size. They write the sort operation as follows.

sort(x₁:ₙ) = x*₁:ₙ

x₁:ₙ is the sequence of sampled feature values from the first through the Nth batch entry, with ₙ denoting N in the subscript. sort orders those values from smallest to largest. The asterisk on x*₁:ₙ indicates the resulting sorted sequence.

The training objective for a single feature is the following.

S(x*, λ) = (λ / N) ∑ᵢ₌₁^N [i / (N + 1) − F(x*ᵢ)]²

S denotes the batch-shaping penalty, x* is the sorted sequence and λ sets the penalty's strength. N is the number of examples. The summation sign ∑ runs over ranks i from 1 through N. The expression i / (N + 1) assigns the rank its cumulative probability position. x*ᵢ is the value at rank i and F(x*ᵢ) is its cumulative probability under the target distribution. Subtracting these quantities gives the discrepancy for that rank. Squaring makes either direction of error contribute, and the division by N averages the contributions before scaling by λ.

The use of cumulative probability makes the loss sensitive to where the scores fall on the target distribution. A group of almost identical scores occupies many ranks but has nearly the same cumulative probability at each of them. Some ranks must then disagree with the target positions. A wider spread of scores can lower the loss when it places the values according to the desired distribution. Spreading the scores arbitrarily can still leave a discrepancy, since the loss compares each sorted value with its own position.

A sort can carry gradients back to the feature values because its output is a rearrangement of those values. The forward pass records which original example supplied each sorted entry. The backward pass evaluates the effect of the loss at the sorted position and sends that signal to the corresponding example. Where the chosen CDF is differentiable and the ordering is locally fixed, a score can receive a gradient through its contribution at its rank. The appendix describes retaining the sort indices and intermediate values for this purpose. In the paper's comparison with a histogram-based discrepancy, hard assignment to histogram bins does not provide the same route from small value changes to a gradient.

The network receives the sum of these penalties over the features whose distributions the authors want to shape. A shared target across gates still yields separate penalties for each gate. It therefore matters whether every gate varies across examples or whether only their combined counts look varied. A network can have many active and inactive channels in aggregate while individual channels are almost always in the same state. Applying the loss separately is what makes that distinction visible to the optimization.

Choosing a prior and deciding when to remove it

For the gates, the target CDF is the one associated with a Beta distribution, denoted Iₓ(a, b) in the paper. Iₓ is the cumulative probability at score x, and a and b are the shape parameters. The authors set a to 0.6 and b to 0.4. They describe the choice as inducing initial sparsity of 40%. In this application the target encourages high and low responses across inputs while the switches are learning which features to use.

The shaping term starts strong and is gradually reduced in the runs that also use a complexity penalty. This lets the prediction objective take greater control once the network has had an opportunity to learn a wider range of gate behavior. Some features may be useful on almost every image. Others may have little value and become consistently inactive. The desired early spread is a way to get useful conditional features started, and the schedule gives the network freedom to retain different kinds of features at convergence.

The second loss addresses how much computation the network uses. The authors adapt an L₀ sparsity regularizer to their input-dependent gates, omitting the stretching parameters of the earlier method. Their penalty uses smooth gate values that can be optimized by differentiation.

L꜀ = γ ∑ᵢ₌₁^k σ(ln(πᵢ))

L꜀ is the complexity loss and γ sets its strength. The sum ∑ runs over gate indices i, from 1 through the total gate count k. πᵢ is the positive parameter associated with gate i for the current input, and ln(πᵢ) is its logit. The sigmoid σ turns that logit into its soft contribution to the penalty. A larger sigmoid output incurs a larger contribution. The hard mask still determines which channels actually execute.

The two losses answer different training questions. Batch-shaping asks whether an individual gate's values have the desired distribution over examples. The complexity term charges for opening gates and gives the network leeway to decide how to lower their aggregate use. If the second term dominates too soon, a gate can close before its filter has learned to contribute useful information. The authors delay the term and increase its coefficient gradually. In the classification experiments they also run a separate regimen that uses a fixed shaping penalty throughout training with no L₀ term.

Experiments and results

Comparing a prediction with the work it takes

The paper tests the method on the image classification benchmarks CIFAR-10 and ImageNet, then reports a preliminary semantic segmentation experiment on Cityscapes. Classification assigns a category to an image. Segmentation assigns categories at individual pixels, allowing the experiment to assess both which objects or regions the network identifies and where it places their boundaries. The classification experiments train the gate modules together with their base networks from scratch. The Cityscapes study compares training from scratch with initialization from weights learned on ImageNet.

The arithmetic measure used for the main comparisons is the multiply-accumulate count, abbreviated MAC count. It describes work such as multiplying a filter weight by an input value and accumulating the product into the filter response. In a gated network, an individual image has its own active set and hence its own cost. The comparison uses the average over inputs. It can therefore show that a larger architecture fits the arithmetic budget of a smaller baseline on average even when some examples call for more work than others.

Accuracy is evaluated alongside that count. A network can achieve a lower MAC count by shutting many gates, so work saved has to be read in relation to the predictions retained or improved. For ImageNet, top-1 accuracy is the share of images for which the highest-ranked class is correct. The figures trace accuracy against computation at different sparsity settings. This lets the authors compare networks at similar average cost and examine how accuracy changes when they ask a network to do less work. ImageNet Large Scale Visual Recognition Challenge

CIFAR-10 classification

The authors start from ResNet20 and ResNet32. Their batch-shaped channel-gated variants are called ResNet20-BAS and ResNet32-BAS. For the runs that combine the two penalties, they initialize the shaping coefficient λ at 0.75 and decrease it linearly to zero at epoch 100. The L₀ penalty begins at epoch 100. Its coefficient rises linearly until epoch 300 and stays fixed thereafter. The authors vary the final coefficient to produce several accuracy and computation settings.

γ ∈ {0, 1, 2, 5, 10, 15, 20} · 10⁻²

γ is the terminal coefficient for the CIFAR-10 complexity penalty. The sign ∈ indicates that its value is selected from the listed settings. The braces enclose the candidate factors, and the dot multiplies each factor by 10⁻². Each choice sets the strength to which the complexity term is increased during the scheduled runs.

The overall CIFAR-10 training lasts 500 epochs with mini-batches of 256. The optimizer uses Nesterov acceleration with momentum 0.9. The weight decay factor is 5e⁻⁴, and the gate modules are exempt from that decay. Training images are randomly cropped and horizontally flipped. The learning rate begins at 0.1 and is divided by 10 at epoch 300, 375 and 450. In the separate shaping-only regimen, λ stays at 0.75 throughout training.

The authors compare both gated ResNets against ConvNet-AIG variants. The evaluation also includes SkipNet38 and SGAD-ResNet32. Across the plotted comparisons the authors report a better accuracy and computation tradeoff for their channel-gated networks. In particular, ResNet32-BAS can run at an average computational cost equal to or below that of ResNet20 while achieving higher accuracy. The deeper batch-shaped variant also performs better than the shallower batch-shaped variant in their comparison at the same average computation.

This last comparison tests the practical value of retaining the larger starting architecture. For the alternatives in these CIFAR-10 experiments, gating a larger network can leave it with accuracy similar to or below that of its smaller counterpart at a comparable cost. Under those conditions the extra available capacity has yielded little observable advantage on the metric of interest. The authors report that their deeper network retains such an advantage when its channel choices have been trained with batch-shaping.

The highest-accuracy points for ResNet20-BAS and ResNet32-BAS use the shaping-only regimen. The paper describes the computation saved in this setting as modest. The later complexity penalty gives the authors a way to reach more economical points on the curve. This distinction matters when interpreting the experiment. The regimen that yields the best accuracy and the regimens that yield a useful range of MAC savings answer different questions about the architecture.

ImageNet classification

On ImageNet the authors use ResNet18, ResNet34 and ResNet50 as their starting architectures. They again begin with a shaping coefficient of 0.75, this time reducing it to zero at epoch 20. The L₀ term starts at epoch 30 and reaches its final value at epoch 60. The schedule thus includes an interval after shaping has faded and before the complexity term starts to rise. The authors evaluate another set of terminal coefficients and also run the fixed-λ shaping-only regimen.

γ ∈ {0, 1, 2, 5, 10, 15, 20, 30, 40} · 10⁻²

γ is the terminal complexity coefficient for the ImageNet runs. The sign ∈ indicates that its value comes from the specified collection, with the braces listing the factors. The dot multiplies each factor by the scale 10⁻². Raising this coefficient makes a larger contribution from an open gate more costly in the optimization objective.

The authors train for 150 epochs on a single GPU, using mini-batches of 256 and Nesterov accelerated stochastic gradient descent with momentum 0.9. They use a weight decay factor of 1e⁻⁴ and exempt the gating units from weight decay. The ImageNet data augmentation follows the residual network setup they cite. The initial learning rate is 0.1 and is divided by 10 at epoch 60, 90 and 120. The classification training is a use of GPU & parallel computing.

The competing adaptive networks in the ImageNet tradeoff figure are ConvNet-AIG and ConvNet-FBS, the latter being the feature boosting and suppression approach associated with Dynamic Channel Pruning. The authors report that their gated variants consistently perform better than the corresponding competitors in this comparison. They also report a reversal between ConvNet-AIG34 and ConvNet-AIG18 at the same computation cost, with the deeper variant falling below the shallower one. The batch-shaped variants derive a benefit from the larger architectures at computation close to the smaller baseline.

ImageNet top-1 accuracy in the ResNet18 computation comparison

The deeper gated networks attain higher accuracy at comparable average computation.

ImageNet top-1 accuracy in the ResNet18 computation comparisonResNet18 baseline: 69.76ResNet18 baseline69.76ResNet18-BAS, best reported accuracy: 70.57ResNet18-BAS, best reported accuracy70.57ResNet34-BAS (this paper): 72.55ResNet34-BAS (this paper)72.55ResNet50-BAS: 74.40ResNet50-BAS74.40
The numbers
System or settingtop-1 accuracy %
ResNet18 baseline69.76
ResNet18-BAS, best reported accuracy70.57
ResNet34-BAS (this paper)72.55
ResNet50-BAS74.40

The experiments section gives 72.55% for ResNet34-BAS and 74.40% for ResNet50-BAS at average costs comparable to the ResNet18 baseline. In that comparison the ungated baseline has 69.76% top-1 accuracy, and the paper gives 70.57% as the best accuracy for ResNet18-BAS. The abstract instead gives 74.60% for ResNet50 in its similar-complexity comparison. The conditions stated there do not establish whether that number corresponds to a separate operating point. The chart uses the value from the experiments section.

The authors find a larger separation from the baseline on ImageNet than on CIFAR-10. They suggest that the greater complexity of ImageNet may leave more opportunity for conditional specialization. Some lightly compressed settings also improve accuracy. The paper relates this behavior to the possibility that sparsity acts as additional regularization. As on CIFAR-10, the highest accuracy in the plotted gated runs occurs with a fixed shaping coefficient and no L₀ term. The wider range of reduced computation comes from varying the strength of the complexity penalty.

Cityscapes semantic segmentation

Cityscapes changes both the output and the setting in which a gate must be useful. The network predicts a labeled scene at pixel resolution, and the authors use PSPNet with a ResNet-50 backbone. Of the images in the benchmark, 5,000 have high-quality annotations at the pixel level, while another 20,000 have coarse annotations. Its evaluation uses 19 semantic classes. These counts describe the benchmark, while the reported accuracy and overlap comparisons concern validation.

Training augmentation includes random mirroring and resizing by a factor between 0.5 and 2. The crop size for training is 448 × 672. The authors use a single image scale for training and testing, with inference on the whole image. The from-scratch training uses mini-batches of 6 and runs for 150k iterations. The optimizer uses momentum 0.9 and a weight decay factor of 1e⁻⁴. For the gated network, decay on the gate layers is 1e⁻⁶. The authors use the same overall training settings for the gated and ungated networks.

The learning rate begins at 2e-2 and is multiplied by a factor tied to the progress of training.

(1 − iter_current / iter_max)^0.9

iter_current is the current iteration and iter_max is the maximum iteration count. Their quotient measures progress through the run. Subtracting it from 1 gives the remaining fraction, and the exponent 0.9 sets how that fraction scales the initial learning rate.

The authors use a fixed batch-shaping coefficient for the segmentation runs. They compare the original PSPNet with its gated version using pixel accuracy and intersection over union, abbreviated IoU. Pixel accuracy gives the fraction of correctly labeled pixels. IoU measures overlap by comparing the area shared by a predicted region and its annotated counterpart with the area covered by their union. The two measures capture different aspects of the prediction. A change that improves the overlap of labeled regions need not produce a change of the same size in the share of pixels labeled correctly.

Cityscapes validation intersection over union for PSPNet

Gated PSPNet improves overlap in both initialization settings.

Cityscapes validation intersection over union for PSPNetPSPNet, from scratch: 0.706PSPNet, from scratch0.706Gated PSPNet, from scratch, λ = 0.2 (this paper): 0.719Gated PSPNet, from scratch, λ = 0.2(this paper)0.719PSPNet, ImageNet initialization: 0.739PSPNet, ImageNet initialization0.739Gated PSPNet, ImageNet initialization, λ = 0.2: 0.744Gated PSPNet, ImageNet initialization, λ= 0.20.744Gated PSPNet, ImageNet initialization, λ = 0.05: 0.747Gated PSPNet, ImageNet initialization, λ= 0.050.747
The numbers
System or settingIoU
PSPNet, from scratch0.706
Gated PSPNet, from scratch, λ = 0.2 (this paper)0.719
PSPNet, ImageNet initialization0.739
Gated PSPNet, ImageNet initialization, λ = 0.20.744
Gated PSPNet, ImageNet initialization, λ = 0.050.747

From scratch, the original PSPNet reaches validation IoU of 0.706 and pixel accuracy of 0.929. With λ set to 0.2, the gated network reaches IoU of 0.719 and pixel accuracy of 0.935 while using 76.3% of the original PSPNet MAC count. This is a comparison within the same initialization condition, so it isolates the reported difference between the original and gated versions more directly than comparing a pretrained run with a from-scratch run.

With ImageNet initialization, the original PSPNet reaches validation IoU of 0.739 and pixel accuracy of 0.9446. At λ of 0.2, the corresponding gated network reaches IoU of 0.744 and pixel accuracy of 0.946, using 76.5% of the baseline MAC count. At λ of 0.05, the gated network uses 95% of the PSPNet MAC count and reaches IoU of 0.747 and pixel accuracy of 0.948. The two pretrained gated settings show the accuracy and computation tradeoff within this experiment. The lighter computation setting still improves both reported metrics over its pretrained baseline, while the setting with the highest overlap uses more of the baseline arithmetic.

What the timing setup measures

The authors also compare inference time with ConvNet-AIG under similar accuracy conditions. On a CPU, they implement tensor slicing for a batch size of one. After the gate module computes the mask, the implementation slices the first convolution's weights along its output-channel dimension. It applies the corresponding selection to the first batch normalization operation. Next it slices the second convolution's weights along their input-channel dimension and runs that convolution on the reduced intermediate representation. This is a way to realize the arithmetic savings in software for a single input.

The two dimensions have to stay aligned. The timing appendix gives their relationship as follows.

(c₁)^out = (c₂)^in

(c₁)^out is the number of output channels of the first convolution. (c₂)^in is the number of input channels of the second. The equality follows because the intermediate tensor produced by the first layer is the input to the second. Omitting an intermediate channel means selecting the corresponding positions on both sides of this equality. The size of that selected dimension depends on the mask for the current image.

For the GPU timing setup, the paper lists a batch size of 128 and describes a simulation. The authors record the gates' decisions over the ImageNet validation set. They derive a reduced network for each recorded pattern and measure the computation associated with those sparse configurations, including the gating overhead in the wall-time calculation. This setup estimates what a custom convolution can exploit when it receives a mask. The CPU and GPU timing measurements are associated with an Intel Xeon E5-1620 v4 and an Nvidia GTX 1080 Ti. The accuracy and arithmetic comparisons above use MAC counts, which are distinct from elapsed time on this machine.

What the ablations show

Whether shaping contributes beyond the complexity penalty

The main ablation holds the channel-gated design in place and changes how the gates are trained. One set of runs uses shaping followed by the L₀ penalty. The other uses the complexity penalty alone. This is the most direct test of batch-shaping in the paper. A comparison against a block-skipping network mixes several architectural and training differences. The loss ablation gives both variants the ability to choose an individual channel and tests what happens when the shaping objective is removed.

On CIFAR-10, ResNet20-L0 and ResNet32-L0 lose accuracy more rapidly as computation is reduced than their counterparts trained with shaping. The authors also report that their L₀-only gated variants still outperform ConvNet-AIG and SkipNet in these comparisons. They attribute that result partly to having a decision for each intermediate channel. The pattern supports contributions from both parts of the design. The architecture gives the gate module a finer choice, and shaping improves the way the network uses that choice across inputs.

The ablation also tests whether extra capacity helps under a limited computation budget. In the CIFAR-10 comparison, the authors report that the larger ResNet32/38 variants without shaping do not improve on the smaller ResNet20 at similar cost. This is consistent with the possibility that learning under a complexity penalty alone can give up much of the additional effective capacity. The result with shaping is different within the CIFAR-10 depth comparison, where ResNet32-BAS retains an advantage over the smaller architecture at matched average work.

The appendix repeats the loss comparison with the ResNet18 and ResNet34 gated networks on ImageNet. The curves again favor the versions trained with batch-shaping as well as the L₀ term. The L₀-only versions still outperform ConvNet-AIG in the comparison the authors show. The recurrence across datasets matters because the shaping and complexity schedules differ between CIFAR-10 and ImageNet. The ablation establishes a repeated effect under the schedules tested, while leaving the best schedule for either dataset open.

What equal sparsity can hide

To examine how the networks achieve savings, the authors compare ResNet34-BAS and ResNet34-L0 at 60% sparsity on ImageNet. They categorize a gate as always on or always off if it takes the relevant state on more than 99% of validation inputs. Gates outside those near-constant groups count as conditional. These categories describe observed execution frequencies. A gate classified as always off under this convention can still fire for an occasional input.

Most gates in the batch-shaped network are conditional by that criterion. The L₀-only network reaches the same sparsity with many more gates effectively closed all the time. This result gives a concrete meaning to the concern that an architecture can have input-dependent switches but operate much like a smaller fixed network. Sparsity describes how much of the feature computation is unused. The frequency analysis shows whether that work is concentrated in channels unused almost everywhere or distributed across channels that are selected for some images.

The gate trajectories during training offer a complementary view. The paper follows individual gates while the shaping penalty is active and after the training objective changes. Gates that initially display a conditional pattern can subsequently settle into different behaviors. Some remain selective, some become broadly active and some effectively close. This observation fits the purpose of the annealing schedule. The authors aim to prevent uniform decisions from becoming entrenched early and then allow the prediction and complexity objectives to determine which features are worth keeping active.

Placement, width and the route to lower computation

The paper reports trials of several gate placements, including adding gates around the convolutional layers. The between-convolution design worked better in the authors' tests, and placement before the inner ReLU was associated with unstable training. The reported evidence for this comparison is qualitative. It explains why the paper uses the selected block design, while the loss ablation gives a more direct account of the change in accuracy as computation varies.

The authors separately expand ResNet20 on CIFAR-10 by increasing the per-block width by factors of 10X and 20X. This probes a different way of increasing the set of available features. Increasing depth adds stages of computation. Increasing width expands the candidates inside a stage, where channel gates can choose among them. The plotted comparison shows higher accuracy for the wider tested variants with dynamic selection. It extends the paper's capacity argument beyond the comparison between shallow and deep networks, within the range of widths the authors study.

The authors also try changing the shaping distribution to encourage additional sparsity. They report a marked loss of prediction quality under that approach. A stronger push toward sparse responses through the prior can constrain the behavior of each gate in a way the complexity penalty need not. The latter lets the network reduce overall gate use while choosing which channels remain available and which become inactive. The paper's results favor that division of labor for reaching the more economical classification settings.

Which images activate particular filters

The remaining analyses describe where the learned conditional behavior appears. One visualization orders channels by their overall frequency of execution on the ImageNet validation set, then displays how frequently they execute for different categories. The authors find relatively similar patterns for related classes and more distinct patterns for dissimilar ones. Because the channels share the same ordering across the comparison, a reader can see where execution frequency changes without treating a difference in sorting as a change in behavior.

Other visualizations start from individual gates that activate infrequently. The paper associates a gate in the 5th gated ResNet block with images of large creatures in water. It also shows selective gates in the 10th and 12th gated blocks. These associations show that selection can be concentrated on a subset of the image categories and can occur at different depths. They also suggest that a gate may respond to a visual combination, such as an animal and its surroundings, that cuts across the category name.

The dog-breed examples illustrate the distinction between depth and total work. Images of some dog breeds appear among the low-MAC examples, yet late gates still select filters associated with distinctions among breeds. A classification can therefore be economical and still rely on computations deep in the network. The authors use this observation to explain why channel selection addresses a different question from early exit. The amount of work on the way to a late feature can vary even when that feature is useful.

Finally, the paper shows images at the high and low ends of MAC usage for ImageNet and Cityscapes. The authors read the examples as evidence that visually demanding inputs tend to engage more features. The figures make the possibility of input-dependent work tangible, in a way an average count cannot. They are also a selection of extremes, so the strength of the evidence is clearest for the particular images and execution patterns displayed. The gate-frequency comparison across the validation set provides the broader evidence that conditional execution occurs.

Limitations

Limits the authors state

The ImageNet appendix says that time and resources prevented an exploration of the loss schedules. The paper establishes that its chosen schedule works in the comparisons reported. It does not identify an optimal time to end shaping, an optimal delay before adding the complexity loss or a schedule that can be transferred unchanged to a new dataset. The differences between the CIFAR-10 and ImageNet schedules are part of the experimental setup, so a result from one regimen cannot resolve which individual timing choice matters most.

The authors describe the Cityscapes results as preliminary. Those experiments cover a particular segmentation architecture with a ResNet-50 backbone and a small set of shaping conditions. They show consistent improvements in the reported validation metrics within those conditions. Their scope is narrower than the classification experiments, which trace more extensive accuracy and computation comparisons against several adaptive methods.

The paper proposes batch-shaping as a general loss for controlling feature distributions. The experiments apply it to conditional gates using a Beta prior. A Gaussian target for behavior related to batch normalization and a uniform target for quantization are proposals. The paper also suggests autoencoders as a possible application. These ideas follow from the ability to choose a target CDF, while their effects on the corresponding tasks remain open. Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference

The authors likewise leave combinations with early exits, continual learning and extraction of subnetworks for subsets of classes for future work. A closed gate blocks the gradient through the corresponding residual feature for that example, which gives the continual-learning proposal a concrete motivation. Demonstrating protection against forgetting would require a learning setup in which tasks arrive in sequence and previously acquired abilities are evaluated after further training.

Limits visible in the comparisons

The paper's central efficiency result is about average arithmetic work. A larger gated network can retain more weights and still execute fewer operations per image on average. Slicing weights, evaluating gates and dispatching work for different masks all affect elapsed time. The CPU implementation shows a concrete execution strategy for one input at a time. The GPU experiment uses recorded patterns and sparse configurations to simulate what a custom kernel could do. This makes the GPU timing evidence conditional on the simulated execution setup. The authors discuss energy savings with custom hardware as a possibility, without an energy measurement to quantify it.

Average work also leaves the spread of inference costs open. The examples at the ends of the MAC distribution make it clear that images can receive different amounts of computation. They do not establish a latency bound for individual inputs or describe how often the expensive cases occur. A system with a tight per-image deadline would need evidence about that distribution and about the implementation handling the corresponding masks. The average MAC comparison directly answers how much arithmetic the gated networks use over the evaluated inputs.

The analysis of difficult images relies on inspection of examples and gate patterns. The paper does not define a separate measure of image difficulty and compare it with MAC usage over the whole benchmark. A high-MAC image can invite a plausible explanation for its cost, but the gate traces alone do not distinguish an intrinsically difficult image from a familiar category that happens to use a larger part of the learned architecture. The evidence establishes that cost varies with the input and supports an interpretation of the illustrated cases.

The individual-gate analysis has a related boundary. A group of categories that activates a rare gate can help describe the situations in which the corresponding filter is used. Those categories can share several visual characteristics, and their association with the gate does not identify which characteristic drives the decision. The figures also deliberately focus on infrequently active gates, where narrow associations are easier to see. They give examples of specialization within the network, while the wider distribution of gate frequencies describes how typical conditional activity is under the paper's definition.

Finally, batch-shaping acts on marginal distributions over batches. Two gates can each match the intended score distribution and still make highly similar decisions on the same images. The loss gives no separate target for how gates should coordinate, which kinds of images should consume more work or whether any gate should specialize by category. Those behaviors depend on how the shaping, task and complexity objectives interact. The ablations show that shaping, under the tested schedules, improves the use of a larger feature collection and changes how sparsity is achieved. They leave open which prior and schedule would produce comparable behavior in a different architecture or on a different task.

What came after

No subsequent study is identified for discussion. The paper leaves open whether channel selection and early exits can save work at complementary points in an image's path, and whether gate decisions can protect task-specific features during continual learning. Those directions would extend the method beyond the accuracy, computation and gate behavior measured in the paper.

Cite

Cite as Babak Ehteshami Bejnordi, Tijmen Blankevoort and Max Welling. 2019. Batch-Shaping for Learning Conditional Channel Gated Networks. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1907.06627 · arXiv 1907.06627

@misc{bejnordi2019batch,
  title = {{Batch-Shaping for Learning Conditional Channel Gated Networks}},
  author = {Babak Ehteshami Bejnordi, Tijmen Blankevoort and Max Welling},
  year = {2019},
  doi = {10.48550/arxiv.1907.06627},
  eprint = {1907.06627},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1907.06627}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bejnordi-2019-batch-shaping-learning-conditional-channel/

References

42 references, from the paper's own bibliography.

  1. T. W. Anderson. On the distribution of the two-sample cramér-von mises criterion. The Annals of Mathematical Statistics, 330 (3):0 1148–1159, 1962. ISSN 00034851. URL http://www.jstor.org/stable/2237885. OpenAlex ↗ · Scholar ↗
  2. Yoshua Bengio. Deep learning of representations: Looking forward. In Proceedings of the First International Conference on Statistical Language and Speech Processing, SLSP'13, pp. 1–37, Berlin, Heidelberg, 2013. Springer-Verlag. ISBN 978-3-642-39592-5. . URL http://dx.doi.org/10.1007/978-3-642-39593-2_1. OpenAlex ↗ · Scholar ↗
  3. Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE transactions on pattern analysis and machine intelligence, 400 (4):0 834–848, 2017. OpenAlex ↗ · Scholar ↗
  4. Zhourong Chen, Yang Li, Samy Bengio, and Si Si. Gaternet: Dynamic filter selection in convolutional neural network via a dedicated global gating network. arXiv preprint arXiv:1811.11205, 2018. URL http://arxiv.org/abs/1811.11205. OpenAlex ↗ · Scholar ↗
  5. Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3213–3223, 2016. OpenAlex ↗ · Scholar ↗
  6. Bin Dai, Chen Zhu, Baining Guo, and David P. Wipf. Compressing neural networks using the variational information bottleneck. In Proceedings of the 35th International Conference on Machine Learning, ICML 2018, Stockholmsmässan, Stockholm, Sweden, July 10-15, 2018, pp. 1143–1152, 2018. URL http://proceedings.mlr.press/v80/dai18d.html. OpenAlex ↗ · Scholar ↗
  7. Alain Droniou, Serena Ivaldi, and Olivier Sigaud. Deep unsupervised network for multimodal perception, representation and classification. Robot. Auton. Syst., 710 (C):0 83–98, September 2015. ISSN 0921-8890. . URL http://dx.doi.org/10.1016/j.robot.2014.11.005. OpenAlex ↗ · Scholar ↗
  8. Michael Figurnov, Maxwell D Collins, Yukun Zhu, Li Zhang, Jonathan Huang, Dmitry Vetrov, and Ruslan Salakhutdinov. Spatially adaptive computation time for residual networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1039–1048, 2017. OpenAlex ↗ · Scholar ↗
  9. Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=rJl-b3RcF7. OpenAlex ↗ · Scholar ↗
  10. Xitong Gao, Yiren Zhao, Lukasz Dudziak, Robert Mullins, and Cheng-Zhong Xu. Dynamic channel pruning: Feature boosting and suppression. arXiv preprint arxiv:1810.05331, 2018. URL http://arxiv.org/abs/1810.05331. OpenAlex ↗ · Scholar ↗
  11. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, pp. 770–778, 2016. . URL https://doi.org/10.1109/CVPR.2016.90. our card
  12. Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pp. 1398–1406, 2017. . URL https://doi.org/10.1109/ICCV.2017.155. OpenAlex ↗ · Scholar ↗
  13. Geoffrey F. Hinton. A parallel computation that assigns canonical object-based frames of reference. In Proceedings of the 7th International Joint Conference on Artificial Intelligence - Volume 2, IJCAI'81, pp. 683–685, San Francisco, CA, USA, 1981. Morgan Kaufmann Publishers Inc. URL http://dl.acm.org/citation.cfm?id=1623264.1623282. OpenAlex ↗ · Scholar ↗
  14. Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 7132–7141, 2018. OpenAlex ↗ · Scholar ↗
  15. Gao Huang, Danlu Chen, Tianhong Li, Felix Wu, Laurens van der Maaten, and Kilian Weinberger. Multi-scale dense networks for resource efficient image classification. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=Hk2aImxAb. OpenAlex ↗ · Scholar ↗
  16. Sergey Ioffe and Christian Szegedy. Batch normalization: accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd International Conference on International Conference on Machine Learning-Volume 37, pp. 448–456. JMLR. org, 2015. OpenAlex ↗ · Scholar ↗
  17. Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry Kalenichenko. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. our card
  18. Robert A. Jacobs, Michael I. Jordan, Steven J. Nowlan, and Geoffrey E. Hinton. Adaptive mixtures of local experts. Neural Comput., 30 (1):0 79–87, March 1991. ISSN 0899-7667. . URL http://dx.doi.org/10.1162/neco.1991.3.1.79. OpenAlex ↗ · Scholar ↗
  19. Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. CoRR, abs/1405.3866, 2014. OpenAlex ↗ · Scholar ↗
  20. Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparametrization with gumbel-softmax. In Proceedings International Conference on Learning Representations 2017. OpenReviews.net, April 2017. URL https://openreview.net/pdf?id=rkE3y85ee. OpenAlex ↗ · Scholar ↗
  21. Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009. OpenAlex ↗ · Scholar ↗
  22. Xiaoxiao Li, Ziwei Liu, Ping Luo, Chen Change Loy, and Xiaoou Tang. Not all pixels are equal: Difficulty-aware semantic segmentation via deep layer cascade. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3193–3202, 2017. OpenAlex ↗ · Scholar ↗
  23. Min Lin, Qiang Chen, and Shuicheng Yan. Network in network. arXiv preprint arXiv:1312.4400, 2013. OpenAlex ↗ · Scholar ↗
  24. Christos Louizos, Karen Ullrich, and Max Welling. Bayesian compression for deep learning. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 3288–3298. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/6921-bayesian-compression-for-deep-learning.pdf. OpenAlex ↗ · Scholar ↗
  25. Christos Louizos, Max Welling, and Diederik P. Kingma. Learning sparse neural networks through l0 regularization. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=H1Y8hhg0b. OpenAlex ↗ · Scholar ↗
  26. Chris J. Maddison, Andriy Mnih, and Yee Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings, 2017. URL https://openreview.net/forum?id=S1jE5L5gl. our card
  27. Roland Memisevic and Geoffrey Hinton. Unsupervised learning of image transformations. pp. 1–8, 07 2007. ISBN 1-4244-1180-7. . OpenAlex ↗ · Scholar ↗
  28. Pavlo Molchanov, Stephen Tyree, Tero Karras, Timo Aila, and Jan Kautz. Pruning convolutional neural networks for resource efficient inference. In ICLR, 2017. OpenAlex ↗ · Scholar ↗
  29. Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th international conference on machine learning (ICML-10), pp. 807–814, 2010. OpenAlex ↗ · Scholar ↗
  30. Yurii E Nesterov. A method for solving the convex programming problem with convergence rate o (1/k 2). In Dokl. akad. nauk Sssr, volume 269, pp. 543–547, 1983. OpenAlex ↗ · Scholar ↗
  31. Mengye Ren, Andrei Pokrovsky, Bin Yang, and Raquel Urtasun. Sbnet: Sparse blocks network for fast inference. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8711–8720, 2018. OpenAlex ↗ · Scholar ↗
  32. Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 1150 (3):0 211–252, 2015. . our card
  33. Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc V. Le, Geoffrey E. Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings, 2017. URL https://openreview.net/forum?id=B1ckMDqlg. OpenAlex ↗ · Scholar ↗
  34. Olivier Sigaud, Clément Masson, David Filliat, and Freek Stulp. Gated networks: an inventory. Unpublished manuscript, 17 pages, May 2016. URL https://hal.archives-ouvertes.fr/hal-01313601. OpenAlex ↗ · Scholar ↗
  35. Casper Kaae Sønderby, Tapani Raiko, Lars Maaløe, Søren Kaae Sønderby, and Ole Winther. How to train deep variational autoencoders and probabilistic ladder networks. In Proceedings of the 33rd International Conference on Machine Learning (ICML 2016), 2016. OpenAlex ↗ · Scholar ↗
  36. S. Teerapittayanon, B. McDanel, and H. T. Kung. Branchynet: Fast inference via early exiting from deep neural networks. In 2016 23rd International Conference on Pattern Recognition (ICPR), pp. 2464–2469, Dec 2016. . OpenAlex ↗ · Scholar ↗
  37. Andreas Veit and Serge Belongie. Convolutional networks with adaptive inference graphs. 2018. OpenAlex ↗ · Scholar ↗
  38. Xin Wang, Fisher Yu, Zi-Yi Dou, Trevor Darrell, and Joseph E. Gonzalez. Skipnet: Learning dynamic routing in convolutional networks. In Computer Vision - ECCV 2018 - 15th European Conference, Munich, Germany, September 8-14, 2018, Proceedings, Part XIII, pp. 420–436, 2018a. . URL https://doi.org/10.1007/978-3-030-01261-8\_25. OpenAlex ↗ · Scholar ↗
  39. Zhisheng Wang, Fangxuan Sun, Jun Lin, Zhongfeng Wang, and Bo Yuan. Sgad: Soft-guided adaptively-dropped neural network. arXiv preprint arXiv:1807.01430, 2018b. OpenAlex ↗ · Scholar ↗
  40. Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In Edwin R. Hancock Richard C. Wilson and William A. P. Smith (eds.), Proceedings of the British Machine Vision Conference (BMVC), pp. 87.1–87.12. BMVA Press, September 2016. ISBN 1-901725-59-6. . URL https://dx.doi.org/10.5244/C.30.87. OpenAlex ↗ · Scholar ↗
  41. Xiangyu Zhang, Jianhua Zou, Kaiming He, and Jian Sun. Accelerating very deep convolutional networks for classification and detection. IEEE Trans. Pattern Anal. Mach. Intell., 380 (10):0 1943–1955, 2016. . URL https://doi.org/10.1109/TPAMI.2015.2502579. OpenAlex ↗ · Scholar ↗
  42. Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2881–2890, 2017. OpenAlex ↗ · Scholar ↗