Elamur Research

Rethinking Spatial Dimensions of Vision Transformers

Paper · 2021 · Byeongho Heo, Sangdoo Yun, Dongyoon Han et al.

Summary

An image classifier can begin by examining many small regions and finish by working with a much coarser view. Convolutional networks commonly make that transition as an image moves through their layers. The original Vision Transformer, or ViT, instead gives each layer the same grid of image locations. Its layers can exchange information across the whole image, which raises a question. If distant locations can already communicate, does it help to combine neighboring locations into a smaller grid as processing advances? The authors ask this question about the spatial organization of the vision transformer.

Their proposed Pooling-based Vision Transformer, PiT, starts with a denser grid than ViT. Between groups of transformer blocks, a learned pooling operation combines local information into fewer spatial positions and increases the number of features carried at each position. The token used to make the image-level classification has a separate route through each transition. Its feature vector grows to match the width of the pooled image tokens, so it can continue taking part in attention without having to be placed on the image grid. An additional token used in teacher-guided training follows the same principle.

The authors first run the architectural comparison in reverse. They give a ResNet a fixed grid, then compare it with the conventional version that changes resolution. The conventional design fits the training data better at comparable arithmetic cost and performs better on held-out images. In the transformer comparison, PiT shows the same kinds of advantages over ViT. Across the ImageNet classification experiments, the difference is clearest with simpler training. More elaborate recipes and a longer training schedule bring the accuracy of the two closer in some cases. PiT also processes images faster than corresponding ViT variants at the resolution for which it was designed. That speed ranking reverses when the existing designs are used at a larger resolution.

PiT also improves on ViT as the feature extractor in an object detector, while the detector with ResNet50 still leads on accuracy. PiT scores higher than ViT in tests involving a hidden image center, unusual natural images, altered backgrounds, and an adversarial perturbation. Inside the network, attention spreads farther early and becomes more concentrated late relative to ViT, a pattern the authors associate with the changing grid. The experiments support this combination of spatial and feature dimensions at the tested scales. They leave the individual contributions of the design choices open, and the smallest transformers still trail lightweight convolutional alternatives in the paper’s classification comparison.

Deep dive: Rethinking Spatial Dimensions of Vision Transformers

Rethinking Spatial Dimensions of Vision Transformers explains how PiT uses pooling to improve image recognition and where its advantages end. · about 35 minutes to read

The problem and its context

What changes when a grid gets smaller

A feature map records a collection of learned responses at each of a set of image locations. Its height and width tell us how many positions the network can address across the image. Its channels tell us how many responses it can carry at each position. A layer can therefore work on a dense map with relatively short feature vectors, or on a coarser map with longer vectors. These arrangements affect what the next layer can access separately and how much work it does at each location.

The paper investigates how to distribute those two dimensions through a network. The first operation already has to make a spatial choice by deciding how densely to sample the image. Later layers can keep working at that density, or the network can change it. With a changing grid, nearby positions can contribute to a new feature vector before the next round of interactions. The network then performs those interactions among coarser units. What counts as a unit of spatial information has changed between the stages.

This distinction is easy to overlook in a network with global self-attention. Self-attention lets a position receive information from other positions, with weights that depend on the representations involved. Global attention allows those weights to connect locations anywhere on the current grid. It answers a question about which locations can communicate. The size of the grid answers a different question about how many locations can participate and what part of the representation each one carries. A layer with global access to a fine grid still receives a fine grid as its input.

ViT turned image patches into a sequence that a transformer could process. The patch size described in the paper is 16×16. The first embedding operation converts patches into feature vectors, after which spatial communication takes place through self-attention. The number of spatial tokens stays fixed across the transformer blocks. This was a workable starting point because the transformer already offered a way to maintain and update a sequence of representations. Its design came from language processing, as described in Attention Is All You Need.

For the PiT authors, the success of the original classifier made the choices around that sequence worth examining. Once a transformer could recognize images, familiar practices from convolutional vision could be reconsidered one at a time. The practice at issue here is the progression from relatively many spatial positions with fewer channels toward fewer positions with more channels. The point of comparison is the patch-based architecture introduced in An Image is Worth 16x16 Words.

How convolutional networks arranged their spatial stages

Pooling was already a familiar way to shrink feature maps. In a max-pooling operation, a neighborhood contributes its largest response to the output for a channel. A following convolution can increase the number of channels available at the smaller resolution. The paper identifies this sequence of operations in AlexNet.

The related-work discussion describes a different version of the same broad pattern in VGG. At a reduction, the spatial size falls by half and the channel count doubles. The important architectural fact is that several blocks can work on one grid before a transition hands a smaller grid to later processing. The paper gives VGG as an example of that organization.

A convolution can itself carry out a reduction. Its stride is the step between successive locations at which it evaluates the input. A stride of 2 means the operation advances in steps of 2 along the relevant spatial axes. A convolution used this way can learn the transformation that produces the smaller map. The paper points to this approach in ResNet.

The authors also identify strided convolution as a reduction mechanism in later convolutional designs, including EfficientNet. The choice of operator had evolved while the organization into progressively coarser stages persisted. This distinction matters for PiT because the authors use the word pooling for a stage transition implemented with convolution. What makes it a pooling layer in their account is the change in spatial organization it performs.

The literature the paper discusses also gives reasons to pay attention to what happens along the channel axis. PyramidNet explores increasing width in layers between spatial transitions. ReXNet examines the influence of channel configuration on network performance. Both examples make clear that when channels grow is itself a design decision. A spatial reduction can be paired with growth in width, as it is in PiT, while other schedules are possible.

Pooling also affects a layer’s receptive field, the region of the input that can contribute to a response. Local operations on coarser features can bring together information that came from a larger portion of the original image. In a transformer, a spatial token can already receive information from distant tokens via attention. Pooling offers a further change because it reorganizes the units on which the following attention blocks operate. The paper takes this difference between access and organization as a reason to study the spatial schedule empirically.

What earlier attention designs left open

Earlier vision work had already demonstrated several ways to use self-attention. Non-local networks inserted attention into convolutional backbones, including in work on video classification. Other cited designs substituted attention for local convolutions or decomposed interactions along spatial axes. The use of transformers for detection was demonstrated by DETR.

