Elamur Research

Towards Robust Vision Transformer

Paper · 2022 · Xiaofeng Mao, Gege Qi, Yuefeng Chen et al.

Summary

Improving an image classifier’s performance on ordinary photographs does not necessarily make it dependable when those photographs change. An architecture can become more accurate, faster, or cheaper while becoming easier to disrupt. Towards Robust Vision Transformer investigates this mismatch by examining how individual design choices affect classification under attacks, image corruption, and unfamiliar visual styles. Its subject is the vision Transformer, which represents an image through patch features and uses attention to connect information across those patches. The authors ask which parts of this architecture support reliability and which can undermine it despite attractive ordinary accuracy.

Their investigation starts from DeiT-Ti and changes the image embedding, positional representation, internal blocks, and final aggregation mechanism. Several useful distinctions emerge. Extracting local visual structure before attention helps, as does exchanging information between neighboring tokens inside the feed-forward network. Confining attention itself to local windows, however, weakens the measured adversarial performance. The arrangement of spatial stages and attention heads also matters. Combining the favorable choices produces Robust Vision Transformer, or RVT: a network with a convolutional input stem, a selected progression of spatial resolutions, an appropriate division into attention heads, convolutional feed-forward processing, and averaging over the final image-token representations.

The authors then introduce additional mechanisms for position and training diversity. Position-aware attention scaling, abbreviated PAAS, learns a multiplier for each query-position and key-position pairing. These multipliers modify the attention scores before normalization, allowing positional preferences to remain separate from input-dependent content comparisons. Patch-wise augmentation changes individual patches after the image has already received conventional augmentation. Its purpose is to vary relationships among image regions, since a transformation applied uniformly to the whole image leaves some relationships unchanged. The designation RVT* identifies RVT trained with both additions.

The main experiments train on ImageNet-1K and test ordinary classification alongside several distinct challenges. RVT-Ti* obtains 79. Top-1 accuracy is 2% on the validation set for ImageNet-1K, with 1.3G FLOPs and 10.9M parameters. RVT-S* records 81.9% standard accuracy and 49.4 mean corruption error on ImageNet-C, where smaller error is preferable. For RVT-S, the results discussion reports 35.0% accuracy on ImageNet-Sketch and 46.9% on ImageNet-R. The authors also report leading leaderboard positions for RVT-S* on corruption, sketch, and rendition benchmarks. These results support the usefulness of selecting architectural parts with robustness explicitly in view, rather than hoping that gains in standard accuracy will automatically transfer.

The paper also supplies reasons to qualify that conclusion. Its appendix describes configurations that handle several natural distribution changes well but remain vulnerable to a particular attack. A tokens-to-token embedder, for example, performs favorably on multiple benchmarks yet reaches only 4.7% robust accuracy under PGD. Although attention displays and visualizations of features clarify the authors’ reasoning, they do not demonstrate a general defense. The lasting contribution is an empirical way to design and assess a vision architecture: examine the contribution of its parts, preserve communication needed for difficult inputs, and keep different kinds of robustness visible throughout evaluation.

Interesting ideas

Make difficult conditions part of component selection. A completed system’s failure can be hard to trace when many design choices changed together. Testing interchangeable parts against ordinary inputs and deliberately difficult conditions exposes hidden costs earlier. This is useful in any pipeline whose stages can improve a convenient metric while damaging behavior elsewhere, from document processing to structured prediction. The paper shows why component selection needs more than a ranking by standard accuracy.

Distinguish enrichment from restriction. Adding information from nearby regions and preventing access to distant regions both introduce locality, but they perform different jobs. RVT benefits from local feature extraction and local exchange while preserving broad attention. The transferable question is therefore where an assumption enters the computation. A local operation may improve evidence without justifying a local boundary around everything the system can consider.

Represent structural preferences separately. PAAS gives position its own learned influence over content comparisons. This makes it possible to ask whether an interaction is strong because of the current input or because of a persistent positional preference. Similar separation can help elsewhere when structural expectations, priors, or routing preferences risk becoming entangled with observed evidence. Its value depends on checking the resulting decisions, rather than assuming that a cleaner decomposition guarantees better behavior.

Augment what the representation relates. Whole-image transformations change appearance, but they do not independently vary every relationship among patches. The authors use the representation itself to identify a missing source of training diversity. This suggests a broader approach to augmentation: inspect which dependencies a system learns, then determine which valid variations ordinary training leaves underexplored. For language or symbolic data, validity must include preservation of the intended meaning and target.

Compare arrangements under a controlled budget. The attention-head study changes how a fixed feature dimension is divided, while the stage study redistributes a fixed collection of blocks. These comparisons make architectural organization visible without attributing every improvement to more capacity. The same principle helps compare specialist groups, feature partitions, or processing schedules when computational resources must remain comparable.

Keep failure categories separate. Favorable results on corruption and natural distribution changes can coexist with poor adversarial performance. Such disagreement reveals a boundary of competence that an overall score can conceal. In evaluation and benchmarks, this means preserving the conditions under which each result was obtained and studying reversals between rankings. A useful system can improve substantially without becoming dependable against every relevant challenge.

Use explanations to investigate results. Attention patterns, feature displays, and loss surfaces can suggest why an intervention helps. Their strongest role is diagnostic: they direct attention toward possible mechanisms and failure cases. They should accompany behavioral measurements, since an orderly internal picture does not establish correct predictions. This distinction is valuable wherever transparency makes internal processes available for inspection.

Deep dive: Towards Robust Vision Transformer

How Robust Vision Transformer selects resilient components and uses positional attention scaling and patch augmentation to handle difficult images. · about 37 minutes to read

How Mova uses it

Mova’s documented core is a transparent language system written in Rust, with explicit parsing, frames, world state, and bounded operational interfaces. The connection to RVT is methodological instead of an established transfer of its image architecture. The status marks below compare proposed applications with the mechanisms described for Mova. They do not assert that those mechanisms originated in RVT, or that RVT has already improved Mova. Every language-specific extension would need its own evaluation.

Idea: Assess a component through its failure profile. Where: “Robustness Analysis of Designed Components.” Area: evaluation. Mova: частково є (en rule audits and the regression gates described in docs/training.md). Mova already compares changes against held-out behavior, including controls for linguistic rules. The further proposal is to attach a stable collection of failure conditions to each interchangeable stage, so that a parser improvement can also be inspected for downstream frame and answer regressions. Why Mova: this would make local gains easier to distinguish from changes that merely move errors elsewhere.

Idea: Treat ordinary success and stressed success as separate outcomes. Where: Introduction and “Robustness Evaluation.” Area: evaluation. Mova: частково є (tests/README.md, course controls, and the CPU/GPU comparison contract). The paper demonstrates that ordinary image accuracy can conceal a different vulnerability. Mova could retain an ordinary-input result beside controlled spelling, formatting, and formulation variations, provided each variation has an explicit expected interpretation. Why Mova: a language interface needs evidence about both familiar phrasing and valid alternatives.

Idea: Preserve disagreements among benchmarks. Where: Appendix, “Additional Results of Robustness Analysis on Designed Components.” Area: statistics and evaluation. Mova: частково є (separate reader benchmarks and school assessment reports). Mova could identify changes whose rankings reverse across parsing, narrative tracking, arithmetic reading, and pragmatic interpretation. The proposal is a comparison report, instead of a single combined robustness score. Why Mova: reversals can reveal a useful specialization or an unacceptable regression that averaging would hide.

