atlas

Research map / Architectures and efficiency / Attention and transformers

Mean-Shift Feature Transformer

CVPR 2024 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign · 4 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.

Proposes MSF-transformer, which replaces the transformer's attention-plus-projection block with a mean-shift (Gaussian-kernel KDE gradient ascent) feature transformation, plus an interleaved grouped projection to cut parameters.

Problem

Understanding and improving the feature transformation performed by multi-head attention in transformers, including its feature-norm bias and parameter cost of multi-head projections, for vision models.

Approach

Views the transformer's residual MHA update as a gradient ascent on a kernel density of input tokens; replacing the ill-posed exponential kernel with a Gaussian kernel yields a mean-shift update with an added PROBE projection, and interleaved grouped projections reduce parameters while improving back-propagation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace original transformer modules with MSF-transformerViT-S · ImageNet-1K valtop-1 accuracy (%): 78.98 -> 79.79Helped
Use interleaved 2-group projection instead of full projection (ablation)MSF-transformer · ImageNet-1K val, ViT-Stop-1 accuracy (%): 79.79 -> 79.55No clear effect
Use block-wise 2-group projection instead of full projection (ablation)MSF-transformer · ImageNet-1K val, ViT-Stop-1 accuracy (%): 79.79 -> 78.87Hurt
Use a residual-based update instead of the mean-shift-constrained update (ablation)MSF-transformer · ImageNet-1K val, ViT-Stest accuracy: 79.79 -> 79.28Hurt
Use the Gaussian-kernel original transformer instead of MSF-transformer (ablation)ViT-S · ImageNet-1K valtest accuracy: 79.79 -> 79.31Hurt
Share one projection matrix across all MSF projections (ablation)MSF-transformer · ImageNet-1K val, ViT-Stop-1 accuracy (%): 79.79 -> 61.13Hurt
Use two projection matrices with mean-shift update (ablation)MSF-transformer · ImageNet-1K val, ViT-Stop-1 accuracy (%): 71.34 -> 77.16Helped
Replace mean-shift update with the original transformer formulation (ablation)ViT-S · ImageNet-1K valtop-1 accuracy (%): 77.16 -> 76.25Hurt
Use interleaved 2-group projection instead of full projection (ablation)Original transformer · ImageNet-1K val, ViT-Stop-1 accuracy (%): 78.98 -> 78.57Hurt
Use block-wise 2-group projection instead of full projection (ablation)Original transformer · ImageNet-1K val, ViT-Stop-1 accuracy (%): 78.98 -> 78.05Hurt
Use MSF-transformer in place of the original transformerViT-S backbone · iNat2018accuracy (%): 66.84 -> 68.19Helped
Use MSF-transformer in place of the original transformerViT-S backbone · iNat2019accuracy (%): 73.45 -> 74.60Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K iNaturalist 2018 iNaturalist 2019 ADE20K

Benchmarks: ImageNet-1K iNaturalist 2018 iNaturalist 2019 ADE20K

Metrics: top-1 accuracy mIoU parameter count FLOPs

Baselines: ViT-Ti ViT-SS ViT-S ViT-B Swin-T Swin-S ResNet-50 ResNet-101 ResNeXt-50 ResNeXt-101 EfficientNet-B0 SETR

Builds on: Transformer ViT Swin Transformer mean-shift interleaved group convolution

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