21
Journal Club 論文紹介 Visualizing and Understanding Convolu5onal Networks Zeiler, M. et al. In Proc. European Conference on Computer Vision 2014 2015/07/03 [email protected]

20150703.journal club

Embed Size (px)

Citation preview

Page 1: 20150703.journal club

Journal  Club  論文紹介  Visualizing  and  Understanding  

Convolu5onal  Networks

Zeiler,  M.  et  al.  In  Proc.  European  Conference  on  

Computer  Vision  2014    

2015/07/03  [email protected]

Page 2: 20150703.journal club

前回(2015.03.26)のおまけスライド

•  階層ネットワークへの導入  –  [Zeiler  &  Fergus  13]

Visualizing and Understanding Convolutional Networks

invert this, the deconvnet uses transposed versions ofthe same filters, but applied to the rectified maps, notthe output of the layer beneath. In practice this meansflipping each filter vertically and horizontally.

Projecting down from higher layers uses the switchsettings generated by the max pooling in the convneton the way up. As these switch settings are peculiarto a given input image, the reconstruction obtainedfrom a single activation thus resembles a small pieceof the original input image, with structures weightedaccording to their contribution toward to the featureactivation. Since the model is trained discriminatively,they implicitly show which parts of the input imageare discriminative. Note that these projections are notsamples from the model, since there is no generativeprocess involved.

Layer Below Pooled Maps

Feature Maps

Rectified Feature Maps

Convolu'onal)Filtering){F})

Rec'fied)Linear)Func'on)

Pooled Maps

Max)Pooling)

Reconstruction

Rectified Unpooled Maps

Unpooled Maps

Convolu'onal)Filtering){FT})

Rec'fied)Linear)Func'on)

Layer Above Reconstruction

Max)Unpooling)

Switches)

Unpooling Max Locations

“Switches”

Pooling

Pooled Maps

Feature Map

Layer Above Reconstruction

Unpooled Maps

Rectified Feature Maps

Figure 1. Top: A deconvnet layer (left) attached to a con-vnet layer (right). The deconvnet will reconstruct an ap-proximate version of the convnet features from the layerbeneath. Bottom: An illustration of the unpooling oper-ation in the deconvnet, using switches which record thelocation of the local max in each pooling region (coloredzones) during pooling in the convnet.

3. Training Details

We now describe the large convnet model that will bevisualized in Section 4. The architecture, shown inFig. 3, is similar to that used by (Krizhevsky et al.,2012) for ImageNet classification. One di↵erence isthat the sparse connections used in Krizhevsky’s lay-ers 3,4,5 (due to the model being split across 2 GPUs)are replaced with dense connections in our model.

Other important di↵erences relating to layers 1 and2 were made following inspection of the visualizationsin Fig. 6, as described in Section 4.1.

The model was trained on the ImageNet 2012 train-ing set (1.3 million images, spread over 1000 di↵erentclasses). Each RGB image was preprocessed by resiz-ing the smallest dimension to 256, cropping the center256x256 region, subtracting the per-pixel mean (acrossall images) and then using 10 di↵erent sub-crops of size224x224 (corners + center with(out) horizontal flips).Stochastic gradient descent with a mini-batch size of128 was used to update the parameters, starting with alearning rate of 10�2, in conjunction with a momentumterm of 0.9. We anneal the learning rate throughouttraining manually when the validation error plateaus.Dropout (Hinton et al., 2012) is used in the fully con-nected layers (6 and 7) with a rate of 0.5. All weightsare initialized to 10�2 and biases are set to 0.

Visualization of the first layer filters during trainingreveals that a few of them dominate, as shown inFig. 6(a). To combat this, we renormalize each filterin the convolutional layers whose RMS value exceedsa fixed radius of 10�1 to this fixed radius. This is cru-cial, especially in the first layer of the model, where theinput images are roughly in the [-128,128] range. As in(Krizhevsky et al., 2012), we produce multiple di↵er-ent crops and flips of each training example to boosttraining set size. We stopped training after 70 epochs,which took around 12 days on a single GTX580 GPU,using an implementation based on (Krizhevsky et al.,2012).

4. Convnet Visualization

Using the model described in Section 3, we now usethe deconvnet to visualize the feature activations onthe ImageNet validation set.

Feature Visualization: Fig. 2 shows feature visu-alizations from our model once training is complete.However, instead of showing the single strongest ac-tivation for a given feature map, we show the top 9activations. Projecting each separately down to pixelspace reveals the di↵erent structures that excite agiven feature map, hence showing its invariance to in-put deformations. Alongside these visualizations weshow the corresponding image patches. These havegreater variation than visualizations as the latter solelyfocus on the discriminant structure within each patch.For example, in layer 5, row 1, col 2, the patches ap-pear to have little in common, but the visualizationsreveal that this particular feature map focuses on thegrass in the background, not the foreground objects.

Page 3: 20150703.journal club

Overview

•  Deep  Convolu5onal  Network  – 特徴抽出+識別器として好成績を収める  – なんで,そんなに成績良いの?    

•  “画像のどの成分をみて判断しているか”  を推測するのは意外と難しい    

•  Deep  Convolu5onal  Network  の中間層の    “観ているもの”  を可視化する

Page 4: 20150703.journal club

ネットワークアーキテクチャ

•  DCNN:  局所特徴抽出+変形に対する不変性

ConvolutionsSubsampling

Convolutions Subsampling

Page 5: 20150703.journal club

ネットワークアーキテクチャ

•  DCNN  [Krizhevsky+12]  を利用して特徴解析をしてみる

Visualizing and Understanding Convolutional Networks

Input Image

stride 2!

image size 224!

3!

96!

5!2!

110!

55

3x3 max pool stride 2

96!3!

1!

26

256!

filter size 7!

3x3 max pool

stride 2

13 256!

3!1!

13

384!3!

1!

13

384!

Layer 1 Layer 2

13

256!

3x3 max pool

stride 2

6

Layer 3 Layer 4 Layer 5

256!

4096 units!

4096 units!

Layer 6 Layer 7

C class

softmax!

Output

contrast norm.

contrast norm.

Figure 3. Architecture of our 8 layer convnet model. A 224 by 224 crop of an image (with 3 color planes) is presented asthe input. This is convolved with 96 di↵erent 1st layer filters (red), each of size 7 by 7, using a stride of 2 in both x and y.The resulting feature maps are then: (i) passed through a rectified linear function (not shown), (ii) pooled (max within3x3 regions, using stride 2) and (iii) contrast normalized across feature maps to give 96 di↵erent 55 by 55 element featuremaps. Similar operations are repeated in layers 2,3,4,5. The last two layers are fully connected, taking features fromthe top convolutional layer as input in vector form (6 · 6 · 256 = 9216 dimensions). The final layer is a C-way softmaxfunction, C being the number of classes. All filters and feature maps are square in shape.

Layer 1 Layer 2 Layer 3 Layer 4 Layer 5

Figure 4. Evolution of a randomly chosen subset of model features through training. Each layer’s features are displayedin a di↵erent block. Within each block, we show a randomly chosen subset of features at epochs [1,2,5,10,20,30,40,64].The visualization shows the strongest activation (across all training examples) for a given feature map, projected down topixel space using our deconvnet approach. Color contrast is artificially enhanced and the figure is best viewed in electronicform.

0 50 100 150 200 250 300 3500

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Rotation Degrees

P(tru

e clas

s)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

��� ��� ��� � �� �� ���

1

3

5

7

8

9

��

Vertical Translation (Pixels)

Cano

nical

Dista

nce

Lawn Mower������African CrocodileAfrican GreyEntertrainment Center

−60 −40 −20 0 20 40 600

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

Vertical Translation (Pixels)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

1 1.2 1.4 1.6 1.80

0.1

0.2

0.3

0.4

0.5

0.6

0.7

Scale (Ratio)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

0 50 100 150 200 250 300 3500

0.2

0.4

0.6

0.8

1

1.2

1.4

Rotation Degrees

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

−60 −40 −20 0 20 40 600

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Vertical Translation (Pixels)

P(tru

e clas

s)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

1 1.2 1.4 1.6 1.80

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Scale (Ratio)

P(tru

e clas

s)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

a1#

c1#

a3#

c3# c4#

a4#

1 1.2 1.4 1.6 1.80

2

4

6

8

10

12

Scale (Ratio)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

0 50 100 150 200 250 300 3500

5

10

15

Rotation Degrees

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

a2#

b3# b4#b2#b1#

c2#

Figure 5. Analysis of vertical translation, scale, and rotation invariance within the model (rows a-c respectively). Col 1: 5example images undergoing the transformations. Col 2 & 3: Euclidean distance between feature vectors from the originaland transformed images in layers 1 and 7 respectively. Col 4: the probability of the true label for each image, as theimage is transformed.

Page 6: 20150703.journal club

高次表現の変換:  DeConv  Net

•  Max  Loca5ons  Sw.  による位置推定    

•  ReLU  による正値化  •  FT  による逆フィルタ

Visualizing and Understanding Convolutional Networks

invert this, the deconvnet uses transposed versions ofthe same filters, but applied to the rectified maps, notthe output of the layer beneath. In practice this meansflipping each filter vertically and horizontally.