Idea: Distinguish local evidence enrichment from restricted context. Where: “Transformer Blocks,” findings on locality and convolutional FFN. Area: syntax and context handling. Mova: частково є (en parses local relations, while prag, coref, and world connect larger structures). A proposed experiment could compare a local repair with a version that also checks broader sentence or document evidence. The vision result motivates the question without establishing the best language context range. Why Mova: nearby words can support a rule while distant evidence determines whether that rule is appropriate.

Idea: Keep structural expectations apart from current evidence. Where: “Position-Aware Attention Scaling.” Area: knowledge representation. Mova: частково є (compiled global knowledge is distinct from document state in docs/architecture.md). PAAS offers a specific example of separating persistent structure from an input-dependent comparison. Mova could make the analogous distinction explicit in rule traces: which premise comes from a general rule, and which comes from the current text. Why Mova: explicit premises make an incorrect generalization easier to locate and revise.

Idea: Consider a learned positional multiplier only in an applicable attention path. Where: “Position-Aware Attention Scaling.” Area: experimental neural parsing. Mova: нове. The documented GPU parser uses a Transformer, making PAAS a possible experiment there; its application to Mova is unknown. Such an experiment would compare positional mechanisms under the existing CPU-reference agreement contract. It would remain separate from the rule-based language core. Why Mova: this could test a concrete architectural hypothesis without treating a visual result as evidence of linguistic benefit.

Idea: Separate fixed relationships from input-sensitive relationships. Where: the explanation of input-independent positional weights in “Position-Aware Attention Scaling.” Area: syntax and statistics. Mova: частково є (compiled seeds and learned parser parameters have distinct roles). A rule audit could ask whether an unstable decision comes from a fixed structural preference or an input-dependent feature. This borrows the decomposition, without requiring a positional matrix. Why Mova: different sources of instability call for different repairs and different admission checks.

Idea: Vary relationships among valid input parts. Where: “Patch-Wise Augmentation.” Area: data and robustness. Mova: нове. A language counterpart could vary independently chosen, meaning-preserving details across clauses or sentences while retaining an unchanged question target. Word order changes, substitutions, and referential changes cannot be assumed safe; each proposed transformation needs a checked semantic condition. Why Mova: controlled combinations could reveal brittle interactions that isolated examples do not expose.

Idea: Compose augmentation stages deliberately. Where: “Patch-Wise Augmentation,” where patch transformations follow image-level transformations. Area: data preparation. Mova: нове. A proposed text procedure could distinguish document-wide formatting changes from local, semantically checked variations, then evaluate their combination separately. The ordering would need explicit justification because textual transformations can interact. Why Mova: separating the stages would make it possible to identify which kind of variation causes a failure.

Idea: Search mild transformations before building a complex policy. Where: “Ablation Studies,” basic patch transformations. Area: data and experimental design. Mova: частково є (closed morphological rules and negative controls in tools/forms/src/rules.rs). The analogous proposal is to begin with a small, interpretable set of valid text transformations and assess each individually before enlarging the search. Why Mova: simple transformations can produce useful evidence while keeping expected behavior reviewable.

Idea: Protect assessment meaning when generating variants. Where: “Patch-Wise Augmentation” and “Evaluation Benchmarks.” Area: assessment data. Mova: частково є (tools/enrich separates reviewed drafts from admission, and assessment material remains outside training). The paper’s image procedure suggests variation, but Mova must additionally establish whether the answer should remain stable. Generated assessment variants should carry that condition and retain their original split. Why Mova: otherwise a robustness test could silently change its target or contaminate training.

Idea: Test the organization of a fixed capacity. Where: “Transformer Blocks,” attention-head analysis. Area: statistics and resource allocation. Mova: нове. A bounded experiment could hold the available feature or specialist budget constant while changing its division across linguistic functions. This would be an analogy to the head experiment, not a claim that rule specialists behave like attention heads. Why Mova: it could reveal whether better allocation helps more than adding further machinery.

Idea: Allocate processing stages by measured usefulness. Where: “Transformer Blocks,” stage-distribution analysis. Area: execution and efficiency. Mova: частково є (tools/jobs records estimates and actual usage; the retained reader has bounded passes). Mova could compare different allocations of inspection effort while keeping an overall bound fixed, examining both resource use and answer quality. Why Mova: a deeper examination of every intermediate object may cost more without improving the final decision.

Idea: Compare complex aggregation with a transparent alternative. Where: “Classification Head.” Area: evidence aggregation. Mova: частково є (treeagree uses explicit voting rules, while the mice deduplicate observations). RVT’s pooling comparison motivates testing whether a specialized aggregator improves on a simpler, inspectable baseline. For Mova, averaging cannot be substituted blindly for logical compatibility checks or rule priority. Why Mova: the comparison could identify complexity that adds no measurable decision value.

Idea: Inspect complementary evidence rather than counting contributors. Where: the attention-head discussion in “Transformer Blocks.” Area: analysis and ensemble design. Mova: частково є (treeagree hint reports agreement statistics and source distributions). Additional witnesses may repeat the same errors. Mova could examine which source contributes a correct distinction unavailable from the others, alongside the existing agreement reports. Why Mova: evidence diversity matters more than the appearance of having many reviewers.

Idea: Evaluate the assembled combination after isolated improvements. Where: “Combination of Robust Components.” Area: experimental design. Mova: вже є (regression-gated rule changes and the self-play process described in docs/training.md). The paper reinforces the need to check the complete configuration after favorable component results. For Mova, an individually useful repair still needs evaluation with existing repairs active. Why Mova: rule interactions can alter when a condition fires even when each rule is understandable on its own.

Idea: Keep architectural and training contributions distinguishable. Where: “Combination of Robust Components” and “Ablation Studies.” Area: evaluation and provenance. Mova: частково є (skeleton changes, graph admission, and parameter training are separate operations in the hybrid-system contract). A run record could consistently distinguish changes to rules, changes to admitted knowledge, and changes to supervision. Why Mova: this would help explain whether an improvement came from reasoning structure, additional evidence, or changed parameters.

Idea: Look for saturation before extending an intervention. Where: “Ablation Studies,” multiple-block PAAS. Area: efficiency and statistics. Mova: частково є (mice.rs stops bounded epochs when material changes cease, with a hard cap). The additional proposal is to measure marginal decision gains as a repair, review, or reading mechanism is repeated at more locations. Why Mova: stopping should reflect demonstrated usefulness as well as an operational limit.

Idea: Check transfer across receiving systems. Where: “Ablation Studies,” experiments on other ViT architectures. Area: evaluation. Mova: частково є (English and French repair layers have separate measurements and conventions). A general-looking improvement could be tested across readers, languages, or corpora without assuming identical effects. Why Mova: an intervention tied to one annotation convention should not acquire a broader claim merely because its implementation is reusable.

Idea: Report resource costs beside task outcomes. Where: stage analysis and “Standard Performance Evaluation.” Area: efficiency. Mova: вже є (tools/twin, tools/jobs, and bounded reader execution). The proposed reporting practice is to keep processing cost visible alongside correctness whenever competing configurations are compared. Why Mova: a practical language module needs a defensible balance between useful analysis and the resources required to obtain it.

Idea: Distinguish favorable isolated results from practical selection. Where: “Patch Embedding,” the choice between convolution and tokens-to-token embedding. Area: engineering decisions. Mova: частково є (CPU is the reference path, while GPU approximants carry measured agreement). A decision record could explain why a component was selected even when another wins a particular metric. Why Mova: deployment choices often require an explicit compromise among accuracy, exactness, latency, and memory.

Idea: Audit training transformations against benchmark construction. Where: “Common Corruption Robustness,” the discussion of RandAugment. Area: data provenance and evaluation. Mova: вже є (tools/dictindex excludes assessment text, and training paths distinguish admitted supervision from frozen assessment). A further audit could check whether generated training variations closely reproduce the construction of a robustness test. Why Mova: apparent resilience should not depend on unacknowledged exposure to the evaluation procedure.

