Escolar Documentos
Profissional Documentos
Cultura Documentos
1215
query query
Mid-level l
feature
High-level l
feature
resolution models [23]. Though somewhat fundamental no- ing toolboxes [35, 15]. Our primary contribution is the
tions, they have not been tightly integrated with contempo- demonstration that structures can capture multi-scale fea-
rary feed-forward approaches for recognition. We introduce tures, which in turn allow for transfer learning between
multi-scale CNN architectures that use features at multiple coarse and fine-grained classification tasks.
scales for output prediction (Fig. 1). From one perspective, DAG Neural Networks: DAG-structured neural nets
our architectures are quite simple. Typical approaches train were explored earlier in the context of recurrent neural nets
a output predictor (e.g., a linear SVM) using features ex- [1, 13]. Recurrent neural nets use feedback to capture dy-
tracted from a single output layer. Instead, one can train namic states, and so typically cannot be processed with
an output predictor using features extracted from multiple feed-forward computations. Recent networks have explored
layers. Note that these features come “for free”; they are the use of “skip” connections between layers [27, 33, 29],
already computed in a standard feed-forward pass. similar to our multi-scale connections. [27] show that such
Spatial pooling: One difficulty with multi-scale ap- connections are useful for a single binary classification task,
proaches is feature dimensionality - the total number of fea- but we motivate multi-scale connections through multi-task
tures across all layers can easily reach hundreds of thou- learning: different visual classification tasks require fea-
sands. This makes training even linear models difficult tures at different image scales. [33] use skip connections
and prone to over-fitting. Instead, we use marginal acti- for training, but not at test-time (implying the final model
vations computed from sum (or max) pooling across spa- not a DAG). Finally, our work aligns with approaches that
tial locations in a given activation layer. From this per- predict local pixel labels using features extracted from mul-
spective, our models are similar to those that compute tiple CNN layers [14, 22]. We show that such features also
multi-scale features with spatial pooling, including multi- improve global image classification.
scale templates [10], orderless models [12], spatial pyra- Overview: We motivate our multi-scale DAG-CNN
mids [18], and bag-of-words [32]. Our approach is most model in Sec. 2, describe the full architecture in Sec. 3,
related to [12], who also use spatially pooled CNN fea- and conclude with numerous benchmark results in Sec. 4.
tures for scene classification. They do so by pooling to- We evaluate multi-scale DAG-structured variants of ex-
gether multiple CNN descriptors (re)computed on various- isting CNN architectures (e.g., Caffe [15], Deep19 [30])
sized patches within an image. Instead, we perform a single on a variety of scene recognition benchmarks including
CNN encoding of the entire image, extracting multi-scale SUN397 [39], MIT67 [26], Scene15 [9]. We observe a
features “for free”. consistent improvement regardless of the underlying CNN
End-to-end training: Our multi-scale model differs architecture, producing state-of-the-art results on all 3
from such past work in another notable aspect. Our en- datasets.
tire model is still a feed-forward CNN that is no longer
chain-structured, but a directed-acyclic graph (DAG). DAG- 2. Motivation
structured CNNs can still be discriminatively trained in an
end-to-end fashion, allowing us to directly learn multi-scale In this section, we motivate our multi-scale architecture
representations. DAG structures are relatively straightfor- with a series of empirical analysis. We carry out an analysis
ward to implement given the flexibility of many deep learn- on existing CNN architectures, namely Caffe and Deep19.
1216
0.7 can be learned by a linear predictor.
0.6
Scale-varying classification: The above experiment re-
0.5
quired training K × N 1-vs-all classifiers, where K is the
Accuracy
0.4
number of classes and N is the number of layers. We can
0.3
0.2
treat each of the KN classifiers as binary predictors, and
0.1
score each with the number of correct detections of its tar-
0 get class. We plot these scores as a matrix in Fig. 4. We tend
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 to see groups of classes that operate best with features com-
Layers puted from particular high-level or mid-level layers. Most
Figure 3. The classification accuracy on MIT67 [26] using activa- categories tend to do well with high-level features, but a
tions from each layer. We use an orange color fill representing the significant fraction (over a third) do better with mid-level
output of a ReLU layer, where there are 7 in total for the Caffe features.
model. We tend to see a performance jump at each successive Spatial pooling: In the next section, we will explore
ReLU layer, particularly earlier on in the model. multi-scale features. One practical hurdle to including all
features from all layers is the massive increase in dimen-
Caffe [15] is a broadly used CNN toolbox. It includes a sionality. Here, we explore strategies for reducing dimen-
pre-trained model “AlexNet” [17] model, learned with mil- sionality through pooled features. We consider various
lions of images from the ImageNet dataset [5]. We de- pooling strategies (average versus max), pooling neighbor-
note the output of each convolution, rectification, normal- hoods, and normalization post-processing (with and without
ization, pooling, and fully-connected inner product oper- L2 normalization). We saw good results with average pool-
ation as a unique layer. Under this definition, the Caffe ing over all spatial locations, followed by L2 normalization
AlexNet model has 20 layers, while the state-of-the-art (though we will re-examine these issues further in the next
Deep19 model [30] has a total of 43 layers. To develop our section). Specifically, assume a particular layer is of size
motivation, we analyze the behavior of the “off-the-shelf” H × W × F , where H is the height, W is the width, and F
Caffe model on the heavily benchmarked MIT Indoor Scene is the number of filter channels. We compute a 1 × 1 × F
(MIT67) dataset [26], using 10-fold cross-validation. feature by averaging across spatial dimensions. We then
normalize this feature to have unit norm.
2.1. Single-scale models
2.2. Multi-scale models
Image retrieval: Recent work has explored sparse re-
construction techniques for visualizing and analyzing fea- Multi-scale classification: We now explore multi-scale
tures [36]. Inspired by such techniques, we use image re- predictors that process pooled features extracted from mul-
trieval to begin our exploration. We attempt to “reconstruct” tiple layers. As before, we analyze “off-the-shelf” pre-
a query image by finding M = 7 closest images in terms trained models. We evaluate performance as we iteratively
of L2-distance, when computed with mean-pooled layer- add more layers by feature concatenation. Fig. 3 suggests
specific activations. Results are shown for two query im- that the last ReLU layer is a good starting point due to its
ages and two Caffe layers in Fig. 2. The florist query strong single-scale performance. Fig 5(a) plots performance
image tends to produces better matches when using mid- as we add previous layers to the classifier feature set. Per-
level features that appear to capture objects and parts. On formance increases as we add intermediate layers, while
the other hand, the church-inside query image tends to lower layers prove less helpful (and may even hurt perfor-
produce better matches when using high-level features that mance, likely do to over-fitting). Our observations suggest
appear to capture more global scene statistics. that high and mid-level features (i.e., parts and objects) are
Single-scale classification: Following past work [28], more useful than low-features based on edges or textures in
we train a linear SVM classifier using features extracted scene classification.
from a particular layer. We specifically train K = 67 1- Multi-scale selection: The previous results show that
vs-all linear classifiers. We plot the performance of single- adding all layers may actually hurt performance. We veri-
layer classifiers in Fig. 3. The detailed parameter options for fied that this was an over-fitting phenomena; additional lay-
both Caffe model are described later in Sec. 4. As past work ers always improved training performance, but could de-
has pointed out, we see a general increase in performance crease test performance due to over-fitting. This appears es-
as we use higher-level (more invariant) features. We do see pecially true for multi-scale analysis, where nearby layers
a slight improvement at each nonlinear activation (ReLU) may encoded redundant or correlated information (that is
layer. This makes sense as this layer introduces a nonlinear susceptible to over-fitting). Ideally, we would like to search
rectification operation max(0, x), while other layers (such for the “optimal” combination of ReLU layers that max-
an convolutional or sum-pooling) are linear operations that imize performance on validation data. Since there exists
1217
Best Layer-11 Layer-13 Layer-15 Layer-18 Layer-20
classified
by
1
Accuracy
11
0.8
13
0.6
Layer
15 0.4
18 0.2
20
Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ Ζ
ƚ ů
ů ƌ ƌ ƌ ƚ Đ ů ƌ Ɛ ƌ ƚ ƚ ƚ ů ƌ ŝ LJ ƚ ƚ
Ğ LJ Ğ Ŷ Ŷ Ğ Ž Ğ Ŷ LJ Ŷ Ğ ŝ ů Ő Ğ LJ ů Ŷ LJ Ž Ğ LJ Ɖ ů Ğ Ğ Ğ Ğ LJ Ğ Ğ Ɖ Ğ Ž
Ɛ Ğ Ă ƌ ŵ Ğ ŵ Đ ƌ Ă Ă Ă Ɛ ŵ Ă ŵ ŵ ŵ Ğ Ƶ Ž Ğ ŵ Ɛ ŵ Ă ƌ ŵ ŵ Ŷ ŵ ŵ ƌ ŝ Ž ƌ ŵ ŵ Đ Ă ŵ ƌ ƌ ƌ Ɛ Ğ Ŷ ŵ ƌ ŝ
Ĩ ƚ Ő ƚ Ğ Ğ ŝ Ŷ ů Ž Ğ Ě ŝ Ɛ Ŷ ƚ Ğ Ž ď Ž Ğ Ě Ě ŝ Ž
Ƶ Ž Ž ŝ Ž ů ŝ ď ŝ ƌ Ž Ž Ƶ Ž ŝ ď ƚ Ɛ LJ Ă Ž Ğ Ž Ž Ă Ž Đ Ž ů Ğ Ě Ě Ž Ž Ƶ ŝ ŝ Ž Ž Ă Ž Ƶ Ă Ž Ž Ě
Ĩ Ś Ă Ĩ ů Ĩ
Ŷ ƌ Ž Ă Ś Ś
Ž Ĩ Ɛ ƚ Ğ ƚ ǁ Ě
ƌ
Ζ Ɛ Ž
Ƶ
Ž ŵ Ž
ŝ
ƌ Ž
Ɛ
ŝ Ă Ž Ő Đ Ž
ŵ Ɛ Ž Ž ƌ Ž Ŷ Ž Ă Ŭ Ƶ ŝ ƚ ď
Ž
Ś
Ğ ΖĚ Ɛ Ɛ Ĩ ǁ Ž ƚ ƌ ƚ ǁ ƌ Ś
Ž ƚ Ƶ
Ž Ƶ ͺ Ă Ğ Đ Đ Ă Ɛ Ă Ŷ ů Ζ ͺ ǀ ů Ζ Ž ƌ Ɛ ƚ ƌ Ɛ Ž Ɛ Ŷ Ɛ ď Ɛ Ž LJ Ɛ Ɛ ƚ
ƌ ƌ Đ ď ƌ ƌ ƌ ǁ Ɛ ƌ ƌ ƌ Ƶ ƌ ƌ Ă ƌ Ɛ Ŷ ď ƌ Ƶ ƌ
Ś ď ƚ
ƌ Ɖ
Ă
ͺ Ś
ƚ
ŝ
ƚ
ŝ Ž
Ζ Đ LJ ƚ
Ƶ
Ă ŝ Ĩ
Ζ
ŵ
Ɛ Ž
Ő Ž
Ž
ů Ğ Ğ
Đ
Ζ ƌ ƌ Ƶ ͺ ƌ Ă Ğ
Ž ƌ Ɛ ƌ Ŭ Ζů ͺ
Ğ ŝ
ů ŝ Ž
ů Ƶ
ů Ő ŝ
ů Ž Ś ƌ
Ă
LJ
Ő LJ Ɛ
Ζ Ζ Ő ͺ Ζ ƌ Ğ Ɛ Ő ͺ Ž ͺ ƚ ů ŝ Ś Ɛ Ě ŝ ď Ž Ƶ ͺ Ă Ζ Ž ƌ ƚ
Ŷ Ζ Ŭ Ɛ Đ Ě Ζ Ğ
Ğ Ő ƚ ΖŬ Ŷ Ŷ Ɛ ƌ ƚ ŝ Ő ŝ Ŷ ď Ζ ŝ Ă ƚ Ě Ŷ Ő Ğ ƚ ŝ Ğ Ă ͺ Ž ƌ Ž Ž Ă Ɛ ƚ Ŷ Ğ ƚ ƚ
Ğ Ŷ Ž ƌ
Ğ Ğ ͺ Ğ ŝ Ŷ Ζ Ă Ě ŝ Ζ Ğ Ă Ŷ
Ζ ƚ Ɛ ŵ ƌ ǀ ΖĐ Ś Ś ƚ ŝ ŝ ƌ Ɛ ů ŝ ƚ
Đ Ŷ ŝ ƚ Ğ ŝ Ğ ƌ Ě ů Ŷ ƚ Ɛ Ζ ƚ Ŷ ď Ś Ž Ğ Ζŵ Ž ͺ Ě Ă Ă ů Ζ Ă
Ğ Ŷ ŝ
ƚ ǀ ƌ
Đ
ǁ Ă Ě Ž Ƶ Đ ŝ Ƶ ŝ Ŷ ΖƐ ď Ƶ ŝ
ƚ
Ƶ Ğ
ƌ
Ă Ɖ
Ζ Ζ Ζ Ζƚ ď Ŭ ΖƐ Ɖ
Đ
ƌ
Ŷ
Ğ Ɖ Ś
ƚ
ŝ ƌ Ğ
Ğ
ǀ
ŝ Ζ
ƌ Ŷ Ž Ζ ƌ ƚ Ζ Ŷ Ă ŝ Ζ Ɖ Ő Ζ Đ Ζ Ğ Ɛ ǀ ƌ
Ζ ů
Ž Ă Ž Ě ƌ ƚ Ŷ Ɖ ŝ Ă
Ζ Ζ Ă ͺ Ζ Ƶ Ě Ž Ζ Ζǁ Ž Ζ
Ğ
Ő
Ζ Ă ů Ζ ŝ ƌ Ɛ Ζů Ž Ě ŝ Ž ů ǁ
ΖĐ ƌ ƌ ŝ Ő
Ζ Ŭ ŝ Ζ Ě
Ζ
ǁ
Ζ Ğ ŵ Ě ů
Ζ Ś Ζ Ɛ Ś Đ
ď
Ğ
Ğ Ζŵ Ƶ Ś Ζ Ă Ž Ž ΖĐ Ŷ Ζ Ζ Ă
Ζũ
Ɖ Ă Đ Ζ ŵ ŝ Ζů
ƚ
Ζ Ζ ΖĐ Ž Ζ
Ž Ĩ
Ζ Ɛ ƚ
Ğ Ɛ
ƌ
Ζ Ă
ΖĨ
Figure 4. The “per-class” performance using features extracted from particular layers. We group classes with identical best-performing
layers. The last layer (20) is optimal for only 15 classes, while the second-to-last layer (18) proves most discriminative for 26 classes. The
third-most effective layer (11) captures significantly lower-level level features. These results validate our underlying hypothesis; different
classes require different amounts of invariance. This suggests that a feature extractor shared across such classes will be more effective
when multi-scale.
65 65
64 65
64 64
63
Accuracy
Accuracy
Accuracy
63
62 63
62
61
61 62
60
60 1x1 2x2
59 18 +13 +15 +11 +20 61
20 +18 +15 +13 +11 +7 +3
3x3 all
Layers Layers 60
1 2 3 4 5
(a) Multi-scale (b) Forward Selection
Number of layers included
Figure 5. (a) The performance of a multi-scale classifier as we add
Figure 6. We evaluate spatial pooling strategies to see if retain-
more layer-specific features. We start with the last ReLU layer,
ing spatial information (by pooling over smaller windows) helps
and iteratively add the previous ReLU layer. The “+” sign means
multi-scale performance. The answer is essentially ‘no’: global
the recent-most added layer. Adding additional layers help, but
pooling (using a 1 × 1 window covering the entire layer) does
performance saturates and even slightly decreases when adding
as well as or better than local windows, either of a fixed-size or
lower-layer features. This suggests it may be helpful to search
adaptive-size dynamically selected during the greedy search (all).
for the “optimal” combination of layers. (b) The performance
We posit two reasons: (1) finer spatial cues may already be cap-
trend when using forward selection to incorporate the ReLU lay-
tured by multiscale features extracted from neighboring layers and
ers. Note that layers are not selected in high-to-low order. Specif-
(2) additional training data might be needed to realize the benefit
ically, it begin with the second-to-last ReLU layer, and skip one
of local pooling windows since they generate larger descriptors.
or more previous layers when adding the next layer. This sug-
Dotted line means the layer will not be selected by greedy pro-
gests that layers encode some redundant or correlated information.
cedure. For reference, we also experimented with max-pooling
Overall, we see a significant 6% improvement.
strategies, but saw consistently worse results.
an exponential number of combinations (2N for N ReLU ing pooling windows for single-scale classification, smaller
layers), we find an approximate solution with a greedy pooling windows sometimes improved performance for cer-
forward-selection strategy. We greedily select the next-best tain layers. But in the multi-scale setting, there is essen-
layer (among all remaining layers) to add, until we observe tially no improvement over global pooling (Fig. 6), perhaps
no further performance improvement. As seen in Fig. 5(b), because finer spatial cues may already be captured in multi-
the optimal results of this greedy approach rejects the low- scale features extracted from neighboring layers. We posit
level features. This is congruent with the previous results in that with more training data, locally-pooled features may
Fig. 5(a). perform better. In our subsequent analysis we consider only
Multi-scale pooling: We use our greedy scale-selection globally-pooled features, as they are simpler to implement
strategy to re-examine pooling strategies. Specifically, we and generate smaller descriptors.
divide the spatial features from a particular layer into M × Our analysis strongly suggest the importance (and ease)
M non-overlapping windows, where M varies from 1 to of incorporating multi-scale features for classification tasks.
3. We average-pool features within each window and con- For our subsequent experiments, we use scales selected by
catenate the M 2 pooled features together into a final L2- the forward selection algorithm on MIT67 data (shown in
normalized descriptor. When greedily searching over lay- Fig. 5(b)). Note that we use them for all our experimental
ers to add, we also greedily search over the 3 possible pool- benchmarks, demonstrating a degree of cross-dataset gen-
ing windows for each layer. Interestingly, when evaluat- eralization in our approach.
1218
Conv ReLU Norm Max-pool Conv ReLU Max-pool Conv ReLU
FC FC FC
Add
Softmax
Figure 7. Our multi-scale DAG-CNN architecture is constructed by adding multi-scale output connections to an underlying chain backbone
from the original CNN. Specifically, for each scale, we spatially (average) pool activations, normalize them to have unit-norm, compute
an inner product with a fully-connected (FC) layer with K outputs, and add the scores across all layers to predictions for K output classes
(that are finally soft-maxed together).
1219
Norm Vanishing gradients: We point out an interesting prop-
erty of our multi-scale models that make them easier to
ReLU Add Softmax
train. Vanishing gradients [2] refers to the phenomena
Avg-pool
that gradient magnitudes decrease as they are propogated
through layers, implying that lower-layers can be difficult
Figure 8. Visualization of the parameter setup at i-th ReLU. to learn because they recieve too small a learning signal.
In our DAG-CNNs, lower layers are directly connected to
(1) (N ) the output layer through multi-scale connections, ensuring
Multi-input layers (Add): Let βk = g(αk , · · · , αk )
represents the output of a layer with multiple inputs. We can they receive a strong gradient signal during learning. Fig. 9
compute the gradient along the layer by applying the chain experimentally verifies this claim.
rule as follows:
∂z ∂z ∂βk Gradient-based learning
= 100
∂αi ∂βk ∂αi DAG
Average gradient
(in log scale)
10
∂z X ∂βk ∂αk
C (j) Chain
This allows us to add together multiple back-prop signals the best performance ever reported on all three benchmarks,
before scaling them by the local gradient, reducing the num- sometimes by a significant margin.
ber of multiplications by C. We make use of this speed up Feature dimensionality: Most existing methods that
to train our ReLU layers . use CNNs as feature extractors work with the last layer
Special case (Add): Similarly, our multi-input Add (or the last fully connected layer), yielding a feature vec-
layer reuses the same partial gradient for each input tor of size 4096. Forward feature selection on Caffe-
∀j, ∂β(j)
k
= ∂β(1)
k
which simplifies even further in our case DAG selects layers (11, 13, 15, 18, 20), making the final
∂αk ∂αk multi-scale feature 9216-dimensional. Deep19-DAG se-
to 1. The resulting back-prop equations that simplify (3) are lects layers(26, 28, 31, 33, 30), for a final size of 6144. We
given by perform feature selection by cross-validating on MIT67,
∂z ∂βk X ∂αk
C (j)
∂z and use the same multi-scale structure for all other datasets.
= (for duplicate gradients)
∂αi ∂βk ∂α(1) j=1 ∂αi Dataset-dependant feature selection may further improve
k
performance. Our final multi-scale DAG features are only
(5)
2X larger than their single-scale counter part, making them
implying that one can similarly save C multiplications. practically easy to use and store.
The above equations have an intuitive implementation; the Training: We follow the standard image pre-processing
standard chain-structured back-propagation signal is simply steps of fixing the input image size to 224 × 224 by scal-
replicated along each of the parents of the Add layer. ing and cropping, and subtracting out the mean RGB value
Implementation: We use the excellent MatConNet (computed on ImageNet). We initialize filters and biases
codebase to implement our modifications [35]. We im- to their pre-trained values (tuned on ImageNet) and ini-
plemented a custom Add layer and a custom DAG data- tialize multi-scale fully-connected (FC) weights to small
structure to denote layer connectivity. Training and testing normally-distributed numbers. We perform 10 epochs of
is essentially as fast as the chain model. learning.
1220
SUN397 MIT67 Scene15
Baselines: We compare our DAG models to published Scene15: The Scene15 [9] includes both indoor scene
results, including two additional baselines. We evaluate the (e.g., store and kitchen) and outdoor scene (e.g., mountain
best single-scale “off-the-shelf” model, using both Caffe and street). It is a relatively small dataset by contempo-
and Deep19. We pass L2-normalized single-scale features rary standards (2985 test images), but we include here for
to Liblinear [8] to train K-way one-vs-all classifiers with completeness. Performance is consistent with the results
default settings. Finally, Sec. 4.1 concludes with a detailed above. Our multi-scale DAG model, specifically Deep19-
diagnostic analysis comparing off-the-shelf and fine-tuned DAG, outperforms all prior work. For reference, the next-
versions of chain and DAG structures. best method of [40] uses a new custom 7-million image
scene dataset for training.
SUN397: We tabulate results for all our benchmark
datasets in Table 1, and discuss each in turn. SUN397 [39] 4.1. Diagnostics
is a large scene recognition dataset with 100K images span-
ning 397 categories, provided with standard train-test splits. In this section, we analyze “off-the-shelf” (OTS) and
Our DAG models outperform their single-scale counter- “fine-tuned” (FT) versions of both single-scale chain and
parts. In particular, Deep19-DAG achieves the highest multi-scale DAG models. We focus on the Caffe model, as
56.2% accuracy. Our results are particularly impressive it is faster and easier for diagnostic analysis.
given that the next-best method of [40] (with a score of Chain: Chain-OTS uses single-scale features extracted
54.3) makes use of a ImageNet-trained CNN and a custom- from CNNs pre-trained on ImageNet. These are the base-
trained CNN using a new 7-million image dataset with 400 line Caffe results presented in the previous subsections.
scene categories. Chain-FT trains a model on the target dataset, using the pre-
trained model as an initialization. This can be done with
MIT67: MIT67 consists of 15K images spanning 67 in- standard software packages [35]. To ensure consistency of
door scene classes [26], provided with standard train/test analysis, in both cases features are passed to a K-way multi-
splits. Indoor scenes are interesting for our analysis be- class SVM to learn the final predictor.
cause some scenes are well characterized by high-level spa- DAG: DAG-OTS is obtained by fixing all internal filters
tial geometry (e.g. church and cloister), while oth- and biases to their pre-trained values, and only learning the
ers are better described by mid-level objects (e.g. wine multi-scale fully-connected (FC) weights. Because this fi-
celler and operating room) in various spatial con- nal stage learning is a convex problem, this can be done by
figurations. We show qualitative results in Fig. 10. Deep19- simply passing off-the-shelf multi-scale features to a con-
DAG produces a classification accuracy of 77.5%, reducing vex linear classification package (e.g., SVM). We compare
the best-previously reported error [12] by 23.9%. Interest- this model to a fine-tuned version that is trained end-to-end,
ingly [12] also uses multi-scale CNN features, but do so by making use of the modified backprop equation from Sec. 3.
first extracting various-sized patches from an image, rescal- Comparison: Fig. 11 compares off-the-shelf and fine-
ing each to canonical size. Single-scale CNN features ex- tune variants of chain and DAG models. We see two dom-
tracted from these patches are then vector-quantized into a inant trends. First, as perhaps expected, fine-tuned (FT)
large-vocabulary codebook, followed by a projection step models consistently outperform their off-the-shelf (OTS)
to reduce dimensionality. Our multi-scale representation, countparts. Even more striking is the large improvement
while similar in spirit, is an end-to-end trainable model that from chain to DAG models, indicating the power of multi-
is computed “for free” from a single (DAG) CNN. scale feature encodings.
1221
train station
subway mall
classroom
laundromat
elevator
Figure 10. Deep19-DAG results on MIT67. The category label is shown on the left and the label for false-positives (in red) are also
provided. We use the multi-scale analysis of Fig. 4 to compare categories that perform better with mid-level features (top 2 rows) versus
high-level features (bottom 2 rows). Mid-level features appear to emphasize objects such as operating equipment for operating room
scenes and circular grid for wine celler, while high-level features appear to focus on global spatial statistics for inside bus and
elevator scenes.
1222
References [19] Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-
based learning applied to document recognition. Proceed-
[1] P. Baldi and G. Pollastri. The principled design of large-scale ings of the IEEE, (11), 1998. 1
recursive neural network architectures–dag-rnns and the pro-
[20] L.-J. Li, H. Su, E. P. Xing, and F.-F. Li. Object bank: A high-
tein structure prediction problem. JMLR, 2003. 2
level image representation for scene classification & seman-
[2] Y. Bengio, P. Simard, and P. Frasconi. Learning long-term tic feature sparsification. In NIPS, 2010. 7
dependencies with gradient descent is difficult. IEEE Trans-
[21] T. Lindeberg. Scale-space theory in computer vision.
actions on Neural Networks, 1994. 6
Springer Science & Business Media, 1993. 1
[3] A. Bosch, A. Zisserman, and X. Muoz. Scene classification [22] J. Long, E. Shelhamer, and T. Darrell. Fully convolutional
using a hybrid generative/discriminative approach. PAMI, networks for semantic segmentation. In CVPR, 2015. 2
2008. 7
[23] S. Mallat. A wavelet tour of signal processing. Academic
[4] P. J. Burt and E. H. Adelson. The laplacian pyramid as a press, 1999. 2
compact image code. IEEE Transactions on Communica-
[24] A. Oliva and A. Torralba. Modeling the shape of the scene:
tions, 31(4):532–540, 1983. 1
A holistic representation of the spatial envelope. IJCV, 2001.
[5] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei- 7
Fei. Imagenet: A large-scale hierarchical image database. In
[25] S. Parizi, J. Oberlin, and P. Felzenszwalb. Reconfigurable
CVPR, 2009. 1, 3
models for scene recognition. In CVPR, 2012. 7
[6] C. Doersch, A. Gupta, and A. A. Efros. Mid-level visual
[26] A. Quattoni and A. Torralba. Recognizing indoor scenes. In
element discovery as discriminative mode seeking. In ECCV.
CVPR, 2009. 2, 3, 6, 7
2013. 7
[27] T. Raiko, H. Valpola, and Y. LeCun. Deep learning made
[7] J. Donahue, Y. Jia, O. Vinyals, J. Hoffman, N. Zhang, easier by linear transformations in perceptrons. In AISTATS,
E. Tzeng, and T. Darrell. Decaf: A deep convolutional acti- volume 22, pages 924–932, 2012. 2
vation feature for generic visual recognition. In ICML, 2014.
[28] A. S. Razavian, H. Azizpour, J. Sullivan, and S. Carls-
7
son. CNN features off-the-shelf: an astounding baseline for
[8] R.-E. Fan, K.-W. Chang, C.-J. Hsieh, X.-R. Wang, and C.-J. recognition. In CVPR, 2014. 1, 3
Lin. LIBLINEAR: A library for large linear classification.
[29] P. Sermanet, K. Kavukcuoglu, S. Chintala, and Y. LeCun.
JMLR, 2008. 7
Pedestrian detection with unsupervised multi-stage feature
[9] L. Fei-Fei and P. Perona. A bayesian hierarchical model for learning. In CVPR. IEEE, 2013. 2
learning natural scene categories. In CVPR, 2005. 2, 6, 7
[30] K. Simonyan and A. Zisserman. Very deep convolutional
[10] P. Felzenszwalb, D. McAllester, and D. Ramanan. A dis- networks for large-scale image recognition. In ICLR, 2015.
criminatively trained, multiscale, deformable part model. In 1, 2, 3, 6, 7
CVPR, 2008. 2
[31] S. Singh, A. Gupta, and A. A. Efros. Unsupervised discovery
[11] R. B. Girshick, J. Donahue, T. Darrell, and J. Malik. Rich of mid-level discriminative patches. In ECCV, 2012. 7
feature hierarchies for accurate object detection and semantic
[32] J. Sivic and A. Zisserman. Video google: A text retrieval
segmentation. In CVPR, 2014. 1
approach to object matching in videos. In ICCV, 2003. 2
[12] Y. Gong, L. Wang, R. Guo, and S. Lazebnik. Multi-scale [33] C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed,
orderless pooling of deep convolutional activation features. D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich.
In ECCV, 2014. 1, 2, 7 Going deeper with convolutions. In CVPR, 2015. 1, 2
[13] A. Graves and J. Schmidhuber. Offline handwriting recog- [34] J. Snchez, F. Perronnin, T. Mensink, and J. Verbeek. Im-
nition with multidimensional recurrent neural networks. In age classification with the fisher vector: Theory and practice.
NIPS, 2009. 2 IJCV, 2013. 7
[14] B. Hariharan, P. Arbeláez, R. Girshick, and J. Malik. Hyper- [35] A. Vedaldi and K. Lenc. Matconvnet user manual. 2, 6, 7
columns for object segmentation and fine-grained localiza-
[36] C. Vondrick, A. Khosla, T. Malisiewicz, and A. Torralba.
tion. In CVPR, 2015. 2
Hoggles: Visualizing object detection features. In ICCV,
[15] Y. Jia, E. Shelhamer, J. Donahue, S. Karayev, J. Long, R. Gir- 2013. 3
shick, S. Guadarrama, and T. Darrell. Caffe: Convolu-
[37] J. Wu and J. Rehg. Centrist: A visual descriptor for scene
tional architecture for fast feature embedding. arXiv preprint
categorization. PAMI, 2011. 7
arXiv:1408.5093, 2014. 2, 3, 6, 7
[38] J. Xiao, K. A. Ehinger, J. Hays, A. Torralba, and A. Oliva.
[16] M. Juneja, A. Vedaldi, C. Jawahar, and A. Zisserman. Blocks Sun database: Exploring a large collection of scene cate-
that shout: Distinctive parts for scene classification. In gories. IJCV, 2001. 7
CVPR, 2013. 7
[39] J. Xiao, J. Hays, K. Ehinger, A. Oliva, and A. Torralba. Sun
[17] A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet database: Large-scale scene recognition from abbey to zoo.
classification with deep convolutional neural networks. In In CVPR, 2010. 2, 6, 7
NIPS. 2012. 1, 3
[40] B. Zhou, A. Lapedriza, J. Xiao, A. Torralba, and A. Oliva.
[18] S. Lazebnik, C. Schmid, and J. Ponce. Beyond bags of Learning deep features for scene recognition using places
features: Spatial pyramid matching for recognizing natural database. In NIPS, 2014. 1, 7
scene categories. In CVPR, 2006. 2, 7
1223