Projecting down from higher layers uses the switchsettings generated by the max pooling in the convneton the way up. As these switch settings are peculiarto a given input image, the reconstruction obtainedfrom a single activation thus resembles a small pieceof the original input image, with structures weightedaccording to their contribution toward to the featureactivation. Since the model is trained discriminatively,they implicitly show which parts of the input imageare discriminative. Note that these projections are notsamples from the model, since there is no generativeprocess involved.

Layer Below Pooled Maps

Feature Maps

Rectified Feature Maps

Convolu'onal)Filtering){F})

Rec'fied)Linear)Func'on)

Pooled Maps

Max)Pooling)

Reconstruction

Rectified Unpooled Maps

Unpooled Maps

Convolu'onal)Filtering){FT})

Rec'fied)Linear)Func'on)

Layer Above Reconstruction

Max)Unpooling)

Switches)

Unpooling Max Locations

“Switches”

Pooling

Pooled Maps

Feature Map

Layer Above Reconstruction

Unpooled Maps

Rectified Feature Maps

Figure 1. Top: A deconvnet layer (left) attached to a con-vnet layer (right). The deconvnet will reconstruct an ap-proximate version of the convnet features from the layerbeneath. Bottom: An illustration of the unpooling oper-ation in the deconvnet, using switches which record thelocation of the local max in each pooling region (coloredzones) during pooling in the convnet.

3. Training Details

We now describe the large convnet model that will bevisualized in Section 4. The architecture, shown inFig. 3, is similar to that used by (Krizhevsky et al.,2012) for ImageNet classification. One di↵erence isthat the sparse connections used in Krizhevsky’s lay-ers 3,4,5 (due to the model being split across 2 GPUs)are replaced with dense connections in our model.

Other important di↵erences relating to layers 1 and2 were made following inspection of the visualizationsin Fig. 6, as described in Section 4.1.

The model was trained on the ImageNet 2012 train-ing set (1.3 million images, spread over 1000 di↵erentclasses). Each RGB image was preprocessed by resiz-ing the smallest dimension to 256, cropping the center256x256 region, subtracting the per-pixel mean (acrossall images) and then using 10 di↵erent sub-crops of size224x224 (corners + center with(out) horizontal flips).Stochastic gradient descent with a mini-batch size of128 was used to update the parameters, starting with alearning rate of 10�2, in conjunction with a momentumterm of 0.9. We anneal the learning rate throughouttraining manually when the validation error plateaus.Dropout (Hinton et al., 2012) is used in the fully con-nected layers (6 and 7) with a rate of 0.5. All weightsare initialized to 10�2 and biases are set to 0.

Visualization of the first layer filters during trainingreveals that a few of them dominate, as shown inFig. 6(a). To combat this, we renormalize each filterin the convolutional layers whose RMS value exceedsa fixed radius of 10�1 to this fixed radius. This is cru-cial, especially in the first layer of the model, where theinput images are roughly in the [-128,128] range. As in(Krizhevsky et al., 2012), we produce multiple di↵er-ent crops and flips of each training example to boosttraining set size. We stopped training after 70 epochs,which took around 12 days on a single GTX580 GPU,using an implementation based on (Krizhevsky et al.,2012).

4. Convnet Visualization

Using the model described in Section 3, we now usethe deconvnet to visualize the feature activations onthe ImageNet validation set.

Feature Visualization: Fig. 2 shows feature visu-alizations from our model once training is complete.However, instead of showing the single strongest ac-tivation for a given feature map, we show the top 9activations. Projecting each separately down to pixelspace reveals the di↵erent structures that excite agiven feature map, hence showing its invariance to in-put deformations. Alongside these visualizations weshow the corresponding image patches. These havegreater variation than visualizations as the latter solelyfocus on the discriminant structure within each patch.For example, in layer 5, row 1, col 2, the patches ap-pear to have little in common, but the visualizationsreveal that this particular feature map focuses on thegrass in the background, not the foreground objects.

Fig.1:  DeConv  Net  の模式図

Page 7: 20150703.journal club

可視化結果をお楽しみください(1)

Visualizing and Understanding Convolutional Networks

Layer 1

Figure 2. Visualization of features in a fully trained model. For layers 2-5 we show the top 9 activations in a random subsetof feature maps across the validation data, projected down to pixel space using our deconvolutional network approach.Our reconstructions are not samples from the model: they are reconstructed patterns from the validation set that causehigh activations in a given feature map. For each feature map we also show the corresponding image patches. Note:(i) the the strong grouping within each feature map, (ii) greater invariance at higher layers and (iii) exaggeration ofdiscriminative parts of the image, e.g. eyes and noses of dogs (layer 4, row 1, cols 1). Best viewed in electronic form.

Visualizing and Understanding Convolutional Networks

Layer 2

Figure 2. Visualization of features in a fully trained model. For layers 2-5 we show the top 9 activations in a random subsetof feature maps across the validation data, projected down to pixel space using our deconvolutional network approach.Our reconstructions are not samples from the model: they are reconstructed patterns from the validation set that causehigh activations in a given feature map. For each feature map we also show the corresponding image patches. Note:(i) the the strong grouping within each feature map, (ii) greater invariance at higher layers and (iii) exaggeration ofdiscriminative parts of the image, e.g. eyes and noses of dogs (layer 4, row 1, cols 1). Best viewed in electronic form.

Visualizing and Understanding Convolutional Networks

Input Image

stride 2!

image size 224!

3!

96!

5!2!

110!

55

3x3 max pool stride 2

96!3!

1!

26

256!

filter size 7!

3x3 max pool

stride 2

13 256!

3!1!

13

384!3!

1!

13

384!

Layer 1 Layer 2

13

256!

3x3 max pool

stride 2

6

Layer 3 Layer 4 Layer 5

256!

4096 units!

4096 units!

Layer 6 Layer 7

C class

softmax!

Output

contrast norm.

contrast norm.

Figure 3. Architecture of our 8 layer convnet model. A 224 by 224 crop of an image (with 3 color planes) is presented asthe input. This is convolved with 96 di↵erent 1st layer filters (red), each of size 7 by 7, using a stride of 2 in both x and y.The resulting feature maps are then: (i) passed through a rectified linear function (not shown), (ii) pooled (max within3x3 regions, using stride 2) and (iii) contrast normalized across feature maps to give 96 di↵erent 55 by 55 element featuremaps. Similar operations are repeated in layers 2,3,4,5. The last two layers are fully connected, taking features fromthe top convolutional layer as input in vector form (6 · 6 · 256 = 9216 dimensions). The final layer is a C-way softmaxfunction, C being the number of classes. All filters and feature maps are square in shape.

Layer 1 Layer 2 Layer 3 Layer 4 Layer 5

Figure 4. Evolution of a randomly chosen subset of model features through training. Each layer’s features are displayedin a di↵erent block. Within each block, we show a randomly chosen subset of features at epochs [1,2,5,10,20,30,40,64].The visualization shows the strongest activation (across all training examples) for a given feature map, projected down topixel space using our deconvnet approach. Color contrast is artificially enhanced and the figure is best viewed in electronicform.

0 50 100 150 200 250 300 3500

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Rotation Degrees

P(tru

e clas

s)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

��� ��� ��� � �� �� ���

1

3

5

7

8

9

��

Vertical Translation (Pixels)

Cano

nical

Dista

nce

Lawn Mower������African CrocodileAfrican GreyEntertrainment Center

−60 −40 −20 0 20 40 600

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

Vertical Translation (Pixels)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

1 1.2 1.4 1.6 1.80

0.1

0.2

0.3

0.4

0.5

0.6

0.7

Scale (Ratio)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

0 50 100 150 200 250 300 3500

0.2

0.4

0.6

0.8

1

1.2

1.4

Rotation Degrees

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

−60 −40 −20 0 20 40 600

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Vertical Translation (Pixels)P(

true c

lass)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

1 1.2 1.4 1.6 1.80

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Scale (Ratio)

P(tru

e clas

s)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

a1#

c1#

a3#

c3# c4#

a4#

1 1.2 1.4 1.6 1.80

2

4

6

8

10

12

Scale (Ratio)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

0 50 100 150 200 250 300 3500

5

10

15

Rotation Degrees

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

a2#

b3# b4#b2#b1#

c2#

Figure 5. Analysis of vertical translation, scale, and rotation invariance within the model (rows a-c respectively). Col 1: 5example images undergoing the transformations. Col 2 & 3: Euclidean distance between feature vectors from the originaland transformed images in layers 1 and 7 respectively. Col 4: the probability of the true label for each image, as theimage is transformed.

Fig.2:  Layer  1,  2  の可視化

Page 8: 20150703.journal club

可視化結果をお楽しみください(2) Visualizing and Understanding Convolutional Networks

Input Image

stride 2!

image size 224!

3!

96!

5!2!

110!

55

3x3 max pool stride 2

96!3!

1!

26

256!

filter size 7!

3x3 max pool

stride 2

13 256!

3!1!

13

384!3!

1!

13

384!

Layer 1 Layer 2

13

256!

3x3 max pool

stride 2

6

Layer 3 Layer 4 Layer 5

256!

4096 units!

4096 units!

Layer 6 Layer 7

C class

