COMCAT: Towards Efficient Compression and Customization of Attention-Based Vision Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xiao, Jinqi, Yin, Miao, Gong, Yu, Zang, Xiao, Ren, Jian, Yuan, Bo
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913594803748864
author Xiao, Jinqi
Yin, Miao
Gong, Yu
Zang, Xiao
Ren, Jian
Yuan, Bo
author_facet Xiao, Jinqi
Yin, Miao
Gong, Yu
Zang, Xiao
Ren, Jian
Yuan, Bo
contents Attention-based vision models, such as Vision Transformer (ViT) and its variants, have shown promising performance in various computer vision tasks. However, these emerging architectures suffer from large model sizes and high computational costs, calling for efficient model compression solutions. To date, pruning ViTs has been well studied, while other compression strategies that have been widely applied in CNN compression, e.g., model factorization, is little explored in the context of ViT compression. This paper explores an efficient method for compressing vision transformers to enrich the toolset for obtaining compact attention-based vision models. Based on the new insight on the multi-head attention layer, we develop a highly efficient ViT compression solution, which outperforms the state-of-the-art pruning methods. For compressing DeiT-small and DeiT-base models on ImageNet, our proposed approach can achieve 0.45% and 0.76% higher top-1 accuracy even with fewer parameters. Our finding can also be applied to improve the customization efficiency of text-to-image diffusion models, with much faster training (up to $2.6\times$ speedup) and lower extra storage cost (up to $1927.5\times$ reduction) than the existing works.
format Preprint
id arxiv_https___arxiv_org_abs_2305_17235
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle COMCAT: Towards Efficient Compression and Customization of Attention-Based Vision Models
Xiao, Jinqi
Yin, Miao
Gong, Yu
Zang, Xiao
Ren, Jian
Yuan, Bo
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
Attention-based vision models, such as Vision Transformer (ViT) and its variants, have shown promising performance in various computer vision tasks. However, these emerging architectures suffer from large model sizes and high computational costs, calling for efficient model compression solutions. To date, pruning ViTs has been well studied, while other compression strategies that have been widely applied in CNN compression, e.g., model factorization, is little explored in the context of ViT compression. This paper explores an efficient method for compressing vision transformers to enrich the toolset for obtaining compact attention-based vision models. Based on the new insight on the multi-head attention layer, we develop a highly efficient ViT compression solution, which outperforms the state-of-the-art pruning methods. For compressing DeiT-small and DeiT-base models on ImageNet, our proposed approach can achieve 0.45% and 0.76% higher top-1 accuracy even with fewer parameters. Our finding can also be applied to improve the customization efficiency of text-to-image diffusion models, with much faster training (up to $2.6\times$ speedup) and lower extra storage cost (up to $1927.5\times$ reduction) than the existing works.
title COMCAT: Towards Efficient Compression and Customization of Attention-Based Vision Models
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2305.17235