Idea: Record the full conditions of an adversarial test. Where: “Robustness Evaluation,” attack settings. Area: evaluation and reproducibility. Mova: частково є (source-bound run records and explicit configuration identities in worker interfaces). A textual attack report should name the permitted transformations, attacker access, stopping limits, and expected answer relation. Why Mova: a score without its attack conditions cannot support a clear robustness claim.

Idea: Use traces to propose explanations, then test them. Where: “Position-Aware Attention Scaling” and Appendix, “Feature Visualization.” Area: interpretability. Mova: вже є (rule reasons, rejected-edit records, and question traces are retained separately from scored outcomes). The paper supports using internal evidence to formulate a diagnosis while keeping final correctness as an independent check. Why Mova: an intelligible explanation can still explain an incorrect decision.

Idea: Compare internal behavior across ordinary and difficult inputs. Where: Appendix, “Feature Visualization.” Area: error analysis. Mova: частково є (native decisions expose rule, feature, or knowledge evidence). Mova could pair traces from a sentence and a checked variant, locating the first consequential divergence in parsing, frames, or world updates. Why Mova: identifying where interpretations separate is more actionable than observing only different final answers.

Idea: Distinguish redundancy from useful agreement. Where: Appendix, feature-map analysis. Area: statistics and evidence processing. Mova: частково є (treeagree reports chance-corrected agreement, and mice observations are deduplicated). A proposed analysis could identify repeated evidence while preserving independent corroboration and provenance. Why Mova: removing duplication can reduce noise, but merging genuinely independent support would discard useful information.

Idea: Keep an explanation’s mathematical scope explicit. Where: “Position-Aware Attention Scaling” and Appendix, “Loss Landscape Visualization.” Area: mathematics and interpretation. Mova: частково є (groupants declare assumptions, observable behavior, and evidence scope). Mova could record whether a statement is an executable guarantee, a measured pattern, or an explanatory hypothesis. Why Mova: this supports its role as a logical module by preventing suggestive diagnostics from becoming stronger claims.

Idea: Preserve exceptional cases in the experimental record. Where: Appendix, contrasting stage and embedding outcomes. Area: learning and research practice. Mova: вже є (the self-play journal keeps unsuccessful as well as successful experiments). RVT’s exceptions illustrate why negative findings should remain attached to the design history. Why Mova: revisiting an attractive intervention is more productive when its previous failure conditions remain available.

Idea: Keep capability claims tied to their tested domain. Where: “Evaluation Benchmarks” and the appendix’s warning about benchmark coverage. Area: operational reasoning. Mova: вже є (docs/hybrid-system.md limits native task execution to configured capabilities). A successful language or worker benchmark should extend a capability claim only within its stated assumptions and task family. Why Mova: explicit scope lets callers use the module’s result without treating a bounded success as unrestricted understanding.

The problem and its context

Accuracy is an incomplete design objective

The paper begins with an architectural concern. Vision Transformers were being modified in many useful ways, but the authors argue that ordinary classification and computational cost dominated the comparisons. Those criteria reward a network that recognizes familiar validation images accurately and processes them economically. They do not directly reveal how predictions behave when an attacker changes an image, when acquisition introduces corruption, or when an object appears in an unfamiliar visual form.

This distinction matters because the same modification can affect different behaviors in opposite directions. The introduction points to PVT-Small, reporting 26.6% robust accuracy under FGSM and describing it as 14.1% below DeiT-S. PVT remains attractive on standard classification in the authors’ comparison. The example therefore challenges an inference about design: a successful architectural refinement for the usual task may introduce a new weakness under a different test.

The problem is broader than deciding whether Transformers or convolutional networks are generally more robust. Architectural families contain many choices. Patch construction, positional signals, spatial resolution, attention organization, and output aggregation can all change what evidence reaches the classifier. Treating an entire family as a single design risks overlooking which choices explain its successes or failures.

The architectural background

The authors trace interest in visual attention architectures to successful language applications, including BERT. They describe ViT as establishing that an image-classification network could use a pure Transformer architecture. Its important capability in their account is communication across distant image regions through self-attention. This offers a different way to organize visual computation from relying completely on convolutional operations.

Subsequent work explored several directions. DeiT addressed training-data efficiency. Swin Transformer changed the spatial scope of attention. Other systems introduced convolutional processing or pooling. These modifications provided the authors with a set of candidate mechanisms whose effects could be examined individually.

Some candidates borrow the staged organization familiar from convolutional architectures. Spatial representations become smaller as feature representations grow richer. The paper discusses this progression through work including PiT. Such a hierarchy can improve ordinary recognition, but its detailed allocation of computation is still a choice. RVT asks whether the number of blocks operating at each spatial scale also influences robustness.

Convolution enters the discussion at different locations. An input stem can extract elementary image features before attention begins. A convolution inside a feed-forward block can connect neighboring tokens later in processing. These changes differ from replacing global attention with windowed attention. The authors’ analysis gains much of its value from separating operations that might otherwise be grouped together as simply adding locality.

What robustness research had already considered

The paper presents convolutional-network robustness as an established area with many intervention points. Earlier approaches changed augmentation, architecture, training, or numerical representation. Others examined pooling, activations, or weight pruning. This background shows that robustness can depend on details throughout a network. It does not demonstrate that an intervention retains the same effect when transferred to a Transformer.

Adversarial examples form an important part of that background. The cited work includes Intriguing properties of neural networks and Explaining and Harnessing Adversarial Examples. In this setting, the input is deliberately perturbed within a permitted constraint to make prediction fail. Robust accuracy measures whether the classifier remains correct on those attacked inputs.

The authors also emphasize conditions that do not require such deliberate optimization. Images may contain corruption, or they may belong to a visual distribution different from the training photographs. ImageNet-C supplies generated corruption conditions. ImageNet-R and ImageNet-Sketch change the visual presentation of objects. These are related reliability questions, but their causes and demands differ.

Existing Transformer studies had already reported favorable comparisons with convolutional networks. The paper describes findings about adversarial robustness, limited attack transfer between architectural families, and performance under corruption and distribution changes. Its proposed advance is to make that comparison more explanatory. Rather than conclude that attention architectures are robust as a category, the authors investigate which internal decisions preserve or damage that advantage.

Why the benchmark collection matters

An attack, a corrupted photograph, and a sketch are not interchangeable tests. A classifier may retain enough information to recognize a noisy photograph while failing when texture disappears. Another may generalize well to drawings but respond unstably to a perturbation optimized against its own computation. The evaluation therefore needs a collection of conditions instead of a single representative difficulty.

The paper initially observes broadly similar trends across its benchmarks, which helps justify a systematic component study. Its appendix then supplies counterexamples. These exceptions do not invalidate the investigation; they define how its conclusions should be read. A component can be preferable for the intended operating profile without earning a universal robustness label.

This is also why ordinary accuracy remains part of the study. A practical design must still perform its primary task. RVT is intended to improve the relationship among standard recognition, difficult-input behavior, and resource requirements. The paper seeks a useful combination of these properties, rather than treating robustness as a detached score that can be optimized without regard to the classifier’s other functions.

The method, step by step

Establish a baseline and isolate design decisions

The component investigation uses DeiT-Ti as its reference architecture. The authors organize their analysis around the input embedding, position representation, Transformer processing, and classification mechanism. Each comparison asks how changing a particular design affects both ordinary recognition and robustness.

