We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

Title: Pruning Attention Heads of Transformer Models Using A* Search: A Novel Approach to Compress Big NLP Architectures

Abstract: Recent years have seen a growing adoption of Transformer models such as BERT in Natural Language Processing and even in Computer Vision. However, due to the size, there has been limited adoption of such models within resource-constrained computing environments This paper proposes novel pruning algorithms to compress transformer models by eliminating redundant Attention Heads. We apply the A* search algorithm to obtain a pruned model with minimal accuracy guarantees. Our results indicate that the method could eliminate as much as 40% of the attention heads in the BERT transformer model with almost no loss in accuracy.
Comments: 23 Pages, 18 figures, 3 tables
Subjects: Computation and Language (cs.CL); Machine Learning (cs.LG)
Cite as: arXiv:2110.15225 [cs.CL]
  (or arXiv:2110.15225v1 [cs.CL] for this version)

Submission history

From: Archit Parnami [view email]
[v1] Thu, 28 Oct 2021 15:39:11 GMT (1150kb)
[v2] Thu, 4 Nov 2021 15:06:43 GMT (1149kb)
[v3] Wed, 17 Nov 2021 14:50:51 GMT (1149kb)

Link back to: arXiv, form interface, contact.