Many attention-based architectures in the paper’s account retained the surrounding ResNet structure, including its reductions. An individual block could change the operation that mixes positions while the whole network continued moving through spatial stages. ViT gave the authors a complementary starting point. Its transformer blocks communicated globally over a grid with no intervening spatial reduction. Adding a stage structure to that baseline would address a different architectural question from adding an attention block to ResNet.

Pooling also had a precedent in language transformers. The paper mentions Funnel Transformer, which reduces a sequence of tokens and uses skip connections. The PiT authors distinguish its setting by the form of the input and the available structure. Image tokens can be mapped back to a spatial grid, which gives a reduction operation explicit neighborhoods to work with. An image classifier can also have tokens outside that grid. A spatial transition has to accommodate both types of representation.

The original vision architecture has other features the authors value. It applies normalization separately to each spatial token, which they relate to positional normalization. The paper discusses this use in relation to Layer Normalization. It also draws attention to the order of operations in the transformer blocks and the placement of their skip connections, which carry information past an operation. These are parts of the architecture that can coexist with a new schedule for resolution and width.

The image-level representation provides a particularly concrete reason to keep the transformer organization in view. ViT uses a class token that can exchange information with image tokens and provide a representation for classification. A training scheme can assign a separate token to learning from a teacher. That use of a dedicated representation was explored by DeiT. Once the authors decided to enlarge all feature vectors at stage boundaries, they needed a way to enlarge the special tokens while preserving their roles. That requirement shapes the pooling layer as much as the decision to reduce the image grid.

The method, step by step

Set up the comparison in ResNet

The authors begin with a convolutional architecture because they want evidence for the design convention they plan to borrow. In ordinary ResNet50, the stem, meaning the initial operations that prepare the image representation, produces a 56×56 feature map. Blocks operate at that spatial size, and later strided convolutions reduce the height and width by half while doubling the channel dimension. This arrangement gives early blocks a relatively dense map and later blocks wider feature vectors at coarser locations.

The fixed-grid alternative uses a stem taken from ViT to produce a 14×14 map. This brings the representation to its working resolution at entry. The authors then take out the spatial reductions that would normally occur within ResNet, so subsequent blocks continue to work at the initial spatial size. They also vary the channel sizes, producing candidates with different computational costs in each architectural arrangement.

The comparison uses 100 epochs of straightforward ImageNet training. An epoch is a pass through the training data. The work examines how training loss varies with floating-point operation count, how validation accuracy varies with training accuracy, and how validation accuracy varies with operation count. This is a comparison of two ways to allocate computation across the complete network. The stem, later spatial schedule, and choice of channel sizes all matter to how that allocation works.

Sample the image densely at entry

PiT starts by embedding image patches. An embedding is the vector representing a patch when it enters the transformer. The authors keep the ViT patch size of 16 and set the embedding stride to 8. With this spacing, successive patches overlap. The embedding therefore produces image tokens on a denser grid than the ViT starting grid. The authors use 224×224 inputs to specify spatial sizes and operation counts for the family.

The denser start and the later reductions are related decisions. The early stage has more locations available to represent the image. Each pooling transition then gives subsequent attention blocks a shorter spatial sequence. A network with this arrangement spends some of its computation on interactions among closely spaced input positions and some on interactions among representations that have already combined information from nearby positions.

The transformer blocks operate on a matrix of token representations. A row can represent an image location or carry information for a nonspatial role. The channel dimension is the width of each row. To insert a local operation into this sequence of blocks, the authors first recover the image layout for just the rows that belong to the grid.

How PiT carries image features through its stages

The steps in order.

How PiT carries image features through its stagesStep 1: Embed overlapping image patches1. Embed overlapping image patchesStep 2: Process image and special tokens with attention2. Process image and special tokens with attentionStep 3: Recover the grid from spatial tokens3. Recover the grid from spatial tokensStep 4: Downsample the grid and expand its channels4. Downsample the grid and expand its channelsStep 5: Project special tokens to the new width5. Project special tokens to the new widthStep 6: Rejoin tokens for the next transformer stage6. Rejoin tokens for the next transformer stageStep 7: Read the final class token7. Read the final class token

Rebuild the grid at a stage boundary

At a pooling boundary, PiT separates the image tokens from the class token and, where present, the distillation token. The image rows can be arranged by their vertical and horizontal positions. The paper uses the following notation for a spatial map in the attention analysis, and the same dimensions describe the representation that a spatial pooling operation receives.

F ∈ ℝ^(H×W×C)

Here F is the feature map, H is its height in spatial positions, W is its width in spatial positions, and C is the number of channels. The membership sign ∈ says that F has entries and dimensions of the indicated kind. ℝ denotes the real numbers, and the parenthesized product of dimensions gives the shape of the array.

Restoring this layout gives the convolution access to neighborhoods on the image grid. It amounts to placing the token vectors at their corresponding positions before the convolution computes new responses. The coordinates organize the vectors for the operation. What each vector represents already depends on the preceding attention blocks. A vector at a particular location can thus include information gathered from elsewhere in the image before the pooling layer combines it with its neighbors.

PiT carries out the spatial transition through depth-wise convolution. A depth-wise operation applies spatial filters separately to channels. In this design the convolution both outputs a smaller map and expands the channel dimension. The authors choose it to keep the parameter cost of pooling small. The new location has a learned feature vector formed from a spatial neighborhood of the previous map. After the convolution, PiT arranges these vectors as rows again so they can enter the next transformer blocks.

The motivation for increasing width is visible at this point in the architecture. The stage transition reduces the number of sites at which the network can store a separate feature vector. It also enlarges each vector that remains. Spatial consolidation therefore comes with an opportunity to carry more responses at each new position. The operation gives the network a learned way to make that exchange. Whether it preserves useful evidence and improves classification is then a question for the training and validation comparisons.

Give the special tokens their own projection

The class token has no image coordinates. Its purpose is to collect information that can be used for the overall image decision. The distillation token also has a job defined by the training objective rather than by a particular patch. PiT sends these vectors through a fully connected layer at a pooling boundary. Such a layer learns how to map the incoming features to a new vector whose width agrees with that of the spatial rows exiting the convolution.

