Elamur Research

Attention Augmented Convolutional Networks

Paper · 2019 · Irwan Bello, Barret Zoph, Quoc Viet Le et al.

Summary

A convolution can recognize a feature wherever it appears in an image, but each application of the filter sees only a small neighborhood. A stack of convolutions can bring information from distant regions together over successive layers. Attention Augmented Convolutional Networks asks what happens when a layer can also make those connections directly. The authors give each location in a feature map a second way to gather information. It can compare its features with those at other locations and use the comparisons to decide how much information to take from each one.

This operation, called self-attention, needs a way to tell where the contributing features are. A weighted average based only on feature similarity treats the arrangement of the image as incidental. The authors add learned information about horizontal and vertical offsets to the comparison between positions. The resulting weights can depend on what lies above, below or beside the location making the query, while the same relative arrangement is represented consistently when it shifts across the image. A convolution still produces local features. The layer joins those features with a separate set produced by attention, giving subsequent layers access to both.

The authors test the approach on CIFAR-100 and ImageNet image classification and on COCO object detection. On ImageNet, they report a 1.3% improvement in top-1 accuracy over a ResNet-50 baseline. On COCO, they report a gain of 1.4 mAP over a RetinaNet baseline. ImageNet accuracy also rises across the tested widths of the resource-constrained MnasNet. The changes in parameter count are small enough to make comparisons with the original architectures informative, and replacing some spatial convolution channels can even reduce the number of parameters. Attention still requires memory for comparisons across locations, so the larger networks use it mainly on smaller feature maps.

The controlled experiments separate the value of attention from the value of giving it spatial information. Adding attention without position information already helps on ImageNet and COCO. Relative offsets improve the results further, whereas the tested sinusoidal and coordinate-based encodings fail to improve on position-unaware attention. Networks that rely more heavily on attention benefit more from the relative encoding. A ResNet variant that uses attention for all the channels of the selected layers remains competitive on ImageNet, although the strongest results in the paper come from keeping both operations.

Deep dive: Attention Augmented Convolutional Networks

Attention Augmented Convolutional Networks combine local filters with spatial self-attention to improve image classification and object detection. · about 38 minutes to read

The problem and its context

What a convolution gets from its neighborhood

An image has both local structure and relationships that stretch across it. A local patch may contain part of a boundary or a pattern of texture. Evidence elsewhere may help determine which object that patch belongs to. A useful image representation has to account for arrangements at several scales. The paper starts with the way a convolution handles the smallest of those scales.

A convolutional filter applies the same learned computation to successive neighborhoods. Its receptive field is the part of the input that can affect an output at a particular location. Within that field, the filter can distinguish directions. A learned coefficient used for a feature to the left of the output location can differ from the coefficient used for a feature above it. When the filter moves to another location, it uses the same coefficients in the same relative arrangement. This reuse supplies an inductive bias, a property of the architecture that favors certain kinds of relationships before training begins.

The paper emphasizes two such properties. Locality limits a single spatial convolution to its neighborhood. Translation equivariance means that shifting the input shifts the corresponding output pattern, under the spatial assumptions of the operation. A detector for a local pattern can therefore respond to that pattern in different parts of an image. Equivariance preserves the position of the response in the output grid. That is useful for a representation that will eventually support a prediction about where something is.

A deep network can expand the region that influences its output. Later layers operate on activations that already summarize neighborhoods, and different stages can work on grids of different sizes. This is how information can travel beyond the scope of a single convolution. The question in the paper concerns the path that information takes. If a layer receives evidence from outside its own neighborhood only through earlier operations, it has limited control over which distant locations to consult directly. The limitation matters when the meaning of a local feature depends on image context.

The authors place this question in the history of image classification as a way to develop reusable feature extractors. Earlier work established convolutional classification as a basis for learning image features at scale. Residual networks organized those computations into blocks with skip connections, which give features a path around the block's internal transformations. The paper describes a field in which better classification backbones, the networks that produce the features used by later prediction components, could also improve object detection and segmentation. A change to the way a backbone computes features could therefore be tested on more than a classification score. ImageNet Classification with Deep Convolutional Neural Networks · Deep Residual Learning for Image Recognition

What attention changes about the interaction

Attention changes how the contribution of one location to another is chosen. The coefficients of a convolution are learned, then reused according to the relative positions in its kernel. In self-attention, the weights used to aggregate information are computed from the features of the current input. A location can place more weight on a distant region in one image and on a nearby region in another because the features being compared have changed. All positions in the grid can be available to the operation, even though it may assign substantial weight to only part of that grid.

The paper traces this mechanism to sequence tasks. Earlier attention for machine translation helped a recurrent architecture align the words it was producing with information in the input sequence. The Transformer then used self-attention to build representations by comparing positions within the same sequence. The relevant connection to images is the direct, content-dependent interaction. A representation at one position can be updated using information from another without requiring the two positions to be adjacent. The image problem adds a spatial requirement because the positions form a grid instead of a single ordered sequence. Neural Machine Translation by Jointly Learning to Align and Translate · Attention Is All You Need

Combining convolution and self-attention also had precedents. For question answering, QANet used local convolution alongside operations that could connect distant sequence positions. The Evolved Transformer likewise combined convolution and attention for translation. In the authors' account, these architectures used the operations in successive layers. Attention Augmentation asks how the two operations can contribute to the output of the same image layer, where subsequent processing can use features from both sources at once. QANet · The Evolved Transformer

How visual attention had been used

Several earlier vision methods gathered context to adjust features that convolution had already produced. Squeeze-and-Excitation, abbreviated SE, uses information pooled across spatial positions to assign weights to feature channels. A channel is a plane of activations that records one kind of feature over the grid. Rescaling that plane can emphasize or suppress the feature across the image. Gather-Excite also uses aggregated context to reweight channels. BAM and CBAM introduce spatial as well as channel refinement, treating these dimensions separately.

Non-local neural networks supplied a closer precedent for direct interactions between spatial locations. In the setup described by the paper, a few non-local residual blocks were inserted into an existing convolutional network after ImageNet pretraining. Their initialization preserved the benefit of that pretraining. The attention-augmented design treats attention as part of the architecture during training and uses it repeatedly where memory permits. Its output also gives attention its own channels. These choices make it possible to vary how much of a layer's output comes from attention and examine a range of mixtures within the same overall design.

A further difference concerns what context can do to the representation. A channel gate can use an image-wide signal to change the strength of a feature that a convolution has produced. A spatial attention branch can gather a different mixture of remote features for each location and place those mixtures in new channels. A query near one object can therefore receive a different contextual representation from a query near another, even though both queries look at the same input feature map. This is the property the paper wants to add to convolution.

How attention can preserve spatial relationships

A feature grid has a meaningful arrangement even when it is presented to an attention operation as a list of vectors. Ordinary self-attention can compare those vectors, but its calculation has no way to distinguish a grid from an arbitrary rearrangement of the same vectors. If the order of the inputs is shuffled, the outputs follow the shuffle. For an image, this symmetry gives the same treatment to transformations with very different meanings. Moving a whole object preserves the arrangement of its parts, while exchanging unrelated patches can destroy that arrangement.

