53
Pooling and Invariance in Convolutional Neural Networks

Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Pooling and Invariance in Convolutional Neural Networks

Page 2: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

General Neural Networks Compositions of linear maps and component-wise non-linearities

Page 3: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Neural Networks

Page 4: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Common Non-Linearities Rectifier Linear Unit Sigmoid Hyperbolic tangent

Page 5: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Biological Inspiration Neurons diagram Rectified Linear Unit

Page 6: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Sparse Connections Not required to be fully connected

Page 7: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Backpropagation

Page 8: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Representations Learnt

Page 9: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Representation Learning Images far apart in Euclidean space Need to find representation such that members of same class are mapped to similar values

Page 10: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Convolutional Neural Network Compositions of: Convolutions by Linear Filter Thresholding Non-Linearities Spatial Pooling

Page 11: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Convolution by Linear Filter

Page 12: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Convolution by Linear Filter

Page 13: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Example

Page 14: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Convolutional Neural Networks 1) Convolution by Linear Filter 2) Apply non-linearity 3) Pooling

Page 15: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Convolutional Neural Network

Page 16: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Convolutional Neural Networks

Page 17: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Imagenet Network

Page 18: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Successes Computer vision Speech Chemistry

Page 19: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Object Classification a

Page 20: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Segmentation

Page 21: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Object Detection

Page 22: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Speech

Page 23: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Physical Chemistry Successfully predict atomization energy, polarizability, frontier orbital eigenvalues, ionization potential, electron affinity and excitation energies from molecular structure.

Page 24: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Visualization of First Layer

Page 25: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Standard Pooling Mechanisms Ave pooling Max pooling

Page 26: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Example

Page 27: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Heterogenous Pooling Some filters passed to Ave pooling Others filters passed to Max pooling

Page 28: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Pooling Continuum

Accordingly, LeCun et al. 2012 ran experiment with variety of “p” values.

Page 29: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Results along spectrum

Optimal for this SVHN dataset was p = 4.

Page 30: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

L_p learnt pooling Why not learn optimal p for each filter map?

Page 31: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Stochastic Pooling

Page 32: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Stochastic Pooling Expectation at Test Time

Page 33: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Entropy Pooling Extend to variable p In particular, Alternative:

Page 34: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Max-Out pooling Pooling across filters Substantial Improvement in performance and allowed depth

Page 35: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Example

Page 36: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Compete Neurons Neurons can suppress other responses

Page 37: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Visualizations of Filters Early Layers

Page 38: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Visualizations

Page 39: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Visualizations

Page 40: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Invariance under Rigid Motion

Goodfellow et al. 2009 demonstrated the CNN are invariant under Indeed, depth of NN critical to establishing such invariance

Page 41: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Unstable under Deformation Szegedy et al.

Page 42: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Lipshitz Bounds for Layers Max and ReLU are contractive FC Layers: usual linear operator norm Conv Layers: Parseval’s and DFT yield explicit formula

Page 43: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Solutions? Regularize Lipshitz operator

Page 44: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Coding Symmetry Convolutional Wavelet Networks

Page 45: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Architecture Wavelet convolutions composed with modulus operator

Page 46: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Gabor Wavelets Trigonometric function in Gaussian Envelope

Page 47: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Group Convolution

Page 48: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Group Invariant Scattering Main Result: Conv. Wavelet Networks are translation invariant functions in L_2(R^2) Furthermore, CWN can be made invariant to action under any compact lie group.

Page 49: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Textures Sifre and

Mallat

Page 50: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Basis for images Learns similar representation as Imagenet CNN

Page 51: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Learnt Invariances

Page 52: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Optimal network 1) Encoded symmetry 2) Regularize Lipshitz coefficients 3) Compete Neurons in final layers

Page 53: Pooling and Invariance in Convolutional Neural Networkstheorycenter.cs.uchicago.edu/REU/2014/... · CNN Presentation.pptx Author: Stuart Kurtz Created Date: 10/3/2014 12:59:37 PM

Final words