The two paths resolve a dimensional constraint. After the stage transition, the next block has to process image and special tokens together. It requires representations of a common channel width. The convolution creates that width for the image grid, and the separate projection supplies it for the special tokens. Their number is maintained while the number of spatial rows falls. Both sets of representations can then participate in the next attention operation.

PiT uses two such transitions, yielding three spatial scales. Within a stage, the blocks operate on the dimensions delivered by its entry operation. When the authors increase width between stages, they implement the increase through the number of attention heads. A head is a component of a multi-head attention block with its own set of interaction weights. The heads give the block several ways to combine information from its inputs. Adjusting their number gives the authors a way to set stage width within the chosen transformer design.

Choose the comparison sizes and training recipes

The comparison focuses on ImageNet-scale versions of ViT. The original ViT work also described larger architectures intended for data collections beyond ImageNet. For a closer comparison on ImageNet, the authors use the tiny, small, and base variants associated with the DeiT study. They refer to these baselines as ViT-Ti, ViT-S, and ViT-B. The PiT family includes PiT-Ti, PiT-XS, PiT-S, and PiT-B, where XS means extra small. The options give the authors a range of capacity and computation for comparisons within and across architecture families.

Similar depth is a design target, with depth understood as the number of successive blocks. The authors tune widths and attention heads with operation count, parameter count, and GPU execution in mind. They describe the resulting design as a manual choice, with further possibilities available through an approach such as ProxylessNAS. They release the implementation and ImageNet-trained networks.

For the initial PiT–ViT investigation, the authors reuse the simple training setup from the ResNet dimension comparison. The fuller ImageNet study then considers several degrees of training support. The vanilla recipe supplies the basic comparison. A second recipe changes the data augmentation using CutMix. Augmentation here changes the training examples the network sees while leaving the classification task in place. The paper compares this change with a broader recipe from DeiT, alongside a version that additionally learns from a teacher.

The authors use the official DeiT implementation for its training recipe. They keep its settings for learning rate, weight decay, and warmup across their experimental recipes and use the AdamP optimizer. The learning rate governs the size of optimization updates, weight decay supplies a constraint on the weights during training, and warmup governs the early progression of the learning rate. A technique called Repeated Augment is used only for base variants because the authors found it harmful in a small network. This means that the recipe is matched between architectural counterparts with an explicit exception across scales.

For teacher-guided training, RegNetY-16GF supplies supervision through an additional loss. The distillation token gives the network a representation associated with that learning signal. The teacher comes from the work on Designing Network Design Spaces. The idea of guiding one network with information from another is described in Distilling the Knowledge in a Neural Network. The paper runs vanilla and CutMix training for 100 epochs and uses 300 epochs for the DeiT and distillation schedules.

Describe the weights inside attention

The authors examine whether the changed spatial arrangement is accompanied by a change in how attention weights are allocated. They apply their analysis to ViT-S and PiT-S on the validation images. The measurements use the weights after softmax, the operation that gives the attention weights their normalization. The analysis follows earlier work on the structure of attention in a transformer.

A ∈ ℝ^(M×N)

A is the attention matrix. M is its row dimension and N its column dimension. ℝ indicates real-valued entries, and ∈ indicates that the matrix has the stated shape. The entry at row i and column j is αᵢ,ⱼ. For a fixed j, the index i ranges over the positions whose weights are collected in that column.

∑ᵢ αᵢ,ⱼ = 1

The sum ∑ᵢ adds the coefficients αᵢ,ⱼ across i for a given j. The right-hand side, 1, gives the total under the paper’s normalization convention. This lets a column be treated as a distribution of weight for the entropy calculation. The measurements reported for the image grids focus on spatial tokens.

Measure dispersion and spatial reach

The first measure is entropy. It quantifies whether a given distribution puts most of its weight on a few positions or spreads its weight more widely. The authors compute the average of this quantity across the indexed columns.

Entropy = −(1/N) ∑ⱼ₌₁ᴺ ∑ᵢ αᵢ,ⱼ log(αᵢ,ⱼ)

Entropy is the resulting average dispersion. The inner sum ∑ᵢ ranges over the row positions i for the column j. The outer sum ∑ⱼ₌₁ᴺ ranges over the N columns, with j running from 1 through N. Each αᵢ,ⱼ is the corresponding normalized weight, log is the logarithm, and the factor 1/N gives each column equal influence in the average. The minus sign puts the entropy in its usual positive direction, with greater dispersion corresponding to higher values.

The second measure uses a position state for each image token. As the resolution changes, a raw step on one grid represents a different fraction of the image extent from a raw step on another. The paper expresses the coordinates relative to the dimensions of the current feature map.

pᵢ = (xᵢ/W, yᵢ/H)

The vector pᵢ is the relative position of token i. Its components come from dividing the horizontal coordinate xᵢ by the map width W and the vertical coordinate yᵢ by the map height H. The resulting location is expressed in fractions of the map dimensions. The same definition for j gives pⱼ.

Distance = (1/N) ∑ⱼ₌₁ᴺ ∑ᵢ αᵢ,ⱼ ‖pᵢ − pⱼ‖₁

Distance is the average spatial separation weighted by attention. For each column j, the row index i visits the positions receiving the weights αᵢ,ⱼ. The vectors pᵢ and pⱼ are their associated relative positions. The notation ‖·‖₁ takes the sum of the absolute horizontal and vertical differences. The outer sum includes columns 1 through N, and division by N averages their weighted separations.

These measures answer different questions about a layer. An attention head can concentrate almost all its weight on a spatially distant position, giving it concentrated attention with considerable reach. A head that spreads weight over neighbors can have higher entropy and a shorter average distance. Using both measurements lets the authors examine dispersion and distance independently before asking how they tend to change together through each architecture.

The paper averages the measurements over the validation images and the heads of each layer. It restricts the comparison to the spatial tokens and omits the last block. In the authors’ setup, the final spatial-token attention outputs have no downstream role in producing the classification output. The layer averages therefore describe interactions within the spatial representations over the part of the network the authors choose to analyze.

