bert
bert copied to clipboard
Averaging attention head weights
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.