Introduction to computer vision 13
Jean Ponce
Zuhaib Akhtar za2023@nyu.edu
Ayush Jain aj3152@nyu.edu
Slides will be available after classes
Deep learning
Image categorization as
representation learning
Image “space”
Feature (Hilbert) space
n
θ
θ
θ
Deep learning
Layer 1
Layer 2
Layer n
Linear head
Learned
representation
Traditional Recognition Approach
Hand-designed�feature extraction
Trainable�classifier
Image/ Video
Pixels
Object�Class
What about learning the features?
Layer 1
Layer 2
Layer 3
Simple �Classifier
Image/ Video
Pixels
“Shallow” vs. “deep” architectures
Hand-designed�feature extraction
Trainable�classifier
Image/ Video
Pixels
Object�Class
Layer 1
Layer N
Simple classifier
Object Class
Image/ Video
Pixels
Traditional recognition: “Shallow” architecture
Deep learning: “Deep” architecture
…
Brief history of Neural Networks
Output:
bias
(Source Wikipedia)
Brief history of Neural Networks
Inspiration: Neuron cells
Hubel/Wiesel Architecture
Brief history of Neural Networks
Brief history of Neural Networks
Convolutional Neural Networks (CNN, Convnet)
Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner, Gradient-based learning applied to document recognition, Proceedings of the IEEE 86(11): 2278–2324, 1998.
Parametric supervised learning
(Slides borrowed from S. Lazebnik and M. Trager)
Neural networks
Feedforward neural network
Nonlinearity
Convolutional Neural Networks (CNN, Convnet)
Input Image
Convolution (Learned)
Non-linearity
Spatial pooling
Normalization
Feature maps
Feedforward neural networks for images
image
Fully connected layer
Source: S. Lazebnik
CNNs: Neural networks for images
image
Convolutional layer
Source: S. Lazebnik
CNNs: Neural networks for images
image
feature map
learned weights
Convolutional layer
Source: S. Lazebnik
CNNs: Neural networks for images
image
feature map
learned weights
Convolutional layer
Source: S. Lazebnik
Convolution as feature extraction
Input
Feature Map
...
Source: S. Lazebnik
Neural networks for images
image
feature map
learned weights
Convolutional layer
Source: S. Lazebnik
Neural networks for images
image
next layer
Convolutional layer
+ ReLU
Source: S. Lazebnik
Key operations in a CNN
Input Image
Convolution (Learned)
Non-linearity
Spatial pooling
Feature maps
Input
Feature Map
...
Source: R. Fergus, Y. LeCun
Key operations in a CNN
Input Image
Convolution (Learned)
Non-linearity
Spatial pooling
Feature maps
Source: R. Fergus, Y. LeCun
Rectified Linear Unit (ReLU)
Key operations in a CNN
Input Image
Convolution (Learned)
Non-linearity
Spatial pooling
Feature maps
Max
Source: R. Fergus, Y. LeCun
Key operations in a CNN
Softmax layer:
Source: S. Lazebnik
Loss functions
Gradient descent
Stochastic gradient descent
Note that in expectation
GD
SGD
How do we optimize the very nonlinear and
nonconvex empirical risk?
Many possible choices:
Léon Bottou on large-scale learning..
Léon Bottou on large-scale learning..
Léon Bottou on large-scale learning..
Léon Bottou on large-scale learning..
Léon Bottou on large-scale learning..
Léon Bottou on large-scale learning..
Léon Bottou on large-scale learning..
Bottom line:
Batch SGD