r/learnmachinelearning • u/luisvalerio • 22d ago
I made a 4-part miniseries building the intuition for how neural nets are able to understand text [in short 4min videos]
I made a free four-part mini series that builds an intuition for how neural networks understand text. Most explanations either start at backpropagation or jump straight to transformers and how to build them. I wanted the step in between: start from a single neuron and build up to why this machinery works so well.
The four parts:
- One neuron can act like an if-statement. You can hand-wire simple logic into a network (AND, OR, NOT) until you hit XOR, the rule a single neuron can't write, and a second neuron fixes it.
- Neural bag-of-words: rules are cheaper than lists. A network that reads a sentence as a bag of word votes can express almost any rule and learn it from examples. One vote per word handles sentences it has never seen, which a lookup table of examples can't.
- Embeddings. How meaning gets encoded at the word level, learned from nothing but a fill-in-the-blank game, and why that's useful.
- Emergent concepts. OpenAI's 2017 sentiment neuron, which grew in a model trained only to predict the next character of Amazon reviews, and what that hints at for bigger models.
Apart from the hand-set weights in part 1, every number on screen comes from a real run: a training run on 60 labeled sentences, a fill-in-the-blank run on a toy corpus, real GloVe vectors, and OpenAI's released model.
Each part is a ~4-minute video, an article with interactive figures (if you'd rather read than watch) and an exercise to test your understanding. No math beyond simple sums. The videos are generated from code: the narration's timing drives the animation, the sound and the captions.
A note on "understand": I mean it in the functional sense (chinese room argument style), that the network builds internal features that track meaning, like that neuron.
Disclosure: I'm building zairai, an AI coach. I'd love to hear where it loses you, or where anything needs correcting.