Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Token Fusion: Bridging the Gap between Token Pruning and Token Merging

About

Vision Transformers (ViTs) have emerged as powerful backbones in computer vision, outperforming many traditional CNNs. However, their computational overhead, largely attributed to the self-attention mechanism, makes deployment on resource-constrained edge devices challenging. Multiple solutions rely on token pruning or token merging. In this paper, we introduce "Token Fusion" (ToFu), a method that amalgamates the benefits of both token pruning and token merging. Token pruning proves advantageous when the model exhibits sensitivity to input interpolations, while token merging is effective when the model manifests close to linear responses to inputs. We combine this to propose a new scheme called Token Fusion. Moreover, we tackle the limitations of average merging, which doesn't preserve the intrinsic feature norm, resulting in distributional shifts. To mitigate this, we introduce MLERP merging, a variant of the SLERP technique, tailored to merge multiple tokens while maintaining the norm distribution. ToFu is versatile, applicable to ViTs with or without additional training. Our empirical evaluations indicate that ToFu establishes new benchmarks in both classification and image generation tasks concerning computational efficiency and model accuracy.

Minchul Kim, Shangqian Gao, Yen-Chang Hsu, Yilin Shen, Hongxia Jin• 2023

Related benchmarks

TaskDatasetResultRank
Visual Question AnsweringVQA v2
Accuracy76.1
1165
Visual Question AnsweringTextVQA
Accuracy43
1117
Visual Question AnsweringVizWiz
Accuracy56.1
1043
Visual Question AnsweringGQA
Accuracy60.1
963
Multimodal EvaluationMME
Score1.47e+3
557
Text ClassificationSST-2
Accuracy89.8
121
Visual Question AnsweringGQA (test)
Accuracy59.8
119
Text ClassificationIMDB
Accuracy92.6
107
Visual Question AnsweringVizWiz (test)
Accuracy83.4
66
Object Hallucination EvaluationPOPE (test)
Accuracy90.1
44
Showing 10 of 18 rows

Other info

Follow for update