SOTAVerified

Talking-Heads Attention

2020-03-05Code Available1· sign in to hype

Noam Shazeer, Zhenzhong Lan, Youlong Cheng, Nan Ding, Le Hou

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

We introduce "talking-heads attention" - a variation on multi-head attention which includes linearprojections across the attention-heads dimension, immediately before and after the softmax operation.While inserting only a small number of additional parameters and a moderate amount of additionalcomputation, talking-heads attention leads to better perplexities on masked language modeling tasks, aswell as better quality when transfer-learning to language comprehension and question answering tasks.

Tasks

Reproductions