Experiments and results

ImageNet classification under matched recipes

The principal classification comparison uses ImageNet-1k. Each candidate predicts an image class. Top-1 accuracy measures the share of images for which the predicted class with the highest score agrees with the target class. Training loss and training accuracy refer to the images used in optimization, while validation accuracy concerns held-out images. Keeping track of both lets the authors see whether the changes improve fitting, held-out recognition, or both.

The paper reports floating-point operation counts, parameter counts, and throughput alongside classification performance. Floating-point operations, abbreviated FLOPs, quantify the arithmetic work assigned to a forward calculation. A parameter count measures how many learned coefficients the network has. Throughput measures processed images per second and depends on the execution environment. For the main comparison the authors use a single NVIDIA V100 with a batch size of 128, so the measurement describes how the architectures handle groups of images on that device.

At the 224×224 design resolution, the same-named PiT and ViT variants favor PiT in the reported operation and throughput comparisons. The PiT variants require fewer FLOPs and process images faster. On classification, the strongest separation appears under the vanilla recipe and under CutMix. Those comparisons show the architecture reaching higher accuracy with either the simpler training setup or the one with the changed augmentation.

The effect of scale also differs between the families under those conditions. The authors identify ViT-S with vanilla training as a case where the additional network capacity fails to produce a corresponding gain in classification. They identify ViT-B under CutMix as another instance of that behavior. PiT’s accuracy rises with size in each of the training settings discussed. The result concerns a sequence of implemented variants in a common training environment. It shows that the proposed architecture makes better use of the tested increase in scale under conditions in which ViT’s gains can stall.

CutMix itself improves performance relative to vanilla training. Since the paper presents it as a change to data augmentation, this comparison gives the authors a way to see whether PiT’s advantage persists after adding help from a particular training intervention. It does. The subsequent comparisons with DeiT and teacher supervision ask a more demanding question of the architectural advantage because the baseline already benefits from a collection of training choices designed for ImageNet.

Under the DeiT recipe, the paper characterizes PiT as comparable to or better than the corresponding ViT variants in accuracy. The same broad description applies under distillation. PiT’s throughput advantage in the main comparison is useful here because similar classification scores can accompany different costs per workload. The results support a distinction between the accuracy margin and the compute tradeoff. A stronger training recipe can bring accuracy closer while the two architectures still perform different amounts and kinds of work at inference.

Convolutional baselines at different scales

The paper broadens the comparison with systems that use convolution throughout their main stages. For this part the authors use the best reported accuracy they identify for each architecture, restricting the comparison to training that uses ImageNet images. A common training protocol is practical for related PiT and ViT variants. The broader comparison instead measures how competitive the systems are when each benefits from a recipe suited to its design.

The authors also remeasure throughput and parameter counts for these comparisons using a single V100. Arithmetic counts alone are a less direct guide when the systems run different operations. A transformer spends part of its workload on attention across tokens, while convolutional processing organizes most of its work around spatial filters. Measuring images per second under common hardware conditions makes the comparison more concrete. The top-1 accuracy values, in contrast, still reflect the respective training choices.

At the base scale, the paper reports stronger ImageNet recognition for the compared ViT-B and PiT-B architectures than for the convolutional entries in that part of the comparison. At the small scale, it reports higher recognition performance for PiT-S than for ResNet50. The comparison with EfficientNet-b3 highlights a throughput advantage for PiT-S. These findings describe specific pairings and metrics. They give different reasons an architecture may be competitive at that scale.

The ranking changes at the tiny end. The authors report stronger ImageNet classification from small convolutional systems such as ResNet34, MobileNetV3, and EfficientNet-b0 than from ViT-Ti and PiT-Ti. This result is important to the paper’s overall design argument. The pooling schedule improves several comparisons within the transformer family, but the smallest system still has to compete with convolutional networks already designed for that regime. The authors identify lightweight transformer design as an open direction.

More time in training and more pixels at inference

The extended experiments vary two different parts of the setup. One gives the networks a longer optimization schedule. The other fine-tunes them on larger inputs, meaning training continues with images at a different resolution. Together they test whether the main comparison extends beyond the training duration and image size that motivated the architecture.

The long schedule runs for 1000 epochs. The authors cite the improvement seen from longer ViT training in DeiT as the reason to include it. In this setting, the PiT and ViT counterparts reach comparable accuracy. The improvement over ViT is smaller than in the distillation setting, while the corresponding PiT variants retain a throughput advantage. The observation helps locate the effect of a design change in the learning process. The size of the final accuracy difference depends on how long the competing networks have been allowed to train, while the architectural workload still gives them different execution speeds.

The larger-input study uses 384×384 images for fine-tuning. At that size, PiT again achieves accuracy comparable to ViT, but PiT has lower throughput. Since PiT starts from densely spaced patches, changing the size of the input changes the size of the grid its early attention blocks have to handle. The throughput result establishes the performance of the complete configuration when moved to the larger workload. The paper identifies its design for 224×224 images as the reason to consider a different architecture for the larger setting. A redesign for that case is a possibility the authors raise.

These two extensions qualify different statements from the main comparison. Longer optimization reduces the accuracy separation while preserving the throughput ordering. Larger inputs reverse the throughput ordering even with comparable accuracy. Thus, the size of the training improvement and the speed of the resulting network have to be read against different experimental conditions.

Object detection with pretrained features

For the detection study, the authors replace the backbone of a Deformable DETR detector with alternative pretrained feature extractors. A backbone produces image representations that the rest of the detector uses to recognize and locate objects. A detector needs spatial information for its bounding boxes as well as information about what appears in an image. This makes detection a direct test of whether PiT’s changing representation can supply useful features outside image-level classification.

The comparison uses PiT-S, ViT-S, and ResNet50 on COCO 2017, the detection dataset described in Microsoft COCO. The authors follow the Deformable DETR training setup with a shared change in image resolution. They halve the resolution at training and test time for all three backbones because the ordinary detector resolution is too demanding for the transformer backbones. The detector uses bounding-box refinement and the two-stage configuration. Refinement lets the detector update box predictions as it processes features, and the two-stage configuration concerns the detector’s processing, independently of the stages in PiT.