softmax!

Output

contrast norm.

contrast norm.

Figure 3. Architecture of our 8 layer convnet model. A 224 by 224 crop of an image (with 3 color planes) is presented asthe input. This is convolved with 96 di↵erent 1st layer filters (red), each of size 7 by 7, using a stride of 2 in both x and y.The resulting feature maps are then: (i) passed through a rectified linear function (not shown), (ii) pooled (max within3x3 regions, using stride 2) and (iii) contrast normalized across feature maps to give 96 di↵erent 55 by 55 element featuremaps. Similar operations are repeated in layers 2,3,4,5. The last two layers are fully connected, taking features fromthe top convolutional layer as input in vector form (6 · 6 · 256 = 9216 dimensions). The final layer is a C-way softmaxfunction, C being the number of classes. All filters and feature maps are square in shape.

Layer 1 Layer 2 Layer 3 Layer 4 Layer 5

Figure 4. Evolution of a randomly chosen subset of model features through training. Each layer’s features are displayedin a di↵erent block. Within each block, we show a randomly chosen subset of features at epochs [1,2,5,10,20,30,40,64].The visualization shows the strongest activation (across all training examples) for a given feature map, projected down topixel space using our deconvnet approach. Color contrast is artificially enhanced and the figure is best viewed in electronicform.

0 50 100 150 200 250 300 3500

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Rotation Degrees

P(tru

e clas

s)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

��� ��� ��� � �� �� ���

1

3

5

7

8

9

��

Vertical Translation (Pixels)

Cano

nical

Dista

nce

Lawn Mower������African CrocodileAfrican GreyEntertrainment Center

−60 −40 −20 0 20 40 600

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

Vertical Translation (Pixels)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

1 1.2 1.4 1.6 1.80

0.1

0.2

0.3

0.4

0.5

0.6

0.7

Scale (Ratio)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

0 50 100 150 200 250 300 3500

0.2

0.4

0.6

0.8

1

1.2

1.4

Rotation Degrees

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

−60 −40 −20 0 20 40 600

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Vertical Translation (Pixels)P(

true c

lass)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

1 1.2 1.4 1.6 1.80

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Scale (Ratio)

P(tru

e clas

s)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

a1#

c1#

a3#

c3# c4#

a4#

1 1.2 1.4 1.6 1.80

2

4

6

8

10

12

Scale (Ratio)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

0 50 100 150 200 250 300 3500

5

10

15

Rotation Degrees

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

a2#

b3# b4#b2#b1#

c2#

Figure 5. Analysis of vertical translation, scale, and rotation invariance within the model (rows a-c respectively). Col 1: 5example images undergoing the transformations. Col 2 & 3: Euclidean distance between feature vectors from the originaland transformed images in layers 1 and 7 respectively. Col 4: the probability of the true label for each image, as theimage is transformed.

Visualizing and Understanding Convolutional Networks

Layer 3

Figure 2. Visualization of features in a fully trained model. For layers 2-5 we show the top 9 activations in a random subsetof feature maps across the validation data, projected down to pixel space using our deconvolutional network approach.Our reconstructions are not samples from the model: they are reconstructed patterns from the validation set that causehigh activations in a given feature map. For each feature map we also show the corresponding image patches. Note:(i) the the strong grouping within each feature map, (ii) greater invariance at higher layers and (iii) exaggeration ofdiscriminative parts of the image, e.g. eyes and noses of dogs (layer 4, row 1, cols 1). Best viewed in electronic form.

Fig.2:  Layer  3  の可視化

Page 9: 20150703.journal club

可視化結果をお楽しみください(3) Visualizing and Understanding Convolutional Networks

Input Image

stride 2!

image size 224!

3!

96!

5!2!

110!

55

3x3 max pool stride 2

96!3!

1!

26

256!

filter size 7!

3x3 max pool

stride 2

13 256!

3!1!

13

384!3!

1!

13

384!

Layer 1 Layer 2

13

256!

3x3 max pool

stride 2

6

Layer 3 Layer 4 Layer 5

256!

4096 units!

4096 units!

Layer 6 Layer 7

C class

softmax!

Output

contrast norm.

contrast norm.

Figure 3. Architecture of our 8 layer convnet model. A 224 by 224 crop of an image (with 3 color planes) is presented asthe input. This is convolved with 96 di↵erent 1st layer filters (red), each of size 7 by 7, using a stride of 2 in both x and y.The resulting feature maps are then: (i) passed through a rectified linear function (not shown), (ii) pooled (max within3x3 regions, using stride 2) and (iii) contrast normalized across feature maps to give 96 di↵erent 55 by 55 element featuremaps. Similar operations are repeated in layers 2,3,4,5. The last two layers are fully connected, taking features fromthe top convolutional layer as input in vector form (6 · 6 · 256 = 9216 dimensions). The final layer is a C-way softmaxfunction, C being the number of classes. All filters and feature maps are square in shape.

Layer 1 Layer 2 Layer 3 Layer 4 Layer 5

Figure 4. Evolution of a randomly chosen subset of model features through training. Each layer’s features are displayedin a di↵erent block. Within each block, we show a randomly chosen subset of features at epochs [1,2,5,10,20,30,40,64].The visualization shows the strongest activation (across all training examples) for a given feature map, projected down topixel space using our deconvnet approach. Color contrast is artificially enhanced and the figure is best viewed in electronicform.

0 50 100 150 200 250 300 3500

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Rotation Degrees

P(tru

e clas

s)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

��� ��� ��� � �� �� ���

1

3

5

7

8

9

��

Vertical Translation (Pixels)

Cano

nical

Dista

nce

Lawn Mower������African CrocodileAfrican GreyEntertrainment Center

−60 −40 −20 0 20 40 600

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

Vertical Translation (Pixels)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

1 1.2 1.4 1.6 1.80

0.1

0.2

0.3

0.4

0.5

0.6

0.7

Scale (Ratio)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

0 50 100 150 200 250 300 3500

0.2

0.4

0.6

0.8

1

1.2

1.4

Rotation Degrees

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

−60 −40 −20 0 20 40 600

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Vertical Translation (Pixels)P(

true c

lass)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

1 1.2 1.4 1.6 1.80

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

Scale (Ratio)

P(tru

e clas

s)

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

a1#

c1#

a3#

c3# c4#

a4#

1 1.2 1.4 1.6 1.80

2

4

6

8

10

12

Scale (Ratio)

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

0 50 100 150 200 250 300 3500

5

10

15

Rotation Degrees

Cano

nical

Dista

nce

Lawn MowerShih−TzuAfrican CrocodileAfrican GreyEntertrainment Center

a2#

b3# b4#b2#b1#

c2#

Figure 5. Analysis of vertical translation, scale, and rotation invariance within the model (rows a-c respectively). Col 1: 5example images undergoing the transformations. Col 2 & 3: Euclidean distance between feature vectors from the originaland transformed images in layers 1 and 7 respectively. Col 4: the probability of the true label for each image, as theimage is transformed.

Visualizing and Understanding Convolutional Networks

Layer 4

Figure 2. Visualization of features in a fully trained model. For layers 2-5 we show the top 9 activations in a random subsetof feature maps across the validation data, projected down to pixel space using our deconvolutional network approach.Our reconstructions are not samples from the model: they are reconstructed patterns from the validation set that causehigh activations in a given feature map. For each feature map we also show the corresponding image patches. Note:(i) the the strong grouping within each feature map, (ii) greater invariance at higher layers and (iii) exaggeration ofdiscriminative parts of the image, e.g. eyes and noses of dogs (layer 4, row 1, cols 1). Best viewed in electronic form.

Page 10: 20150703.journal club

学習発展に於ける抽出特徴の変化

Fig.4:  1,  2,  5,  10,  20,  30,  40,  64  epochs  時の特徴マップ(random  selected)から再現

Page 11: 20150703.journal club

ネットワークパラメータの選択(1)

•  カーネルサイズとかの設定が適切か?

[Krizhevsky  +12]:  使えなさそうなフィルタがちらほら  Stride:    4  Filter  size:  11x11

適正化させたもの  Stride:  2  Filter  size:  7x7

Page 12: 20150703.journal club

ネットワークパラメータの選択(2)

•  カーネルサイズとかの設定が適切か@Layer2?

[Krizhevsky  +12] 適正化させたもの:  An5Alias  とか消えてる?  

Page 13: 20150703.journal club

Occlusion  に関する考察

Visualizing and Understanding Convolutional Networks

(a) (b)

(c) (d) (e)

Figure 6. (a): 1st layer features without feature scale clipping. Note that one feature dominates. (b): 1st layer featuresfrom (Krizhevsky et al., 2012). (c): Our 1st layer features. The smaller stride (2 vs 4) and filter size (7x7 vs 11x11)results in more distinctive features and fewer “dead” features. (d): Visualizations of 2nd layer features from (Krizhevskyet al., 2012). (e): Visualizations of our 2nd layer features. These are cleaner, with no aliasing artifacts that are visible in(d).

Car wheelRacerCabPolice van

PomeranianTennis ballKeeshondPekinese

Afghan houndGordon setterIrish setterMortarboardFur coatAcademic gownAustralian terrierIce lollyVizslaNeck brace

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

0.05

