TL;DR
This paper introduces a layer-wise attention head pruning method for Transformer models that reduces computation and parameters proportionally, improving efficiency while maintaining performance on language modeling tasks.
Contribution
It proposes a novel layer-wise pruning approach with three training methods to minimize performance loss and stabilize pruning in Transformer models.
Findings
Pruned models achieve lower perplexity than Transformer-XL at similar parameter sizes.
Layer-wise pruning reduces both computation and parameters proportionally.
Proposed training methods help maintain model performance during pruning.
Abstract
While Transformer-based models have shown impressive language modeling performance, the large computation cost is often prohibitive for practical use. Attention head pruning, which removes unnecessary attention heads in the multihead attention, is a promising technique to solve this problem. However, it does not evenly reduce the overall load because the heavy feedforward module is not affected by head pruning. In this paper, we apply layer-wise attention head pruning on All-attention Transformer so that the entire computation and the number of parameters can be reduced proportionally to the number of pruned heads. While the architecture has the potential to fully utilize head pruning, we propose three training methods that are especially helpful to minimize performance degradation and stabilize the pruning process. Our pruned model shows consistently lower perplexity within a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsAttention Is All You Need · Pruning · Linear Layer · Cosine Annealing · Variational Dropout · Linear Warmup With Cosine Annealing · Position-Wise Feed-Forward Layer · Adam · *Communicated@Fast*How Do I Communicate to Expedia? · Adaptive Input Representations
