PIVOT- Input-aware Path Selection for Energy-efficient ViT Inference

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Moitra, Abhishek, Bhattacharjee, Abhiroop, Panda, Priyadarshini
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913326204715008
author Moitra, Abhishek
Bhattacharjee, Abhiroop
Panda, Priyadarshini
author_facet Moitra, Abhishek
Bhattacharjee, Abhiroop
Panda, Priyadarshini
contents The attention module in vision transformers(ViTs) performs intricate spatial correlations, contributing significantly to accuracy and delay. It is thereby important to modulate the number of attentions according to the input feature complexity for optimal delay-accuracy tradeoffs. To this end, we propose PIVOT - a co-optimization framework which selectively performs attention skipping based on the input difficulty. For this, PIVOT employs a hardware-in-loop co-search to obtain optimal attention skip configurations. Evaluations on the ZCU102 MPSoC FPGA show that PIVOT achieves 2.7x lower EDP at 0.2% accuracy reduction compared to LVViT-S ViT. PIVOT also achieves 1.3% and 1.8x higher accuracy and throughput than prior works on traditional CPUs and GPUs. The PIVOT project can be found at https://github.com/Intelligent-Computing-Lab-Yale/PIVOT.
format Preprint
id arxiv_https___arxiv_org_abs_2404_15185
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle PIVOT- Input-aware Path Selection for Energy-efficient ViT Inference
Moitra, Abhishek
Bhattacharjee, Abhiroop
Panda, Priyadarshini
Hardware Architecture
The attention module in vision transformers(ViTs) performs intricate spatial correlations, contributing significantly to accuracy and delay. It is thereby important to modulate the number of attentions according to the input feature complexity for optimal delay-accuracy tradeoffs. To this end, we propose PIVOT - a co-optimization framework which selectively performs attention skipping based on the input difficulty. For this, PIVOT employs a hardware-in-loop co-search to obtain optimal attention skip configurations. Evaluations on the ZCU102 MPSoC FPGA show that PIVOT achieves 2.7x lower EDP at 0.2% accuracy reduction compared to LVViT-S ViT. PIVOT also achieves 1.3% and 1.8x higher accuracy and throughput than prior works on traditional CPUs and GPUs. The PIVOT project can be found at https://github.com/Intelligent-Computing-Lab-Yale/PIVOT.
title PIVOT- Input-aware Path Selection for Energy-efficient ViT Inference
topic Hardware Architecture
url https://arxiv.org/abs/2404.15185