Pith. sign in

REVIEW

Leveraging redundancy in attention with Reuse Transformers

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2110.06821 v1 pith:YP46SLVE submitted 2021-10-13 cs.LG cs.CLcs.CV

classification cs.LGcs.CLcs.CV
keywords attentionlayersmultiplescorestransformersacrossheadspairwise
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Pairwise dot product-based attention allows Transformers to exchange information between tokens in an input-dependent way, and is key to their success across diverse applications in language and vision. However, a typical Transformer model computes such pairwise attention scores repeatedly for the same sequence, in multiple heads in multiple layers. We systematically analyze the empirical similarity of these scores across heads and layers and find them to be considerably redundant, especially adjacent layers showing high similarity. Motivated by these findings, we propose a novel architecture that reuses attention scores computed in one layer in multiple subsequent layers. Experiments on a number of standard benchmarks show that reusing attention delivers performance equivalent to or better than standard transformers, while reducing both compute and memory usage.

Discussion (0). Sign in to comment.

Pith tools