One option is to give each position an explicit address. The paper discusses sinusoidal encodings extended to image grids and CoordConv, which provides coordinates as additional input channels. The authors instead take inspiration from relative position representations for sequences. Their design makes attention sensitive to how far apart two positions are and in what direction, while allowing those relationships to be reused at different absolute locations. A pair of features with the same displacement can use the same learned position vectors wherever the pair occurs. Self-Attention with Relative Position Representations

The method, step by step

From an image grid to two sets of features

The layer receives a feature map, an arrangement of vectors over a rectangular grid. Each vector describes what earlier layers have computed at its location. The convolution branch applies an ordinary filter to the grid. The attention branch temporarily treats the grid as a collection of locations and builds a new feature vector for each one. Both branches ultimately return spatial feature maps that line up on the same grid.

Inside attention, each input vector is projected into a query, a key and a value. The query determines what the location is looking for. The key makes a location available for matching against queries. The value contains the information that a location contributes if it receives weight. Using separate projections gives the network freedom to learn features for finding a relevant location and features for taking information from it.

Take a location as the query. Its query vector is compared with the key vector at every candidate location. Information about the candidates' offsets from the query then contributes to the scores. The attention branch converts those scores to weights and forms a weighted average of the value vectors. Every location takes a turn as the query, which yields a spatially varying output. The operation can be repeated in several learned feature spaces, called heads. When their outputs are joined, different heads can supply different kinds of contextual evidence for the same position.

The head outputs are mixed by a pointwise projection, which operates on the channels at one spatial position at a time. The branch returns its values to the feature grid. The final step joins the channels of both branches. The published experiments use some of the original convolution channels for attention, so an augmented layer can preserve the width of the original output. The layer keeps a local route for computing features while giving some of its output capacity to interactions over the grid.

How attention and convolution produce a shared feature map

The steps in order.

How attention and convolution produce a shared feature mapStep 1: Read the input grid of feature vectors1. Read the input grid of feature vectorsStep 2: Compute local features with the convolution branch2. Compute local features with the convolution branchStep 3: Project locations into queries, keys and values3. Project locations into queries, keys and valuesStep 4: Score pairs using content and relative offsets4. Score pairs using content and relative offsetsStep 5: Normalize scores and average values per head5. Normalize scores and average values per headStep 6: Mix heads and restore the spatial grid6. Mix heads and restore the spatial gridStep 7: Join convolution and attention channels7. Join convolution and attention channelsStep 8: Apply batch normalization8. Apply batch normalization

How a head builds its output

The paper uses H for the height of an activation map, W for its width and Fᵢₙ for the number of input channels. It considers a single feature map when describing the operation, leaving the batch dimension implicit. Flattening the grid gives a matrix X with HW rows and Fᵢₙ columns. Each row contains the features of a location. The grid coordinates remain available when the positional terms are constructed.

The attention branch uses Nₕ heads. Its total query and key depth is dₖ, and its total value depth is dᵥ. Depth here means the number of components in the projected vectors across the heads. The formulas use dₖʰ for the query or key depth per head and dᵥʰ for the value depth per head. Nₕ divides both total depths evenly. The superscript h identifies a head's depth in this notation.

The authors begin with the attention calculation before adding spatial information.

Oₕ = softmax(((XW_q)(XW_k)ᵀ) / √(dₖʰ)) (XW_v)

Oₕ is the output matrix of head h. X is the flattened input, and W_q, W_k and W_v are the learned projection matrices for queries, keys and values. W_q and W_k each map Fᵢₙ input components to dₖʰ components. W_v maps Fᵢₙ components to dᵥʰ components. A superscript ᵀ transposes a matrix, and √ takes the square root of the head's key depth. The softmax operates over the candidate locations for each query and gives weights that sum to one.

The multiplication inside the softmax compares each query with each key by a dot product. A dot product sums products of corresponding vector components, so each pair of locations produces a scalar score. The square-root divisor scales those scores with the head's key depth before they are normalized. After normalization, each row contains weights that a particular query will use to combine all the value rows. Thus the attention branch can give a feature at one location a direct route into the output at another location.

Each head has its own projections. When these projections detect different relationships, the outputs can preserve several ways of using image context at the same location. Concatenation keeps the channels from each head available until the learned output projection mixes them.

MHA(X) = concat[O₁, …, O_Nₕ] Wᴼ

MHA denotes multi-head attention, X is its input matrix and concat joins the head outputs along the feature dimension. O₁ is the output of the first head, O_Nₕ is the output of the last of Nₕ heads, and the ellipsis denotes the intervening outputs. Wᴼ is a learned projection with dᵥ input and dᵥ output channels. The projected matrix has one row per location. The implementation reshapes it to a grid of height H and width W with dᵥ channels.

There is a practical distinction between the projections and the large matrix produced inside the softmax. The projections learn reusable transformations of feature vectors. A larger grid gives them more vectors to process without requiring a new set of projection weights. The score matrix, however, has entries for all the pairs on that grid. Increasing the number of locations therefore increases both the work of comparing them and the amount of memory needed to hold their attention maps.

Giving each comparison a direction and distance

The calculation so far depends on feature vectors and the matches between them. Any rearrangement of the rows of X results in a corresponding rearrangement of the outputs.

MHA(π(X)) = π(MHA(X))

π is a permutation of the spatial locations, represented as a reordering of the rows of X. MHA is the multi-head calculation without positional information. The expression on the left rearranges the inputs before attention. The expression on the right applies the same rearrangement to the outputs after attention. Their equality is what permutation equivariance means here.

The equality follows from how the operation pairs weights and values. When the input is rearranged, the keys and values move together. For a given query, the same feature matches are still made and the same values still receive the corresponding weights. The resulting vector simply appears at the query's new position. This can be inadequate when feature meaning depends on how the locations are arranged. A position-unaware head receives no direct indication that the same candidate, with the same projected key, has moved from beside the query to above it.

The authors address that issue by learning separate embeddings for relative width and relative height. An embedding here is a learned vector indexed by an offset. To score a particular pair, the head retrieves a width vector for the horizontal displacement and a height vector for the vertical displacement. The query interacts with both vectors as well as with the candidate's key. The procedure works in the coordinate system of the feature map, so the displacement is measured between locations at the layer where the operation is applied.

ℓᵢⱼ = (qᵢᵀ / √(dₖʰ)) (kⱼ + rᵂ[jₓ − iₓ] + rᴴ[jᵧ − iᵧ])

ℓᵢⱼ is the logit, or score before normalization, from query location i to candidate location j. The vectors qᵢ and kⱼ are the query at i and the key at j, respectively. The superscript ᵀ makes the query a row vector for the dot product, and √ scales the score using dₖʰ, the query and key depth for head h. The x coordinates iₓ and jₓ specify positions along the width, and the y coordinates iᵧ and jᵧ specify positions along the height. The learned tables rᵂ and rᴴ return vectors at the width offset jₓ − iₓ and height offset jᵧ − iᵧ. Brackets indicate lookup in a table.