0.1

0.15

0.2

0.25

True Label: Pomeranian

(a) Input Image (b) Layer 5, strongest feature map(c) Layer 5, strongestfeature map projections

(d) Classifier, probability of correct class

(e) Classifier, most probable class

True Label: Car Wheel

True Label: Afghan Hound

Figure 7. Three test examples where we systematically cover up di↵erent portions of the scene with a gray square (1stcolumn) and see how the top (layer 5) feature maps ((b) & (c)) and classifier output ((d) & (e)) changes. (b): for eachposition of the gray scale, we record the total activation in one layer 5 feature map (the one with the strongest responsein the unoccluded image). (c): a visualization of this feature map projected down into the input image (black square),along with visualizations of this map from other images. The first row example shows the strongest feature to be thedog’s face. When this is covered-up the activity in the feature map decreases (blue area in (b)). (d): a map of correctclass probability, as a function of the position of the gray square. E.g. when the dog’s face is obscured, the probabilityfor “pomeranian” drops significantly. (e): the most probable label as a function of occluder position. E.g. in the 1st row,for most locations it is “pomeranian”, but if the dog’s face is obscured but not the ball, then it predicts “tennis ball”. Inthe 2nd example, text on the car is the strongest feature in layer 5, but the classifier is most sensitive to the wheel. The3rd example contains multiple objects. The strongest feature in layer 5 picks out the faces, but the classifier is sensitiveto the dog (blue region in (d)), since it uses multiple feature maps.

隠蔽箇所による活性度 最大活性部を可視化 隠蔽箇所による正解度

Page 14: 20150703.journal club

識別器は,わりといい加減である

Page 15: 20150703.journal club

識別率を測ってみる  (可視化それ程関係ない)

Shid  

Mag.  

Rot.  

Layer  1   Layer  7   Output  

Page 16: 20150703.journal club

Correspondence  Analysis  ここも可視化はあまり関係ない

•  隠蔽画像と非隠蔽画像のズレ(らしきもの)の計測 Visualizing and Understanding Convolutional Networks

Figure 8. Images used for correspondence experiments.Col 1: Original image. Col 2,3,4: Occlusion of the righteye, left eye, and nose respectively. Other columns showexamples of random occlusions.

Mean Feature Mean FeatureSign Change Sign Change

Occlusion Location Layer 5 Layer 7Right Eye 0.067± 0.007 0.069± 0.015Left Eye 0.069± 0.007 0.068± 0.013Nose 0.079± 0.017 0.069± 0.011

Random 0.107± 0.017 0.073± 0.014

Table 1. Measure of correspondence for di↵erent objectparts in 5 di↵erent dog images. The lower scores for theeyes and nose (compared to random object parts) show themodel implicitly establishing some form of correspondenceof parts at layer 5 in the model. At layer 7, the scoresare more similar, perhaps due to upper layers trying todiscriminate between the di↵erent breeds of dog.

5. Experiments

5.1. ImageNet 2012

This dataset consists of 1.3M/50k/100k train-ing/validation/test examples, spread over 1000 cate-gories. Table 2 shows our results on this dataset.

Using the exact architecture specified in (Krizhevskyet al., 2012), we attempt to replicate their result on thevalidation set. We achieve an error rate within 0.1% oftheir reported value on the ImageNet 2012 validationset.

Next we analyze the performance of our model withthe architectural changes outlined in Section 4.1 (7⇥7filters in layer 1 and stride 2 convolutions in layers 1& 2). This model, shown in Fig. 3, significantly out-performs the architecture of (Krizhevsky et al., 2012),beating their single model result by 1.7% (test top-5).When we combine multiple models, we obtain a testerror of 14.8%, the best published performanceon this dataset1 (despite only using the 2012 train-

1This performance has been surpassed in the recentImagenet 2013 competition (http://www.image-net.org/

ing set). We note that this error is almost half that ofthe top non-convnet entry in the ImageNet 2012 classi-fication challenge, which obtained 26.2% error (Gunjiet al., 2012).

Val Val TestError % Top-1 Top-5 Top-5

(Gunji et al., 2012) - - 26.2(Krizhevsky et al., 2012), 1 convnet 40.7 18.2 ��(Krizhevsky et al., 2012), 5 convnets 38.1 16.4 16.4(Krizhevsky et al., 2012)⇤, 1 convnets 39.0 16.6 ��(Krizhevsky et al., 2012)⇤, 7 convnets 36.7 15.4 15.3

Our replication of(Krizhevsky et al., 2012), 1 convnet 40.5 18.1 ��1 convnet as per Fig. 3 38.4 16.5 ��5 convnets as per Fig. 3 – (a) 36.7 15.3 15.31 convnet as per Fig. 3 but withlayers 3,4,5: 512,1024,512 maps – (b) 37.5 16.0 16.16 convnets, (a) & (b) combined 36.0 14.7 14.8

Table 2. ImageNet 2012 classification error rates. The ⇤indicates models that were trained on both ImageNet 2011and 2012 training sets.

Varying ImageNet Model Sizes: In Table 3, wefirst explore the architecture of (Krizhevsky et al.,2012) by adjusting the size of layers, or removingthem entirely. In each case, the model is trained fromscratch with the revised architecture. Removing thefully connected layers (6,7) only gives a slight increasein error. This is surprising, given that they containthe majority of model parameters. Removing two ofthe middle convolutional layers also makes a relativelysmall di↵erent to the error rate. However, removingboth the middle convolution layers and the fully con-nected layers yields a model with only 4 layers whoseperformance is dramatically worse. This would sug-gest that the overall depth of the model is importantfor obtaining good performance. In Table 3, we modifyour model, shown in Fig. 3. Changing the size of thefully connected layers makes little di↵erence to perfor-mance (same for model of (Krizhevsky et al., 2012)).However, increasing the size of the middle convolutionlayers goes give a useful gain in performance. But in-creasing these, while also enlarging the fully connectedlayers results in over-fitting.

5.2. Feature Generalization

The experiments above show the importance of theconvolutional part of our ImageNet model in obtain-ing state-of-the-art performance. This is supported bythe visualizations of Fig. 2 which show the complex in-variances learned in the convolutional layers. We nowexplore the ability of these feature extraction layers togeneralize to other datasets, namely Caltech-101 (Fei-fei et al., 2006), Caltech-256 (Gri�n et al., 2006) andPASCAL VOC 2012. To do this, we keep layers 1-7of our ImageNet-trained model fixed and train a new

challenges/LSVRC/2013/results.php).

Visualizing and Understanding Convolutional Networks

Figure 8. Images used for correspondence experiments.Col 1: Original image. Col 2,3,4: Occlusion of the righteye, left eye, and nose respectively. Other columns showexamples of random occlusions.

Mean Feature Mean FeatureSign Change Sign Change

Occlusion Location Layer 5 Layer 7Right Eye 0.067± 0.007 0.069± 0.015Left Eye 0.069± 0.007 0.068± 0.013Nose 0.079± 0.017 0.069± 0.011

Random 0.107± 0.017 0.073± 0.014

Table 1. Measure of correspondence for di↵erent objectparts in 5 di↵erent dog images. The lower scores for theeyes and nose (compared to random object parts) show themodel implicitly establishing some form of correspondenceof parts at layer 5 in the model. At layer 7, the scoresare more similar, perhaps due to upper layers trying todiscriminate between the di↵erent breeds of dog.

5. Experiments

5.1. ImageNet 2012

This dataset consists of 1.3M/50k/100k train-ing/validation/test examples, spread over 1000 cate-gories. Table 2 shows our results on this dataset.

Using the exact architecture specified in (Krizhevskyet al., 2012), we attempt to replicate their result on thevalidation set. We achieve an error rate within 0.1% oftheir reported value on the ImageNet 2012 validationset.

