flâneur — a map of the web's best reading

Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper? | Hacker News

news.ycombinator.com · 26,083 words · saved by 1 readers

First, we take a sequence of words and represent it as a grid of numbers: each column of the grid is a separate word, and each row of the grid is a measurement of some property of that word. Words with similar meanings are likely to have similar numerical values on a row-by-row basis. (During the training process, we create a dictionary of all possible words, with a column of numbers for each of those words. More on this later!) This grid is called the "context". Typical systems will have a context that spans several thousand columns and several thousand rows. Right now, context length (column count) is rapidly expanding (1k to 2k to 8k to 32k to 100k+!!) while the dimensionality of each word in the dictionary (row count) is pretty static at around 4k to 8k... Anyhow, the Transformer architecture takes that grid and passes it through a multi-layer transformation algorithm. The functionality of each layer is identical: receive the grid of numbers as input, then perform a mathematical tr

Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper? | Hacker News Hacker News new | past | comments | ask | show | jobs | submit login Ask HN: Can someone ELI5 transformers and the “Attention is all we need” paper? 644 points by Sai_ on May 17, 2023 | hide | past | favorite | 228 comments I have zero AI/ML knowledge but Steve Yegge on Medium thinks that the team behind Transformers deserves a Nobel. Makes me want to better understand this tech. Edit: thank you for some amazing top level responses and links to valuable content on this subject. benjismith on May

Explore this link on the map →

related reading