4 ms·
For those of us who are lay people outside of machine learning and AI, what was the critical insight that made “attention all you need” in the original Transfor
by hangonhn 2y ago
For those of us who are lay people outside of machine learning and AI, what was the critical insight that made “attention all you need” in the original Transformer paper?
- danielbln 2y agoI believe the insight was the introduction of the attention mechanisms that allow the NN to look at all words (well, embeddings) in parallel and make connections between them, instead of processing things purely sequential.
- freilanzer 2y agoThat attention works and is highly parallelisable.
- yorwba 2y agoThe abstract https://arxiv.org/abs/1706.03762 https://arxiv.org/abs/1706.03762 explains it well: "The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely." They did not invent attention, but while previous language models had used attention as an auxiliary mechanism, they removed everything but the attention and the models still worked. Really, the title already says it all.
- imtringued 2y agoI don't remember the contents of that paper, but I can give you some context based on my knowledge of "traditional" theoretical computer science. In theoretical CS you have state machines, pushdown automatons and turing machines. What may surprise you is that the difference between those three does not lie in the way the algorithm for them is represented. They all use state transition diagrams! Pushdown automatons are more powerful than state machines, because they have a stack onto which they can push new data, peek at the top of the stack or pop data off the stack. Now here is the kicker! How do you get a turing machine? You take a pushdown automaton and remove the restriction that you can only push, peek or pop at the head! You can now move the head pointing at the stack, your stack has turned into a tape! The key difference lies in the datastructure that the transition diagram is manipulating, not the algorithm itself! The attention mechanism of the transformer architecture is analogous to a tape that can only be written to once per blank and in theory that alone is enough to emulate a full Turing machine with read, write, rewrite and delete semantics.