Next we analyze the performance of our model withthe architectural changes outlined in Section 4.1 (7⇥7filters in layer 1 and stride 2 convolutions in layers 1& 2). This model, shown in Fig. 3, significantly out-performs the architecture of (Krizhevsky et al., 2012),beating their single model result by 1.7% (test top-5).When we combine multiple models, we obtain a testerror of 14.8%, the best published performanceon this dataset1 (despite only using the 2012 train-

1This performance has been surpassed in the recentImagenet 2013 competition (http://www.image-net.org/

ing set). We note that this error is almost half that ofthe top non-convnet entry in the ImageNet 2012 classi-fication challenge, which obtained 26.2% error (Gunjiet al., 2012).

Val Val TestError % Top-1 Top-5 Top-5

(Gunji et al., 2012) - - 26.2(Krizhevsky et al., 2012), 1 convnet 40.7 18.2 ��(Krizhevsky et al., 2012), 5 convnets 38.1 16.4 16.4(Krizhevsky et al., 2012)⇤, 1 convnets 39.0 16.6 ��(Krizhevsky et al., 2012)⇤, 7 convnets 36.7 15.4 15.3

Our replication of(Krizhevsky et al., 2012), 1 convnet 40.5 18.1 ��1 convnet as per Fig. 3 38.4 16.5 ��5 convnets as per Fig. 3 – (a) 36.7 15.3 15.31 convnet as per Fig. 3 but withlayers 3,4,5: 512,1024,512 maps – (b) 37.5 16.0 16.16 convnets, (a) & (b) combined 36.0 14.7 14.8

Table 2. ImageNet 2012 classification error rates. The ⇤indicates models that were trained on both ImageNet 2011and 2012 training sets.

Varying ImageNet Model Sizes: In Table 3, wefirst explore the architecture of (Krizhevsky et al.,2012) by adjusting the size of layers, or removingthem entirely. In each case, the model is trained fromscratch with the revised architecture. Removing thefully connected layers (6,7) only gives a slight increasein error. This is surprising, given that they containthe majority of model parameters. Removing two ofthe middle convolutional layers also makes a relativelysmall di↵erent to the error rate. However, removingboth the middle convolution layers and the fully con-nected layers yields a model with only 4 layers whoseperformance is dramatically worse. This would sug-gest that the overall depth of the model is importantfor obtaining good performance. In Table 3, we modifyour model, shown in Fig. 3. Changing the size of thefully connected layers makes little di↵erence to perfor-mance (same for model of (Krizhevsky et al., 2012)).However, increasing the size of the middle convolutionlayers goes give a useful gain in performance. But in-creasing these, while also enlarging the fully connectedlayers results in over-fitting.

5.2. Feature Generalization

The experiments above show the importance of theconvolutional part of our ImageNet model in obtain-ing state-of-the-art performance. This is supported bythe visualizations of Fig. 2 which show the complex in-variances learned in the convolutional layers. We nowexplore the ability of these feature extraction layers togeneralize to other datasets, namely Caltech-101 (Fei-fei et al., 2006), Caltech-256 (Gri�n et al., 2006) andPASCAL VOC 2012. To do this, we keep layers 1-7of our ImageNet-trained model fixed and train a new

challenges/LSVRC/2013/results.php).

数値的には微妙な結果だ…

特定の場所を隠されたほうが,表現のずれが少ない(ということらしい)

Page 17: 20150703.journal club

State-­‐of-­‐Art  を目指して

•  ちゃんと設計するとか合体させるとかすれば  パフォーマンスは上がる  

Visualizing and Understanding Convolutional Networks

Figure 8. Images used for correspondence experiments.Col 1: Original image. Col 2,3,4: Occlusion of the righteye, left eye, and nose respectively. Other columns showexamples of random occlusions.

Mean Feature Mean FeatureSign Change Sign Change

Occlusion Location Layer 5 Layer 7Right Eye 0.067± 0.007 0.069± 0.015Left Eye 0.069± 0.007 0.068± 0.013Nose 0.079± 0.017 0.069± 0.011

Random 0.107± 0.017 0.073± 0.014

Table 1. Measure of correspondence for di↵erent objectparts in 5 di↵erent dog images. The lower scores for theeyes and nose (compared to random object parts) show themodel implicitly establishing some form of correspondenceof parts at layer 5 in the model. At layer 7, the scoresare more similar, perhaps due to upper layers trying todiscriminate between the di↵erent breeds of dog.

5. Experiments

5.1. ImageNet 2012

This dataset consists of 1.3M/50k/100k train-ing/validation/test examples, spread over 1000 cate-gories. Table 2 shows our results on this dataset.

Using the exact architecture specified in (Krizhevskyet al., 2012), we attempt to replicate their result on thevalidation set. We achieve an error rate within 0.1% oftheir reported value on the ImageNet 2012 validationset.

Next we analyze the performance of our model withthe architectural changes outlined in Section 4.1 (7⇥7filters in layer 1 and stride 2 convolutions in layers 1& 2). This model, shown in Fig. 3, significantly out-performs the architecture of (Krizhevsky et al., 2012),beating their single model result by 1.7% (test top-5).When we combine multiple models, we obtain a testerror of 14.8%, the best published performanceon this dataset1 (despite only using the 2012 train-

1This performance has been surpassed in the recentImagenet 2013 competition (http://www.image-net.org/

ing set). We note that this error is almost half that ofthe top non-convnet entry in the ImageNet 2012 classi-fication challenge, which obtained 26.2% error (Gunjiet al., 2012).

Val Val TestError % Top-1 Top-5 Top-5

(Gunji et al., 2012) - - 26.2(Krizhevsky et al., 2012), 1 convnet 40.7 18.2 ��(Krizhevsky et al., 2012), 5 convnets 38.1 16.4 16.4(Krizhevsky et al., 2012)⇤, 1 convnets 39.0 16.6 ��(Krizhevsky et al., 2012)⇤, 7 convnets 36.7 15.4 15.3

Our replication of(Krizhevsky et al., 2012), 1 convnet 40.5 18.1 ��1 convnet as per Fig. 3 38.4 16.5 ��5 convnets as per Fig. 3 – (a) 36.7 15.3 15.31 convnet as per Fig. 3 but withlayers 3,4,5: 512,1024,512 maps – (b) 37.5 16.0 16.16 convnets, (a) & (b) combined 36.0 14.7 14.8

Table 2. ImageNet 2012 classification error rates. The ⇤indicates models that were trained on both ImageNet 2011and 2012 training sets.

Varying ImageNet Model Sizes: In Table 3, wefirst explore the architecture of (Krizhevsky et al.,2012) by adjusting the size of layers, or removingthem entirely. In each case, the model is trained fromscratch with the revised architecture. Removing thefully connected layers (6,7) only gives a slight increasein error. This is surprising, given that they containthe majority of model parameters. Removing two ofthe middle convolutional layers also makes a relativelysmall di↵erent to the error rate. However, removingboth the middle convolution layers and the fully con-nected layers yields a model with only 4 layers whoseperformance is dramatically worse. This would sug-gest that the overall depth of the model is importantfor obtaining good performance. In Table 3, we modifyour model, shown in Fig. 3. Changing the size of thefully connected layers makes little di↵erence to perfor-mance (same for model of (Krizhevsky et al., 2012)).However, increasing the size of the middle convolutionlayers goes give a useful gain in performance. But in-creasing these, while also enlarging the fully connectedlayers results in over-fitting.

5.2. Feature Generalization

The experiments above show the importance of theconvolutional part of our ImageNet model in obtain-ing state-of-the-art performance. This is supported bythe visualizations of Fig. 2 which show the complex in-variances learned in the convolutional layers. We nowexplore the ability of these feature extraction layers togeneralize to other datasets, namely Caltech-101 (Fei-fei et al., 2006), Caltech-256 (Gri�n et al., 2006) andPASCAL VOC 2012. To do this, we keep layers 1-7of our ImageNet-trained model fixed and train a new

challenges/LSVRC/2013/results.php).

Page 18: 20150703.journal club

いろいろやってみる(1)

•  もはや可視化とはあまり関係なさそうである Visualizing and Understanding Convolutional Networks

Train Val ValError % Top-1 Top-1 Top-5

Our replication of(Krizhevsky et al., 2012), 1 convnet 35.1 40.5 18.1Removed layers 3,4 41.8 45.4 22.1Removed layer 7 27.4 40.0 18.4Removed layers 6,7 27.4 44.8 22.4Removed layer 3,4,6,7 71.1 71.3 50.1Adjust layers 6,7: 2048 units 40.3 41.7 18.8Adjust layers 6,7: 8192 units 26.8 40.0 18.1

Our Model (as per Fig. 3) 33.1 38.4 16.5Adjust layers 6,7: 2048 units 38.2 40.2 17.6Adjust layers 6,7: 8192 units 22.0 38.8 17.0Adjust layers 3,4,5: 512,1024,512 maps 18.8 37.5 16.0Adjust layers 6,7: 8192 units andLayers 3,4,5: 512,1024,512 maps 10.0 38.3 16.9

Table 3. ImageNet 2012 classification error rates with var-ious architectural changes to the model of (Krizhevskyet al., 2012) and our model (see Fig. 3).

softmax classifier on top (for the appropriate numberof classes) using the training images of the new dataset.Since the softmax contains relatively few parameters,it can be trained quickly from a relatively small num-ber of examples, as is the case for certain datasets.

The classifiers used by our model (a softmax) andother approaches (typically a linear SVM) are of simi-lar complexity, thus the experiments compare our fea-ture representation, learned from ImageNet, with thehand-crafted features used by other methods. It is im-portant to note that both our feature representationand the hand-crafted features are designed using im-ages beyond the Caltech and PASCAL training sets.For example, the hyper-parameters in HOG descrip-tors were determined through systematic experimentson a pedestrian dataset (Dalal & Triggs, 2005). Wealso try a second strategy of training a model fromscratch, i.e. resetting layers 1-7 to random values andtrain them, as well as the softmax, on the trainingimages of the dataset.

One complication is that some of the Caltech datasetshave some images that are also in the ImageNet train-ing data. Using normalized correlation, we identifiedthese few “overlap” images2 and removed them fromour Imagenet training set and then retrained our Ima-genet models, so avoiding the possibility of train/testcontamination.

Caltech-101: We follow the procedure of (Fei-feiet al., 2006) and randomly select 15 or 30 images perclass for training and test on up to 50 images per classreporting the average of the per-class accuracies in Ta-

2 For Caltech-101, we found 44 images in common (outof 9,144 total images), with a maximum overlap of 10 forany given class. For Caltech-256, we found 243 images incommon (out of 30,607 total images), with a maximumoverlap of 18 for any given class.

