visualizing and understanding convolutional...

16
Last Time The components of convolutional neural networks Alexnet, VGG

Upload: others

Post on 03-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

Last Time

• The components of convolutional neural

networks

• Alexnet, VGG

Page 2: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

Today

• Understanding what’s going on inside the

networks (David: ~10 minutes)

• An overview of the caffe toolbox (Rohit)

Page 3: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

Logistics

• Blog post: Tuesday 10PM at latest

– No strict format

– Approximately two paragraphs

• Project Proposal Deadline: Feb 15, Noon

– 2 pages (max)

– Team, problem definition, plan

Page 4: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

Visualizing and Understanding

Convolutional Networks

David Fouhey

Many figures from Matt Zeiler

Page 5: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

Review

Image P(Class|Image)

Page 6: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

When I started

• “It’s a black box!”

• “Nobody understands what’s going on!”

• “Conv1 is gabor filters, but what’s actually

going on?!”

• “Sure, LeCun and Hinton know how to make

them work, but it’s magic.”

Page 7: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

Goal

Image P(Class|Image)

What does this neuron mean?

Page 8: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

One Solution

Image P(Class|Image)

Ranzato et al.

‘07

Leung and

Malik ‘01

Compare

With:

Page 9: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

One Simple Scheme

Tons of

Images

P(Class|Image)

Most Wallaby-like Least Wallaby-like

Page 10: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

One Simple Scheme

Tons of

Images

P(Class|Image)

Page 11: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

What’s Really Going On?

Max-

Response

Image

P(Class|Image)

Page 12: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

Going Back To The Image

Towards

Predictions

Towards

Image

Page 13: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

Things to Invert

• Convolutions/Filtering

• Rectification/Non-linearity

• Pooling

Page 14: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

One Problem

Page 15: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

Tour through the Network

• Tour Through the Network

Page 16: Visualizing and Understanding Convolutional Networksgraphics.cs.cmu.edu/courses/16-824/2016_spring/slides/... · 2016-02-10 · •The components of convolutional neural networks

Is This Useful?

Alexnet Zeiler and Fergus

+1.7% Accuracy