1 The transformer model uses self-attention in both the encoder and decoder to capture rich contextual relationships in input sequences.
“It's using the self attention mechanism in the encoder to form these sets of representations on the input sequence. And then as part of the decoding process follow the same but in reverse with a bunch of self-attention that's able to look back again.”