0 10 20 30 40 50 6025

30

35

40

45

50

55

60

65

70

75

Training Images per−class

Accu

racy

%

Our ModelBo etalSohn etal

Figure 9. Caltech-256 classification performance as thenumber of training images per class is varied. Using only6 training examples per class with our pre-trained featureextractor, we surpass best reported result by (Bo et al.,2013).

ble 4, using 5 train/test folds. Training took 17 min-utes for 30 images/class. The pre-trained model beatsthe best reported result for 30 images/class from (Boet al., 2013) by 2.2%. The convnet model trained fromscratch however does terribly, only achieving 46.5%.

Acc % Acc %# Train 15/class 30/class(Bo et al., 2013) � 81.4± 0.33(Jianchao et al., 2009) 73.2 84.3

Non-pretrained convnet 22.8± 1.5 46.5± 1.7ImageNet-pretrained convnet 83.8± 0.5 86.5± 0.5

Table 4. Caltech-101 classification accuracy for our con-vnet models, against two leading alternate approaches.

Caltech-256: We follow the procedure of (Gri�net al., 2006), selecting 15, 30, 45, or 60 training im-ages per class, reporting the average of the per-classaccuracies in Table 5. Our ImageNet-pretrained modelbeats the current state-of-the-art results obtained byBo et al. (Bo et al., 2013) by a significant margin:74.2% vs 55.2% for 60 training images/class. However,as with Caltech-101, the model trained from scratchdoes poorly. In Fig. 9, we explore the “one-shot learn-ing” (Fei-fei et al., 2006) regime. With our pre-trainedmodel, just 6 Caltech-256 training images are neededto beat the leading method using 10 times as many im-ages. This shows the power of the ImageNet featureextractor.

Acc % Acc % Acc % Acc %# Train 15/class 30/class 45/class 60/class(Sohn et al., 2011) 35.1 42.1 45.7 47.9(Bo et al., 2013) 40.5± 0.4 48.0± 0.2 51.9± 0.2 55.2± 0.3

Non-pretr. 9.0± 1.4 22.5± 0.7 31.2± 0.5 38.8± 1.4ImageNet-pretr. 65.7± 0.2 70.6± 0.2 72.7± 0.4 74.2± 0.3

Table 5. Caltech 256 classification accuracies.

Page 19: 20150703.journal club

いろいろやってみる(2)

•  Caltech-­‐101/256,  PASCAL  2012  でも大丈夫?  →多分大丈夫

Visualizing and Understanding Convolutional Networks

Train Val ValError % Top-1 Top-1 Top-5

Our replication of(Krizhevsky et al., 2012), 1 convnet 35.1 40.5 18.1Removed layers 3,4 41.8 45.4 22.1Removed layer 7 27.4 40.0 18.4Removed layers 6,7 27.4 44.8 22.4Removed layer 3,4,6,7 71.1 71.3 50.1Adjust layers 6,7: 2048 units 40.3 41.7 18.8Adjust layers 6,7: 8192 units 26.8 40.0 18.1

Our Model (as per Fig. 3) 33.1 38.4 16.5Adjust layers 6,7: 2048 units 38.2 40.2 17.6Adjust layers 6,7: 8192 units 22.0 38.8 17.0Adjust layers 3,4,5: 512,1024,512 maps 18.8 37.5 16.0Adjust layers 6,7: 8192 units andLayers 3,4,5: 512,1024,512 maps 10.0 38.3 16.9

Table 3. ImageNet 2012 classification error rates with var-ious architectural changes to the model of (Krizhevskyet al., 2012) and our model (see Fig. 3).

softmax classifier on top (for the appropriate numberof classes) using the training images of the new dataset.Since the softmax contains relatively few parameters,it can be trained quickly from a relatively small num-ber of examples, as is the case for certain datasets.

The classifiers used by our model (a softmax) andother approaches (typically a linear SVM) are of simi-lar complexity, thus the experiments compare our fea-ture representation, learned from ImageNet, with thehand-crafted features used by other methods. It is im-portant to note that both our feature representationand the hand-crafted features are designed using im-ages beyond the Caltech and PASCAL training sets.For example, the hyper-parameters in HOG descrip-tors were determined through systematic experimentson a pedestrian dataset (Dalal & Triggs, 2005). Wealso try a second strategy of training a model fromscratch, i.e. resetting layers 1-7 to random values andtrain them, as well as the softmax, on the trainingimages of the dataset.

One complication is that some of the Caltech datasetshave some images that are also in the ImageNet train-ing data. Using normalized correlation, we identifiedthese few “overlap” images2 and removed them fromour Imagenet training set and then retrained our Ima-genet models, so avoiding the possibility of train/testcontamination.

Caltech-101: We follow the procedure of (Fei-feiet al., 2006) and randomly select 15 or 30 images perclass for training and test on up to 50 images per classreporting the average of the per-class accuracies in Ta-

2 For Caltech-101, we found 44 images in common (outof 9,144 total images), with a maximum overlap of 10 forany given class. For Caltech-256, we found 243 images incommon (out of 30,607 total images), with a maximumoverlap of 18 for any given class.

0 10 20 30 40 50 6025

30

35

40

45

50

55

60

65

70

75

Training Images per−class

Accu

racy

%

Our ModelBo etalSohn etal

Figure 9. Caltech-256 classification performance as thenumber of training images per class is varied. Using only6 training examples per class with our pre-trained featureextractor, we surpass best reported result by (Bo et al.,2013).

ble 4, using 5 train/test folds. Training took 17 min-utes for 30 images/class. The pre-trained model beatsthe best reported result for 30 images/class from (Boet al., 2013) by 2.2%. The convnet model trained fromscratch however does terribly, only achieving 46.5%.

Acc % Acc %# Train 15/class 30/class(Bo et al., 2013) � 81.4± 0.33(Jianchao et al., 2009) 73.2 84.3

Non-pretrained convnet 22.8± 1.5 46.5± 1.7ImageNet-pretrained convnet 83.8± 0.5 86.5± 0.5

Table 4. Caltech-101 classification accuracy for our con-vnet models, against two leading alternate approaches.

Caltech-256: We follow the procedure of (Gri�net al., 2006), selecting 15, 30, 45, or 60 training im-ages per class, reporting the average of the per-classaccuracies in Table 5. Our ImageNet-pretrained modelbeats the current state-of-the-art results obtained byBo et al. (Bo et al., 2013) by a significant margin:74.2% vs 55.2% for 60 training images/class. However,as with Caltech-101, the model trained from scratchdoes poorly. In Fig. 9, we explore the “one-shot learn-ing” (Fei-fei et al., 2006) regime. With our pre-trainedmodel, just 6 Caltech-256 training images are neededto beat the leading method using 10 times as many im-ages. This shows the power of the ImageNet featureextractor.

Acc % Acc % Acc % Acc %# Train 15/class 30/class 45/class 60/class(Sohn et al., 2011) 35.1 42.1 45.7 47.9(Bo et al., 2013) 40.5± 0.4 48.0± 0.2 51.9± 0.2 55.2± 0.3

Non-pretr. 9.0± 1.4 22.5± 0.7 31.2± 0.5 38.8± 1.4ImageNet-pretr. 65.7± 0.2 70.6± 0.2 72.7± 0.4 74.2± 0.3

Table 5. Caltech 256 classification accuracies.

Visualizing and Understanding Convolutional Networks

Train Val ValError % Top-1 Top-1 Top-5

Our replication of(Krizhevsky et al., 2012), 1 convnet 35.1 40.5 18.1Removed layers 3,4 41.8 45.4 22.1Removed layer 7 27.4 40.0 18.4Removed layers 6,7 27.4 44.8 22.4Removed layer 3,4,6,7 71.1 71.3 50.1Adjust layers 6,7: 2048 units 40.3 41.7 18.8Adjust layers 6,7: 8192 units 26.8 40.0 18.1

Our Model (as per Fig. 3) 33.1 38.4 16.5Adjust layers 6,7: 2048 units 38.2 40.2 17.6Adjust layers 6,7: 8192 units 22.0 38.8 17.0Adjust layers 3,4,5: 512,1024,512 maps 18.8 37.5 16.0Adjust layers 6,7: 8192 units andLayers 3,4,5: 512,1024,512 maps 10.0 38.3 16.9

Table 3. ImageNet 2012 classification error rates with var-ious architectural changes to the model of (Krizhevskyet al., 2012) and our model (see Fig. 3).

softmax classifier on top (for the appropriate numberof classes) using the training images of the new dataset.Since the softmax contains relatively few parameters,it can be trained quickly from a relatively small num-ber of examples, as is the case for certain datasets.

The classifiers used by our model (a softmax) andother approaches (typically a linear SVM) are of simi-lar complexity, thus the experiments compare our fea-ture representation, learned from ImageNet, with thehand-crafted features used by other methods. It is im-portant to note that both our feature representationand the hand-crafted features are designed using im-ages beyond the Caltech and PASCAL training sets.For example, the hyper-parameters in HOG descrip-tors were determined through systematic experimentson a pedestrian dataset (Dalal & Triggs, 2005). Wealso try a second strategy of training a model fromscratch, i.e. resetting layers 1-7 to random values andtrain them, as well as the softmax, on the trainingimages of the dataset.

