We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
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.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2108.04657")
get_code_for_paper("2108.04657")
have("2108.04657")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2108.04657.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2108.04657)
Connect an agent — have() is free.