arrow
Return

Optimizing vision transformers for CPU platforms via human-machine collaborative design

delete2024-05-01
delete1
PRE
AI
D
Dong Chen *
H
Hao Shen
李平 (Ping Li)
DOI:10.1016/j.knosys.2024.111611delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Over the past three years, various vision transformers (ViTs) have been proposed and applied to many vision tasks. However, for x86 CPU platforms, current ViTs fail to effectively balance inference efficiency and accuracy because they are specifically designed for high-end GPU platforms or smart mobile platforms. In this paper, we aim to explore high-performance transformer architectures for CPU platforms via human-machine collaborative design. First, we attempt to discover CPU-unfriendly design choices in existing ViTs through several controlled experiments. According to our observations, we then design two CPU-efficient attention units for building transformers by human manual exploration. Finally, based on our basic units, we present a CPU-Aware network search method to automatically search for global architectures of transformers. Through the process of humanmachine collaborative design, we can obtain ViT instances. Benefiting from our human-designed basic units and automatically-searched global structures, our ViT instances achieve a more favorable tradeoff between CPUlatency and accuracy. For CPUs based on x86 architecture, they are more competitive than their CNN-based and transformer-based counterparts. This suggests that our proposed human-machine collaborative solution is feasible for designing vision transformers tailored for specific hardware.
Keywords:
Vision transformer
Image recognition
Neural architecture search
Human-machine collaborative design

Journal

K
Knowledge-Based Systems
IF:
7.6
Papers:
1.2W
Citations:
4.5W

Organization

C
Communication University of China
Scholars:
1.1K
Papers: 820
Citations: 326
S
Shandong University of Political Science and Law
Scholars:
134
Papers: 128
Citations: 132
S
shandong normal university
Scholars:
1.0W
Papers: 8.2K
Citations: 3
researcher View more organizations