For the ViT-S backbone, the detector takes features from the 2nd, 8th, and 12th layers in correspondence with the chosen depths in PiT. The positions allow the detector to receive ViT features at several depths. PiT supplies features from its progression through different spatial resolutions. The comparison therefore includes an explicit way of making intermediate features available from both transformer backbones. Multi-depth access and access to different grid sizes still have distinct meanings in this setup.

Detector training runs for 50 epochs. The learning rate is reduced to 1/10 of its previous value at 40 epochs. The comparison uses average precision, or AP, on COCO val2017. Average precision summarizes detection performance through the relationship between correct detections and covered objects as detections are accepted by score. The paper reports that the detector with PiT-S achieves higher AP than the detector with ViT-S. The ResNet50 backbone still produces the highest AP of the three.

The timing measurement uses a single random-noise image of 600×400 and records latency, the time to process that input. PiT-S gives the lowest detector latency in the reported comparison. The result puts the accuracy and timing findings in context. PiT improves both reported outcomes relative to the ViT-S detector. Relative to the ResNet50 detector, the tested PiT detector offers lower latency alongside lower AP. These are measurements of complete detectors under the stated setup, with the backbone serving as the component under comparison.

Recognition when part of the image is missing

The robustness study uses variants the authors describe as comparable in ordinary recognition performance. The transformer comparison is between PiT-B and ViT-S. The study also includes ResNet50 implementations, including a well-optimized version. The reported ordinary ImageNet results help establish where the systems start before the authors alter the inputs.

Standard ImageNet validation accuracy for the robustness comparison

PiT leads the ordinary classification comparison before the images are altered.

Standard ImageNet validation accuracy for the robustness comparisonViT-S: 79.8ViT-S79.8ResNet50: 79.0ResNet5079.0PiT-B (this paper): 80.8PiT-B (this paper)80.8
The numbers
System or settingaccuracy %
ViT-S79.8
ResNet5079.0
PiT-B (this paper)80.8

One test replaces the central 112×112 patch of each image with zeros and evaluates classification on the ImageNet validation set. The intervention removes whatever object details or contextual cues lie in that central region. The resulting accuracy gives a measure of how successfully the network can classify using the rest of the image. The authors use it to probe reliance on a small, potentially discriminative region.

ImageNet validation accuracy after central occlusion

PiT retains higher classification accuracy than ResNet50 with the image center hidden.

ImageNet validation accuracy after central occlusionResNet50: 67.1ResNet5067.1PiT-B (this paper): 74.6PiT-B (this paper)74.6
The numbers
System or settingaccuracy %
ResNet5067.1
PiT-B (this paper)74.6

The ResNet50 comparison shows a larger drop from ordinary accuracy to accuracy with the center covered. The authors interpret this as evidence that the convolutional network in this test relies more heavily on local discriminative areas. The PiT–ViT comparison goes in favor of PiT as well. These findings measure recognition under a common disturbance. The comparison of scores before and after the change is important because the networks had different starting accuracies.

Unusual scenes, background changes, and perturbations

ImageNet-A offers a different type of difficulty. Its images are gathered from naturally occurring cases in which ResNet50 predicts the wrong label, using queries drawn from 200 ImageNet subclasses. As the authors describe it, the images can contain unusually small objects or unexpected backgrounds. The evaluated input remains a natural image. It is challenging because of the cases selected for the benchmark and the properties of those images.

The paper also uses the background challenge, or BGC, to change the context more directly. In this evaluation, the foreground is retained while the background is taken from a different image and chosen to make classification difficult. The task covers nine ImageNet subclasses, with a stated random chance baseline of 11.1% accuracy. Holding the foreground in place makes this test a closer examination of whether the background can pull the classifier toward the wrong class.

PiT performs better than ViT in the paper’s ImageNet-A and background comparisons. The background challenge also reveals an advantage for ResNet50 over the ViT side of the comparison, with the reported values 32.7 and 21.0 on BGC accuracy. The authors suggest that access to global image information through attention can include access to misleading context. The comparison itself establishes differences in classification behavior under the background changes. How the networks divide their reliance between object and background remains an interpretation of that behavior.

The final robustness benchmark applies the fast gradient sign method, FGSM. The evaluation uses an input perturbation intended to make the network misclassify. This adds a kind of difficulty distinct from a missing region or a natural mismatch between object and background. The procedure is associated with Explaining and Harnessing Adversarial Examples. The authors report that PiT exceeds ViT in this evaluation as well.

The direction of the comparison is thus consistent across the selected tests, while the tests differ in what the input change means. Central occlusion removes evidence. ImageNet-A changes the distribution of images under evaluation by selecting unusually difficult cases. The background challenge changes context around a retained foreground. FGSM adds a perturbation chosen to cause an error. PiT’s advantage across these conditions gives the authors grounds for connecting the dimension schedule to robustness on their benchmarks. The particular scores and rankings still belong to their respective tasks.

What the ablations show

Fitting and generalization in the ResNet comparison

The paper’s ResNet experiment is the direct test of the spatial convention it borrows. The conventional arrangement with reductions achieves lower training loss at comparable FLOPs. Loss measures how well the classifier fits the training objective and can continue to reflect changes in its predictions even when many predicted labels are already correct. The lower loss therefore supports the authors’ claim that the conventional arrangement can fit the task more effectively within the tested arithmetic budget.

The validation comparison adds a different observation. When the training accuracies of the candidates are considered alongside their validation accuracies, the conventional schedule reaches better validation performance. The practical benefit is larger than the statement that it can fit a given training set better. It also learns a predictor that works better on the held-out images at the operating points examined. The authors treat these as complementary reasons for the stronger final relationship between computation and validation accuracy.

Because the fixed-resolution ResNet uses its own stem, the intervention spans the beginning of processing and the later stage boundaries. A constant 14×14 map assigns the intermediate layers a different spatial job from the one those layers carry out in conventional ResNet50. This comparison is consequently informative about where computation is allocated across depth. The effect identified belongs to the full arrangement that the authors changed, with channel sizes varied to compare several computational budgets.

