
Andrej Karpathy — Deep learning researcher at OpenAI, creator of Stanford's CS231N convolutional networks course, ConvNetJS, and arxiv-sanity.com
The gist
This is a technical lecture by Andrej Karpathy covering deep learning for computer vision, focused on convolutional neural networks (CNNs). He traces the field's history from Hubel and Wiesel's 1960s cat experiments through Fukushima's neurocognitron, Yann LeCun's 1990s LeNet, and the 2012 AlexNet breakthrough that transformed the field. He explains the mechanics of convolutional, pooling, and fully connected layers, then walks through the evolution of winning ImageNet architectures (AlexNet, ZFNet, VGGNet, GoogLeNet, ResNet). The talk closes with practical guidance on hardware, software frameworks, architecture selection, hyperparameters, and distributed training, followed by an extended audience Q&A.
Top Lex Fridman Listener Books
Most-recommended books across our Lex Fridman episode archive.
Affiliate links: we may earn a commission at no extra cost to you.
Big reveals
- By 2016 ImageNet top-5 error dropped to about 3.57%, roughly matching or beating estimated human accuracy of 2-5%.
- CNNs replaced multi-page hand-engineered feature extraction pipelines with end-to-end trained networks, drastically cutting code complexity.
- Features learned by pre-training on ImageNet transfer remarkably well to entirely different datasets and tasks.
- In ~20 years the two main algorithmic advances over LeNet were dropout and ReLU, both essentially one-line changes that set values to zero.
- Residual networks (ResNet) won ImageNet 2015 and many other challenges, enabling far deeper networks via skip connections acting as a gradient superhighway.
- ResNets can be made much shallower and wider and still work as well or better, suggesting depth alone is not the key.
- Karpathy's practical advice: 'don't be a hero' - use pre-trained ImageNet models and fine-tune rather than designing custom architectures.
Things worth remembering
- Spectrograms are 2D arrays, images 3D, videos 4D, and text can be treated as a 1D array of numbers.
- Karpathy built a web interface to measure his own ImageNet accuracy by competing against a CNN, losing points mostly on dog-breed identification.
- Some ImageNet test images are actually mislabeled, and ImageNet contains 50 different types of terriers.
- CNN neurons learned to detect faces, wrinkles, and printed text on their own, despite labels only being provided at the final layer.
- GoogLeNet has only 5 million parameters versus VGGNet's 140 million, mainly by discarding fully connected layers.
- A 56-layer plain network performs worse than a 20-layer one even on training data, an optimization problem ResNet's skip connections solve.
- NVIDIA's DGX-1 supercomputer cost about $130,000 at the time of the talk.
- State-of-the-art networks were typically trained for a few weeks across four or eight GPUs costing about $1,000 each.
Podcasts, media & links mentioned
Quick Episode FAQ
What is Deep Learning for Computer Vision (Andrej Karpathy, OpenAI) about?
Aired Sep 27, 2016 on Lex Fridman Podcast (1h 25m). Andrej Karpathy delivers a deep-dive lecture on how convolutional neural networks revolutionized computer vision. Core topics include deep learning, computer vision, convolutional neural networks, ImageNet.


