atlas

Research map / Architectures and efficiency / Attention and transformers

SeTformer Is What You Need for Vision and Language

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

Replaces dot-product self-attention in transformers with Self-optimal Transport (SeT), an entropic optimal-transport alignment computed in an RKHS against K-means reference centroids, yielding SeTformer for vision and language tasks.

Problem

Dot-product self-attention has quadratic time and memory cost in sequence length, and existing kernel-based linear attention approximations often lose accuracy relative to softmax attention.

Approach

Replace the softmax attention matrix with alignment weights from entropic optimal transport between input features and a small set of K-means reference centroids, embedded in an RKHS via Nystrom approximation, with linear positional encoding; this keeps non-negativity and nonlinear reweighting while reducing cost.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace softmax self-attention with SeTSeTformer-T · ImageNet-1K 224×224top-1 accuracy: 83.2 -> 83.9Helped
replace softmax self-attention with SeTSeTformer-B · ImageNet-1K 224×224top-1 accuracy: 84.4 -> 86.2Helped
use linear positional encoding instead of no positional encoding (ablation)SeTformer · ImageNet-1Ktop-1 accuracy: 83.78 -> 84.72Helped
use linear positional encoding instead of no positional encoding (ablation)SeTformer · COCObox AP: 49.63 -> 51.32Helped
use absolute positional encoding instead of no positional encoding (ablation)SeTformer · ImageNet-1Ktop-1 accuracy: 83.78 -> 83.96Helped
use relative positional encoding instead of no positional encoding (ablation)SeTformer · ImageNet-1Ktop-1 accuracy: 83.78 -> 84.35Helped
replace OT with dot product (ablation)SeTformer · GLUE QQPaccuracy: 89.36 -> 87.85Hurt
replace OT with Sliced-OT (ablation)SeTformer · GLUE QQPaccuracy: 89.36 -> 86.74Hurt
add a reference set (ablation)SeTformer · GLUE QQPaccuracy: 88.92 -> 89.36Helped
remove positional encoding (ablation)SeTformer · GLUE SST-2accuracy: 93.54 -> 88.25Hurt
increase reference count from m=100 to m=500 (ablation)SeTformer-T · ImageNettop-1 accuracy: 79.81 -> 83.91Helped
increase reference count from m=500 to m=1000 (ablation)SeTformer-T · ImageNettop-1 accuracy: 83.91 -> 81.74Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K COCO ADE20K WikiText-103 GLUE Amazon

Benchmarks: ImageNet-1K COCO ADE20K GLUE Amazon

Metrics: top-1 accuracy AP box/mask mIoU accuracy FLOPs throughput

Baselines: Swin ConvNeXt FocalNet CSWin MViTv2 NAT Performer Reformer ScatterBrain KDEformer Longformer RoBERTa

Builds on: Swin Transformer Nystrom approximation Performer FocalNet NAT

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