Part II · Branches & Language
Chapter 5
Vision, Speech & Reinforcement Learning
The wider field — and the idea of learning from consequences.
In one sentenceConvolutions made vision learnable, spectrograms made speech a sequence problem, and reinforcement learning taught agents from rewards rather than labels.
The problem
Images are grids of numbers
Chapter 4 ended with networks that learn their own features. This chapter is a branch off the main road to language models. It follows neural networks into two other kinds of data, pictures and sound, and then into a different kind of learning altogether, where nobody supplies the right answer.
Start with a photo. To a computer it is a grid of pixels, each holding three numbers for red, green and blue. A modest 224 × 224 colour image is already 150,528 numbers. Feed that into a fully connected layer and two things go wrong. The first layer needs an enormous number of weights. Worse, flattening the grid into a list throws away the one thing that matters most about images: which pixels are next to which. A fully connected network would have to learn what a vertical edge looks like separately in every corner of the picture.
The idea
One small filter, slid everywhere
The fix builds two facts about images into the layer. Useful patterns are local: an edge lives in a few neighbouring pixels. And they can appear anywhere: an ear is an ear in either corner. So use one small grid of weights, a filter, that looks at a 3 × 3 patch, and slide the same filter across every position. At each stop, multiply the patch by the filter element by element and add up the products. The grid of results is a feature map.
That sum is a dot product between the filter and one patch. The filter [-1, 0, 1] run along the pixels [0, 0, 1, 1, 1] gives [1, 1, 0]: it fires where brightness steps up and stays silent where it is flat. Try the two-dimensional version below. Select a cell of the feature map to see the nine multiplications behind it, or edit the filter yourself.
Try it · toy model
Slide a 3×3 filter over a tiny picture, see the nine multiplications behind every output, edit the weights, then add ReLU and pooling.
Two consequences follow from reusing one filter everywhere. The layer needs 9 weights instead of tens of thousands. And if the picture moves, the feature map moves with it: tick "Move the picture" and watch. A pattern learned in one place is recognised in every place.
The architecture
Stacking filters into a network
One layer can only ask local questions. A convolutional neural network (CNN) stacks many. Each layer applies dozens of filters, passes the results through ReLU, and every few layers pools: it keeps the strongest response in each 2 × 2 block, halving the height and width. Layer two convolves over layer one's feature maps, so it can find corners made of edges. Layer three finds arrangements of corners. With each layer, every unit sees a wider patch of the original image. A small fully connected head turns the final features into class probabilities.
Convolve
Many filters, one feature map each. Filters span all channels of their input.ReLU
Without a nonlinearity, stacked convolutions collapse into one big filter.Pool
Shrink the maps. Later layers see more of the image at a lower cost.Classify
Average or flatten the last maps and apply a classifier with softmax.
Nobody hand-writes these filters. They start random and are trained by backpropagation on labelled images, like any other weights. LeCun and colleagues trained such a network end to end to read handwritten zip codes in 1989 Established, and by the late 1990s its descendants were reading cheques. The design traces back through Fukushima's Neocognitron (1980) to Hubel and Wiesel's discovery of edge-sensitive cells in the visual cortex Established. The brain was an inspiration, not a blueprint Interpretation.
The breakthrough
The ImageNet years
CNNs worked on digits for two decades before they clearly beat hand-engineered systems on real photos. What they lacked was data and compute. ImageNet (2009) supplied millions of labelled photos, and its yearly challenge became the benchmark Established. In 2012 AlexNet, a deep CNN trained on GPUs with ReLU and dropout, cut the top-5 error to 15.3%, more than 10 points ahead of the next entry Established. Chapter 4 called this the start of the deep-learning era.
Networks then grew deeper until, around twenty layers, extra depth started to make them worse to train. ResNet (2015) added a shortcut around every pair of layers, computing x + f(x), and trained networks with 152 layers Established. You will meet that same residual connection around every sublayer of a Transformer.
More than labels
Beyond one label per image
Knowing that a photo contains a cat is rarely enough. Detection draws a box around every object and names it. Segmentation labels every pixel, which is what a medical scan or a self-driving car needs. Both reuse a CNN backbone and change the head. Segmentation has to recover the resolution that pooling threw away. U-Net does it with a U-shaped network whose skip connections carry fine detail from the shrinking half to the growing half.
Then, in 2020, vision borrowed language's architecture. A Vision Transformer cuts an image into 16 × 16 patches, turns each patch into a vector, and runs an ordinary Transformer over the sequence as if the patches were words. With modest pretraining data it trailed strong CNNs; with very large datasets it matched or beat them Established. A model with fewer built-in assumptions needs more data, but can go further when it gets it Interpretation. The same theme returns with language models.
Hearing
Sound becomes a picture
Speech arrives as a waveform: air pressure measured thousands of times a second. At 16 kHz, one second is 16,000 numbers, and the wiggles hide what matters. A vowel is defined by which frequencies are loud, and a word is a pattern of frequencies changing over time.
So slice the sound into short, overlapping windows, about 25 ms each. For each window, measure how much of every frequency it contains (a Fourier transform). Stack the results side by side and you have a spectrogram: time runs left to right, pitch bottom to top, and brightness shows strength. Speech becomes an image, and everything above applies.
Try it · toy model
Slice a sound into short windows, measure each window's frequencies, and discover why no window length is sharp in both time and frequency.
The lab also shows a trade-off with no way around it. A short window pins down when something happened but blurs which frequencies it had. A long window separates close frequencies but smears events in time. Real systems pick about 25 ms as a compromise that suits speech.
From sound to text
Recognising speech is a sequence problem with a catch: 300 audio frames must become 11 letters, and nobody marks which frames belong to which letter. For decades, recognisers stitched together separately built acoustic, pronunciation and language models. Around 2012, deep networks overtook the statistical acoustic models Established, in the same years they overtook vision pipelines. CTC (2006) had already removed the alignment problem. The network may output a letter or a "blank" at every frame, and training adds up every alignment that spells the right transcript.
The latest step will look familiar from Chapter 6: treat recognition as translation, from audio frames to text, with an encoder, a decoder and attention. Whisper (2022) trained such a Transformer on 680,000 hours of audio paired with transcripts from the web, and it transcribes robustly without task-specific fine-tuning Established. Speech followed the same arc as vision: hand-built stages, then one learned model, then one much larger model trained on messier data.
A different kind of learning
Learning from consequences
Everything so far, from Chapter 3 on, learned from examples: an input paired with the right answer. Many problems have no right answers to copy. Which move should a Go player make? How should a robot shift its weight? What makes a helpful reply? We cannot label every step, but we can score how things turned out.
Reinforcement learning (RL) learns from that score. An agent takes an action, the environment responds with a new state and a reward, and the loop repeats. The agent's goal is the return: the total future reward, with each step's reward multiplied by a discount γ per step of delay, so that sooner rewards count for more. With γ = 0.9, a reward of 10 three steps away is worth 0.9² × 10 = 8.1 now.
The standard formalism is the Markov decision process: states, actions, transition rules, rewards and a discount. A policy says what to do in each state. A value function says how much return to expect from there. They are connected by one recursive idea, the Bellman equation: the value here is the reward now plus the discounted value of where you land.
Learning what actions are worth
Q-learning turns the Bellman equation into a learning rule. Keep an estimate Q(s, a) for every state and action. After each step, move the estimate a fraction α toward a better-informed target: the reward just received plus γ times the best Q value from the next state.
Value flows backward from rewards, one step per update. The first time the agent reaches the +10 goal, only the final move learns anything. The next time it passes the square before it, that move learns too, and so on back toward the start. Press One move in the lab to watch a single update, or +50 episodes to watch the table fill in.
Try it · toy model
Watch Q-learning fill in a value table move by move, and see an agent settle for a small reward until optimism or a gentler discount changes its mind.
The lab also shows RL's third difficulty in action. With neutral starting values, the wandering agent usually finds the nearby +1 coin first. From then on, the path to the coin looks better than every move it has never tried, and it stops looking. Random exploration (ε) rarely strings together enough lucky moves to reach the +10 goal. Switch to an optimistic start, where every untried move looks as good as the best reward on the map. Now the agent tries each move until experience talks it down, and it finds the goal every time. Then lower γ to 0.3 and retrain: with a steep enough discount, +1 in three moves really is better than +10 in five.
Learning the policy directly
A Q table needs one entry per state and action. That is impossible for a camera image, and awkward when the action is a continuous motor torque or a whole paragraph of text. Policy-gradient methods skip the table. The policy itself is a network that outputs action probabilities. Sample an action, see how it went, and nudge the parameters so that actions that did better than expected become more probable and the rest less probable:
The baseline b, often a learned value estimate called the critic, is what turns "rewarded" into "better or worse than usual". Look closely and this is Chapter 2's cross-entropy update with a twist. Supervised learning raises the log-probability of the correct answer. A policy gradient raises the log-probability of the answer the model chose, in proportion to how well it turned out.
With neural networks as their policies and values, these methods scaled. DQN learned 49 Atari games from pixels in 2015, and AlphaGo combined policy and value networks with tree search to beat Lee Sedol in 2016 Established. AlphaGo's search tree is a direct descendant of Chapter 1's search, with learned judgement where the hand-written evaluation used to be.
Why it matters
Why it matters
This chapter sits off the main road, but it supplies three pieces the road needs.
- The recipe. Vision proved, earlier than language, that large labelled data, GPUs and learned features beat hand engineering, and that a pretrained network can be reused for new tasks.
- Convergence. Images became patches and sound became frames, and both ended up as sequences of vectors processed by Transformers. That is why modern models can take pictures and audio as easily as text (Chapter 15).
- Learning beyond imitation. Supervised learning can only copy its examples. RL optimises outcomes, so it can improve on them. When language models were fine-tuned from human preferences (RLHF), the optimiser was a policy-gradient method, PPO Established, and recent reasoning models are trained with RL on problems whose answers can be checked automatically Active research.
What came next
Back to language
The main road continues with text. Chapter 6 asks the questions this chapter asked about pixels and sound: how do you turn words into numbers that keep their meaning, and how does a model remember what came fifty words ago? Watch for familiar moves. Text is a sequence like audio, word vectors are learned features like CNN filters, and the attention mechanism that ends Chapter 6 is what the Vision Transformer and Whisper were later built on.
This branch, and where it rejoins the road
Concepts in this chapter
Mark each one as you go. Must-know concepts are the core path.
- Convolutional Neural NetworksA CNN stacks convolution, nonlinearity and pooling layers so that early layers detect edges and later layers combine them into parts and objects.Know wellMust know
- ConvolutionA convolution slides one small grid of weights (a filter) across the input, taking a weighted sum at every position to produce a feature map.Know wellMust know
- Deep RL, from Atari to AlphaGo to RLHFDeep reinforcement learning uses neural networks as the policy and value functions, which let RL scale from toy tables to Atari, Go and, eventually, the fine-tuning of language models.UnderstandMust know
- Exploration vs ExploitationAn agent must balance exploiting the best action it knows with exploring actions that might turn out better; too little exploration locks it into a mediocre habit.UnderstandMust know
- ImageNet, AlexNet and ResNetA large labelled dataset (ImageNet), GPU training (AlexNet) and residual connections (ResNet) turned CNNs from a niche method into the default for vision between 2009 and 2015.UnderstandMust know
- Images as TensorsA digital image is a grid of pixels, each holding a few numbers, so a colour photo is a height × width × 3 tensor.UnderstandMust know
- MDPs, Policies and ValueA Markov decision process formalises an RL problem as states, actions, transitions, rewards and a discount; a policy says what to do, and a value function says how good a situation is under it.UnderstandMust know
- Policy GradientsPolicy-gradient methods adjust the parameters of a policy directly, making actions that led to higher-than-expected reward more probable and the rest less probable.Know wellMust know
- Q-LearningQ-learning learns how good each action is in each state by repeatedly nudging its estimate toward the reward received plus the discounted value of the best next action.Know wellMust know
- Reinforcement LearningReinforcement learning trains an agent to choose actions that maximise the total reward it collects over time, learning from the consequences of its own behaviour instead of from labelled answers.Know wellMust know
- Actor–Critic MethodsActor–critic methods train two parts together: an actor (the policy) that chooses actions and a critic (a value estimate) that judges them, giving the actor a lower-noise learning signal.UnderstandShould know
- Audio and SpectrogramsA spectrogram turns a waveform into a time × frequency picture by measuring the frequency content of short, overlapping windows of sound.UnderstandShould know
- Detection and SegmentationDetection finds and boxes every object in an image; segmentation labels every pixel.UnderstandShould know
- Pooling and DownsamplingPooling shrinks a feature map by summarising each small block, usually by its maximum, so later layers see a wider area at lower cost.UnderstandShould know
- Speech Recognition and SynthesisSpeech recognition maps a sequence of audio frames to a sequence of words; the field moved from hand-built pipelines to CTC-trained networks to large encoder–decoder Transformers such as Whisper.UnderstandShould know
- Vision Transformer (ViT)A Vision Transformer cuts an image into 16×16 patches, turns each into a token vector, and runs a standard Transformer over the sequence.UnderstandShould know
What do I actually need to remember?
- An image is a height × width × channels tensor; flattening it throws away which pixels are neighbours.
- A convolution slides one small filter over the input, reusing the same few weights everywhere, so a shifted input gives a shifted output.
- CNNs stack convolution → ReLU → pooling; deeper layers see wider regions and respond to larger patterns.
- ImageNet-scale data, GPU training (AlexNet, 2012) and residual connections (ResNet, 2015) made deep CNNs the default for vision.
- Detection boxes each object, segmentation labels each pixel, and a Vision Transformer reads an image as a sequence of patch tokens.
- A spectrogram is a time × frequency picture of sound; short windows are sharp in time, long windows sharp in frequency.
- Speech recognition moved from pipelines to CTC to encoder–decoder Transformers trained on huge, loosely labelled data (Whisper).
- Reinforcement learning learns from the rewards its own actions earn, maximising the discounted return rather than matching labels.
- Q-learning nudges Q(s, a) toward r + γ·max Q(s′, ·); without enough exploration an agent settles for the first reward it finds.
- Policy gradients raise the log-probability of actions in proportion to their advantage; with a learned reward model, that is RLHF.
You do not need to memorize everything else. This list is the revision sheet.
Key papers
Receptive fields, binocular interaction and functional architecture in the cat's visual cortex
D. H. Hubel, T. N. Wiesel · 1962 · The Journal of Physiology
Neuroscience, not machine learning, but it described visual neurons that respond to oriented edges in a small patch of the visual field: the idea behind local, edge-detecting filters.
- Problem
- How does the visual cortex turn light falling on the retina into responses to shapes?
- What was new
- Recordings from single neurons showing small receptive fields, orientation selectivity, and 'simple' and 'complex' cells arranged in a hierarchy.
How to read it: Read the summary and look at the receptive-field figures; the physiology detail is optional for our purposes.
Neocognitron: A self-organizing neural network model for a mechanism of pattern recognition unaffected by shift in position
Kunihiko Fukushima · 1980 · Biological Cybernetics
An early layered network with local feature detectors and pooling-like stages, built to recognise a pattern wherever it appears: the architectural ancestor of the CNN.
- Problem
- A pattern recogniser should not have to relearn a shape for every position it might appear in.
- What was new
- Alternating layers of local feature-extracting cells and cells that tolerate small shifts, inspired by Hubel and Wiesel's simple and complex cells.
Backpropagation Applied to Handwritten Zip Code Recognition
Y. LeCun, B. Boser et al. · 1989 · Neural Computation
Trained a network with shared local weights end to end by backpropagation on real handwritten digits: the convolutional network as we know it.
- Problem
- Hand-designed feature extractors for handwriting were brittle and laborious to build.
- What was new
- Constrain the network with local connections and weight sharing, then learn all the filters from data with backpropagation.
Gradient-based learning applied to document recognition
Yann LeCun, Léon Bottou et al. · 1998 · Proceedings of the IEEE
The LeNet paper: convolutional networks trained end-to-end with gradient descent for handwriting recognition, deployed commercially for reading cheques.
- Problem
- Handwriting recognition relied on hand-designed feature extractors plus a trainable classifier.
- What was new
- Learn the features too: convolutional networks trained end to end, plus whole systems trained with gradients.
How to read it: Long (46 pages). Sections I–II explain why learned features beat hand-designed ones — the heart of Chapter 4.
ImageNet: A large-scale hierarchical image database
Jia Deng, Wei Dong et al. · 2009 · CVPR 2009
A dataset, not a model: millions of labelled images organised by WordNet categories. Its yearly challenge became the benchmark on which deep CNNs proved themselves in 2012.
- Problem
- Vision datasets were too small to train or fairly compare models that learn many parameters.
- What was new
- Collect and label images at a much larger scale using crowdsourcing, organised into a hierarchy of categories.
ImageNet Classification with Deep Convolutional Neural Networks
Alex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton · 2012 · NeurIPS 2012
AlexNet won ImageNet 2012 by a wide margin and triggered the deep-learning era: big data plus GPUs plus deep networks.
- Problem
- Image recognition relied on hand-engineered features and had plateaued on large, varied datasets.
- What was new
- A deep convolutional network trained on GPUs with ReLUs and dropout on 1.2 million images, cutting top-5 error dramatically.
Deep Residual Learning for Image Recognition
Kaiming He, Xiangyu Zhang et al. · 2015 · CVPR 2016
Residual (skip) connections made very deep networks trainable. Every Transformer block relies on the same trick.
- Problem
- Adding more layers to deep networks made training error worse, not better — deeper models were harder to optimize.
- What was new
- Let each block learn a correction added to its input (x + F(x)), giving gradients a direct path through the network.
- Influenced
- Attention Is All You Need
Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks
Shaoqing Ren, Kaiming He et al. · 2015 · NeurIPS 2015
A standard two-stage detector: one CNN proposes candidate boxes and the same features classify and refine them.
- Problem
- Detection systems spent most of their time generating candidate regions with slow, hand-designed methods.
- What was new
- A region proposal network that shares convolutional features with the detector, so proposals come almost for free.
U-Net: Convolutional Networks for Biomedical Image Segmentation
Olaf Ronneberger, Philipp Fischer, Thomas Brox · 2015 · MICCAI 2015
A labelling for every pixel: an encoder that shrinks the image and a decoder that grows it back, with skip connections carrying fine detail across. The U shape later became the backbone of many diffusion image generators.
- Problem
- Segmentation needs both context (what is this?) and precise location (exactly which pixels?), and biomedical training sets are small.
- What was new
- A symmetric contracting and expanding network whose skip connections copy high-resolution features to the matching decoder stage.
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Alexey Dosovitskiy, Lucas Beyer et al. · 2020 · ICLR 2021
Showed that a nearly unmodified Transformer, reading an image as a sequence of patches, can match strong CNNs when pretrained on enough data. Vision and language began to share one architecture.
- Problem
- Transformers dominated language, but vision still relied on convolutions' built-in locality.
- What was new
- Cut the image into 16×16 patches, embed each patch like a token, add position embeddings and run a standard Transformer encoder.
How to read it: The key result is the comparison across pretraining dataset sizes: with less data CNNs win, with more the ViT catches up.
Connectionist temporal classification: labelling unsegmented sequence data with recurrent neural networks
Alex Graves, Santiago Fernández et al. · 2006 · ICML 2006
Let a network learn speech-to-text from audio paired with transcripts only, without anyone marking where each sound starts and ends.
- Problem
- Training a frame-by-frame recogniser seemed to require a label for every audio frame, which is expensive and ambiguous.
- What was new
- Add a 'blank' symbol and sum the probability over every frame-level alignment that collapses to the target transcript.
- Built on
- Long Short-Term Memory
Deep Neural Networks for Acoustic Modeling in Speech Recognition: The Shared Views of Four Research Groups
Geoffrey Hinton, Li Deng et al. · 2012 · IEEE Signal Processing Magazine
Four research groups reported that deep networks beat the Gaussian mixture models that had powered speech recognisers for decades. Speech fell to deep learning in the same years as vision.
- Problem
- Acoustic models based on Gaussian mixtures had plateaued.
- What was new
- Replace the Gaussian mixture acoustic model with a deep feed-forward network that predicts speech-state probabilities from a window of frames.
WaveNet: A Generative Model for Raw Audio
Aaron van den Oord, Sander Dieleman et al. · 2016
Generated audio one sample at a time with a stack of dilated causal convolutions, and produced much more natural-sounding synthetic speech.
- Problem
- Text-to-speech systems stitched or vocoded audio and sounded mechanical.
- What was new
- An autoregressive model over raw waveform samples; dilated convolutions widen the receptive field exponentially with depth.
Robust Speech Recognition via Large-Scale Weak Supervision
Alec Radford, Jong Wook Kim et al. · 2022
Whisper: an encoder–decoder Transformer trained on 680,000 hours of audio paired with transcripts gathered from the internet. Speech recognition became one more sequence-to-sequence problem solved by scale.
- Problem
- Speech recognisers trained on curated datasets were brittle on new accents, noise and domains.
- What was new
- Train one model on a large, noisy, multilingual weakly supervised dataset; it transcribes, translates and identifies language, and generalises well without fine-tuning.
- Built on
- Attention Is All You Need
Reinforcement Learning: An Introduction (2nd edition)
Richard S. Sutton, Andrew G. Barto · 2018 · MIT Press
The standard textbook, free online from the authors. Everything in this chapter's RL half (MDPs, value functions, Q-learning, exploration, policy gradients, actor–critic) is developed carefully there.
- Problem
- Reinforcement learning ideas were scattered across control theory, psychology and AI.
- What was new
- A unified treatment built around value functions, temporal-difference learning and policy methods.
How to read it: Chapters 1, 3 and 6 cover the core: the problem, MDPs, and temporal-difference learning including Q-learning. Chapter 13 is policy gradients.
Q-learning
Christopher J. C. H. Watkins, Peter Dayan · 1992 · Machine Learning
Proved that Q-learning, which Watkins introduced in his 1989 thesis, converges to the optimal action values under stated conditions: learn the best behaviour while behaving otherwise.
- Problem
- How can an agent learn optimal behaviour without a model of its environment, from its own trial and error?
- What was new
- A convergence proof for the Q-learning update: every state–action pair is tried infinitely often and learning rates shrink appropriately.
Simple statistical gradient-following algorithms for connectionist reinforcement learning
Ronald J. Williams · 1992 · Machine Learning
REINFORCE: the basic policy-gradient estimator. Make the actions that led to high reward more probable. The same estimator sits inside modern RL fine-tuning of language models.
- Problem
- How do you follow the gradient of expected reward when the reward depends on random actions and is not differentiable?
- What was new
- An unbiased gradient estimate: reward (minus a baseline) times the gradient of the log-probability of the action taken.
- Influenced
- Proximal Policy Optimization Algorithms
Human-level control through deep reinforcement learning
Volodymyr Mnih, Koray Kavukcuoglu et al. · 2015 · Nature
A single deep network learned to play dozens of Atari games from raw pixels and score alone — deep learning meets reinforcement learning.
- Problem
- Reinforcement learning had struggled to learn directly from high-dimensional sensory input.
- What was new
- Deep Q-networks trained with experience replay and a periodically updated target network.
Asynchronous Methods for Deep Reinforcement Learning
Volodymyr Mnih, Adrià Puigdomènech Badia et al. · 2016 · ICML 2016
A3C: a widely used deep actor–critic method, with many parallel actors sharing one network.
- Problem
- DQN needed a large replay memory, and on-policy deep RL was unstable.
- What was new
- Many actors explore in parallel and update a shared policy (actor) and value estimate (critic), which decorrelates the data without replay.
Mastering the game of Go with deep neural networks and tree search
David Silver, Aja Huang et al. · 2016 · Nature
AlphaGo combined learned intuition (neural networks) with classical search — and beat top professionals at a game long thought decades away.
- Problem
- Go's search space is far too large for the brute-force search that worked in chess.
- What was new
- Policy and value networks, trained from human games and self-play reinforcement learning, guiding Monte Carlo tree search.
How to read it: A perfect bridge between this chapter's two halves: symbolic search, guided by learned networks.
Proximal Policy Optimization Algorithms
John Schulman, Filip Wolski et al. · 2017
PPO: a simple, robust actor–critic policy-gradient method. It became the default RL algorithm in many labs and was the optimiser in InstructGPT-style RLHF.
- Problem
- Policy-gradient updates that are too large can wreck a policy in a single step; the principled fixes were complicated.
- What was new
- A clipped objective that removes the incentive to move the policy too far from the one that collected the data, so the same batch can be reused for several updates.
Watch
3Blue1Brown
But what is a convolution?
A visual introduction to discrete convolution that starts with adding dice and ends with image kernels and FFTs.
Covers: Slide, multiply and add; image kernels such as blurs and edge detectors; and why the same operation appears in probability and signal processing.
StatQuest with Josh Starmer
Neural Networks Part 8: Image Classification with Convolutional Neural Networks (CNNs)
Walks a tiny CNN through a complete example, filter to pooling to fully connected layer, with every number shown.
Covers: Filters, feature maps and max pooling, one step at a time, ending in a small image classifier.
3Blue1Brown
But what is the Fourier Transform? A visual introduction.
Builds the intuition behind splitting a sound into its frequencies, the operation every spectrogram column performs.
Covers: Winding a signal around a circle, why a frequency present in the signal stands out, and how that separates mixed tones.
Steve Brunton
Reinforcement Learning: Machine Learning Meets Control Theory
A compact overview of the RL problem, its leading algorithms and applications, from a control-theory perspective.
Covers: Agent, environment, reward, policy and value; Markov decision processes; the credit-assignment problem; and Q-learning.
Google DeepMind
RL Course by David Silver - Lecture 1: Introduction to Reinforcement Learning
The first lecture of the classic UCL course by the lead researcher on AlphaGo. For when you want the full course after this chapter.
Covers: Rewards, the agent–environment loop, states and Markov states, policies, value functions, models, and exploration versus exploitation.
What came next?
Chapter 6
Language Before Transformers →
How do you turn words into numbers that preserve meaning — and remember what came fifty words ago?