Since the positional vectors take part in a dot product with qᵢ, the position term can matter differently to different queries. An offset can contribute a strong score for one type of feature and a weaker score for another. Moving the whole arrangement preserves the offsets, which preserves the positional contribution when the corresponding content moves with it. Arbitrary rearrangements can change those offsets. The spatial structure that the paper wants to retain enters the operation through this distinction.

The width and height contributions are added. For instance, the same horizontal displacement uses the same width vector across different vertical displacements. The height term can still change the score when the row changes. This construction represents the geometry of the grid without allocating a separate learned vector to every joint combination of horizontal and vertical offsets.

The authors write the position contribution along each axis as its own matrix.

Sᴴʳᵉˡ[i,j] = qᵢᵀ rᴴ[jᵧ − iᵧ]

Sᴴʳᵉˡ is the matrix of relative height scores. Its entry at query i and candidate j is the dot product between the transposed query qᵢᵀ and the learned height vector returned by rᴴ for the vertical displacement jᵧ − iᵧ. The label rel identifies the matrix as a relative position term.

Sᵂʳᵉˡ[i,j] = qᵢᵀ rᵂ[jₓ − iₓ]

Sᵂʳᵉˡ collects the relative width scores. In its entry for i and j, qᵢᵀ is again the transposed query and rᵂ gives the vector at the horizontal displacement jₓ − iₓ. The matrices have HW rows and HW columns because each contains a result for every pair of locations.

The attention calculation now adds the position terms before normalizing the scores.

Oₕ = softmax((QKᵀ + Sᴴʳᵉˡ + Sᵂʳᵉˡ) / √(dₖʰ)) V

Oₕ is the output of head h. Q, K and V are the projected query, key and value matrices for that head. QKᵀ forms the matrix of content scores, using ᵀ to transpose the key matrix. Sᴴʳᵉˡ and Sᵂʳᵉˡ add the relative height and width scores, and the denominator is the square root of the per-head key depth dₖʰ. The softmax again acts across candidates for each query. Multiplication by V combines the same candidate values as in ordinary attention, using weights informed by both features and geometry.

The axis embeddings are learned separately for each layer and shared among its heads. Sharing the table still allows heads to react differently to a displacement because each head supplies its own queries. The parameter cost for the two tables can be written for a layer of known height and width.

(2(H + W) − 2)dₖʰ

H and W are the height and width of the layer's attention grid, and dₖʰ is the length of each learned position vector. The expression counts the signed offsets along the two axes, including the offset for positions that share a row or column, then accounts for the number of components in each vector.

What the memory-saving implementation saves

The ordinary attention calculation already has quadratic costs in the number of locations. The paper expresses the work and the memory for the attention maps separately.

O((HW)²dₖ)

O denotes asymptotic growth. H and W specify the size of the grid, the exponent ² accounts for pairs of locations, and dₖ is the combined key depth across the heads. This expression describes the computation for the pairwise attention operation.

O((HW)²Nₕ)

Here O again describes growth with the input dimensions. The squared location count comes from the number of query and candidate pairs, and Nₕ is the number of heads whose maps have to be stored. The important difference from the compute expression is that a map stores a scalar per pair per head.

A direct implementation of relative attention could also store a full embedding vector for every pair. In the paper's notation that introduces the following extra cost.

O((HW)²dₖʰ)

H and W still describe the spatial grid. The squared count represents the pairs, and dₖʰ is the depth of each stored relative vector. O describes the growth of this additional storage. The authors point out that the per-head key depth is typically larger than the number of heads, making this extra tensor especially costly.

The paper adapts a memory-saving relative attention algorithm from the Music Transformer. The earlier procedure was for a masked sequence, where a restriction determines which locations can attend to which others. The adaptation handles both spatial axes and allows attention in either direction. The authors report the following memory cost for their relative position implementation.

O(HWdₖʰ)

O describes how this part of the implementation grows, HW counts the spatial locations and dₖʰ is the per-head key depth. This saving concerns the machinery for relative embeddings. The attention maps themselves still contain pairwise scores. The appendix supplies TensorFlow code for the relative operation and helper functions, and explains that the implementation uses rearrangements such as tiling, transposing and reshaping to prepare the terms for the score calculation.

How attention takes a share of the channels

The augmented convolution combines the two branches at the level of their outputs.

AAConv(X) = concat[Conv(X), MHA(X)]

AAConv is the augmented layer. X denotes the input features, viewed as a grid for Conv, the convolution branch, and flattened internally for MHA, the multi-head attention branch. The attention output has been restored to grid form at the point of concatenation. The concat operation joins channels at corresponding spatial locations.

Let Fₒᵤₜ be the output width of the original convolution. The authors specify the fraction of that width given to attention and the size of the query and key projections relative to the same width.

υ = dᵥ / Fₒᵤₜ

υ is the fraction of output channels allocated to attention. dᵥ is the total value depth and therefore the width of the attention output after the heads are mixed. Fₒᵤₜ is the width of the original layer. In the width-preserving experimental design, the convolution branch supplies the remaining channels.

κ = dₖ / Fₒᵤₜ

κ is the ratio of total query or key depth dₖ to the original number of output channels Fₒᵤₜ. This setting controls the feature dimensions available for scoring pairs. It serves a different purpose from υ, which controls the number of output channels that carry attention features.

A pointwise convolution produces the queries, keys and values together. It needs channels for the two sets of matching vectors and for the values that will be aggregated.

2dₖ + dᵥ = Fₒᵤₜ(2κ + υ)

The left-hand side counts dₖ query channels, dₖ key channels and dᵥ value channels. On the right, Fₒᵤₜ is the original layer width, κ is the key-depth ratio and υ is the value-depth ratio. The equality gives the same projection width in terms of the settings chosen for the layer.

The second pointwise convolution mixes the head outputs and has dᵥ input and output channels. The new projections add parameters, while the removal of some regular output filters saves parameters. The paper combines those effects in an approximation.

Δ_params ∼ Fᵢₙ Fₒᵤₜ (2κ + (1 − k²)υ + (Fₒᵤₜ / Fᵢₙ)υ²)

Δ_params is the change in the layer's parameter count and ∼ marks the approximation, which omits the relative embedding parameters. Fᵢₙ and Fₒᵤₜ count the original input and output channels. κ and υ describe the query or key depth and the allocation of output channels, and k is the side length of the original square convolution kernel. The factor k² counts the spatial coefficients of a regular filter for each input channel. The term proportional to υ² comes from the projection that mixes heads, since both sides of that projection have width dᵥ.

This accounting explains why the kind of convolution being augmented matters. A 3x3 filter uses multiple coefficients per input channel for each output, so removing some of those filters can pay for the projections. A 1x1 filter has fewer parameters to give up. The authors find a slight parameter reduction in the former case and a slight increase in the latter. The comparison concerns learned weights. Attention still performs the image-dependent pairwise calculation when it processes a feature map.