One complication is that some of the Caltech datasetshave some images that are also in the ImageNet train-ing data. Using normalized correlation, we identifiedthese few “overlap” images2 and removed them fromour Imagenet training set and then retrained our Ima-genet models, so avoiding the possibility of train/testcontamination.

Caltech-101: We follow the procedure of (Fei-feiet al., 2006) and randomly select 15 or 30 images perclass for training and test on up to 50 images per classreporting the average of the per-class accuracies in Ta-

2 For Caltech-101, we found 44 images in common (outof 9,144 total images), with a maximum overlap of 10 forany given class. For Caltech-256, we found 243 images incommon (out of 30,607 total images), with a maximumoverlap of 18 for any given class.

0 10 20 30 40 50 6025

30

35

40

45

50

55

60

65

70

75

Training Images per−class

Accu

racy

%

Our ModelBo etalSohn etal

Figure 9. Caltech-256 classification performance as thenumber of training images per class is varied. Using only6 training examples per class with our pre-trained featureextractor, we surpass best reported result by (Bo et al.,2013).

ble 4, using 5 train/test folds. Training took 17 min-utes for 30 images/class. The pre-trained model beatsthe best reported result for 30 images/class from (Boet al., 2013) by 2.2%. The convnet model trained fromscratch however does terribly, only achieving 46.5%.

Acc % Acc %# Train 15/class 30/class(Bo et al., 2013) � 81.4± 0.33(Jianchao et al., 2009) 73.2 84.3

Non-pretrained convnet 22.8± 1.5 46.5± 1.7ImageNet-pretrained convnet 83.8± 0.5 86.5± 0.5

Table 4. Caltech-101 classification accuracy for our con-vnet models, against two leading alternate approaches.

Caltech-256: We follow the procedure of (Gri�net al., 2006), selecting 15, 30, 45, or 60 training im-ages per class, reporting the average of the per-classaccuracies in Table 5. Our ImageNet-pretrained modelbeats the current state-of-the-art results obtained byBo et al. (Bo et al., 2013) by a significant margin:74.2% vs 55.2% for 60 training images/class. However,as with Caltech-101, the model trained from scratchdoes poorly. In Fig. 9, we explore the “one-shot learn-ing” (Fei-fei et al., 2006) regime. With our pre-trainedmodel, just 6 Caltech-256 training images are neededto beat the leading method using 10 times as many im-ages. This shows the power of the ImageNet featureextractor.

Acc % Acc % Acc % Acc %# Train 15/class 30/class 45/class 60/class(Sohn et al., 2011) 35.1 42.1 45.7 47.9(Bo et al., 2013) 40.5± 0.4 48.0± 0.2 51.9± 0.2 55.2± 0.3

Non-pretr. 9.0± 1.4 22.5± 0.7 31.2± 0.5 38.8± 1.4ImageNet-pretr. 65.7± 0.2 70.6± 0.2 72.7± 0.4 74.2± 0.3

Table 5. Caltech 256 classification accuracies.

Visualizing and Understanding Convolutional Networks

Train Val ValError % Top-1 Top-1 Top-5

Our replication of(Krizhevsky et al., 2012), 1 convnet 35.1 40.5 18.1Removed layers 3,4 41.8 45.4 22.1Removed layer 7 27.4 40.0 18.4Removed layers 6,7 27.4 44.8 22.4Removed layer 3,4,6,7 71.1 71.3 50.1Adjust layers 6,7: 2048 units 40.3 41.7 18.8Adjust layers 6,7: 8192 units 26.8 40.0 18.1

Our Model (as per Fig. 3) 33.1 38.4 16.5Adjust layers 6,7: 2048 units 38.2 40.2 17.6Adjust layers 6,7: 8192 units 22.0 38.8 17.0Adjust layers 3,4,5: 512,1024,512 maps 18.8 37.5 16.0Adjust layers 6,7: 8192 units andLayers 3,4,5: 512,1024,512 maps 10.0 38.3 16.9

Table 3. ImageNet 2012 classification error rates with var-ious architectural changes to the model of (Krizhevskyet al., 2012) and our model (see Fig. 3).

softmax classifier on top (for the appropriate numberof classes) using the training images of the new dataset.Since the softmax contains relatively few parameters,it can be trained quickly from a relatively small num-ber of examples, as is the case for certain datasets.

The classifiers used by our model (a softmax) andother approaches (typically a linear SVM) are of simi-lar complexity, thus the experiments compare our fea-ture representation, learned from ImageNet, with thehand-crafted features used by other methods. It is im-portant to note that both our feature representationand the hand-crafted features are designed using im-ages beyond the Caltech and PASCAL training sets.For example, the hyper-parameters in HOG descrip-tors were determined through systematic experimentson a pedestrian dataset (Dalal & Triggs, 2005). Wealso try a second strategy of training a model fromscratch, i.e. resetting layers 1-7 to random values andtrain them, as well as the softmax, on the trainingimages of the dataset.

One complication is that some of the Caltech datasetshave some images that are also in the ImageNet train-ing data. Using normalized correlation, we identifiedthese few “overlap” images2 and removed them fromour Imagenet training set and then retrained our Ima-genet models, so avoiding the possibility of train/testcontamination.

Caltech-101: We follow the procedure of (Fei-feiet al., 2006) and randomly select 15 or 30 images perclass for training and test on up to 50 images per classreporting the average of the per-class accuracies in Ta-

2 For Caltech-101, we found 44 images in common (outof 9,144 total images), with a maximum overlap of 10 forany given class. For Caltech-256, we found 243 images incommon (out of 30,607 total images), with a maximumoverlap of 18 for any given class.

0 10 20 30 40 50 6025

30

35

40

45

50

55

60

65

70

75

Training Images per−class

Accu

racy

%

Our ModelBo etalSohn etal

Figure 9. Caltech-256 classification performance as thenumber of training images per class is varied. Using only6 training examples per class with our pre-trained featureextractor, we surpass best reported result by (Bo et al.,2013).

ble 4, using 5 train/test folds. Training took 17 min-utes for 30 images/class. The pre-trained model beatsthe best reported result for 30 images/class from (Boet al., 2013) by 2.2%. The convnet model trained fromscratch however does terribly, only achieving 46.5%.

Acc % Acc %# Train 15/class 30/class(Bo et al., 2013) � 81.4± 0.33(Jianchao et al., 2009) 73.2 84.3

Non-pretrained convnet 22.8± 1.5 46.5± 1.7ImageNet-pretrained convnet 83.8± 0.5 86.5± 0.5

Table 4. Caltech-101 classification accuracy for our con-vnet models, against two leading alternate approaches.

Caltech-256: We follow the procedure of (Gri�net al., 2006), selecting 15, 30, 45, or 60 training im-ages per class, reporting the average of the per-classaccuracies in Table 5. Our ImageNet-pretrained modelbeats the current state-of-the-art results obtained byBo et al. (Bo et al., 2013) by a significant margin:74.2% vs 55.2% for 60 training images/class. However,as with Caltech-101, the model trained from scratchdoes poorly. In Fig. 9, we explore the “one-shot learn-ing” (Fei-fei et al., 2006) regime. With our pre-trainedmodel, just 6 Caltech-256 training images are neededto beat the leading method using 10 times as many im-ages. This shows the power of the ImageNet featureextractor.

Acc % Acc % Acc % Acc %# Train 15/class 30/class 45/class 60/class(Sohn et al., 2011) 35.1 42.1 45.7 47.9(Bo et al., 2013) 40.5± 0.4 48.0± 0.2 51.9± 0.2 55.2± 0.3

Non-pretr. 9.0± 1.4 22.5± 0.7 31.2± 0.5 38.8± 1.4ImageNet-pretr. 65.7± 0.2 70.6± 0.2 72.7± 0.4 74.2± 0.3

Table 5. Caltech 256 classification accuracies.

Visualizing and Understanding Convolutional Networks

PASCAL 2012: We used the standard training andvalidation images to train a 20-way softmax on top ofthe ImageNet-pretrained convnet. This is not ideal, asPASCAL images can contain multiple objects and ourmodel just provides a single exclusive prediction foreach image. Table 6 shows the results on the test set.The PASCAL and ImageNet images are quite di↵er-ent in nature, the former being full scenes unlike thelatter. This may explain our mean performance being3.2% lower than the leading (Yan et al., 2012) result,however we do beat them on 5 classes, sometimes bylarge margins.

Acc % [A] [B] Ours Acc % [A] [B] Ours

Airplane 92.0 97.3 96.0 Dining tab 63.2 77.8 67.7Bicycle 74.2 84.2 77.1 Dog 68.9 83.0 87.8Bird 73.0 80.8 88.4 Horse 78.2 87.5 86.0Boat 77.5 85.3 85.5 Motorbike 81.0 90.1 85.1Bottle 54.3 60.8 55.8 Person 91.6 95.0 90.9Bus 85.2 89.9 85.8 Potted pl 55.9 57.8 52.2Car 81.9 86.8 78.6 Sheep 69.4 79.2 83.6Cat 76.4 89.3 91.2 Sofa 65.4 73.4 61.1Chair 65.2 75.4 65.0 Train 86.7 94.5 91.8Cow 63.2 77.8 74.4 Tv 77.4 80.7 76.1