Repeating the comparison with transformer blocks

The ViT–PiT study uses the same diagnostic comparisons. At similar FLOPs, PiT reaches lower training loss. That observation shows that the pooled design’s validation advantage comes with better fitting in the tested setup. It also makes the allocation of computation relevant to how much the network can learn from the training objective. Giving every layer access to a constant number of spatial positions is one way to spend the budget. Starting denser and then consolidating positions gives a different distribution of work across the network.

The relation between training accuracy and validation accuracy is particularly revealing. For ViT, the paper reports cases of training accuracy increasing while validation accuracy stays roughly stationary. For PiT, higher training accuracy is accompanied by higher validation accuracy in the comparison. Adding capacity to a network can improve its predictions on the images it has seen, so the held-out result is needed to distinguish better fitting from better recognition. The behavior of PiT under simple training supports the authors’ view that the changing spatial arrangement helps with both.

The training recipe comparisons clarify the conditions under which this difference is largest. CutMix improves the training environment for both families and PiT retains the advantage the authors observe under simpler training. A fuller recipe, distillation, and extended training give ViT more help and produce closer outcomes in some of the comparisons. This connects the architectural analysis with the measured results. The poor return from increased ViT capacity is a feature of particular data and training conditions, and stronger training changes the observed degree of that problem.

Taken together, the ResNet and transformer experiments approach the design question from opposite directions. Removing a hierarchy from a convolutional backbone makes its comparison worse, and introducing one into the ViT family makes that comparison better. The agreement is informative because the architectures have different ways of mixing spatial information within their blocks. The common finding concerns the allocation of spatial and channel dimensions across depth. In both cases, the authors evaluate complete dimension schedules.

Attention early and late in the network

The attention analysis describes an internal difference alongside the performance comparisons. In ViT-S, both entropy and distance rise as the network gets deeper. The early layers tend to direct attention to a smaller set of positions nearer the position under consideration. Deeper layers distribute weight more broadly and across greater relative distances. The paper sees a resemblance to the pattern described in earlier attention analysis for a language transformer.

PiT-S has higher entropy and distance than ViT-S in shallow layers, identified by the authors as layers 1-2. Those layers operate before the architecture has reduced the initial dense representation. The later layers singled out by the paper, layers 9-11, show lower entropy and distance in PiT-S. By then, the spatial grid has been coarsened. The architectural change is associated with a redistribution of when broad interactions take place. PiT has more dispersed, longer-range attention early in processing and more concentrated, shorter-range attention late relative to ViT.

The distance result is expressed in normalized coordinates. A larger early grid has more available positions, and distance still asks how far the assigned weight extends relative to the grid as a whole. The result is consequently about where weight goes across the map in addition to the number of positions the map supplies. The two diagnostics support related descriptions. Entropy tracks how evenly weight is distributed across available positions. Distance tracks how far the positions receiving weight tend to be from one another in relative coordinates.

The authors connect this change to their view of what early and late image processing require. An input patch contains visual responses for which filtering and adjustments to brightness or contrast are pertinent analogies. They suggest that a wider range of interactions early can suit this kind of processing. As representations become more useful for recognition, the authors propose that more concentrated interactions may suffice for an image-level decision. The experiment measures the weights and locations underlying the pattern. Identifying particular learned operations with filtering or brightness adjustment would require evidence about the feature transformations themselves.

There is also a structural distinction between a late spatial token in PiT and one in ViT. A token on a pooled grid represents information from a neighborhood after earlier processing. Its interactions can be concentrated on a small number of tokens that individually carry information combined from larger regions. The measured late decrease therefore describes weights among coarse representations. It leaves open how much of the original image contributes indirectly to each interaction through the layers below it.

What the comparisons say about the pooling layer

The study gives evidence for the placement of pooling within an entire architecture. The denser starting grid, the spatial reductions, the growth in channel width, and the treatment of special tokens work together in the evaluated PiT. Relative to fixed-grid ViT, that combination gives more favorable training and validation behavior in the architectural analysis. The transfer to detection gives a further case where the resulting spatial features are useful.

Component-level questions remain open. The experiments leave the relative contributions of the embedding stride and the later reductions undetermined. They also leave open how much of the benefit depends on using depth-wise convolution for those reductions and how the result would change with different choices of stage widths or boundaries. The observed attention patterns give a detailed account of what accompanies the tested architectural change. They leave the causal contribution of attention entropy and distance to the performance gains unresolved.

Limitations

Limits identified by the authors

The authors describe PiT as a manually configured family with depths and widths chosen to make it a plausible counterpart to ImageNet-scale ViT. A large search over spatial schedules, operators, and stage widths remains future work. The reported settings show that a particular hierarchy can be effective. How far a search could improve the tradeoff, and which dimensions it would select, remain open.

The authors give two concrete limits on the range of their classification and throughput results. Small convolutional systems outperform the tiny variants in the broad ImageNet comparison. Higher input resolution also exposes a speed problem for the particular PiT design. At 384×384, comparable classification accuracy comes with worse throughput than for ViT. The proposed remedy is a design adapted to the larger input size, whose performance remains to be measured.

They also acknowledge the AP advantage of ResNet50 in detection. PiT-S improves the transformer comparison and has the lowest measured latency, while improved accuracy for the PiT detector remains a training question the authors leave open. The shared reduction in image resolution establishes a feasible setting for the backbones being compared. Performance at the original detector resolution and the interaction with different training settings remain beyond that tested configuration.

In robustness evaluation, the authors explicitly call attention to ImageNet-A’s selection process. A dataset formed from ResNet50 errors can reflect the types of evidence to which that architecture is sensitive. A comparison with ResNet50 on that collection is consequently affected by the benchmark’s construction. The background challenge supplies additional evidence about the background question using a different input manipulation. The authors also take ResNet50’s advantage in that challenge as a reason to investigate background sensitivity in transformers further.

How far the architecture comparison goes

