Inner workings of a transformer network
Understanding how a basic transformer works
This blog post is still incomplete. Come back later for more.
Natural language modeling
Many tasks (translation, question answering, sentiment analysis etc.) can be expressed through natural language. Once expressed that way, doing a task is equivalent to generating the output given an input and a task description. That is the next-token prediction problem1 Is a token the same as a word in a language? Did I mean next-word prediction? . Given a sequence of tokens can we predict that comes after it (and do it repeatedly)?
What is a transformer?
A transformer network is a kind of neural network architecture that is commonly used in natural language modeling scenarios2 Language Models are Unsupervised Multitask Learners, Radford et al., see Section 2 .