This organization is important for interpretation. Comparing unrelated complete architectures can reveal a performance difference without showing its source. A more controlled substitution can connect the outcome to a particular choice, although interactions with the remaining architecture still matter. The authors later combine favorable substitutions and evaluate the resulting RVT as a complete system.

Building and evaluating Robust Vision Transformer

The steps in order.

Building and evaluating Robust Vision TransformerStep 1: Establish the DeiT-Ti component baseline1. Establish the DeiT-Ti component baselineStep 2: Compare architectural choices across difficult inputs2. Compare architectural choices across difficult inputsStep 3: Assemble the selected RVT components3. Assemble the selected RVT componentsStep 4: Introduce positional scaling into attention4. Introduce positional scaling into attentionStep 5: Add patch transformations after image augmentation5. Add patch transformations after image augmentationStep 6: Measure classification, robustness, and resource requirements6. Measure classification, robustness, and resource requirements

The completed architecture is implemented at capacities named RVT-Ti, RVT-S, and RVT-B. The starred designation indicates the addition of PAAS and patch-wise augmentation. Keeping these names distinct is necessary because an architecture-only result and a result from the augmented training configuration answer different questions.

Improve the representation entering attention

Image patches must become vectors before the Transformer can process them. The paper describes the original approach using patches of 16×16 or 32×32, followed by linear projection. Its concern is that this direct conversion does not explicitly extract low-level structures such as corners and edges before the sequence reaches attention.

The authors compare that input mechanism with a convolutional embedder and an attention-based tokens-to-token alternative. The latter is connected to Tokens-to-Token ViT. Both alternatives introduce relationships among nearby image elements during representation construction. The question is whether a better local description provides a more reliable basis for later global reasoning.

The component discussion favors these richer input representations. Nevertheless, RVT uses the convolutional choice rather than simply adopting the strongest alternative in that comparison. The authors identify quadratic growth with image size as a drawback of tokens-to-token embedding. Their selection therefore reflects computational practicality as well as predictive behavior.

This decision also clarifies the function of the stem. It enriches what a patch representation contains. It does not impose the later restriction that a patch may communicate only with nearby patches. The architecture can retain detailed local evidence while allowing distant regions to affect each other.

Distribute computation across spatial stages

A staged network changes the spatial scale at which later computation operates. The authors create variants V2–V6 while holding the total number of Transformer blocks at 12. They redistribute those blocks across resolutions, allowing them to compare the placement of processing rather than merely adding more processing.

The largest spatial stage is described as 56×56, with later stages reducing spatial dimensions. Large spatial representations preserve many locations, but they also increase the resources required for attention. A block at such a stage therefore differs from a block operating after spatial reduction in both available detail and computational burden.

All the investigated stage variants improve standard accuracy over the baseline in the authors’ discussion. Robustness is more selective. Designs with more blocks at large spatial resolutions can perform worse under attack, while later reduction can provide a modest improvement. Memory and FLOPs also become less favorable when more processing remains spatially large.

RVT adopts the compromise represented by V2. This is an empirical choice within the investigated family. The result does not establish a general rule that smaller spatial representations are always safer, since the appendix shows that another allocation can perform better on particular natural-distribution tests.

Divide attention into useful heads

Attention heads provide separate ways of comparing token representations. The authors vary their number while preserving the total feature dimension. Increasing the head count consequently reduces the dimension assigned to each head.

This arrangement helps separate organizational effects from a simple increase in capacity. The tested counts are 1, 2, 4, 6, 8, and 12. The authors report improvements in standard and robust accuracy as the number rises up to 8, interpreting the result as a benefit from more complete and less repetitive attentive information.

The paper relates this question to Are Sixteen Heads Really Better than One?. Its own evidence concerns the tested vision setting. It does not support unlimited head growth, nor does it establish that a single preferred count should apply unchanged across every network size.

Preserve broad communication

A self-attention operation can compare each token with tokens throughout the sequence. Windowed attention reduces that scope to a spatial neighborhood. The paper recognizes the computational benefit: the local-window arrangement has favorable scaling with image size.

The authors nevertheless observe weaker robustness after introducing local attention in their component comparison. They suggest that limiting access to long-distance relationships contributes to the decline. RVT consequently preserves broad attention instead of using a hard spatial window as its principal efficiency mechanism.

The significance lies in the lost interaction, not in a blanket rejection of nearby information. An object’s identity may depend on relationships between separated regions. Retaining that route is compatible with adding local visual processing elsewhere.

Add neighborhood information inside the feed-forward computation

The ordinary feed-forward operation described in the paper processes token representations separately. Introducing a depth-wise convolution makes neighboring tokens available during this transformation. The current token can therefore be updated using local spatial context.

Unlike windowed attention, this addition does not remove the global attention route. It provides another kind of exchange alongside it. The authors find improvements in both standard accuracy and robustness, and use the convolutional feed-forward design in RVT.

The proposed explanation has distinct parts. Local interaction enriches the representation, while unrestricted attention retains the ability to connect distant evidence. The controlled comparisons support the usefulness of this arrangement, although they do not fully measure the causal contribution of every information route.

Aggregate the final image representations

A dedicated CLS token is a separate sequence element used to collect information for classification. The authors compare that mechanism with averaging the output representations associated with image tokens.

Pooling supplies the classifier with an aggregate of those image features directly. The component analysis reports a substantial adversarial benefit and a smaller standard-accuracy benefit from removing CLS. RVT uses the pooling alternative.

The authors connect this result with translation invariance in convolutional classification. A careful reading distinguishes that motivation from an exact mathematical guarantee about the whole network. Pooling may reduce dependence on a specialized collection token, but the earlier embedding and positional operations still influence how spatial changes affect the representation.

Read the standard attention equation

PAAS changes the way attention scores are scaled. To understand the modification, begin with the ordinary operation:

Attention(Q, K, V) = Softmax(QKᵀ / √d)V

Q contains query vectors, K contains key vectors, and V contains value vectors. In the paper’s notation, each matrix has N rows and d columns. N denotes the number of tokens, while d is the vector dimension used in this formulation. A query is compared with keys to determine which values should contribute to its updated representation.

The transpose symbol ᵀ changes the orientation of K so that QKᵀ contains a score for each query–key pairing. Each score is a dot product. Division by √d rescales the scores; the authors explain this as helping avoid very small gradients and supporting stable training.

Softmax converts the rescaled scores into attention weights. Multiplication by V then combines the value vectors according to those weights. The output is therefore a content-dependent mixture of information from the sequence.

Ordinary dimensional scaling treats every position pair alike. It accounts for d, but does not itself distinguish a relation between nearby positions from a relation between distant positions. PAAS makes that scaling step sensitive to the positions involved.

Introduce position-specific scaling

The proposed operation is:

Attention(Q, K, V) = Softmax(QKᵀ ⊙ (Wₚ / √d))V

Q, K, V, and d have the same meanings as above. Wₚ is a learned matrix with N rows and N columns. Each entry supplies a multiplier associated with a query position and a key position. The symbol ⊙ means element-wise multiplication, so corresponding entries of the content-score matrix and positional-scale matrix are multiplied before Softmax.

The content comparison and positional influence now occupy distinct terms. QKᵀ changes with the input representations. Wₚ is independent of the current image and is determined by positions in the sequence. Because it supplies positional information directly within attention, PAAS replaces the conventional position embedding in RVT.

The authors describe Wₚ as a soft filtering mechanism. Their visualization shows an attacked input producing attention at irrelevant regions without PAAS. Learned small multipliers reduce such relationships in the displayed PAAS example, leaving more emphasis on useful regions.

That explanation depends on learned behavior. Element-wise multiplication does not automatically identify noise, and the paper does not supply a universal guarantee about which interactions the matrix will suppress. Its usefulness is supported through the evaluated predictions and the accompanying diagnostic example.