The headline question concerns spatial resolution, but the practical intervention changes several quantities at once. PiT starts with a denser grid, reduces it at selected boundaries, and increases the channel count. Its special tokens also need new projections at those boundaries. The fixed-grid ResNet has a modified entry operation as well as the removed reductions. These are comparisons of implementable architectures, and the positive finding is strongest at that level of description. The benefit of a reduction at fixed embedding stride and width schedule would require its own comparison.

The architectural analysis measures fitting after a specified training procedure. Lower training loss at comparable FLOPs describes the networks that optimization produced under that procedure. It leaves open how much of the advantage comes from the set of functions the network can represent and how much comes from the ease with which its parameters are fitted. Training-loss curves are evidence about realized fitting under a budget. Their scope is narrower than a formal statement about expressive power.

Similarly, generalization in the principal experiments means performance on held-out ImageNet examples in relation to success on training images. The stronger recipes show that this relationship changes with augmentation, teacher supervision, and training duration. The full body of comparisons supports the usefulness of the tested design over a range of ImageNet conditions. The authors’ stronger suggestion that pooling is essential to a vision architecture built around self-attention extends beyond what the comparisons establish for other designs or data regimes.

The cross-family classification comparison has a different scope from the matched comparisons. The best reported convolutional and transformer results can reflect different optimization choices, so the ranking tells the reader what those architectures achieved with their respective recipes. It leaves the effect of using a single recipe across those families undetermined. Restricting the comparison to ImageNet images gives a common data condition while allowing training procedures to vary.

Where the measurements end

Throughput belongs to a workload and hardware environment. The main numbers describe batched execution on a V100, and the detection latency describes a single input of the stated resolution. A different batch size, image size, or execution environment could change how the operations are scheduled and how much time they take. The larger-image experiment demonstrates that sensitivity within the paper’s own design family. It gives direct evidence for the value of keeping the image resolution attached to the throughput comparison.

The detection latency measurement uses random noise and the reported input dimensions. It captures the measured speed of the complete detector under that input condition. The validation AP comparison, by contrast, concerns recognition and localization on actual validation images. The favorable latency and lower AP relative to ResNet50 belong to these two different measurements. Their relevance to another detector workload would depend on the image and execution conditions chosen for that workload.

Each robustness result also has a specific scope. Central occlusion measures the consequences of losing the center of an image. The outcome leaves open how the same network responds when a different region is missing or when evidence is suppressed in a different way. Background replacement targets contextual dependence under the construction of BGC. ImageNet-A selects a particular kind of naturally occurring difficulty. The FGSM result applies to the reported adversarial test. A more general claim about reliable recognition under disturbance would require evidence over a broader range of conditions.

There is a further issue of attribution in the robustness results. The comparison uses PiT-B and ViT-S, with comparable but distinct ordinary accuracies. Their different responses to altered inputs support an empirical advantage for the specific PiT system evaluated. How much comes from the spatial schedule, the differences between the particular variants, or their baseline quality remains open. The ordinary accuracies make that context visible before the disturbed-image scores are considered.

Finally, the attention diagnostics describe averages over images and heads, restricted to spatial tokens and omitting the final block. Average curves can summarize the predominant movement through depth while leaving individual images or heads quite different from their surroundings. The entropy formula is also sensitive to the set of positions over which attention can spread. Successively smaller grids change that set. The normalized distance measure addresses the coordinate scale, while the two measures together still describe interactions among units with different spatial histories. Evidence that a particular attention pattern causes the accuracy or robustness gain would require an intervention on those interactions.

What came after

The later Towards Robust Vision Transformer from 2022 cites PiT in work whose stated subject is robustness in vision transformers. The connection is closest to the part of the PiT study that relates spatial design to outcomes under occlusion, unusual scenes, background changes, and perturbations. The citation and title establish that the work refers to PiT while addressing robustness. How it uses PiT in its architecture or experiments remains unspecified.

PanGu-π cites the paper in 2023 in a different architectural setting. Its stated focus is nonlinearity compensation in language networks. PiT concerns a transformer architecture too, but its intervention operates on an explicit image grid and pairs spatial coarsening with wider features. The citation records a connection to later language architecture research. It leaves open which argument or result from PiT the later authors draw on and what technical role it plays.

The two citations put the paper alongside later research on transformer design and robustness. The concrete result that carries into that discussion is the demonstration that a transformer’s pattern of spatial interaction can be retained within blocks while the grid changes between them. PiT ties that change to measurable differences in fitting, validation accuracy, throughput, and behavior under input disturbances. Its experiments leave later work with a specific architectural alternative to assess and with clear conditions under which the comparisons change.

Cite

Cite as Byeongho Heo, Sangdoo Yun, Dongyoon Han, Sanghyuk Chun, Junsuk Choe and Seong Joon Oh. 2021. Rethinking Spatial Dimensions of Vision Transformers. 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/iccv48922.2021.01172 · arXiv 2103.16302

@inproceedings{heo2021rethinking,
  title = {{Rethinking Spatial Dimensions of Vision Transformers}},
  author = {Byeongho Heo, Sangdoo Yun, Dongyoon Han, Sanghyuk Chun, Junsuk Choe and Seong Joon Oh},
  booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01172},
  eprint = {2103.16302},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/iccv48922.2021.01172}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/heo-2021-rethinking-spatial-dimensions-vision-transformers/

References