Mean 74.3 82.2 79.0 # won 0 15 5

Table 6. PASCAL 2012 classification results, comparingour Imagenet-pretrained convnet against the leading twomethods ([A]= (Sande et al., 2012) and [B] = (Yan et al.,2012)).

5.3. Feature Analysis

We explore how discriminative the features in eachlayer of our Imagenet-pretrained model are. We do thisby varying the number of layers retained from the Ima-geNet model and place either a linear SVM or softmaxclassifier on top. Table 7 shows results on Caltech-101 and Caltech-256. For both datasets, a steady im-provement can be seen as we ascend the model, withbest results being obtained by using all layers. Thissupports the premise that as the feature hierarchiesbecome deeper, they learn increasingly powerful fea-tures.

Cal-101 Cal-256(30/class) (60/class)

SVM (1) 44.8± 0.7 24.6± 0.4SVM (2) 66.2± 0.5 39.6± 0.3SVM (3) 72.3± 0.4 46.0± 0.3SVM (4) 76.6± 0.4 51.3± 0.1SVM (5) 86.2± 0.8 65.6± 0.3SVM (7) 85.5± 0.4 71.7± 0.2Softmax (5) 82.9± 0.4 65.7± 0.5Softmax (7) 85.4± 0.4 72.6± 0.1

Table 7. Analysis of the discriminative information con-tained in each layer of feature maps within our ImageNet-pretrained convnet. We train either a linear SVM or soft-max on features from di↵erent layers (as indicated in brack-ets) from the convnet. Higher layers generally producemore discriminative features.

6. Discussion

We explored large convolutional neural network mod-els, trained for image classification, in a number ways.First, we presented a novel way to visualize the ac-tivity within the model. This reveals the features tobe far from random, uninterpretable patterns. Rather,they show many intuitively desirable properties such ascompositionality, increasing invariance and class dis-crimination as we ascend the layers. We also showedhow these visualization can be used to debug prob-lems with the model to obtain better results, for ex-ample improving on Krizhevsky et al. ’s (Krizhevskyet al., 2012) impressive ImageNet 2012 result. Wethen demonstrated through a series of occlusion exper-iments that the model, while trained for classification,is highly sensitive to local structure in the image and isnot just using broad scene context. An ablation studyon the model revealed that having a minimum depthto the network, rather than any individual section, isvital to the model’s performance.

Finally, we showed how the ImageNet trained modelcan generalize well to other datasets. For Caltech-101and Caltech-256, the datasets are similar enough thatwe can beat the best reported results, in the latter caseby a significant margin. This result brings into ques-tion to utility of benchmarks with small (i.e. < 104)training sets. Our convnet model generalized less wellto the PASCAL data, perhaps su↵ering from datasetbias (Torralba & Efros, 2011), although it was stillwithin 3.2% of the best reported result, despite no tun-ing for the task. For example, our performance mightimprove if a di↵erent loss function was used that per-mitted multiple objects per image. This would natu-rally enable the networks to tackle the object detectionas well.

Acknowledgments

The authors are very grateful for support by NSF grantIIS-1116923, Microsoft Research and a Sloan Fellow-ship.

References

Bengio, Y., Lamblin, P., Popovici, D., and Larochelle,H. Greedy layer-wise training of deep networks. InNIPS, pp. 153–160, 2007.

Berkes, P. and Wiskott, L. On the analysis and in-terpretation of inhomogeneous quadratic forms asreceptive fields. Neural Computation, 2006.

Bo, L., Ren, X., and Fox, D. Multipath sparse codingusing hierarchical matching pursuit. In CVPR, 2013.

Caltech-­‐101

Caltech-­‐256

PASCAL2012

Trained  with  6  images/class,  Caltech-­‐256

Page 20: 20150703.journal club

いろいろやってみる(3)

•  どうやら SVM  での評価はここが最初らしい…

Visualizing and Understanding Convolutional Networks

PASCAL 2012: We used the standard training andvalidation images to train a 20-way softmax on top ofthe ImageNet-pretrained convnet. This is not ideal, asPASCAL images can contain multiple objects and ourmodel just provides a single exclusive prediction foreach image. Table 6 shows the results on the test set.The PASCAL and ImageNet images are quite di↵er-ent in nature, the former being full scenes unlike thelatter. This may explain our mean performance being3.2% lower than the leading (Yan et al., 2012) result,however we do beat them on 5 classes, sometimes bylarge margins.

Acc % [A] [B] Ours Acc % [A] [B] Ours

Airplane 92.0 97.3 96.0 Dining tab 63.2 77.8 67.7Bicycle 74.2 84.2 77.1 Dog 68.9 83.0 87.8Bird 73.0 80.8 88.4 Horse 78.2 87.5 86.0Boat 77.5 85.3 85.5 Motorbike 81.0 90.1 85.1Bottle 54.3 60.8 55.8 Person 91.6 95.0 90.9Bus 85.2 89.9 85.8 Potted pl 55.9 57.8 52.2Car 81.9 86.8 78.6 Sheep 69.4 79.2 83.6Cat 76.4 89.3 91.2 Sofa 65.4 73.4 61.1Chair 65.2 75.4 65.0 Train 86.7 94.5 91.8Cow 63.2 77.8 74.4 Tv 77.4 80.7 76.1

Mean 74.3 82.2 79.0 # won 0 15 5

Table 6. PASCAL 2012 classification results, comparingour Imagenet-pretrained convnet against the leading twomethods ([A]= (Sande et al., 2012) and [B] = (Yan et al.,2012)).

5.3. Feature Analysis

We explore how discriminative the features in eachlayer of our Imagenet-pretrained model are. We do thisby varying the number of layers retained from the Ima-geNet model and place either a linear SVM or softmaxclassifier on top. Table 7 shows results on Caltech-101 and Caltech-256. For both datasets, a steady im-provement can be seen as we ascend the model, withbest results being obtained by using all layers. Thissupports the premise that as the feature hierarchiesbecome deeper, they learn increasingly powerful fea-tures.

Cal-101 Cal-256(30/class) (60/class)

SVM (1) 44.8± 0.7 24.6± 0.4SVM (2) 66.2± 0.5 39.6± 0.3SVM (3) 72.3± 0.4 46.0± 0.3SVM (4) 76.6± 0.4 51.3± 0.1SVM (5) 86.2± 0.8 65.6± 0.3SVM (7) 85.5± 0.4 71.7± 0.2Softmax (5) 82.9± 0.4 65.7± 0.5Softmax (7) 85.4± 0.4 72.6± 0.1

Table 7. Analysis of the discriminative information con-tained in each layer of feature maps within our ImageNet-pretrained convnet. We train either a linear SVM or soft-max on features from di↵erent layers (as indicated in brack-ets) from the convnet. Higher layers generally producemore discriminative features.

6. Discussion

We explored large convolutional neural network mod-els, trained for image classification, in a number ways.First, we presented a novel way to visualize the ac-tivity within the model. This reveals the features tobe far from random, uninterpretable patterns. Rather,they show many intuitively desirable properties such ascompositionality, increasing invariance and class dis-crimination as we ascend the layers. We also showedhow these visualization can be used to debug prob-lems with the model to obtain better results, for ex-ample improving on Krizhevsky et al. ’s (Krizhevskyet al., 2012) impressive ImageNet 2012 result. Wethen demonstrated through a series of occlusion exper-iments that the model, while trained for classification,is highly sensitive to local structure in the image and isnot just using broad scene context. An ablation studyon the model revealed that having a minimum depthto the network, rather than any individual section, isvital to the model’s performance.

Finally, we showed how the ImageNet trained modelcan generalize well to other datasets. For Caltech-101and Caltech-256, the datasets are similar enough thatwe can beat the best reported results, in the latter caseby a significant margin. This result brings into ques-tion to utility of benchmarks with small (i.e. < 104)training sets. Our convnet model generalized less wellto the PASCAL data, perhaps su↵ering from datasetbias (Torralba & Efros, 2011), although it was stillwithin 3.2% of the best reported result, despite no tun-ing for the task. For example, our performance mightimprove if a di↵erent loss function was used that per-mitted multiple objects per image. This would natu-rally enable the networks to tackle the object detectionas well.

Acknowledgments

The authors are very grateful for support by NSF grantIIS-1116923, Microsoft Research and a Sloan Fellow-ship.

References

Bengio, Y., Lamblin, P., Popovici, D., and Larochelle,H. Greedy layer-wise training of deep networks. InNIPS, pp. 153–160, 2007.

Berkes, P. and Wiskott, L. On the analysis and in-terpretation of inhomogeneous quadratic forms asreceptive fields. Neural Computation, 2006.

Bo, L., Ren, X., and Fox, D. Multipath sparse codingusing hierarchical matching pursuit. In CVPR, 2013.

Page 21: 20150703.journal club

まとめ

•  可視化は,DCNN  などを理解・設計するのに重要  – 例として  Krizhevsky+12  を改良してみた  – 改良した  DCNN  を他のデータベースに適用したけ

ど,充分上手く動くことが示せた