Token Merging with Class Importance Score

Citations

SCOPUS

3

초록

Vision Transformers have achieved high performance in computer vision tasks, but their high computational cost and low throughput are weaknesses. Therefore, much research has been done to reduce the size of Vision Transformers. Among them, studies on pruning unnecessary tokens are being actively conducted to reduce the number of tokens used for self-attention computation inside the Vision Transformer. Recently, token merging has been proposed as a new alternative approach. These studies aim to increase throughput with a small accuracy drop by merging similar tokens instead of pruning them. A previous study finds similar tokens using cosine similarity and merges them with a weighted average. However, merging a large number of tokens at once may lead to an accuracy drop because of the underestimating of important information. In this paper, we propose ToMeCIS, a method that merges similar tokens through a weighted average using the class importance score of tokens to reduce the accuracy drop. When ToMeCIS is applied to a pretrained DeiT-S and evaluated on the ImageNet-1k dataset, the throughput is increased by about 50% with an accuracy drop of less than 1% without additional training. In addition, importance scores were evaluated with different metrics to find the best accuracy versus throughput trade-off.

키워드

computer visiondeep learningmodel compressionDeep learningDropsEconomic and social effectsMergingStatistical methods
제목
Token Merging with Class Importance Score
저자
설광수Roh, Si-DongChung, Ki-Seok
DOI
10.1109/IECON51785.2023.10312420
발행일
2023-10
유형
Conference paper
저널명
IECON Proceedings (Industrial Electronics Conference)
페이지
1 ~ 6