atlas

Research map / Architectures and efficiency / Attention and transformers

Accelerating Transformers with Spectrum-Preserving Token Merging

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Token merging and masked pretraining · 8 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 PiToMe, a token merging method for ViTs that uses a graph-energy score to protect informative tokens and merge redundant ones, with spectral-preservation theory, evaluated off-the-shelf and retrained across classification, retrieval, VQA, and text classification.

Problem

Token merging in Transformers via bipartite soft matching (BSM) is sensitive to token-splitting strategy and merges informative tokens in deeper layers, hurting accuracy at a given speedup.

Approach

An energy score derived from graph energy over a cosine-similarity token graph (with an exponential-linear margin function) identifies large clusters of similar tokens as mergeable and isolated tokens as protected; the mergeable tokens are then split into sets A and B by sorted energy order before BSM matching.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use energy-based token protection instead of leaving tokens unprotected (ablation)PiToMe · Image-text retrieval, r=0.925Rsum: 568.9 -> 573.4Helped
use energy-based token protection instead of leaving tokens unprotected (ablation)PiToMe · Text classification, r=0.6accuracy: 86.99 -> 89.20Helped
use energy-ordered matching split instead of random sets (ablation)PiToMe · Image-text retrieval, r=0.925Rsum: 567.9 -> 573.4Helped
use energy-ordered matching split instead of random sets (ablation)PiToMe · Text classification, r=0.6accuracy: 87.17 -> 89.20Helped
set alpha to 1.0 rather than 0.5 or 0. (ablation)PiToMe · Image-text retrievalrecall sum: 519.98 vs 518.66 vs 515.90Helped
use an adaptive margin rather than a fixed margin (ablation)PiToMe · Image-text retrievalaccuracyHelped
replace the energy score with CLS-token attention or mean attention (ablation)PiToMe · Image-text retrieval and text classificationperformanceHurt
use a fixed number of removed tokens per layer instead of a remaining-token ratio (ablation)PiToMe · Image classification and image-text retrievalperformance at matched FLOPSHurt
use PiToMe rather than DiffRateDeiT-T · ImageNet-1k, off-the-shelfaccuracy: 69.9 -> 70.8Helped
use PiToMe rather than the full ViTMAE-H · ImageNet-1k, off-the-shelfaccuracy: 86.9 -> 86.4Hurt
compress LLaVA-1.5-7B vision tokens with PiToMe rather than ToMeLLaVA-1.5-7B · TextVQA, off-the-shelfscore: 41.1 -> 43.0Helped
use PiToMe rather than the original BERTBERT · SST-2, retrainedaccuracy: 91.4 -> 91.7Helped

Surprising findings

Limitations

Experimental setup

Datasets: Flickr30k MS-COCO ImageNet-1k VQA-v2 GQA VizWiz ScienceQA TextVQA MME SST-2 IMDb

Benchmarks: Flickr30k MS-COCO ImageNet-1k VQA-v2 GQA VizWiz ScienceQA TextVQA MME SST-2 IMDb

Metrics: recall@k Rsum top-1 accuracy FLOPs throughput speedup

Baselines: ToMe ToFu DiffRate DCT A-ViT Dynamic-ViT SP-ViT E-ViT PowER-BERT LTP

Builds on: Token Merging (ToMe) Bipartite Soft Matching proportional attention graph coarsening

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