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

Download:

Current browse context:

cs.CL

Change to browse by:

cs

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: Differentiable Subset Pruning of Transformer Heads

Abstract: Multi-head attention, a collection of several attention mechanisms that independently attend to different parts of the input, is the key ingredient in the Transformer. Recent work has shown, however, that a large proportion of the heads in a Transformer's multi-head attention mechanism can be safely pruned away without significantly harming the performance of the model; such pruning leads to models that are noticeably smaller and faster in practice. Our work introduces a new head pruning technique that we term differentiable subset pruning. Intuitively, our method learns per-head importance variables and then enforces a user-specified hard constraint on the number of unpruned heads. The importance variables are learned via stochastic gradient descent. We conduct experiments on natural language inference and machine translation; we show that differentiable subset pruning performs comparably or better than previous works while offering precise control of the sparsity level.
Comments: TACL 2021
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2108.04657 [cs.CL]
  (or arXiv:2108.04657v3 [cs.CL] for this version)

Submission history

From: Jiaoda Li [view email]
[v1] Tue, 10 Aug 2021 13:08:34 GMT (185kb,D)
[v2] Sun, 22 Aug 2021 16:00:09 GMT (224kb,D)
[v3] Thu, 27 Jul 2023 07:14:18 GMT (224kb,D)

Link back to: arXiv, form interface, contact.