Where the authors put the layers

Batch normalization follows the joined output. It can learn channel scales for the convolution and attention features, so the two branches need no prescribed balance in the magnitude of their activations. In residual architectures, the authors choose a convolution within each block at the stages where attention is affordable. This keeps the surrounding block structure and makes the extent of the intervention straightforward to describe.

The smallest grids are found late in the architectures examined, so the authors begin at that end and extend attention towards earlier, larger grids until memory becomes a constraint. This placement means that the branch usually works on representations that earlier convolutions have already processed. A head reasons over locations in those feature maps. Its values can carry features assembled from a neighborhood before the attention operation even begins.

The authors also manage memory in ways that affect training and the architecture. They can reduce the number of images in a batch. Where they need to shrink the input grid to attention, they apply 3x3 average pooling with stride 2. Pooling averages nearby activations and spaces the resulting locations farther apart. The branch then computes attention on that smaller grid. Bilinear interpolation expands its output to the required size, using nearby coarse outputs to estimate values on the finer grid. This lets the channels join the convolution branch and means that the first augmented stage can use a different spatial resolution within its two branches.

Experiments and results

What the comparisons measure

The classification experiments use CIFAR-100 as a low-resolution setting and ImageNet as a larger-scale setting with higher-resolution images. The detection experiments use COCO. Classification asks for a category for the image. Detection also needs the locations of objects, which makes the spatial structure of the output relevant in a different way. The experiments give the same proposed layer several jobs without requiring that every architecture put it in the same type of block.

Top-1 accuracy measures how often the highest-scoring predicted class is correct. Parameter counts address the storage required for learned weights and help test whether a wider network could account for an accuracy gain. The paper also considers computation and measured latency. An operation can use a similar number of parameters and still carry a higher cost per image, particularly when it constructs scores for pairs of spatial locations.

The training appendix reports that the authors use the default settings from baseline codebases except where they describe a change. The key-depth ratio κ is searched over 0.1, 0.2 and 0.5. The output fraction υ is searched over 0.0, 0.1, 0.25, 0.5, 0.75 and 1.0. The choice of head count starts at 8 and decreases if memory requires it. Reported accuracy is the final accuracy of each run, with no early stopping. The different experiments then describe the architecture, optimizer and schedule used for their respective comparisons.

CIFAR-100 with a wide residual network

On CIFAR-100 the authors use Wide-ResNet-28-10. It has 3 stages, each with 4 residual blocks, and each block has two 3x3 convolutions. The change goes into the first convolution of every block. The attention branch uses 8 heads and the paper gives the relation between its channel settings as κ = 2υ = 0.2. It also imposes a minimum of 20 key dimensions per head. The CIFAR-100 grid is small enough for the authors to apply attention without pooling its input. Wide Residual Networks

The baseline comparison includes the original network, Squeeze-and-Excitation and a parameter-free version of Gather-Excite. The paper reports higher classification performance for Attention Augmentation than for the plain network or Squeeze-and-Excitation, with comparable parameter and computational costs. The usefulness of the experiment is that it places attention in every residual block and keeps the attention input at the stage's existing resolution. That gives a test of the layer in a setting where the pooling and interpolation used in some of the larger-image experiments can be avoided.

All CIFAR-100 runs last 500 epochs, where an epoch is a pass through the training data. Training uses synchronous stochastic gradient descent across 8 Tesla V100 GPUs and momentum 0.9. Synchronous training combines updates from the workers, while momentum retains information from preceding optimization steps. The learning rate rises from 0 during the first 5% of training and then follows a cosine decay. Its level at the end of the warmup is set by the batch-size rule below. The input pipeline uses mean normalization, random flips and crops.

0.2B/256

B is the total training batch size. The coefficient 0.2 and denominator 256 set the scale of the target learning rate for the CIFAR-100 warmup. The rule raises or lowers that target in proportion to the batch size.

The non-augmented configurations use batch size 1024 and weight decay 2e-4. The augmented configurations use batch size 256 and weight decay 5e-4. Weight decay discourages large weights during training. Using a smaller batch lets the augmented architecture fit the attention calculation without spatial downsampling. It also means that the CIFAR-100 results compare trained systems that differ in both their layers and some of their optimization settings.

ImageNet across ResNet depths

The ImageNet ResNet experiments examine ResNet-34, ResNet-50, ResNet-101 and ResNet-152. The smaller architecture uses blocks with two 3x3 convolutions. The deeper architectures use bottleneck blocks in which a central 3x3 convolution sits between 1x1 projections. The first projection reduces the width on which the spatial filter operates and the last expands it. The authors augment the 3x3 operation, where giving up some regular output channels can reduce the number of weights. They also report that augmenting the pointwise expansion worked comparably in accuracy, with a different cost tradeoff.

Attention is applied in every residual block of the last 3 stages, with activation maps of 28x28, 14x14 and 7x7. The first of those stages pools the input to attention. The smaller stages keep their grid resolution within the branch. The experiments use 8 heads. The setting is κ = 2υ = 0.2 for the deeper networks and κ = υ = 0.25 for ResNet-34. The parameter allocation and branch placement are thus specified alongside the depth of the network.

The ImageNet ResNet training runs last 100 epochs. They use synchronous stochastic gradient descent across 8 Tesla V100 GPUs, momentum 0.9 and weight decay 1e-4. The authors choose the largest batch size per worker that fits from 32, 64, 128 and 256. The target learning rate scales linearly with the total batch, using 0.128 for a total batch size of 256. The rate warms up from 0 over the first 5% of training epochs and is divided by 10 at epochs 30, 60, 80 and 90. The data augmentation follows the standard Inception setup described in the paper.

The headline ImageNet result is a 1.3% gain in top-1 accuracy for the attention-augmented ResNet-50 over the original ResNet-50. Across the depth comparisons, the authors report gains over the corresponding non-augmented networks and better accuracy than with Squeeze-and-Excitation, with a favorable parameter comparison. The augmented ResNet-50 reaches accuracy comparable to the unaugmented ResNet-101. The augmented ResNet-101 scores above the unaugmented ResNet-152. Within this family, the comparisons show that the choice of operation within a block can compete with the option of increasing depth.

A separate ResNet-50 comparison includes BAM, CBAM and GALA, with a channel reduction ratio of 16. That ratio controls the size of the reduced representation in the compared attention mechanisms. The comparison reports accuracy alongside latency relative to ResNet-50, timed in TensorFlow on a single Tesla V100 GPU with a batch size of 128. It also considers width-adjusted networks near the baseline's approximately 25.6M parameters. Matching the parameter budget asks whether a similarly sized network could gain as much simply by using its channels differently. The authors characterize their accuracy and computation tradeoff as competitive under these comparisons.

ImageNet under a mobile parameter budget