Change patches after changing the image

Patch-wise augmentation retains conventional image-level augmentation and adds transformations to individual patches afterwards. The distinction concerns what varies together. If the whole image receives a common transformation, its regions share that transformation. Independent patch operations produce additional variation among regions.

The authors argue that this matters because a vision Transformer learns relationships across its patch sequence as well as features within each patch. Their augmentation therefore targets a source of variation that uniform image transformations do not fully supply.

The tested operations are random resized cropping, horizontal flipping, and Gaussian noise. For cropping, the scale is sampled from [0.85, 1.0]; the transformed patch is restored to its original size while preserving aspect ratio. Gaussian noise has mean 0 and standard deviation 0.01. Each transformation uses application probability p=0.1, where p denotes the chance of applying that operation.

These are training transformations, rather than a procedure applied to make test images easier. The final configuration combines the tested operations. Other transformation settings follow Kornia, and the general training hyper-parameters follow DeiT.

Train and retain the distinctions needed for evaluation

The experiments use NVIDIA 2080Ti GPUs. ImageNet-1K supplies the main training setting without requiring another large dataset for pretraining. The appendix also mentions experiments involving ImageNet-22K, but the central numerical account concerns the ImageNet-1K setting.

The method contains several different interventions: architectural selection produces RVT, positional scaling changes attention, and patch augmentation changes training inputs. Their distinction should remain visible when assessing the results. A successful complete configuration demonstrates that the parts can work together, while separate comparisons help determine which design questions each part addresses.

Experiments and results

The benchmark suite

Standard classification is evaluated on ImageNet-1K using Top-1 accuracy. This metric asks whether the highest-scoring predicted category matches the correct category. The authors retain it because robustness improvements are intended to coexist with useful ordinary recognition.

For deliberately perturbed inputs, the study uses white-box FGSM and PGD attacks on ImageNet-1K validation images. White-box means the attack has access to the network being attacked. FGSM is the single-step procedure in this comparison. The PGD configuration uses t=5, α=0.5, and ε=1; these denote the number of steps, step size, and maximum perturbation magnitude. FGSM also uses ε=1.

ImageNet-A supplies naturally difficult adversarial examples. ImageNet-C evaluates corruption through 15 corruption types with five severity levels. Its reported measure is mean corruption error, or mCE, where lower values indicate stronger performance.

ImageNet-R and ImageNet-Sketch assess naturally changed visual distributions. Sketches are especially relevant to the paper’s explanation of shape-related recognition because much of the usual texture and color information is absent. These tests complement the attack results instead of measuring an identical property.

Ordinary classification

The tiny architecture provides a direct comparison between RVT and its augmented configuration:

ImageNet-1K validation accuracy for the tiny RVT configurations

The augmented configuration improves ordinary classification over the architecture-only version.

ImageNet-1K validation accuracy for the tiny RVT configurationsRVT-Ti: 78.4RVT-Ti78.4RVT-Ti with PAAS and patch augmentation (this paper): 79.2RVT-Ti with PAAS and patch augmentation(this paper)79.2
The numbers
System or settingTop-1 accuracy %
RVT-Ti78.4
RVT-Ti with PAAS and patch augmentation (this paper)79.2

The architecture-only result matters because it shows that the selected components are useful before the additional positional and augmentation techniques are included. The starred result then evaluates the combined procedure.

RVT-Ti* requires 1.3G FLOPs and has 10.9M parameters. The authors use these measurements to position its accuracy against larger convolutional alternatives. FLOPs describe computational operations, whereas parameter count describes the size of the learned numerical representation. Neither alone supplies a complete account of runtime performance.

RVT-S* reaches 81.9% standard accuracy. In the paper’s same-computation comparison, the authors describe this as 2.9% above ResNet-50. The convolutional background includes ResNet, while other comparisons involve the RegNet family associated with network design spaces.

The paper also compares RVT-S* with EfficientNet. It characterizes performance as close to EfficientNet-B4 while noting the latter’s 380×380 input and lower throughput. This is a practical comparison involving resolution and speed, rather than an accuracy-only ranking.

RVT-B* is included in the experiments, but the discussion says the additional gains diminish as capacity grows. The evidence therefore gives particular prominence to the smaller configurations. It does not establish that every architectural scale benefits equally.

Adversarial performance

The authors report that architectural choice strongly affects the FGSM and PGD outcomes. At comparable scale and computation, Transformer-based systems often exceed the convolutional comparisons, but this is not a uniform family-wide result.

Swin-T illustrates how an efficiency-oriented change can weaken attack performance. TNT-S also appears in the discussion as a case where stronger standard recognition does not imply stronger adversarial recognition. These examples support the paper’s decision to test components directly.

For RVT-Ti and RVT-S, the authors report FGSM improvements of over 10% against previous vision Transformer variants. Adding PAAS and patch-wise augmentation strengthens the results further in their account. The claim concerns the evaluated attacks and comparisons; it should not be extended to arbitrary perturbations or attack procedures.

The PVT-Small example from the introduction belongs to the same argument. Its 26.6% FGSM robust accuracy demonstrates that a successful classification architecture can have a markedly different attack profile. The observation motivates component analysis without proving that every source of fragility has been isolated.

Corruption performance

RVT-S* obtains 49.4 mCE on ImageNet-C. The authors describe an improvement of 4.2 over the leading DeepAugment comparison they discuss. Their leaderboard statement is attached to the evaluated setting and entries.

The corruption result is consistent with the paper’s explanation that long-range interactions help recognition rely on shape-related information. That interpretation connects the benchmark outcome with the architectural decision to preserve broad attention. It remains an explanatory account instead of a complete causal demonstration.

The authors explicitly discuss augmentation fairness. They exclude RandAugment because its operations can overlap with ImageNet-C conditions. Their concern is that a comparison may otherwise reward familiarity with evaluation-like transformations rather than broader reliability.

Patch augmentation uses simpler operations in the reported configuration. This supports the authors’ effort to distinguish the strategy of independently varying patches from the choice of a large transformation collection. It does not establish that augmentation and benchmark construction are unrelated in every possible respect.

Distribution changes

The numerical out-of-distribution results stated for RVT-S are 35.0% on ImageNet-Sketch and 46.9% on ImageNet-R. These values describe separate classification tests, each with its own visual distribution.

The distinction between RVT-S and RVT-S* matters here. The paper’s abstract attributes leading leaderboard positions to the starred version, whereas the results narrative assigns these particular accuracy values to RVT-S. The numerical results should retain that attribution.

The discussion of renderings and changed visual appearance connects to The Many Faces of Robustness. RVT’s results support generalization beyond familiar photographs within the tested distributions. They do not establish coverage of every possible change in visual style.

ImageNet-A is part of the reported evaluation program, but the narrative does not specify an exact RVT accuracy for it. Its most informative role in the written analysis is to help demonstrate that component rankings can differ across benchmark categories.

What the ablations show

The input embedder is consequential

The input comparison supports using richer local features before the main attention processing. Convolutional and tokens-to-token embedding improve on linear projection in the authors’ component discussion. This suggests that robustness depends partly on what information the attention layers receive, not only on how those layers operate.

The computational compromise favors convolution for RVT. More importantly, the appendix prevents a simple conclusion that the most favorable embedding on several tests is universally preferable. Tokens-to-token embedding improves performance on corruption and multiple natural-distribution benchmarks, yet records 4.7% robust accuracy under PGD.

This contrast is unusually valuable because it separates plausible explanations. Richer local representation may help recognize changed appearances without preventing a deliberate attack from exploiting the resulting computation. Better representation and adversarial stability are connected empirical questions, not interchangeable labels.

