Demystifying Deep Learning: Dr. Amod Anandkumar
Demystifying Deep Learning: Dr. Amod Anandkumar
2
Deep learning is a type of machine learning in which a model learns
to perform classification tasks directly from images, text, or sound.
3
Deep Learning is Versatile MATLAB Examples Available Here
4
Many Network Architectures for Deep Learning
Directed Acyclic
Series Network Recurrent Network
Graph Network
and more
(GAN, DQN,…)
AlexNet ResNet
LSTM
YOLO R-CNN
5
Convolutional Neural Networks
cake ✓
cat
…
…
…
dog
Convolution + Convolution + Flatten Fully Softmax
Input ReLU Pooling ReLU Pooling Connected
6
Deep Learning Inference in 4 Lines of Code
7
What is Training?
Images
Network
Training
Labels
Trained Deep
Neural Network
Large Data Set
10
Visualization Technique – Deep Dream
deepDreamImage(...
net, 'fc5', channel,
'NumIterations', 50, ...
'PyramidLevels', 4,...
'PyramidScale', 1.25);
14
Example – Semantic Segmentation Available Here
▪ CamVid dataset Brostow, Gabriel J., Julien Fauqueur, and Roberto Cipolla. "Semantic object classes in
video: A high-definition ground truth database." Pattern Recognition Letters Vol 30, Issue
2, 2009, pp 88-97. 15
Label Images Using Image Labeler App
16
Accelerate Labeling With Automation Algorithms
Learn More
17
Perform Bootstrapping to Label Large Datasets
Images
Videos Train
Network
Labeling Apps Ground Truth
Automation
Algorithm
18
Example – Semantic Segmentation Available Here
19
Access Large Sets of Images
20
Handle Big Image Collections without Big Changes
Images on HDFS
21
Import Pre-Trained Models and Network Architectures
Pretrained Models
Import Models from Frameworks
▪ alexnet
▪ Caffe Model Importer
▪ vgg16 (including Caffe Model Zoo)
▪ vgg19 – importCaffeLayers
▪ googlenet – importCaffeNetwork
▪ TensorFlow-Keras Model Importer
▪ inceptionv3
– importKerasLayers
▪ resnet50
– importKerasNetwork
▪ resnet101
▪ inceptionresnetv2
Download from within MATLAB
▪ squeezenet
22
Example – Semantic Segmentation Available Here
23
Augment Training Images
Rotation
Reflection
Scaling
Shearing
Translation
Colour pre-processing
Resize / Random crop / Centre crop 24
Tune Hyperparameters to Improve Training
Many hyperparameters
▪ depth, layers, solver options,
learning rates, regularization,
…
Techniques
▪ Parameter sweep
▪ Bayesian optimization
25
Training Performance
TensorFlow
MATLAB
MXNet
26
NVIDIA Tesla V100 32GB
The Fastest and Most Productive GPU for AI and HPC
Volta Architecture Tensor Core Improved NVLink & Volta MPS Improved SIMT Model
HBM2
125 Programmable
Most Productive GPU TFLOPS Deep Learning Efficient Bandwidth Inference Utilization New Algorithms
Ease of scaling
Seconds per epoch
▪ MATLAB “transparently”
scales to multiple GPUs
▪ Runs on Windows!
29
Examples to Learn More
30
Example – Semantic Segmentation Available Here
31
Accelerate Using GPU Coder
32
Prediction Performance: Fast with GPU Coder
Images/Sec
~2x
TensorFlow
~2x MATLAB
MXNet
AlexNet ResNet-50 VGG-16 GPU Coder
33
Deploying Deep Learning Application
Embedded Hardware Desktop, Web, Cloud
Application
logic
Code Application
Generation Deployment
34
Next Session
35
Addressing Deep Learning Challenges
36
Framework Improvements
▪ Architectures / layers ▪ Performance
– Regression LSTMs – CPU performance optimizations
– Bidirectional LSTMs – Optimizations for zero learning-rate
– Multi-spectral images
– Custom layer validation ▪ Network training
– ADAM & RMSProp optimizers
▪ Data pre-processing – Gradient clipping
– Custom Mini-Batch Datastores – Multi-GPU DAG network training
– DAG network activations
38
Deep Learning Network Analyzer
39
Creating Custom Architectures
MATLAB provides a simple programmatic
interface to create layers and form a network
• addLayers
• removeLayers
• connectLayers
• disconnectLayers
40
41
8 x 12 x 64
42
8 x 12 x 128
43
7 x 11 x 32
44
Change the padding
from zero to one
45
46
Call to Action – Deep Learning Onramp
Free Introductory Course
Available Here
47
MATLAB Deep Learning Framework
48
Speaker Details Contact MathWorks India
Email: [email protected] Products/Training Enquiry Booth
LinkedIn: https://in.linkedin.com/in/ajga2 Call: 080-6632-6000
Twitter: @_Dr_Amod Email: [email protected]
49