I'm still pretty new to reading research papers, and "Attention Is All You Need" is the first one I've gone through line by line and then coded up myself. This post is the explanation I wanted while I was reading it. I wrote it for people like me: you can read Python, but you haven't spent much time with papers.
Start with this sentence from the Winograd Schema Challenge: "The trophy doesn't fit into the brown suitcase because it's too small." What does it refer to? Now swap the last word for large and read it again. Original example, item 2
Which object changed in your reading? With small , the suitcase is the problem. With large , it's the trophy. Neither noun moved, but a word at the very end of the sentence changed how you read a word near the start. If you're translating into French, you run into this before you even reach the adjective, because the pronoun for la valise is elle and the pronoun for le trophée is il .…