MnasNet gives the authors a setting where the ordinary convolutions are already organized to use parameters economically. The architecture was selected by a search that used the mobile inverted bottleneck and Squeeze-and-Excitation as its building blocks. An inverted bottleneck has a pointwise expansion inside the block. Here the attention branch replaces channels in that expansion, so the intervention targets a 1x1 convolution. This is the case where the parameter analysis predicts a small increase rather than the savings possible with a larger spatial kernel.

The augmented MnasNets use κ = 2υ = 0.1 and 4 heads. The authors augment the last 13 of 18 blocks, starting when the grid is 28x28. They pool the attention input only in the first augmented stage and retain the original final pointwise layer. They test width multipliers of 0.75, 1.0, 1.25 and 1.4. A width multiplier changes how many channels the network uses, giving several resource budgets within the same architecture.

The training schedule runs for 350 epochs with RMSProp and exponential learning-rate decay. The augmented networks start with the learning rate divided by 2, and the decay schedule is adjusted so that the final learning rate matches the original setup. An accuracy comparison at each width therefore compares the actual trained recipes for the two architectures.

The authors report higher ImageNet accuracy at every tested width. They also compare accuracy as a function of parameters across the widths. Since the augmented network has slightly more parameters at a given width multiplier, that comparison is important to their claim that the gains cannot be explained by the increase in parameter count alone. MnasNet already uses Squeeze-and-Excitation in locations chosen by architecture search. The result shows that adding spatial self-attention can help in a network whose original design already makes use of channel attention.

COCO detection with RetinaNet

For COCO the authors use RetinaNet with ResNet-50 and ResNet-101 backbones. They use the open-source TensorFlow RetinaNet implementation named in the paper and apply attention only in the backbone, following the placement used for ImageNet classification. The rest of the detector receives a different set of features from the backbone. The paper trains the detector from scratch for 150 epochs, without transferring the ImageNet weights into the backbone. This makes the detection result a test of learning those features under the detection setup itself. Focal Loss for Dense Object Detection

The metric is mean average precision, abbreviated mAP. Average precision summarizes how well detections rank while balancing correct detections against missed objects and false detections. The matching rule uses intersection over union, or IoU, which measures the overlap of a predicted box and a reference box relative to their combined area. Stricter overlap requirements put more pressure on localization. The paper's detection comparison reports mAP with several IoU settings.

Attention improves RetinaNet with both backbone depths. The highlighted COCO result is an improvement of 1.4 mAP over the RetinaNet baseline. Squeeze-and-Excitation instead reduces detection performance in the reported comparison, even after the authors try squeeze ratios of 4, 8 and 16. The squeeze ratio controls how much the channel representation is reduced within the SE block. The contrasting outcomes motivate a question about spatial information, which the authors investigate through position-encoding controls and attention visualizations.

How to read the reported ImageNet gains

The paper gives two explicit ImageNet top-1 gains for different interventions. The headline gain compares an augmented network with a fully convolutional baseline. The position-encoding gain compares versions of the attention-heavy network with and without relative offsets. Both are useful measures of accuracy change, with a different reference for each row. The larger reported gain concerns the importance of position within the attention-heavy setup.

Reported ImageNet top-1 accuracy gains against each experiment’s control

Relative offsets give the attention-heavy network a larger gain over its own control than the headline hybrid gains over its convolutional control.

Reported ImageNet top-1 accuracy gains against each experiment’s controlAA-ResNet-50 vs. ResNet-50: 1.3AA-ResNet-50 vs. ResNet-501.3Relative AA-ResNet-50 vs. position-unaware AA-ResNet-50 at full attention allocation (this paper): 2.8Relative AA-ResNet-50 vs.position-unaware AA-ResNet-50 at fullattention allocation (this paper)2.8
The numbers
System or settingtop-1 accuracy gain %
AA-ResNet-50 vs. ResNet-501.3
Relative AA-ResNet-50 vs. position-unaware AA-ResNet-50 at full attention allocation (this paper)2.8

The paper also reports a particular memory comparison for the forward pass of ResNet-50. At inference it considers the largest attention-map allocation, since activations are not retained across layers as they are during training. Under that accounting, storage for the attention maps is 1.2% of the memory required for the network parameters, which occupy 49MB. That figure describes the tested feature-map sizes and inference accounting. The architecture, placement and batch choices remain important to the cost of training or running the layer at a different spatial scale.

What the ablations show

How far attention can take over spatial filtering

The layer's channel allocation makes a natural controlled experiment possible. The authors can give attention a greater share of the output while using the same overall ResNet-50 design. They tie the query and key depth ratio to the attention channel fraction and test κ = υ at 0.25, 0.5, 0.75 and 1.0. The experiment changes both how many channels carry attention output and the depth of the projections used to compute attention scores. It describes the consequences of moving across those configured networks.

Increasing the attention share brings a modest decline in classification performance within the sweep. Even so, the setting κ = υ = 0.75 outperforms the unaugmented ResNet-50 on ImageNet and uses fewer parameters and floating-point operations. This is a substantial test of the attention branch because it produces most of the output channels in the selected layers. The result shows that the branch can carry a large part of the spatial feature computation, beyond contributing a small set of contextual features to a mostly convolutional output.

At the endpoint, the branch supplies 100% of the channels of the layers selected for replacement. The authors report that this network is 2.5% worse in ImageNet classification accuracy than the fully convolutional ResNet-50 while using 25% fewer parameters. It also outperforms ResNet-34 with lower parameter and floating-point operation costs. The choice of baseline matters. The comparison with ResNet-50 shows the cost in accuracy of assigning those layers wholly to attention. The comparison with ResNet-34 shows that this arrangement can still be competitive against a convolutional architecture at a different resource budget.

The architecture retains pointwise projections and an early portion that still uses spatial convolution. The paper counts 4 non-pointwise convolutions in the stem and first stage. The stem is the front of the architecture, where the image is first transformed into a feature map. Thus the endpoint tests the removal of the selected spatial filters after those early operations. It is a direct test of whether attention can take over those layers inside a working classifier.

The pooling design helps explain why the authors treat the accuracy decline cautiously. At the first augmented stage, the convolution branch has access to the finer grid while the attention branch receives pooled features. As the share of attention increases, more output features pass through that lower-resolution calculation. The authors suggest that averaging is part of the reason for the drop. The channel sweep leaves that explanation open because it does not vary pooling independently while keeping the same allocation.

What geometry contributes as attention grows

A second comparison examines the effect of relative position information at different shares of attention channels. It answers a different question from the sweep itself. The sweep examines how well the architecture does as spatial convolution loses channels. The position comparison asks how much of the attention branch's performance depends on direct access to geometry.

The relative encoding becomes more valuable as attention takes a larger share. At the endpoint the authors report a 2.8% gain in ImageNet top-1 accuracy from using relative offsets. This is the setup in which fewer channels are available to transmit spatial relationships computed by the replaced filters. The result is consistent with a division of labor in the hybrids. A spatial convolution has offsets built into its coefficients, and an attention head with relative position embeddings can likewise assign significance to a candidate's displacement. The benefit measured in the ablation grows when the latter mechanism carries more of the computation.

