paper-with-me

Papers

Automatic Channel Pruning for Multi-Head Attention

2024-05-31 · Eunho Lee, Youngbae Hwang

Despite the strong performance of Transformers, their quadratic computation complexity presents challenges in applying them to vision tasks. Automatic pruning is one of effective methods for reducing computation complexity without heuristic approaches. However, directly applying it to multi-head attention is not straightforward due to channel misalignment. In this paper, we propose an automatic channel pruning method to take into account the multi-head attention mechanism. First, we incorporate channel similarity-based weights into the pruning indicator to preserve more informative channels in each head. Then, we adjust pruning indicator to enforce removal of channels in equal proportions across all heads, preventing the channel misalignment. We also add a reweight module to compensate for information loss resulting from channel removal, and an effective initialization step for pruning indicator based on difference of attention between original structure and each channel. Our proposed method can be used to not only original attention, but also linear attention, which is more efficient as linear complexity with respect to the number of tokens. On ImageNet-1K, applying our pruning method to the FLattenTransformer, which includes both attention mechanisms, shows outperformed accuracy for several MACs compared with previous state-of-the-art efficient models and pruned methods. Code will be available soon.

📄 PDF Abstract BibTeX arXiv:2405.20867

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Pruning 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Multi-Head Attention 설명 없음

Similar Papers 제목 키워드 기반

Pruning the Pilots: Deep Learning-Based Pilot Design and Channel Estimation for MIMO-OFDM Systems

2020-06-21 · Mahdi Boloursaz Mashhadi, Deniz Gunduz

With the large number of antennas and subcarriers the overhead due to pilot transmission for channel estimation can be prohibitive in wideband massive multiple-input multiple-output (MIMO) systems. This can degrade the o…

Channel Pruning Guided by Spatial and Channel Attention for DNNs in Intelligent Edge Computing

2020-11-08 · Mengran Liu, Weiwei Fang, Xiaodong Ma, Wenyuan Xu 외

Deep Neural Networks (DNNs) have achieved remarkable success in many computer vision tasks recently, but the huge number of parameters and the high computation overhead hinder their deployments on resource-constrained ed…

Edge-computing

AutoAttention: Automatic Attention Head Selection Through Differentiable Pruning

2022-01-16 · ACL ARR January 2022 1 · Anonymous

Multi-head attention is considered as a driving force and key component behind the state-of-art transformer models. However, recent research reveals that there are many redundant heads with duplicated patterns in each la…

The silence of the weights: a structural pruning strategy for attention-based audio signal architectures with second order metrics

2025-09-30 · Andrea Diecidue, Carlo Alberto Barbano, Piero Fraternali, Mathieu Fontaine 외 arxiv

Transformer-based models have become the state of the art across multiple domains, from natural language processing to machine listening, thanks to the attention mechanisms. However, the attention layers require a large …

DAIS: Automatic Channel Pruning via Differentiable Annealing Indicator Search

2020-11-04 · Yushuo Guan, Ning Liu, Pengyu Zhao, Zhengping Che 외

The convolutional neural network has achieved great success in fulfilling computer vision tasks despite large computation overhead against efficient deployment. Structured (channel) pruning is usually applied to reduce t…

Neural Architecture Search