Position is necessary, but encoding choices differ

The paper distinguishes removing position information from choosing among ways to provide it. It cites an earlier standard-accuracy decline of 4% without position embedding. Its own analysis reports an 8% accuracy decline on ImageNet-Sketch when positional information is absent.

The authors interpret the sketch result through shape-related recognition. Without ordinary texture cues, the arrangement of visual parts becomes particularly important. Position is therefore more than a bookkeeping device for an otherwise unordered sequence.

The tested alternatives include absolute learned encoding, sinusoidal encoding, relative learned encoding, and an input-conditioned approach. The relative-position comparison connects to relative position representations. Most conventional alternatives have limited robustness impact in the authors’ account.

Input-conditioned position encoding performs poorly in their comparison. The proposed explanation is that its positional representation changes with the input and introduces sensitivity. This motivates input-independent positional scaling, but does not demonstrate that every content-dependent positional mechanism must behave badly.

Spatial allocation has no universal winner

Redistributing the fixed collection of Transformer blocks improves ordinary accuracy across the examined stage variants. This supports hierarchical processing as a useful architectural direction.

Attack robustness does not follow the same ranking. More computation at larger spatial resolutions can worsen the adversarial result while increasing resource requirements. V2 becomes the authors’ preferred compromise instead of an absolute optimum across all outcomes.

V6 provides the counterexample that makes this distinction concrete. The appendix describes weak adversarial behavior alongside the strongest ImageNet-A and ImageNet-R results in the stage comparison. A design can therefore be attractive for natural distribution changes while being unattractive for deliberate perturbations.

The result argues for selecting stage allocation against an explicit operating objective. It does not justify claiming that a particular spatial progression is inherently robust independently of the test.

Attention organization changes behavior

Keeping total feature dimension fixed while varying head count shows that internal organization matters. The improvement up to 8 heads cannot simply be attributed to adding more total feature dimensions.

The authors interpret the pattern as improved coverage of attentive information with reduced redundancy. Their measurement establishes the performance pattern; the proposed account of completeness and compactness is less directly isolated.

The locality comparison supplies a related lesson. Windowed attention and convolutional feed-forward processing both emphasize neighborhoods, yet their robustness effects differ. The former removes some long-distance interactions, whereas the latter adds neighborhood exchange without removing those interactions.

This is why the paper’s locality result should be read at the level of operations. It supports a particular division of labor inside RVT. It does not show that every local mechanism is harmful or that every global mechanism is beneficial.

Pooling challenges a familiar convention

The CLS comparison asks whether a dedicated collection token is necessary for classification. Replacing it with averaged image-token outputs improves adversarial performance in the authors’ experiments and provides a smaller ordinary-accuracy benefit.

The comparison is useful because it tests the decision interface itself. Different aggregation mechanisms may make use of the same earlier features differently. A conventional architectural element should therefore remain open to evaluation.

The authors associate pooling with translation invariance. The experiment supports pooling in the studied configuration, while the explanation should not be inflated into an exact invariance theorem for the complete network.

PAAS benefits from repeated placement

The PAAS study compares a single insertion location with application across multiple Transformer blocks. Broader placement improves both standard and robust performance until the benefit saturates after 5 blocks.

The authors also repeat ordinary learned position embeddings across blocks. That alternative follows a similar broad trend, but performs less favorably than PAAS in the reported comparison.

This control matters because otherwise the gain might be attributed entirely to supplying position repeatedly. The experiment suggests that the scaling mechanism contributes beyond repetition alone. It still does not identify a universally best placement policy for every architecture.

Patch transformations help individually and together

The augmentation study tests the crop, flip, and Gaussian-noise operations separately. Each is beneficial for standard and robust accuracy in the authors’ discussion. Gaussian noise produces the strongest robustness improvement among the individual choices.

Combining the operations gives a more modest extra benefit than the authors associate with combining conventional whole-image augmentations. They nonetheless choose the complete combination.

This suggests that the level of intervention is central. Independent patch changes supply useful diversity even with a small transformation collection. A complicated policy is not required to demonstrate the idea.

The relationship to mixup and other augmentation research is methodological: training variation can improve generalization. The particular patch procedure still needs its own settings and evaluation, because not every disturbance of a patch sequence will preserve useful training information.

Portability and diagnostic analyses

The combined PAAS and patch-augmentation additions are applied to DeiT-Ti, ConViT-Ti, and PiT-Ti. The authors report average improvements above 1% for standard accuracy and 5% for robust accuracy. This supports usefulness beyond the assembled RVT architecture.

Because the transfer comparison combines the additions, it does not isolate their individual contributions in every receiving architecture. Portability of the pair is stronger evidence than portability of each component separately.

The appendix also examines features using t-SNE, a visualization that places representations into a lower-dimensional display. It uses 10 randomly selected classes and compares features from ordinary validation images and ImageNet-C. The authors describe tighter grouping within categories and clearer separation between categories for RVT.

Feature-map displays from the 5th layer are interpreted as showing less repetitive information. A loss-surface visualization is described as flatter for RVT-S than for ResNet50. These analyses provide diagnostic support for the authors’ explanation, but neither replaces the benchmark measurements nor proves that the same mechanism explains every successful prediction.

Limitations

Limits acknowledged by the authors

The augmentation investigation is deliberately restricted. The authors attribute the limited set of tested transformations to available training resources. Their selected crop, flip, and noise operations establish that the strategy can work with simple transformations. They do not establish the best possible patch-augmentation policy.

The authors also explicitly warn against narrow robustness evaluation. The stage and embedding exceptions show why favorable results on a few tests can mislead. This warning qualifies the paper’s own broad claims: the relevant evidence is a collection of outcomes under specified conditions, not a demonstration of unrestricted resilience.

Computational considerations limit component selection as well. The tokens-to-token embedder is not chosen for RVT despite favorable findings in the initial discussion because its scaling is less attractive. Likewise, the selected stage arrangement reflects a compromise involving memory and FLOPs.

The PAAS defense claim is also bounded. The paper discusses resistance to some white-box attacks and highlights FGSM. It does not offer a proof that position-aware scaling prevents adversarial failure in general.

Limits inferred from the attack setup

The configured attacks define the scope of the adversarial evidence. PGD with t=5 and α=0.5 at ε=1 is a particular evaluation procedure. Results from that procedure do not establish performance under a different optimization budget, a different attack family, or a different perturbation constraint.

The written settings also do not justify assuming every detail of image scaling or attack implementation. A perturbation magnitude needs its full operational interpretation to support reproduction. Unstated details should remain unresolved instead of being filled in from convention.

White-box access makes the attack informed about the network, but that label does not make a finite attack procedure exhaustive. Surviving a configured attack and possessing a mathematical robustness guarantee remain different claims.

Limits of the benchmark coverage

ImageNet-C represents a defined collection of generated distortions. ImageNet-Sketch and ImageNet-R represent particular changed visual distributions. Success on these datasets is useful evidence, but it does not cover every possible acquisition problem, artistic presentation, or application environment.

The evaluated task is image classification. The architecture may suggest ideas for other visual tasks, yet those tasks would require separate experiments. Its results also do not establish a direct improvement in language interpretation, symbolic reasoning, or Mova’s operational task handling.

The main numerical account concerns training on ImageNet-1K. The appendix names ImageNet-22K pretraining followed by ImageNet-1K fine-tuning, but its narrative does not provide detailed numerical outcomes for that extension. The existence of that investigation supports a statement about tested scope, not a quantified conclusion about the benefit of larger training data.

Limits of causal attribution