44 references, from the paper's own bibliography.

  1. Jimmy Lei Ba, Jamie Ryan Kiros, and Geoffrey E Hinton. Layer normalization. arXiv preprint arXiv:1607.06450, 2016. OpenAlex ↗ · Scholar ↗
  2. Irwan Bello. Lambdanetworks: Modeling long-range interactions without attention. In International Conference on Learning Representations, 2021. OpenAlex ↗ · Scholar ↗
  3. Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018. our card
  4. Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In European Conference on Computer Vision, pages 213–229. Springer, 2020. our card
  5. Nadav Cohen, Or Sharir, and Amnon Shashua. On the expressive power of deep learning: A tensor analysis. In Conference on learning theory, pages 698–728. PMLR, 2016. OpenAlex ↗ · Scholar ↗
  6. Nadav Cohen and Amnon Shashua. Inductive bias of deep convolutional networks through pooling geometry. In International Conference on Learning Representations, 2016. OpenAlex ↗ · Scholar ↗
  7. Zihang Dai, Guokun Lai, Yiming Yang, and Quoc V Le. Funnel-transformer: Filtering out sequential redundancy for efficient language processing. arXiv preprint arXiv:2006.03236, 2020. OpenAlex ↗ · Scholar ↗
  8. Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248–255. Ieee, 2009. OpenAlex ↗ · Scholar ↗
  9. Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021. our card
  10. Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. our card
  11. Dongyoon Han, Jiwhan Kim, and Junmo Kim. Deep pyramidal residual networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5927–5935, 2017. OpenAlex ↗ · Scholar ↗
  12. Dongyoon Han, Sangdoo Yun, Byeongho Heo, and YoungJoon Yoo. Rethinking channel dimensions for efficient model design. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 732–741, 2021. OpenAlex ↗ · Scholar ↗
  13. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016. our card
  14. Tong He, Zhi Zhang, Hang Zhang, Zhongyue Zhang, Junyuan Xie, and Mu Li. Bag of tricks for image classification with convolutional neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. OpenAlex ↗ · Scholar ↗
  15. Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. arXiv preprint arXiv:1907.07174, 2019. OpenAlex ↗ · Scholar ↗
  16. Byeongho Heo, Sanghyuk Chun, Seong Joon Oh, Dongyoon Han, Sangdoo Yun, Gyuwan Kim, Youngjung Uh, and Jung-Woo Ha. Adamp: Slowing down the slowdown for momentum optimizers on scale-invariant weights. In International Conference on Learning Representations, 2021. OpenAlex ↗ · Scholar ↗
  17. Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. our card
  18. Elad Hoffer, Tal Ben-Nun, Itay Hubara, Niv Giladi, Torsten Hoefler, and Daniel Soudry. Augment your batch: Improving generalization through instance repetition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8129–8138, 2020. OpenAlex ↗ · Scholar ↗
  19. Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for mobilenetv3. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1314–1324, 2019. OpenAlex ↗ · Scholar ↗
  20. Hanjoo Kim, Minkyu Kim, Dongjoo Seo, Jinwoong Kim, Heungseok Park, Soeun Park, Hyunwoo Jo, KyungHyun Kim, Youngil Yang, Youngkwan Kim, Nako Sung, and Jung-Woo Ha. NSML: meet the mlaas platform with a real-world case study. CoRR, abs/1810.09957, 2018. OpenAlex ↗ · Scholar ↗
  21. Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25:1097–1105, 2012. our card
  22. Boyi Li, Felix Wu, Kilian Q Weinberger, and Serge Belongie. Positional normalization. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. OpenAlex ↗ · Scholar ↗
  23. Xiao Li, Jianmin Li, Ting Dai, Jie Shi, Jun Zhu, and Xiaolin Hu. Rethinking natural adversarial examples for classification models. arXiv preprint arXiv:2102.11731, 2021. OpenAlex ↗ · Scholar ↗
  24. 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
  25. Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018. OpenAlex ↗ · Scholar ↗
  26. Filip Radenović, Giorgos Tolias, and Ondřej Chum. Fine-tuning cnn image retrieval with no human annotation. IEEE transactions on pattern analysis and machine intelligence, 41(7):1655–1668, 2018. OpenAlex ↗ · Scholar ↗
  27. Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, and Piotr Dollár. Designing network design spaces. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10428–10436, 2020. our card
  28. Prajit Ramachandran, Niki Parmar, Ashish Vaswani, Irwan Bello, Anselm Levskaya, and Jon Shlens. Stand-alone self-attention in vision models. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. OpenAlex ↗ · Scholar ↗
  29. 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 ↗
  30. Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. our card
  31. Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1–9, 2015. OpenAlex ↗ · Scholar ↗
  32. Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International Conference on Machine Learning, pages 6105–6114. PMLR, 2019. our card
  33. Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. In International Conference on Machine Learning, pages 10347–10357. PMLR, 2021. our card
  34. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. arXiv preprint arXiv:1706.03762, 2017. our card
  35. Jesse Vig and Yonatan Belinkov. Analyzing the structure of attention in a transformer language model. arXiv preprint arXiv:1906.04284, 2019. our card
  36. Huiyu Wang, Yukun Zhu, Bradley Green, Hartwig Adam, Alan Yuille, and Liang-Chieh Chen. Axial-deeplab: Stand-alone axial-attention for panoptic segmentation. In European Conference on Computer Vision, pages 108–126. Springer, 2020. OpenAlex ↗ · Scholar ↗
  37. 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 ↗
  38. Ross Wightman. Pytorch image models. https://github.com/rwightman/pytorch-image-models, 2019. OpenAlex ↗ · Scholar ↗
  39. Yuxin Wu and Kaiming He. Group normalization. In Proceedings of the European conference on computer vision (ECCV), pages 3–19, 2018. OpenAlex ↗ · Scholar ↗
  40. Kai Xiao, Logan Engstrom, Andrew Ilyas, and Aleksander Madry. Noise or signal: The role of image backgrounds in object recognition. arXiv preprint arXiv:2006.09994, 2020. OpenAlex ↗ · Scholar ↗
  41. Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 6023–6032, 2019. our card
  42. Sangdoo Yun, Seong Joon Oh, Byeongho Heo, Dongyoon Han, Junsuk Choe, and Sanghyuk Chun. Re-labeling imagenet: from single to multi-labels, from global to localized labels. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2340–2350, 2021. OpenAlex ↗ · Scholar ↗
  43. Hang Zhang, Chongruo Wu, Zhongyue Zhang, Yi Zhu, Zhi Zhang, Haibin Lin, Yue Sun, Tong He, Jonas Mueller, R Manmatha, et al. Resnest: Split-attention networks. arXiv preprint arXiv:2004.08955, 2020. OpenAlex ↗ · Scholar ↗
  44. Xizhou Zhu, Weijie Su, Lewei Lu, Bin Li, Xiaogang Wang, and Jifeng Dai. Deformable detr: Deformable transformers for end-to-end object detection. arXiv preprint arXiv:2010.04159, 2020. OpenAlex ↗ · Scholar ↗