bert icon indicating copy to clipboard operation
bert copied to clipboard

Averaging attention head weights

Open melwazir opened this issue 6 years ago • 0 comments

I was wondering if attention heads are weighted? I mean, do they contribute to the decision equally or are some heads accorded more weight overall than others? I don't mean the internal weights of each head, I mean a single weight for each head.

The reason I'm asking is because I'm visualizing attention for each head of the final layer, and it made sense in the end to combine the visualizations into just one averaged map. My one concern was that if some heads got more weight than others then averaging might not be representative.

melwazir avatar Jan 23 '20 22:01 melwazir