atlas

Research map / Architectures and efficiency / Attention and transformers

Elliptical Attention

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign · 1 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 Elliptical Attention, which replaces the Euclidean distance in dot-product self-attention with a Mahalanobis metric whose diagonal weights come from a parameter-free estimate of coordinate-wise variability, to reduce representation collapse and improve robustness.

Problem

Standard dot-product self-attention uses Euclidean (spherically invariant) neighborhoods, which the authors argue causes high-variance estimates, representation collapse, and vulnerability to contaminated inputs.

Approach

Interpret self-attention as Nadaraya-Watson regression with isotropic Gaussian kernels and replace the isotropic kernel with a Mahalanobis (diagonal-M) norm, where M is estimated from layer-to-layer differences of value vectors, stretching the feature space toward directions of high contextual relevance without learnable parameters.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace dot-product attention with Elliptical Attention44M Transformer · WikiText-103 clean testperplexity: 32.18 -> 32.00Helped
replace dot-product attention with Elliptical Attention44M Transformer · WikiText-103 contaminated test (Word Swap)perplexity: 52.14 -> 52.59Hurt
replace DeiT attention with Elliptical AttentionDeiT-tiny · ImageNet-1K cleanTop-1 accuracy: 74.37 -> 72.36Hurt
replace DeiT attention with Elliptical AttentionDeiT-tiny · ImageNet-1K FGSM (1/255)Top-1 accuracy: 55.76 -> 54.64Hurt
replace DeiT attention with Elliptical AttentionDeiT-tiny · ImageNet-1K PGD (1/255)Top-1 accuracy: 43.78 -> 44.96Helped
replace DeiT attention with Elliptical AttentionDeiT-tiny · ImageNet-1K SPSA (1/255)Top-1 accuracy: 51.43 -> 56.55Helped
use Elliptical AttentionLRA models · LRA benchmark (five tasks)accuracyMixed
add Elliptical Attention to DeiTDeiT · ImageNet-1K APGD-CETop-1 accuracy: 27.75 -> 31.27Helped
add Elliptical Attention to FANFAN · ImageNet-1K sequential Auto AttackTop-1 accuracy: 33.29 -> 34.54Helped
add Elliptical Attention to FANFAN · ImageNet-1K FAB-TTop-1 accuracy: 76.35 -> 76.16Hurt
add Elliptical Attention to Switch Transformer-mediumSwitch Transformer-medium · WikiText-103 testperplexity: 35.33 -> 34.67Helped
replace DeiT attention with Elliptical AttentionDeiT-tiny segmentation model · ADE20Kmean IoU: 35.44 -> 37.09Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-103 ImageNet-1K ADE20K Long Range Arena (ListOps, Text, Retrieval, Image, Pathfinder)

Benchmarks: WikiText-103 ImageNet-1K Long Range Arena ADE20K

Metrics: perplexity top-1 accuracy top-5 accuracy pixel accuracy mean IOU average accuracy

Baselines: Transformer Performer Transformer-MGK FourierFormer Transformer-SPKDE Transformer-MoM DeiT Distill RVT DeiT-KDE FAN Linformer

Builds on: Nadaraya-Watson regression transformer Performer FourierFormer Mixture of Gaussian Keys

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