The study also compares types of position information at the ImageNet ResNet settings. The controls are attention with no position input, a two-dimensional sinusoidal encoding, CoordConv and the proposed relative embedding. The sinusoidal scheme represents locations through position-dependent patterns, while CoordConv supplies coordinate channels to the features that go into attention. Both make location available through absolute information. The relative scheme instead adds a query-dependent term indexed by the displacement of the candidate.

The results on ImageNet classification and COCO detection follow the same ordering in the paper's account. Position-unaware augmentation already improves on the unaugmented convolutional architecture. The tested absolute schemes fail to improve on this attention control. Relative embeddings add a further benefit. This gives evidence for two contributions within the augmented design. The branch gains something by allowing features to interact dynamically, and it gains more from the particular way the relative scheme provides geometry.

The authors connect the relative scheme's advantage to translation equivariance. That interpretation fits the operation: an object and its nearby context can move together while keeping the same displacements. The ablations compare complete encodings, however. Their outcomes measure the tested formulations as a whole, with different representations and places where the position information enters attention. They give a reason to favor relative offsets in this setup without measuring the independent contribution of every property of those offsets.

What the attention maps add to the evidence

An attention map for one query shows how a head distributes its weights over candidate locations. To make this interpretable, the appendix marks 4 query locations on an input image and shows maps for 8 heads. Moving across the displayed queries reveals how a head changes its weights with the input position. Looking across heads for the same query shows that the heads can select different regions even while using the same grid and shared positional embeddings.

The authors identify heads whose weights distinguish an object from its background and describe differences in what the heads emphasize. This is consistent with the design in which each head uses its own feature projections. The example also illustrates the detector hypothesis. The query keeps a location-specific view of where information comes from, and some learned patterns align with object boundaries. The detection results and the visual example provide different kinds of evidence. The results show that the augmented backbone helps under the benchmark's evaluation. The maps make plausible a way in which it can use image structure.

The comparison with SE gives the authors another observation to interpret. Its spatial pooling gathers context for a channel, whereas an attention head assigns weights separately for each query position. They suggest that collapsing spatial information in the channel-gating signal may be less helpful for localization. The ablation over squeeze ratios shows that several such settings still underperform the detector baseline. The visualization shows that location-specific attention can express behavior relevant to localization. Neither comparison isolates the precise cause of SE's lower detection score.

Limitations

Limits the authors identify

The paper's main architectural restriction comes from the size of the attention maps. The position implementation saves memory on relative embeddings, but full attention still compares every query with every candidate on its grid. The practical response is to start at later, smaller stages, use reduced batches as needed and pool the attention input at the largest stage where necessary. Accordingly, the evidence comes from networks in which the accessible attention grid depends on the stage. Applying attention at larger spatial dimensions would change the resource requirements that shape these experiments.

The authors propose local attention as a direction for investigating that constraint. Limiting the set of candidate locations could make it possible to keep a finer grid and avoid some average pooling. The open question is how to balance computational efficiency with the ability to connect the positions that matter for recognition. Full attention gives direct access to distant candidates. Pooling gives that access on a coarser grid. A local operation would change the set of relationships available within a single layer.

The implementation also has a hardware limitation. The authors explain that their TensorFlow code expresses the computation using several data rearrangements because the relevant low-level kernels are unavailable in their setup. They expect specialized implementations to affect latency. The reported timing describes the software and hardware they used. The suggestion that dedicated kernels would improve the measured tradeoff remains a direction for engineering work.

The authors also leave open how to design a network around attention from the start. Their experiments mostly insert the operation into architectures that were developed around convolutions. The stages, projections and early layers reflect that history. They suggest considering attention as an operation available during architecture search, including for tasks beyond the demonstrated classifiers and detector. The question of how fully attention can replace spatial convolution is left open by the retained early layers and by the remaining gap to the convolutional ResNet-50 at the endpoint.

Limits of what the experiments establish

The reported gains describe specific datasets, architectures and training recipes. The CIFAR-100 comparison changes the batch size and weight decay together with the architecture. The MnasNet comparison changes the learning-rate schedule for the augmented network. On ImageNet with ResNet, the batch is chosen according to what fits. These are defensible ways to train the systems under their memory constraints, but they make the headline comparisons evidence about the resulting trained configurations. They do not assign the full gain to the new operator under an identical optimization schedule.

Resource measures also answer different questions. Similar parameter counts establish that the learned weights occupy a similar budget. A count of floating-point operations describes arithmetic work. Measured latency depends on how the computations run in a particular implementation, and memory use depends on feature-map size and whether the computation is training or inference. The timing result on a Tesla V100 and the parameter comparisons for MnasNet therefore support different claims. The mobile architecture experiment demonstrates accuracy gains at a small parameter budget. It does not, on its own, establish a latency gain on a mobile device.

The attention-heavy endpoint retains spatial convolutions early in the network and uses average pooling in the first augmented stage. The earlier convolutions can already encode structured neighborhoods before attention receives their output. The experiment therefore supports replacing much of the spatial filtering within the tested residual design. It leaves unanswered what would happen if the early operations were removed or if a different downsampling procedure were used. The ratio sweep also changes query and key depth along with the output fraction. Its result concerns the specific route the authors take towards greater reliance on attention.

The translation argument applies to the relative scoring rule. When features and their coordinates move together, the relative offsets stay fixed. An end-to-end architecture can still handle a shift differently if it changes which features lie at the boundary or where the strided pooling samples the grid. The paper's encoding comparisons measure recognition and detection outcomes. They leave room for a direct study of how predictions change when the same content is shifted within the full architecture.

The visual evidence deserves a similar distinction. Attention maps can show where the weighted average draws information for a query. A map that follows part of an object makes the operation easier to interpret. It does not quantify how frequently that behavior occurs or whether those particular weights caused an improvement in box localization. The authors offer the maps as examples, and their explanation for the behavior of the SE detector remains a hypothesis.

Finally, the paper's detection evidence comes from changing a RetinaNet backbone, while its strongest case for relying chiefly on attention comes from ImageNet classification. The class of operations needed for detection can overlap with those used for classification, but the COCO experiment leaves the detector structure in place and uses a hybrid backbone. This limits the reach of the replacement claim. The evidence is strongest for combining the operations in established image architectures and for the value of relative position information within that combination.

What came after

Attention as the main visual computation

Several citing works pursue the question raised by the attention-heavy ResNet from the direction of the Transformer. An Image is Worth 16x16 Words puts the image representation itself at the center of the question. Its title treats pieces of an image as the input units for a Transformer used for recognition at scale. The point of contact with Attention Augmentation is the use of interactions among spatially arranged features to support image classification. The earlier paper tests those interactions as a component of a residual image network. The later work asks how far image recognition can be organized around the Transformer as the principal architecture. An Image is Worth 16x16 Words