RVT combines several modifications, and RVT* adds positional scaling and patch augmentation. The isolated comparisons explain the selection process, while evaluation of the complete network shows that the selected combination is useful.

Those experiments do not exhaust every possible interaction. A component’s effect within the baseline may differ after other components change. The paper’s statement that benefits combine should therefore be understood through the evaluated configurations, without assuming a general additive law.

The transfer experiment has the same attribution issue. Applying PAAS and patch augmentation together to other architectures demonstrates the value of the combined intervention. It does not reveal whether the receiving systems benefit equally from each addition or primarily from their interaction.

The head-count experiment also supports a narrower conclusion than its intuitive explanation might suggest. Changing the partition of a fixed representation changes performance. The further claim that the improvement comes from completeness and reduced redundancy is plausible, but those properties are not independently quantified in the written analysis.

Limits of the visual explanations

Attention visualization can show where a query places weight in an example. It does not by itself demonstrate which regions are causally necessary for the final prediction. PAAS may produce a more plausible-looking pattern while other computations still determine success or failure.

The multiplicative equation deserves similar care. Wₚ acts before Softmax, and its influence depends on the content scores it scales. The authors describe suppression through learned small multipliers, but the method does not establish a fixed sign or range for every entry. It should therefore be understood as a learned scoring modification, not a guaranteed detector of irrelevant evidence.

The t-SNE displays offer a selected view of feature relationships. Apparent category separation in that display does not establish equally good separation throughout the full representation space or across all classes. It helps interpret the measured results without supplying a substitute for them.

Feature-map repetition is also an incomplete diagnostic. Similar-looking maps may indicate redundancy, but visual difference alone does not establish useful complementary information. The authors’ interpretation is strongest when treated as an explanatory observation accompanying task performance.

The loss-surface display has a related boundary. The authors connect a flatter surface with stability, but a visualization of loss geometry is not a direct proof about every input perturbation. Its role is to suggest a relationship worth investigating.

Limits of practical comparisons

FLOPs, parameter counts, input resolution, and throughput describe different aspects of cost. An architecture favorable on one measure may be less favorable on another. The paper recognizes this through its component choices and its comparison with EfficientNet-B4.

The tested hardware and training arrangement also define the practical context. A reported computational advantage does not establish identical runtime behavior under every implementation or deployment environment.

Leaderboard positions are reports about the comparisons discussed by the authors. They should not be treated as permanent rankings or as evidence of complete coverage. The more durable result is the demonstrated usefulness of auditing architectural choices against multiple kinds of failure.

For Mova, the main transferable contribution is therefore a discipline of investigation. Its existing rules, statistics, and explicit evidence paths provide places to apply that discipline. The image-specific mechanisms remain hypotheses wherever their use in language has not been measured.

What came after

Masked Autoencoders Are Scalable Vision Learners is identified as a citing work. The available citation information does not explain how it uses RVT. It therefore supports acknowledging a connection, but not claiming that masked autoencoders adopt PAAS, depend on patch-wise augmentation, or validate the architectural conclusions.

Its listed date is 2021, while Towards Robust Vision Transformer is identified as 2022. That information does not establish a straightforward chronological succession. Without a documented account of the citation’s role, assigning a direction of technical inheritance would be speculative.

RVT nevertheless leaves clear research questions. Its experiments suggest investigating where local processing belongs, how persistent positional preferences should interact with content, and which dependencies ordinary augmentation leaves unchanged. Its exceptions make an equally important methodological demand: examine whether a favorable ranking survives a change in the kind of difficulty being tested.

Those questions describe the paper’s research contribution without attributing unsupported developments to another work. The documented connection to masked autoencoders remains a citation relationship whose specific technical use is unknown.

Cite

Cite as Xiaofeng Mao, Gege Qi, Yuefeng Chen, Xiaodan Li, Ranjie Duan, Shaokai Ye, Yuan He and Hui Xue. 2022. Towards Robust Vision Transformer. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1109/cvpr52688.2022.01173 · arXiv 2105.07926

@inproceedings{mao2022robust,
  title = {{Towards Robust Vision Transformer}},
  author = {Xiaofeng Mao, Gege Qi, Yuefeng Chen, Xiaodan Li, Ranjie Duan, Shaokai Ye, Yuan He and Hui Xue},
  booktitle = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.01173},
  eprint = {2105.07926},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/cvpr52688.2022.01173}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/mao-2022-robust-vision-transformer/

References

