It contains an additional sub-layer that performs multi-head attention over the outputs of the encoder block.
a decoding layer d l i is the result of multi-head attention over the outputs of the encoder which in turn is a function of the encoder memory and the outputs from the previous layer: where, the keys and values are the encoder outputs and the queries correspond to the decoder input.