Tokens-to-Token ViT also addresses how a visual Transformer forms its representation. It puts the construction of visual tokens alongside the problem of training on ImageNet from scratch. This follows a question left open when attention is introduced after a convolutional stem. Once attention becomes central to the classifier, the features it receives and how those features are formed become part of the architectural problem. The shared ImageNet setting connects that question to the earlier paper's classification experiments. Tokens-to-Token ViT

Vision Transformers for Dense Prediction takes the Transformer direction into tasks that call for predictions over spatial locations. A representation that works for an image-level category has to be organized differently to support outputs across a grid. That concern connects with the earlier detector experiments, where attention changes the backbone's features and leaves their spatial arrangement available to the components that make predictions. The later work makes dense prediction the purpose of the visual Transformer itself. Vision Transformers for Dense Prediction

ViViT extends the topic to video. The comparison available within an image becomes part of a broader representation problem once meaningful relationships can also lie across time. The earlier relative encoding describes vertical and horizontal displacements within a feature map. A video Transformer pursues attention in an input where spatial and temporal organization both matter. This is a continuation of the question about what kinds of visual context are accessible to an attention-based architecture. ViViT

Where and how much to attend

Swin Transformer addresses the arrangement of attention through shifted windows and a visual hierarchy. Windows give attention a spatial region in which to work, and shifting those windows changes which locations can interact within them. This connects directly with the earlier paper's concern about the cost of pairwise comparisons on large feature maps. Attention Augmentation reduces that cost by choosing stages and sometimes shrinking the input grid. The shifted-window direction makes the spatial grouping of attention part of the architecture. Swin Transformer

Scaling Local Self-Attention for Parameter Efficient Visual Backbones takes up the local-attention direction that the authors raise explicitly. The title brings together two issues that the original experiments distinguish. How locations are selected for attention affects the cost of operating on a grid, and how the resulting operations are organized affects the parameter budget of the backbone. Studying local attention as a visual backbone puts those choices at the center of the design. Scaling Local Self-Attention for Parameter Efficient Visual Backbones

Rethinking Attention with Performers takes the computational question from the side of attention itself. The earlier paper's memory-saving relative position algorithm still leaves a pairwise attention map to compute. A later work that rethinks the attention calculation is therefore addressing a broader part of the expense than the storage for the positional term. Perceiver approaches general perception through iterative attention. Its emphasis on successive attention operations relates to a different design choice, how often an architecture gathers information as it builds a representation. Rethinking Attention with Performers · Perceiver

Combining operations and improving baselines

Conformer takes cooperation between convolution and attention into speech recognition. Its title describes a Transformer augmented with convolution, reversing the emphasis of adding attention to a convolutional image network. The connection is the architectural question shared by both settings. Local operations and attention can coexist within a system whose input contains both nearby structure and longer-range relationships. The input and application change from image grids and visual recognition to speech. Conformer

Revisiting ResNets returns to the backbone family that anchors much of the earlier paper, focusing on training and scaling strategies. Attention Augmentation compares changing a block's operation with increasing ResNet depth under its experimental recipes. A study of improved training and scaling examines other choices that affect how much performance a residual backbone can deliver. Its focus gives a direct continuation of the baseline question, since the payoff from adding a new operation is interpreted against the performance reached by the underlying architecture under its training and resource budget. Revisiting ResNets

Cite

Cite as Irwan Bello, Barret Zoph, Quoc Viet Le, Ashish Vaswani and Jonathon Shlens. 2019. Attention Augmented Convolutional Networks. IEEE/CVF International Conference on Computer Vision (ICCV).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1109/iccv.2019.00338 · arXiv 1904.09925

@inproceedings{bello2019attention,
  title = {{Attention Augmented Convolutional Networks}},
  author = {Irwan Bello, Barret Zoph, Quoc Viet Le, Ashish Vaswani and Jonathon Shlens},
  booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
  year = {2019},
  doi = {10.1109/iccv.2019.00338},
  eprint = {1904.09925},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/iccv.2019.00338}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bello-2019-attention-augmented-convolutional-networks/

References

