The mechanism allows to dynamically select related representations as needed.
it is very useful for generation models such as machine translation (Bahdanau et al., 2015;Luong et al., 2015; and image captioning (Xu et al., 2015).