MimiQ: Low-Bit Data-Free Quantization of Vision Transformers with Encouraging Inter-Head Attention Similarity

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Choi, Kanghyun, Lee, Hye Yoon, Kwon, Dain, Park, SunJong, Kim, Kyuyeun, Park, Noseong, Choi, Jonghyun, Lee, Jinho
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915239140786176
author Choi, Kanghyun
Lee, Hye Yoon
Kwon, Dain
Park, SunJong
Kim, Kyuyeun
Park, Noseong
Choi, Jonghyun
Lee, Jinho
author_facet Choi, Kanghyun
Lee, Hye Yoon
Kwon, Dain
Park, SunJong
Kim, Kyuyeun
Park, Noseong
Choi, Jonghyun
Lee, Jinho
contents Data-free quantization (DFQ) is a technique that creates a lightweight network from its full-precision counterpart without the original training data, often through a synthetic dataset. Although several DFQ methods have been proposed for vision transformer (ViT) architectures, they fail to achieve efficacy in low-bit settings. Examining the existing methods, we observe that their synthetic data produce misaligned attention maps, while those of the real samples are highly aligned. From this observation, we find that aligning attention maps of synthetic data helps improve the overall performance of quantized ViTs. Motivated by this finding, we devise MimiQ, a novel DFQ method designed for ViTs that enhances inter-head attention similarity. First, we generate synthetic data by aligning head-wise attention outputs from each spatial query patch. Then, we align the attention maps of the quantized network to those of the full-precision teacher by applying head-wise structural attention distillation. The experimental results show that the proposed method significantly outperforms baselines, setting a new state-of-the-art for ViT-DFQ. This paper is an extended version of our work published in the proceedings of AAAI 2025, including additional supplementary material.
format Preprint
id arxiv_https___arxiv_org_abs_2407_20021
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MimiQ: Low-Bit Data-Free Quantization of Vision Transformers with Encouraging Inter-Head Attention Similarity
Choi, Kanghyun
Lee, Hye Yoon
Kwon, Dain
Park, SunJong
Kim, Kyuyeun
Park, Noseong
Choi, Jonghyun
Lee, Jinho
Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
Data-free quantization (DFQ) is a technique that creates a lightweight network from its full-precision counterpart without the original training data, often through a synthetic dataset. Although several DFQ methods have been proposed for vision transformer (ViT) architectures, they fail to achieve efficacy in low-bit settings. Examining the existing methods, we observe that their synthetic data produce misaligned attention maps, while those of the real samples are highly aligned. From this observation, we find that aligning attention maps of synthetic data helps improve the overall performance of quantized ViTs. Motivated by this finding, we devise MimiQ, a novel DFQ method designed for ViTs that enhances inter-head attention similarity. First, we generate synthetic data by aligning head-wise attention outputs from each spatial query patch. Then, we align the attention maps of the quantized network to those of the full-precision teacher by applying head-wise structural attention distillation. The experimental results show that the proposed method significantly outperforms baselines, setting a new state-of-the-art for ViT-DFQ. This paper is an extended version of our work published in the proceedings of AAAI 2025, including additional supplementary material.
title MimiQ: Low-Bit Data-Free Quantization of Vision Transformers with Encouraging Inter-Head Attention Similarity
topic Machine Learning
Artificial Intelligence
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2407.20021