55 references, from the paper's own bibliography.

  1. Maximilian Alber, Irwan Bello, Barret Zoph, Pieter-Jan Kindermans, Prajit Ramachandran, and Quoc V. Le. Backprop evolution. CoRR, abs/1808.02822, 2018. OpenAlex ↗ · Scholar ↗
  2. Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In International Conference on Learning Representations, 2015. our card
  3. Irwan Bello, Sayali Kulkarni, Sagar Jain, Craig Boutilier, Ed Huai-hsin Chi, Elad Eban, Xiyang Luo, Alan Mackey, and Ofer Meshi. Seq2slate: Re-ranking and slate optimization with rnns. CoRR, abs/1810.02019, 2018. OpenAlex ↗ · Scholar ↗
  4. Irwan Bello, Hieu Pham, Quoc V. Le, Mohammad Norouzi, and Samy Bengio. Neural combinatorial optimization with reinforcement learning. 2016. OpenAlex ↗ · Scholar ↗
  5. Irwan Bello, Barret Zoph, Vijay Vasudevan, and Quoc V. Le. Neural optimizer search with reinforcement learning. In Proceedings of the 34th International Conference on Machine Learning - Volume 70, ICML'17, pages 459–468. JMLR.org, 2017. OpenAlex ↗ · Scholar ↗
  6. Liang-Chieh Chen, Maxwell Collins, Yukun Zhu, George Papandreou, Barret Zoph, Florian Schroff, Hartwig Adam, and Jon Shlens. Searching for efficient multi-scale architectures for dense image prediction. In Advances in Neural Information Processing Systems, pages 8713–8724, 2018. OpenAlex ↗ · Scholar ↗
  7. Yunpeng Chen, Yannis Kalantidis, Jianshu Li, Shuicheng Yan, and Jiashi Feng. A${}^{\mbox{2}}$-nets: Double attention networks. CoRR, abs/1810.11579, 2018. OpenAlex ↗ · Scholar ↗
  8. Ekin Dogus Cubuk, Barret Zoph, Dandelion Mané, Vijay Vasudevan, and Quoc V. Le. Autoaugment: Learning augmentation policies from data. CoRR, abs/1805.09501, 2018. OpenAlex ↗ · Scholar ↗
  9. Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In IEEE Conference on Computer Vision and Pattern Recognition. IEEE, 2009. OpenAlex ↗ · Scholar ↗
  10. Xavier Gastaldi. Shake-shake regularization. arXiv preprint arXiv:1705.07485, 2017. OpenAlex ↗ · Scholar ↗
  11. Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Dropblock: A regularization method for convolutional networks. In Advances in Neural Information Processing Systems, pages 10750–10760, 2018. our card
  12. Golnaz Ghiasi, Tsung-Yi Lin, Ruoming Pang, and Quoc V Le. NAS-FPN: Learning scalable feature pyramid architecture for object detection. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. our card
  13. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In IEEE Conference on Computer Vision and Pattern Recognition, 2016. our card
  14. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In European Conference on Computer Vision, 2016. OpenAlex ↗ · Scholar ↗
  15. Sepp Hochreiter and Juergen Schmidhuber. Long short-term memory. Neural Computation, 1997. OpenAlex ↗ · Scholar ↗
  16. Jie Hu, Li Shen, Samuel Albanie, Gang Sun, and Andrea Vedaldi. Gather-excite: Exploiting feature context in convolutional neural networks. In Advances in Neural Information Processing Systems, pages 9423–9433, 2018. OpenAlex ↗ · Scholar ↗
  17. Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. OpenAlex ↗ · Scholar ↗
  18. Cheng-Zhi Anna Huang, Ashish Vaswani, Jakob Uszkoreit, Noam Shazeer, Curtis Hawthorne, Andrew M Dai, Matthew D Hoffman, and Douglas Eck. Music transformer. In Advances in Neural Processing Systems, 2018. OpenAlex ↗ · Scholar ↗
  19. Jonathan Huang, Vivek Rathod, Chen Sun, Menglong Zhu, Anoop Korattikara, Alireza Fathi, Ian Fischer, Zbigniew Wojna, Yang Song, Sergio Guadarrama, et al. Speed/accuracy trade-offs for modern convolutional object detectors. In IEEE Conference on Computer Vision and Pattern Recognition, 2017. OpenAlex ↗ · Scholar ↗
  20. Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Learning Representations, 2015. OpenAlex ↗ · Scholar ↗
  21. Simon Kornblith, Jonathon Shlens, and Quoc V Le. Do better imagenet models transfer better? In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019. our card
  22. Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009. OpenAlex ↗ · Scholar ↗
  23. Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing System, 2012. our card
  24. Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 1998. OpenAlex ↗ · Scholar ↗
  25. Tsung-Yi Lin, Piotr Dollár, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. our card
  26. Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollár. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer vision, pages 2980–2988, 2017. our card
  27. Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European Conference on Computer Vision, pages 740–755. Springer, 2014. our card
  28. Drew Linsley, Dan Scheibler, Sven Eberhardt, and Thomas Serre. Global-and-local attention networks for visual recognition. CoRR, abs/1805.08819, 2018. OpenAlex ↗ · Scholar ↗
  29. Rosanne Liu, Joel Lehman, Piero Molino, Felipe Petroski Such, Eric Frank, Alex Sergeev, and Jason Yosinski. An intriguing failing of convolutional neural networks and the coordconv solution. In Advances in Neural Information Processing Systems, pages 9628–9639, 2018. OpenAlex ↗ · Scholar ↗
  30. Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983, 2016. our card
  31. Jongchan Park, Sanghyun Woo, Joon-Young Lee, and In So Kweon. Bam: bottleneck attention module. In British Machine Vision Conference, 2018. OpenAlex ↗ · Scholar ↗
  32. Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Łukasz Kaiser, Noam Shazeer, Alexander Ku, and Dustin Tran. Image transformer. In International Conference on Machine Learning, 2018. OpenAlex ↗ · Scholar ↗
  33. Andrew Rabinovich, Andrea Vedaldi, Carolina Galleguillos, Eric Wiewiora, and Serge Belongie. Objects in context. 2007. OpenAlex ↗ · Scholar ↗
  34. Prajit Ramachandran, Niki Parmar, Ashish Vaswani, Irwan Bello, Anselm Levskaya, and Jonathon Shlens. Stand-alone self-attention in vision models. CoRR, abs/1906.05909, 2019. OpenAlex ↗ · Scholar ↗
  35. Prajit Ramachandran, Barret Zoph, and Quoc V. Le. Searching for activation functions. CoRR, abs/1710.05941, 2017. OpenAlex ↗ · Scholar ↗
  36. Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4510–4520, 2018. OpenAlex ↗ · Scholar ↗
  37. Peter Shaw, Jakob Uszkoreit, and Ashish Vaswani. Self-attention with relative position representations. arXiv preprint arXiv:1803.02155, 2018. our card
  38. David R. So, Chen Liang, and Quoc V. Le. The evolved transformer. CoRR, abs/1901.11117, 2019. OpenAlex ↗ · Scholar ↗
  39. Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alex Alemi. Inception-v4, Inception-Resnet and the impact of residual connections on learning. In International Conference on Learning Representations Workshop Track, 2016. OpenAlex ↗ · Scholar ↗
  40. Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In IEEE Conference on Computer Vision and Pattern Recognition, 2015. OpenAlex ↗ · Scholar ↗
  41. Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the Inception architecture for computer vision. In IEEE Conference on Computer Vision and Pattern Recognition, 2016. OpenAlex ↗ · Scholar ↗
  42. Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. OpenAlex ↗ · Scholar ↗
  43. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pages 5998–6008, 2017. our card
  44. Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In NIPS, pages 2692–2700, 2015. OpenAlex ↗ · Scholar ↗
  45. Xiaolong Wang, Ross Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7794–7803, 2018. OpenAlex ↗ · Scholar ↗
  46. Sanghyun Woo, Jongchan Park, Joon-Young Lee, and In So Kweon. Cbam: Convolutional block attention module. In Proceedings of the European Conference on Computer Vision (ECCV), pages 3–19, 2018. OpenAlex ↗ · Scholar ↗
  47. Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. OpenAlex ↗ · Scholar ↗
  48. Yoshihiro Yamada, Masakazu Iwamura, Takuya Akiba, and Koichi Kise. Shakedrop regularization for deep residual learning. arXiv preprint arXiv:1802.02375, 2018. OpenAlex ↗ · Scholar ↗
  49. Baosong Yang, Longyue Wang, Derek F. Wong, Lidia S. Chao, and Zhaopeng Tu. Convolutional self-attention network. In CoRR, volume abs/1810.13320, 2018. OpenAlex ↗ · Scholar ↗
  50. Adams Wei Yu, David Dohan, Minh-Thang Luong, Rui Zhao, Kai Chen, Mohammad Norouzi, and Quoc V Le. QAnet: Combining local convolution with global self-attention for reading comprehension. In International Conference on Learning Representations, 2018. our card
  51. Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In British Machine Vision Conference, 2016. OpenAlex ↗ · Scholar ↗
  52. Vinicius Zambaldi, David Raposo, Adam Santoro, Victor Bapst, Yujia Li, Igor Babuschkin, Karl Tuyls, David Reichert, Timothy Lillicrap, Edward Lockhart, Murray Shanahan, Victoria Langston, Razvan Pascanu, Matthew Botvinick, Oriol Vinyals, and Peter Battaglia. Deep reinforcement learning with relational inductive biases. In ICLR, 2019. OpenAlex ↗ · Scholar ↗
  53. Han Zhang, Ian J. Goodfellow, Dimitris N. Metaxas, and Augustus Odena. Self-attention generative adversarial networks. arXiv:1805.08318, 2018. OpenAlex ↗ · Scholar ↗
  54. Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. In International Conference on Learning Representations, 2017. our card
  55. Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 8697–8710, 2018. our card