atlas

Research map / Architectures and efficiency / Attention and transformers

Learning to Merge Tokens via Decoupled Embedding for Efficient Vision Transformers

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Token merging and masked pretraining · 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 DTEM, which learns a lightweight decoupled token embedding for ViT token merging via a continuously relaxed (soft top-k grouping and soft merging) process, usable modularly with frozen models or end-to-end.

Problem

Token merging in Vision Transformers relies on intermediate ViT features for similarity, which are hard to tailor for merging and require end-to-end training to improve merging; discrete grouping operators block gradient flow.

Approach

Add a lightweight per-block affine embedding decoupled from the ViT forward pass, used only to compute token similarities for merging, and train it through a differentiable soft grouping (revised differentiable top-k with clipping) and soft merging operator; at inference, replace with hard bipartite soft matching (ToMe).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace ToMe token similarities with learned decoupled embeddingsDeiT-S with frozen pretrained weights · ImageNet-1k val, 35% reductionAcc@1: 79.12 -> 79.44Helped
replace ToMe token similarities with learned decoupled embeddingsDeiT-S with frozen pretrained weights · ImageNet-1k val, 50% reductionAcc@1: 78.01 -> 78.99Helped
replace ToMe token similarities with learned decoupled embeddingsDeiT-B with frozen pretrained weights · ImageNet-1k val, 50% reductionAcc@1: 77.92 -> 79.54Helped
replace ToMe token similarities with learned decoupled embeddingsMAE-B with frozen pretrained weights · ImageNet-1k val, 35% reductionAcc@1: 82.33 -> 82.80Helped
replace ToMe token similarities with learned decoupled embeddingsMAE-L with frozen pretrained weights · ImageNet-1k val, 50% reductionAcc@1: 84.21 -> 84.68Helped
replace ToMe token similarities with learned decoupled embeddingsGIT-B · COCO test, image captioningCIDEr: +5.0 to +6.0Helped
replace ToMe token similarities with learned decoupled embeddingsGIT-L · COCO test, image captioningCIDEr: +2.3 to +6.0Helped
replace ToMe token similarities with learned decoupled embeddingsSegmenter with ViT-S · ADE20K, semantic segmentationmIoU: +0.32 to +1.3Helped
replace decoupled embeddings with self-attention keys for grouping (ablation)DTEM, end-to-end training · ImageNet-1k classificationaccuracyHurt
remove proportional attention (ablation)DTEM soft grouping · ImageNet-1k classificationaccuracyHurt
train the decoupled embedding with 4000 imagesDTEM modular training · ImageNet-1k classificationaccuracy: +0.44%Helped
use temperature scale 0.1 instead of 0.05 (ablation)DTEM with DeiT-S · ImageNet-1k val, 50% reductionAcc@1: 78.41 -> 78.87Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1k COCO captions ADE20K

Benchmarks: ImageNet-1k COCO captions ADE20K

Metrics: Acc@1 GFLOPs throughput (im/s) BLEU-4 METEOR CIDEr SPICE mIoU

Baselines: ToMe EViT DynamicViT dTPS Gumbel Softmax

Builds on: ToMe Bipartite Soft Matching differentiable top-k DynamicViT

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