atlas

Research map / Architectures and efficiency / Attention and transformers

Curved Representation Space of Vision Transformers

AAAI 2024 · Architectures and efficiency › Attention and transformers · approach: Hybrid and interpretable ViT designs · 7 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that the penultimate-layer representation of Vision Transformers is locally curved along linear input perturbations, which explains why ViT/Swin are both more robust and underconfident than CNNs.

Problem

Transformers appear more robust to corruptions/adversarial perturbations than CNNs yet are underconfident, which contradicts the intuition that robustness increases with confidence; the reason is not understood.

Approach

Analyze how the penultimate-layer output moves when the input moves linearly along FGSM directions, measuring direction change between steps (theta); CNNs show near-linear movement while Transformers show curved trajectories in some regions, which both enlarges the distance traveled to the decision boundary and hides a nearby boundary that random jumps can reveal. Also gives an attention-nonlinear

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a Transformer rather than a CNNImageNet classifiers · ImageNet validation setrepresentation-space curvednessMixed
Locate data in a curved rather than linear regionViT-B/16 and Swin-T · ImageNet validation setdistance to decision boundaryHelped
Add a small random-noise jump before computing the FGSM directionSwin-T · ImageNet validation setdistance to decision boundaryHelped
Set the jump direction to the FGSM direction determined after a random jumpSwin-T · ImageNet validation setdistance to decision boundaryHelped
Add GELU rather than ReLUrepresentation-space components · ImageNet validation setcurvednessHelped
Add LayerNorm and self-attentionSwin-T · ImageNet validation setcurvednessHelped
Use knowledge distillation with a CNN teacherDeiT-Ti · ImageNet validation setcurvedness: $.243 \pi$ -> $.209 \pi$Hurt
Use knowledge distillation with a CNN teacherDeiT-Ti · ImageNet validation setadversarial robustnessHurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet

Benchmarks: ImageNet

Metrics: ECE signed ECE accuracy after I-FGSM attack direction change theta distance to decision boundary

Baselines: ResNet50 MobileNetV2 ConvNeXt-Tiny DeiT-Ti DeiT-Ti-Distilled

Builds on: FGSM I-FGSM expected calibration error

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy