Head gallery

Nobody tells a head what to look for: each one finds a job during training. We measured what each of the paper model's 24 heads does on 805 sentences it never saw in training, and named it in plain words. Pick a head to see the numbers and three examples.

How far to trust the names

Each name comes from a few simple measurements: how much attention a head gives the word before, the word itself, the word after, the English word being translated, the noun that “it” stands for, and the punctuation. A head can do things none of these measures, and a head that spreads its attention may still matter. The paper's appendix shows the same kind of picture for its own model; ours is small enough to measure every head.

The clearest finding is the pronoun. In German, “it” becomes ihn, sie or es, depending on the gender of the noun it stands for, so the model must look back at that noun to write it. One encoder head, one decoder head and one encoder–decoder head do exactly that.

An unhandled error has occurred. Reload 🗙

Reconnecting…

Your connection to the Transformers and Attention Lab dropped, probably a Wi-Fi blip. Hold on while it reconnects.

The connection could not be restored. The page will reload in a few seconds.