53 references, from the paper's own bibliography.

  1. Yutong Bai, Jieru Mei, Alan L Yuille, and Cihang Xie. Are transformers more robust than cnns? Advances in Neural Information Processing Systems, 34, 2021. OpenAlex ↗ · Scholar ↗
  2. Srinadh Bhojanapalli, Ayan Chakrabarti, Daniel Glasner, Daliang Li, Thomas Unterthiner, and Andreas Veit. Understanding robustness of transformers for image classification. arXiv preprint arXiv:2103.14586, 2021. our card
  3. Xiangxiang Chu, Bo Zhang, Zhi Tian, Xiaolin Wei, and Huaxia Xia. Do we really need explicit position encodings for vision transformers? arXiv preprint arXiv:2102.10882, 2021. OpenAlex ↗ · Scholar ↗
  4. Nadav Cohen and Amnon Shashua. Inductive bias of deep convolutional networks through pooling geometry. In Proceedings of the International Conference on Learning Representations, 2017. OpenAlex ↗ · Scholar ↗
  5. Ekin D Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V Le. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of the Computer Vision and Pattern Recognition Workshops, pages 702–703, 2020. our card
  6. Stéphane d'Ascoli, Hugo Touvron, Matthew Leavitt, Ari Morcos, Giulio Biroli, and Levent Sagun. Convit: Improving vision transformers with soft convolutional inductive biases. arXiv preprint arXiv:2103.10697, 2021. OpenAlex ↗ · Scholar ↗
  7. Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proceedings of the Computer Vision and Pattern Recognition, pages 248–255. Ieee, 2009. OpenAlex ↗ · Scholar ↗
  8. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. In Proceedings of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2019. our card
  9. Minjing Dong, Yanxi Li, Yunhe Wang, and Chang Xu. Adversarially robust neural architectures. arXiv preprint arXiv:2009.00902, 2020. OpenAlex ↗ · Scholar ↗
  10. Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. In Proceedings of the International Conference on Learning Representations, 2021. our card
  11. Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In Proceedings of the International Conference on Learning Representations, 2015. our card
  12. Ben Graham, Alaaeldin El-Nouby, Hugo Touvron, Pierre Stock, Armand Joulin, Hervé Jégou, and Matthijs Douze. Levit: a vision transformer in convnet's clothing for faster inference. arXiv preprint arXiv:2104.01136, 2021. OpenAlex ↗ · Scholar ↗
  13. Minghao Guo, Yuzhe Yang, Rui Xu, Ziwei Liu, and Dahua Lin. When nas meets robustness: In search of robust architectures against adversarial attacks. In Proceedings of the Computer Vision and Pattern Recognition, pages 631–640, 2020. OpenAlex ↗ · Scholar ↗
  14. Kai Han, An Xiao, Enhua Wu, Jianyuan Guo, Chunjing Xu, and Yunhe Wang. Transformer in transformer. arXiv preprint arXiv:2103.00112, 2021. OpenAlex ↗ · Scholar ↗
  15. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the Computer Vision and Pattern Recognition, pages 770–778, 2016. our card
  16. Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, et al. The many faces of robustness: A critical analysis of out-of-distribution generalization. arXiv preprint arXiv:2006.16241, 2020. our card
  17. Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In Proceedings of the International Conference on Learning Representations, 2019. our card
  18. Dan Hendrycks, Norman Mu, Ekin D Cubuk, Barret Zoph, Justin Gilmer, and Balaji Lakshminarayanan. Augmix: A simple data processing method to improve robustness and uncertainty. In Proceedings of the International Conference on Learning Representation, 2020. OpenAlex ↗ · Scholar ↗
  19. Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. arXiv preprint arXiv:1907.07174, 2019. OpenAlex ↗ · Scholar ↗
  20. Byeongho Heo, Sangdoo Yun, Dongyoon Han, Sanghyuk Chun, Junsuk Choe, and Seong Joon Oh. Rethinking spatial dimensions of vision transformers. arXiv preprint arXiv:2103.16302, 2021. our card
  21. Guolin Ke, Di He, and Tie-Yan Liu. Rethinking the positional encoding in language pre-training. arXiv preprint arXiv:2006.15595, 2020. OpenAlex ↗ · Scholar ↗
  22. Yingwei Li, Qihang Yu, Mingxing Tan, Jieru Mei, Peng Tang, Wei Shen, Alan Yuille, and Cihang Xie. Shape-texture debiased neural network training. In Proceedings of the International Conference on Learning Representations, 2021. OpenAlex ↗ · Scholar ↗
  23. Yawei Li, Kai Zhang, Jiezhang Cao, Radu Timofte, and Luc Van Gool. Localvit: Bringing locality to vision transformers. arXiv preprint arXiv:2104.05707, 2021. OpenAlex ↗ · Scholar ↗
  24. Ji Lin, Chuang Gan, and Song Han. Defensive quantization: When efficiency meets robustness. In Proceedings of the International Conference on Learning Representations, 2019. OpenAlex ↗ · Scholar ↗
  25. Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. arXiv preprint arXiv:2103.14030, 2021. our card
  26. Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Rtowards deep learning models resistant to adversarial attacks. In Proceedings of the International Conference on Learning Representations, 2018. our card
  27. Kaleel Mahmood, Rigel Mahmood, and Marten Van Dijk. On the robustness of vision transformers to adversarial examples. arXiv preprint arXiv:2104.02610, 2021. OpenAlex ↗ · Scholar ↗
  28. Paul Michel, Omer Levy, and Graham Neubig. Are sixteen heads really better than one? Advances in Neural Information Processing Systems, 2019. our card
  29. Sayak Paul and Pin-Yu Chen. Vision transformers are robust learners. arXiv preprint arXiv:2105.07581, 2021. OpenAlex ↗ · Scholar ↗
  30. Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. 2018. OpenAlex ↗ · Scholar ↗
  31. Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, and Piotr Dollár. Designing network design spaces. In Proceedings of the Computer Vision and Pattern Recognition, pages 10428–10436, 2020. our card
  32. Edgar Riba, Dmytro Mishkin, Daniel Ponsa, Ethan Rublee, and Gary Bradski. Kornia: an open source differentiable computer vision library for pytorch. In Proceedings of the Winter Conference on Applications of Computer Vision, pages 3674–3683, 2020. OpenAlex ↗ · Scholar ↗
  33. Evgenia Rusak, Lukas Schott, Roland S Zimmermann, Julian Bitterwolf, Oliver Bringmann, Matthias Bethge, and Wieland Brendel. A simple way to make neural networks robust against diverse image corruptions. In Proceedings of the European Conference on Computer Vision, pages 53–69. Springer, 2020. OpenAlex ↗ · Scholar ↗
  34. Rulin Shao, Zhouxing Shi, Jinfeng Yi, Pin-Yu Chen, and Cho-Jui Hsieh. On the adversarial robustness of visual transformers. arXiv preprint arXiv:2103.15670, 2021. OpenAlex ↗ · Scholar ↗
  35. Peter Shaw, Jakob Uszkoreit, and Ashish Vaswani. Self-attention with relative position representations. In Proceedings of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, 2018. our card
  36. Dong Su, Huan Zhang, Hongge Chen, Jinfeng Yi, Pin-Yu Chen, and Yupeng Gao. Is robustness the cost of accuracy?–a comprehensive study on the robustness of 18 deep image classification models. In Proceedings of the European Conference on Computer Vision, pages 631–648, 2018. OpenAlex ↗ · Scholar ↗
  37. Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the Computer Vision and Pattern Recognition, pages 2818–2826, 2016. OpenAlex ↗ · Scholar ↗
  38. Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Proceedings of the International Conference on Learning Representations, 2014. our card
  39. Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In Proceedings of the International Conference on Machine Learning, pages 6105–6114. PMLR, 2019. our card
  40. Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877, 2020. our card
  41. Cristina Vasconcelos, Hugo Larochelle, Vincent Dumoulin, Nicolas Le Roux, and Ross Goroshin. An effective anti-aliasing approach for residual networks. arXiv preprint arXiv:2011.10675, 2020. OpenAlex ↗ · Scholar ↗
  42. Haohan Wang, Songwei Ge, Eric P Xing, and Zachary C Lipton. Learning robust global representations by penalizing local predictive power. Advances in Neural Information Processing Systems, 2019. OpenAlex ↗ · Scholar ↗
  43. Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Pyramid vision transformer: A versatile backbone for dense prediction without convolutions. arXiv preprint arXiv:2102.12122, 2021. OpenAlex ↗ · Scholar ↗
  44. Boxi Wu, Jinghui Chen, Deng Cai, Xiaofei He, and Quanquan Gu. Do wider neural networks really help adversarial robustness? arXiv preprint arXiv:2010.01279, 2020. OpenAlex ↗ · Scholar ↗
  45. Haiping Wu, Bin Xiao, Noel Codella, Mengchen Liu, Xiyang Dai, Lu Yuan, and Lei Zhang. Cvt: Introducing convolutions to vision transformers. arXiv preprint arXiv:2103.15808, 2021. our card
  46. Cihang Xie, Mingxing Tan, Boqing Gong, Alan Yuille, and Quoc V Le. Smooth adversarial training. arXiv preprint arXiv:2006.14536, 2020. OpenAlex ↗ · Scholar ↗
  47. Qizhe Xie, Minh-Thang Luong, Eduard Hovy, and Quoc V Le. Self-training with noisy student improves imagenet classification. In Proceedings of the Computer Vision and Pattern Recognition, pages 10687–10698, 2020. OpenAlex ↗ · Scholar ↗
  48. Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the Computer Vision and Pattern Recognition, pages 1492–1500, 2017. OpenAlex ↗ · Scholar ↗
  49. Shaokai Ye, Kaidi Xu, Sijia Liu, Hao Cheng, Jan-Henrik Lambrechts, Huan Zhang, Aojun Zhou, Kaisheng Ma, Yanzhi Wang, and Xue Lin. Adversarial robustness vs. model compression, or both? In Proceedings of the International Conference on Computer Vision, pages 111–120, 2019. OpenAlex ↗ · Scholar ↗
  50. Kun Yuan, Shaopeng Guo, Ziwei Liu, Aojun Zhou, Fengwei Yu, and Wei Wu. Incorporating convolution designs into visual transformers. arXiv preprint arXiv:2103.11816, 2021. OpenAlex ↗ · Scholar ↗
  51. Li Yuan, Yunpeng Chen, Tao Wang, Weihao Yu, Yujun Shi, Francis EH Tay, Jiashi Feng, and Shuicheng Yan. Tokens-to-token vit: Training vision transformers from scratch on imagenet. arXiv preprint arXiv:2101.11986, 2021. our card
  52. Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In Proceedings of the International Conference on Learning Representations, 2018. our card
  53. Richard Zhang. Making convolutional networks shift-invariant again. In Proceedings of International Conference on Machine Learning, pages 7324–7334. PMLR, 2019. OpenAlex ↗ · Scholar ↗