## ScarfNet: Multi-scale Features with Deeply Fused and Redistributed Semantics for Enhanced Object Detection

∗

Jin Hyeok Yoo, Dongsuk Kum ∗ , and Jun Won Choi Hanyang University Korea Advanced Institute of Science and Technology

## Abstract

Convolutional neural networks (CNNs) have led us to achieve significant progress in object detection research. To detect objects of various sizes, object detectors often exploit the hierarchy of the multiscale feature maps called feature pyramids, which are readily obtained by the CNN architecture. However, the performance of these object detectors is limited because the bottom-level feature maps, which experience fewer convolutional layers, lack the semantic information needed to capture the characteristics of the small objects. To address such problems, various methods have been proposed to increase the depth for the bottom-level features used for object detection. While most approaches are based on the generation of additional features through the top-down pathway with lateral connections, our approach directly fuses multi-scale feature maps using bidirectional long short-term memory (biLSTM) in an effort to leverage the gating functions and parameter-sharing in generating deeply fused semantics. The resulting semantic information is redistributed to the individual pyramidal feature at each scale through the channel-wise attention model. We integrate our semantic combining and attentive redistribution feature network (ScarfNet) with the baseline object detectors, i.e., Faster R-CNN, single-shot multibox detector (SSD), and RetinaNet. Experimental results show that our method offers a significant performance gain over the baseline detectors and outperforms the competing multiscale fusion methods in the PASCAL VOC and COCO detection benchmarks.

techniques [15]. Convolutional neural networks (CNNs) can produce a hierarchy of abstract feature maps through a cascade of convolution operations followed by a nonlinear function. Using CNN as a backbone network, object detectors can effectively infer the location of the bounding box and the category of the instances based on the abstract feature maps. Various object detection network structures have been proposed to date. The CNN-based object detectors are roughly categorized into two groups: two-stage detectors and single-stage detectors. The two-stage detectors detect the objects using two separate subnetworks; 1) the region proposal network for finding the bounding boxes containing the object, and 2) the object classifier network for identifying the class of the objects and refining the bounding boxes. The well-known two-stage detectors include R-CNN [7], Fast R-CNN [6], Faster R-CNN [20], and Mask R-CNN [8]. Single-stage detectors directly estimate the bounding boxes and the object classes from the feature maps in one shot and include single-shot multibox detector (SSD) [16], YOLO [18], YOLOv2 [19], and RetinaNet [13].

## 1. Introduction

Object detection refers to the task of deciding whether there are any instances of objects in the image and returns the estimate of the location and the category of the objects [17], [15]. Historically, object detection has been one of the most challenging computer vision problems. Recently, deep learning has led unprecedented advances in object detection

Recent advances in object detection are achieved by the CNN's capability to produce the abstract features containing strong semantic cues. The deeper the convolutional layers are, the higher the level of abstraction is for the resulting feature maps. As a result, the features produced at the end of the CNN pipeline (called top-level features ) contain rich semantics but lack spatial resolution, whereas the features placed at the input layers (called bottom-level features ) lack semantic information but have detailed spatial information. The hierarchy of such multiscale features constitutes so-called feature pyramids , which are used to detect the objects of different scales in many object detectors (e.g., SSD [16], MS-CNN [2], and RetinaNet [13]). The structure designed to use such feature pyramids for object detection is described in Fig. 1 (a). Note that the attributes of the large objects tend to be captured on the top-level features of small size while those of the small objects are well represented by the shallow bottom-level features of large size.

One limitation of the feature pyramid method is the disparity of the semantic information between the multiscale

feature maps used for object detection. The bottom-level features are not deep enough to exhibit high-level semantics underlying in the objects and their surroundings. This results in the accuracy loss in detecting the small objects. In order to address this problem, several approaches, which have attempted to reduce the semantic gap between the pyramidal features in different scales, have been proposed. One notable direction is to provide the contextual information to the bottom-level features by generating the highly semantic features in the top-down pathway with latent connections. As illustrated in Fig. 1 (c), based on the top-level pyramidal feature obtained from the bottom-up network, the additional features are subsequently generated with increased depth and resolution. In order to avoid losing the spatial information, lateral connections are used to take the bottom-level features and combine them with the high-level semantic features. Various object detectors including DSSD [5], FPN [12], and StairNet [22] follow this principle, and significant improvement has been reported in terms of detection accuracy.

Our work is motivated by the observation that the capacity of the current architectures for generating top-down features might not be large enough to generate strong semantics for all scales. Thus, we propose a new architecture, which deeply fuses the multiscale features for enhanced object detection. The proposed feature pyramid method, referred to as semantic combining and attentive redistribution feature network (ScarfNet), combines the multiscale feature maps using the recurrent neural networks and then redistributes the fused semantics to each level, generating the new multiscale feature maps. The structure of ScarfNet is depicted in Fig. 2 (d). First, the bidirectional long short-term memory (biLSTM) model [24] is used to combine the multiscale pyramidal features. Although biLSTM is widely used to extract the temporal features from the sequential data, it can effectively combine the semantics in multiscale features. Our conjecture is that compared to the convolutive fusion methods, biLSTM requires significantly reduced number of weights due to parameter sharing, and the only relevant semantic information is selectively aggregated through the gating function of biLSTM. The fused feature maps are distributed through the channel-wise attention model, generating highly semantic features tailored for each pyramid scale. The final multiscale feature maps are used for object detection. Note that our framework can be readily applied to various feature pyramid-based CNN architectures, which require strong semantic information.

In the experiments, we integrate ScarfNet with the baseline detectors including Faster R-CNN [20], SSD [16], and RetinaNet [13]. The evaluation conducted over PASCAL VOC [4] and MS COCO [14] datasets shows that our method offers significant improvement over the baseline detectors as well as other competitive detectors in terms of de- tection accuracy. Our code will be made publicly available. The contributions of our paper are summarized as follows.

- · We introduce a new deep architecture for closing the semantic gaps between the multiscale feature maps. The proposed ScarfNet generates new multiscale feature maps with deeply fused and redistributed semantics by using the combination of biLSTM and the channel-wise attention model.
- · For the first time in the literature, the biLSTM is used to combine the multiscale features to incorporate strong semantics for feature pyramids. The biLSTM model can produce deeply fused semantic information using the recurrent connection over different pyramid scales. Furthermore, ScarfNet benefits from the selective information gating mechanism inherent in the biLSTM model. Due to parameter sharing, the overhead due to ScarfNet is small. In addition, ScarfNet is easy to train and is also end-to-end trainable.

## 2. Related Work

In this section, we review the basic object detectors and several existing feature pyramid methods used to decrease the semantic gap between the scales.

## 2.1. CNN-based Object Detectors

Recently, CNN has brought an order of magnitude performance improvement in object detection. Various CNNbased object detectors have been proposed to date. The current object detectors can be categorized into two groups: two-stage detectors and single-stage detectors. Two-stage detectors detect the objects in two steps; finding the region proposals based on the objectness of the regions and conducting the classification and bound regression for detected region proposals. R-CNN [7] is the first CNN-based detector where the traditional selective search is employed to find the region proposals, and CNN is applied to the image patch in each region proposal. Fast R-CNN [6] and Faster R-CNN [20] reduced the computation time of RCNN by employing the region of interest (ROI) pooling for using full-image feature maps and replacing the selective search with the region proposal network (RPN). Singlestage detectors directly perform classification and box regression based on the feature maps. These detectors compute the confidence score on the object category and the regression results for the candidate boxes while sweeping the feature maps spatially. The well-known single-stage detectors include SSD [16], YOLO [18], and YOLOv2 [19]. Recently, RetinaNet [13] has achieved the-state-of-the-art performance using ResNet [9] as a backbone and various latest training tricks. Refer to [15] for the comprehensive review of contemporary object detectors.

Figure 1. Structure of several feature pyramid methods: In (a), feature pyramid obtained from convolutional layers is used in baseline detectors (e.g., SSD [16]). In (b), multiscale features are fused and converted into the single semantic feature map with the highest resolution. (c) shows the structure generating additional features in unidirectional way through the top-down structure with lateral connections. (d) shows the structure of the proposed ScarfNet, where the multiscale features are fused in a bidirectional fashion and the learned semantics are propagated back to each scale.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00328v2-figure-f322c7c2-1a4c-4425-ab57-074bfef72452.jpg)

## 2.2. Object Detectors Using Multiscale Features

Several object detectors including SSD [16] and RetinaNet [13] rely on hierarchical feature pyramids to detect the objects of various sizes (Fig. 1 (a)). One problem with using multiscale features directly produced by CNNs is the gap of the semantic information between them caused by the different depths of the layers passed by the input. Due to the relatively low level of abstraction for bottom-level features, detection accuracy for small objects is often limited. Fig. 1 (b), (c), and (d) describe the strategies proposed to overcome this problem. Fig. 1 (b) depicts the strategy of combining the multiscale features into the single highresolution feature map with strong semantics. HyperNet [11] and ION [1] improved the performance of RPN by aggregating the hierarchical features with the appropriate resizing of the feature maps. Fig. 1 (c) shows the strategy of generating highly semantic features through the top-down pathway with lateral connections. Note that the semantic information is generated through the top-down connections while the detailed spatial information is provided through lateral connections. Several detectors based on this structure include DSSD [5], StairNet [22], TDM [21], FPN [12], and RefineDet [25]. DSSD [5] and StairNet [22] use the deconvolutional layer-based top-down connections for the SSD baseline [16]. TDM [21] employs the top-down structure specified for the RPN of the Faster R-CNN [20]. FPN [12]

uses the simplified structure using 2x up-sampling and 1x1 convolution for top-down and lateral connections, respectively. RefineDet [25] employs two-step cascade regression for top-down connections.

## 3. Proposed Object Detector

In this section, we introduce the details of the proposed ScarfNet architecture.

## 3.1. Existing Feature Pyramid Methods

The feature pyramid-based object detectors performs detection based on the k &gt; ( 1) feature maps across different pyramid levels to detect the various sizes of objects. As shown in Fig. 1 (a), the baseline detectors use the feature map X l at the l th pyramidal level

$$X _ { l } = B _ { l } \left ( X _ { l - 1 } \right ) \text{ \quad \ \ } \text{(1)}$$

$$\text{Detection Outputs} = D _ { l } ( X _ { l } ), \text{ \quad \ \ } ( 2 )$$

where l = n -k + 1 , ..., n . Note that X 1: n -k (= [ X ,X ,..., X 1 2 n -k ]) are the feature maps produced by the backbone network, and X n -k +1: n are the bottom-up features from the subsequent convolutional layers. B l ( ) · denotes the operation performed by the l th convolutional layer, and D l ( ) · denotes the detection subnetwork that often applies a single 3x3 convolutional layer to produce the

Figure 2. The overall architecture of the proposed ScarfNet: ScarfNet consists of two modules: ScNet and ArNet. ScNet aggregates the pyramidal features obtained from the bottom-up CNN pipeline. Then, ArNet distributes the fused semantics to each pyramid level. The final high-level semantic features are generated by channel-wise concatenation between the output of ScarfNet and the original pyramidal features. The detailed structures of the matching block and the attention block are depicted in the yellow boxes.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00328v2-figure-675b4b75-8786-4389-80b6-6da68a35a777.jpg)

output of classification and box regression. Due to the different depths from the input to each pyramidal feature, shallow bottom-level features suffer from the lack of semantic information.

In order to reduce the semantic gap between different pyramid levels, several works proposed the top-down structure using lateral connections as illustrated in Fig. 1 (c). This structure propagates the high-level semantics from the top layers to the bottom layers with increased resolution while keeping the spatial high resolution through lateral connections. The l th feature map X ′ l generated using this method is expressed as limitations. Since the top-down connection propagates the semantic information in a unidirectional way, the semantics are not evenly distributed among all pyramid levels. As a result, the semantic gap between the pyramidal features still remains. Next, such unilateral processing of the features has limited capacity to produce rich contextual information for increasing the semantic levels in all scales. In order to address these problems, we developed a new architecture that uses biLSTM to generate the deeply fused semantics through bi-lateral connections between all pyramid scales. In the following subsections, we present the details of our design.

$$X _ { l } ^ { \prime } = L _ { l } \left ( X _ { l } \right ) \oplus T _ { l } \left ( X _ { l + 1 } ^ { \prime } \right ) \text{ \quad \ \ } \left ( 3 \right ) \text{ \quad } \text{3}.$$

$$\text{Detection Outputs} = D _ { l } ( X _ { l } ^ { \prime } ) \text{ \quad \ \ } ( 4 )$$

where l = n -k + 1 , ..., n . Note that L l ( ) · is the operation for the l th lateral connection, and T l ( ) · is the operation for the l th top-down connection. The operator ⊕ represents the operation of combining two feature maps, e.g., channel-wise concatenation and addition. Different methods (e.g., DSSD [5], StairNet [22], TDM [21], FPN [12], and RefineDet [25]) employ the slightly different structures for L l ( ) · and T l ( ) · . While these methods promote the abstraction level for pyramidal features, they still have some

## 3.2. ScarfNet: Overall Architecture

ScarfNet attempts to resolve the discrepancy of the semantic information in two steps: 1) combining the scattered semantic information using biLSTM and 2) redistributing the fused semantics back to each pyramid level using the channel-wise attention model. The overall architecture of ScarfNet is depicted in Fig. 2. Taking the k pyramidal features X n -k +1: n as input, ScarfNet produces the new l th pyramidal feature map X ′ l as

$$X _ { l } ^ { \prime } = \text{ScarfNet} _ { l } \left ( X _ { n - k + 1 \colon n } \right ) \text{ \quad \ \ } \text{(5)}$$

$$= X _ { l } \oplus \text{ArNet} _ { l } ( \text{ScNet} ( X _ { n - k + 1 \colon n } ) ) \quad ( 6 )$$

Figure 3. The structure of ScNet : The matching block and biLSTM are applied to generate the fused feature map X f l . Note that the matching block applies bilinear interpolation and 1x1 convolution to make the spatial and channel dimensions equal for the inputs to biLSTM.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00328v2-figure-65221ab6-7a6b-48f3-99d0-99ec97ea2f42.jpg)

$$\text{Detection Outputs} = D _ { l } ( X _ { l } ^ { \prime } ) \text{ \quad \ \ } ( 7 )$$

where l = n -k + 1 , ..., n . As in (6), ScarfNet consists of two subnetworks: semantic combining network (ScNet) and attentive redistribution network (ArNet). First, ScNet merges the pyramidal features X n -k +1: n through biLSTM and produces the output features with the fused semantics. Second, ArNet collects the output features from biSLTM and applies the channel-wise attention model to produce highly semantic multiscale features, which are concatenated to the original pyramidal features. Finally, the resulting feature maps are individually processed by the detection subnetwork D l ( ) · to produce the results for object detection.

## 3.3. Semantic Combining Network (ScNet)

The feature maps X f n -k +1: n produced by ScNet are obtained as follows:

$$X _ { n - k + 1 \colon n } ^ { f } = \text{ScNet} ( X _ { n - k + 1 \colon n } ), \quad \quad ( 8 ) \quad \quad \quad$$

where X f l is the output feature map for the l th layer. Fig. 3 depicts the detailed structure of ScNet. ScNet uniformly fuses the semantics scattered in different pyramid levels using biLSTM. The biLSTM model can selectively fuse the contextual information in multiscale features through the gating function. As shown in Fig. 3, ScNet consists of the matching block and the biLSTM block. The matching block first resizes the pyramidal features X n -k +1: n such that they have the same size as the largest pyramidal feature. Then, it adjusts the channel dimension of the input using the 1x1 convolutional layer. As a result, the matching block produces the feature maps of the same spatial and channel dimensions for biLSTM. Note that the resizing operation is performed by bilinear interpolation. The biLSTM model used in SCNet follows the structure of [23], which has significantly saved the computation time by using convolutional layers for input connection and computing the gating parameters based on the results of global average pooling. The operations performed by biLSTM in [23] are summa- rized as follows:

$$\bar { X } _ { l } = G l o b a l A v e r a g e P o o l i n g ( X _ { l } ) \quad \ \ ( 9 )$$

$$\bar { X } _ { l - 1 } ^ { f } = G l o b a l A v e r a g e P o o l i n g ( X _ { l - 1 } ^ { f } ) \quad ( 1 0 )$$

$$i _ { l } = \sigma \left ( W _ { x i } \bar { X } _ { l } + W _ { x f _ { i } } \bar { X } _ { l - 1 } ^ { f } + b _ { i } \right ) \quad ( 1 1 )$$

$$f _ { l } = \sigma \left ( W _ { x f } \bar { X } _ { l } + W _ { x ^ { f } f } \bar { X } _ { l - 1 } ^ { f } + b _ { f } \right ) \quad ( 1 2 )$$

$$o _ { l } = \sigma \left ( W _ { x o } \bar { X } _ { l } + W _ { x f o } \bar { X } _ { l - 1 } ^ { f } + b _ { o } \right ) \quad ( 1 3 )$$

$$G _ { l } = \tanh \left ( W _ { x c } * X _ { l } + W _ { x ^ { f } c } * X _ { l - 1 } ^ { f } + b _ { c } \right ) \quad ( 1 4 )$$

$$C _ { t } = X _ { l } \circ C _ { l - 1 } + i _ { l } \circ G _ { l } \text{ \quad \ \ } ( 1 5 )$$

$$X _ { l } ^ { f } = o _ { l } \circ \tanh \left ( C _ { l } \right ), \text{ \quad \ \ } \text{(16)}$$

where ◦ denotes the Hadamard product. The state update of biLSTM is conducted in both forward and backward directions. Note that we only provide the forward update, and the equations are similar for the backward update.

Figure 4. The structure of ArNet : ArNet concatenates the fused feature maps X f n -k +1: n and applies the channel-wise attention. Then, the spatial and channel dimensions of the resulting feature maps are adjusted by the matching block.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00328v2-figure-8c17efcc-10fe-4102-91c0-9c7b7539b921.jpg)

## 3.4. Attentive Redistribution Network (ArNet)

The ArNet aims to produce the high-level semantic feature map, which is concatenated with the original pyramidal feature map X l as follows:

$$X _ { l } ^ { \prime } = X _ { l } \oplus \text{ArNet} _ { l } ( X _ { n - k + 1 \colon n } ^ { f } ), \quad \ ( 1 7 )$$

where operator ⊕ denotes the channel-wise concatenation. The detailed structure of ArNet is depicted in Fig. 4. ArNet concatenates the outputs X f n -k +1: n of biLSTM and apply the channel-wise attention to them. The attention weights are obtained by constructing the 1x1 vector using global average pooling [10] and passing it through two fully connected layers followed by the sigmoid function. Note that this channel-wise attention model allows for selective propagation of the semantics to each pyramid level. Once the attention weights are applied, the matching block downsamples the resulting feature maps to the original size of the pyramidal features and applies 1x1 convolution to match the channel dimensions with those of the original pyramidal

Table 1. PASCAL VOC 07/12 detection results: The detection results for VOC 2007 are evaluated on VOC 2007 test set after trained on VOC 2007 trainval and VOC 2012 trainval . Those for VOC 2012 are evaluated on VOC 2012 test set when trained on VOC 2007 test , VOC2007 trainval , and VOC 2012 trainval sets.

| Method                    | Backbone   | Input size   | mAP (%)   | mAP (%)   |
|---------------------------|------------|--------------|-----------|-----------|
|                           |            |              | VOC 2007  | VOC 2012  |
| StairNet [22]             | VGG-16     | 300 × 300    | 78.8      | 76.4      |
| Faster R-CNN [20]         | VGG-16     | ∼ 1000 × 600 | 73.2      | 70.4      |
| ION [1]                   | VGG-16     | ∼ 1000 × 600 | 76.5      | 76.4      |
| SSD300* [16]              | VGG-16     | 300 × 300    | 77.5      | 75.8      |
| Scarf SSD300 (ours)       | VGG-16     | 300 × 300    | 79.4      | 77.2      |
| SSD512* [16]              | VGG-16     | 512 × 512    | 79.8      | 78.5      |
| Scarf SSD512 (ours)       | VGG-16     | 512 × 512    | 81.6      | 79.8      |
| SSD321 [5]                | ResNet-101 | 321 × 321    | 77.1      | 75.4      |
| SSD513 [5]                | ResNet-101 | 513 × 513    | 80.6      | 79.4      |
| DSSD321 [5]               | ResNet-101 | 321 × 321    | 78.6      | 76.3      |
| DSSD513 [5]               | ResNet-101 | 513 × 513    | 81.5      | 80.0      |
| R-FCN [3]                 | ResNet-101 | ∼ 1000 × 600 | 80.5      | 77.6      |
| Faster R-CNN † [20]       | ResNet-101 | ∼ 833 × 500  | 81.1      | -         |
| Scarf Faster R-CNN (ours) | ResNet-101 | ∼ 833 × 500  | 82.3      | -         |
| RetinaNet500 † [13]       | ResNet-101 | ∼ 833 × 500  | 83.0      | -         |
| Scarf RetinaNet500 (ours) | ResNet-101 | ∼ 833 × 500  | 83.5      | -         |

features. Finally, the output of the matching block is concatenated with the original feature X l to produce the highly semantic feature X ′ l .

we only need to determine this channel dimension. According to our empirical results, we set the channel dimension to 256.

## 4. Experiments

We evaluated the performance of the proposed ScarfNet model by comparing our detector with other multiscale detection methods and conducting an extensive performance analysis to understand the behavior of our architecture.

## 4.1. Experimental Setup

ScarfNet was applied to the baseline object detectors including Faster R-CNN [20], SSD [16], and RetinaNet [13]. In the case of Faster R-CNN and RetinaNet, we replaced the original FPN part with the feature generation by ScarfNet. We compared our method with the baselines, Faster RCNN [20], SSD [16], and RetinaNet [13], as well as the other competitive algorithms including ION [1], R-FCN [3], DSSD [5], and StairNet [22]. We measured the mean average precision (mAP) in % on three widely used datasets for object detection benchmark: PASCAL VOC 2007, PASCAL VOC 2012 [4], and MS COCO [14].

## 4.2. Network Configuration

The advantage of ScarfNet is that there are not many hyperparameters to be determined. Note that the spatial dimensions of the feature maps are readily determined based on those of the baseline detectors. The channel dimensions of the intermediate feature maps are fixed over the pipeline between two matching blocks in ScNet and ArNet. Thus,

## 4.3. Performance Evaluation

## 4.3.1. PASCAL VOC Results

Training on PASCAL VOC 2007 Dataset : The object detectors under consideration were trained with the VOC 2007 trainval and the VOC 2012 trainval sets and evaluated with the VOC 2007 test set. When ScarfNet was combined with the SSD baseline, we trained our model over 120k iterations ( ∼ 240 epochs). We used a learning rate of 10 -3 for the first 80 k iterations, 10 -4 for the next 20 k iterations, and 10 -5 for the last 20 k iterations. The mini-batch size was set to 32 , the momentum for the stochastic gradient descent (SGD) update was set to 0 9 . , and the weight decay was set to 0 0005 . . When our method was combined with the RetinaNet baseline, we used a learning rate of 5 × 10 -3 for the first 60 k iterations, 5 × 10 -4 for the next 20 k iterations, and 5 × 10 -5 for the last 10 k iterations. Other parameters were equally set except for the weight decay of 0 0001 . .

Training on PASCAL VOC 2012 Dataset : The object detectors were trained with the VOC2007 trainval , the VOC 2007 test and the VOC2012 trainval sets and evaluated with the VOC 2012 test set. When our model was applied to the SSD baseline, a total of 200k iterations were run with the same training parameters as in the VOC 2007 case. Note that we used a learning rate of 10 -3 for the first 120 k iterations, 10 -4 for the next 40 k iterations, and 10 -5 for the rest.

Performance Comparison : Table 1 shows the mAP

| Method    | Network                   | Backbone                | Module      | Input size               | fps       | AP        | AP 50     | AP 75     | AP S      | AP M      | AP L      |
|-----------|---------------------------|-------------------------|-------------|--------------------------|-----------|-----------|-----------|-----------|-----------|-----------|-----------|
| two-stage | Faster R-CNN* [20]        | ResNeXt-101 ResNeXt-101 | FPN FPN     | ∼ 833 × 500 ∼ 1333 × 800 | 15.3 10.3 | 37.6 41.9 | 59.1 63.9 | 40.7 45.9 | 19.2 25.0 | 41.8 45.3 | 52.3 52.3 |
| two-stage | Scarf Faster R-CNN (ours) | ResNeXt-101 ResNeXt-101 | SCARF SCARF | ∼ 833 × 500 ∼ 1333 × 800 | 13.8 8.9  | 38.5 42.8 | 59.9 64.3 | 41.5 47.1 | 19.1 26.0 | 42.9 45.7 | 54.1 52.9 |
|           | SSD513 [5] DSSD513 [5]    | ResNet-101 ResNet-101   | - DSSD      | 513 × 513 513 × 513      | 12.5 10.0 | 31.2 33.2 | 50.4 53.3 | 33.3 35.2 | 10.2 13.0 | 34.5 35.4 | 49.8 51.1 |
|           | Scarf SSD513 (ours)       | ResNet-101              | SCARF       | 513 × 513                | 11.5      | 34.5      | 54.1      | 36.3      | 15.1      | 36.1      | 51.6      |
| one-stage | RetinaNet [13]            | ResNet-101 ResNeXt-101  | FPN FPN     | ∼ 833 × 500 ∼ 1333 × 800 | 15.4 9.3  | 34.4 40.8 | 53.1 61.1 | 36.8 44.1 | 14.7      | 38.5 44.2 | 49.1 51.2 |
|           | Scarf RetinaNet (ours)    | ResNet-101 ResNeXt-101  | SCARF       | ∼ 833 × 500 800          |           |           |           |           | 24.1      |           | 49.0      |
|           |                           |                         |             |                          | 13.6      | 35.1      | 53.8      | 37.7      | 15.8      | 38.7      |           |
|           |                           |                         | SCARF       | ∼ 1333 ×                 | 8.4       | 41.6      | 62.0      | 44.6      | 24.5      | 45.5      | 52.3      |

Table 2. Detection results on MSCOCOtest-dev dataset : The symbol '*' indicates our re-implemented results. The expression ' ∼ x × y ' means re-scaling of the input image introduced in the original RetinaNet paper.

|                                    | Method                                      |   mAP |
|------------------------------------|---------------------------------------------|-------|
| Ablation study                     | Basedline (SSD)                             |  77.5 |
| Ablation study                     | biLSTM                                      |  79.1 |
| Ablation study                     | biLSTM + channel-wise attention             |  79.4 |
|                                    | 1x1 conv.-based fusion                      |  78.9 |
| Other fusion strategy              | uniLSTM                                     |  78.7 |
| (used with channel-wise attention) | Top-down structure with lateral connections |  78.6 |

Table 3. Results of ablation study on VOC 2007 test dataset.

|                   |      | Semantic feature generation strategy   | Semantic feature generation strategy   |
|-------------------|------|----------------------------------------|----------------------------------------|
|                   |      | Addition                               | Concat.                                |
| Channel dimension | 64   | 78.3                                   | 78.8                                   |
| Channel dimension | 128  | 78.6                                   | 79.1                                   |
| Channel dimension | 256  | 79.1                                   | 79.4                                   |
| Channel dimension | 512  | 79.5                                   | 79.2                                   |
| Channel dimension | 1024 | 79.4                                   | 79.2                                   |

performance of the object detectors under comparison evaluated on the PASCAL VOC 2007 and 2012 test sets. For both PASCAL 2007 and 2012 cases, the semantic features generated by ScarfNet offer a significant performance gain over the baseline detectors. In the case of PASCAL VOC 2007, the proposed method achieves 1.9%, 1.8%, and 1.2% mAP gains over the SSD300, SSD512, and Faster R-CNN baselines, respectively. The proposed method also outperforms the RetinaNet baseline by 0.5%. Since the RetinaNet baseline employs the top-down structure based on FPN [12], we conclude that the features generated by our method are superior to those generated by FPN. Our object detector also achieves better performance than the other competing algorithms including, StairNet [22], DSSD [5], ION [1], R-FCN [3]. Although the detection accuracy with the PASCAL VOC 2012 dataset is slightly degraded compared to that with PASCAL VOC 2017, the tendency of the detection results observed for PASCAL VOC 2007 remains the same. Note that the proposed detector maintains the performance gain of 1.4% and 1.3% mAP over the SSD300 and SSD500 baselines, respectively.

## 4.3.2. COCO Results

Training : The object detectors under comparison were trained with the MSCOCOtrainval35k split [1] (union of 80k images from the training set and a random 35k subset of images from 40k image val split). The evaluation was performed using the MS COCO test-dev . To train the proposed structure based on RetinaNet [13], we used the learning rate of 10 -2 for the first 60 k iterations, 10 -3 for the

Table 4. mAP (%) performance for various combinations of channel dimension and semantic feature generation strategy when evaluated on VOC 2007 test set

next 20 k iterations, and 10 -5 for the last 20 k iterations. The mini-batch size was set to 16 , the momentum was set to 0 9 . , and the weight decay was set to 0 0001 . .

Performance comparison : Table 2 provides the detection accuracy of the algorithms tested on the MS COCO dataset. The experiment was conducted on various baseline detectors and feature pyramid modules. The proposed Scarf SSD513 and Scarf RetinaNet achieve the significant performance gain over the baselines. Our method beats the Faster R-CNN baseline [20] by 0.9% AP. Note also that the Scarf SSD513 achieves 1.3% performance gain over DSSD513 and the Scarf RetinaNet offers the 0.8% performance gain over the RetinaNet baseline [13].

## 4.4. Performance Analysis

## 4.4.1. Ablation Study

Benefits of biLSTM : It is worth investigating the effectiveness of biLSTM and channel-wise attention for fusing the multi-scale features. Table 3 shows how the performance of our method improves as we add bi-LSTM and channel-wise attention to the baseline one by one. We see that the biLSTM offers the 1.6% AP gain over the baseline and combination of biLSTM and channel-wise attention adds 1.9% AP gain. Table 3 also compares the different fusion strategies including the 1x1 convolutional layer, the top-down structure, and the unidirectional LSTM. Our

Figure 5. Visualization of the feature map : (top row) input image, (middle row) conv4 3 layer feature ( X 1 ) from the feature pyramid in SSD300, (bottom row) conv4 3 layer feature ( X ′ 1 ) generated from ScarfNet. Since the conv4 3 layer feature map X 1 is shallow, it fails to place strong activation properly on the objects. On the contrary, the semantic feature generated by ScarfNet captures the characteristics of the objects well.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00328v2-figure-633da08a-6374-48a1-8f70-a149ea57f4ca.jpg)

biLSTM achieves better performance than the others; thus, parameter sharing, gating units, and bilateral processing of biLSTM effectively control high-level information to reduce the subtle semantic gap between the hierarchical features.

Network Parameter Search We need to determine the channel dimension of the intermediate feature maps. We should also determine whether the element-wise addition or channel-wise concatenation is better in combining the output of ScarfNet with the original feature pyramid. Table 4 shows the evaluation of the performance of our detector for various combinations of channel dimensions (64, 128, 256, 512 versus 1024) and feature combining strategies (element-wise addition versus channel-wise concatenation). According to Table 4, the combination of 512 channel dimensions with element-wise addition leads to the best detection accuracy. However, using 512 channels significantly increases the computational complexity of the entire network; thus, we chose 256 channel dimensions with channelwise concatenation.

## 4.4.2. Feature Visualization

We investigated the effectiveness of ScarfNet via feature visualization. Fig. 5 compares the original pyramidal feature map X 1 of the largest size (middle row) with the semantic feature map X ′ 1 from ScarfNet (bottom row). In order to obtain the heat map, we took the channel with the highest average activation in the spatial domain. Due to the lack of the semantic cues in the original feature map X 1 , it often fails to activate on the objects properly. On the con- trary, the feature map X ′ 1 has strong activation on the entire region occupied by the objects, which would lead to an improvement in the overall detection performance.

## 5. Conclusions

In this study, we developed a deep architecture that generates multiscale features with strong semantics to reliably detect the objects in various sizes. Our ScarfNet method transforms the pyramidal features produced by the baseline detector into evenly abstract features. ScarfNet fuses the pyramidal features using biLSTM and distributes the semantics back to each multiscale feature. We verified through experiments conducted with PASCAL VOC and MS COCO datasets that the proposed ScarfNet method significantly increases the detection performance over the baseline detectors. Our object detector achieves the stateof-the-art performance on the PASCAL VOC and COCO benchmarks.

## References

- [1] Sean Bell, C Lawrence Zitnick, Kavita Bala, and Ross Girshick. Inside-outside net: Detecting objects in context with skip pooling and recurrent neural networks. IEEE conference on Computer Vision and Pattern Recognition (CVPR) , pages 2874-2883, 2016.
- [2] Zhaowei Cai, Quanfu Fan, Rogerio S Feris, and Nuno Vasconcelos. A unified multi-scale deep convolutional neural network for fast object detection. European Conference on Computer Vision (ECCV) , pages 354-370, 2016.
- [3] Jifeng Dai, Yi Li, Kaiming He, and Jian Sun. R-fcn: Object detection via region-based fully convolutional networks.

- Advances in Neural Information Processing Systems (NIPS) , pages 379-387, 2016.
- [4] Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. IEEE International Conference on Computer Vision (ICCV) , 88(2):303-338, 2010.
- [5] Cheng-Yang Fu, Wei Liu, Ananth Ranga, Ambrish Tyagi, and Alexander C Berg. Dssd: Deconvolutional single shot detector. arXiv preprint arXiv:1701.06659 , 2017.
- [6] Ross Girshick. Fast r-cnn. IEEE International Conference on Computer Vision (ICCV) , pages 1440-1448, 2015.
- [7] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. IEEE conference on Computer Vision and Pattern Recognition (CVPR) , 2017.
- [8] Kaiming He, Georgia Gkioxari, Piotr Doll´ ar, and Ross Girshick. Mask r-cnn. pages 2961-2969, 2017.
- [9] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. IEEE conference on Computer Vision and Pattern Recognition (CVPR) , pages 770-778, 2016.
- [10] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. pages 7132-7141, 2018.
- [11] Tao Kong, Anbang Yao, Yurong Chen, and Fuchun Sun. Hypernet: Towards accurate region proposal generation and joint object detection. IEEE conference on Computer Vision and Pattern Recognition (CVPR) , pages 845-853, 2016.
- [12] Tsung-Yi Lin, Piotr Doll´ ar, Ross B Girshick, Kaiming He, Bharath Hariharan, and Serge J Belongie. Feature pyramid networks for object detection. IEEE conference on Computer Vision and Pattern Recognition (CVPR) , 2017.
- [13] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollar. Focal loss for dense object detection. IEEE International Conference on Computer Vision (ICCV) , pages 2999-3007, 2017.
- [14] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Doll´ ar, and C Lawrence Zitnick. Microsoft coco: Common objects in context. European Conference on Computer Vision (ECCV) , pages 740755, 2014.
- [15] Li Liu, Wanli Ouyang, Xiaogang Wang, Paul Fieguth, Jie Chen, Xinwang Liu, and Matti Pietik¨ ainen. Deep learning for generic object detection: A survey. arXiv preprint arXiv:1809.02165 , 2018.
- [16] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. European Conference on Computer Vision (ECCV) , pages 21-37, 2016.
- [17] Constantine P Papageorgiou, Michael Oren, and Tomaso Poggio. A general framework for object detection. pages 555-562, 1998.
- [18] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. IEEE conference on Computer Vision and Pattern Recognition (CVPR) , pages 779-788, 2016.
- [19] Joseph Redmon and Ali Farhadi. Yolo9000: Better, faster, stronger. IEEE conference on Computer Vision and Pattern Recognition (CVPR) , pages 6517-6525, 2017.
- [20] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. Advances in Neural Information Processing Systems (NIPS) , pages 91-99, 2015.
- [21] Abhinav Shrivastava, Rahul Sukthankar, Jitendra Malik, and Abhinav Gupta. Beyond skip connections: Top-down modulation for object detection. arXiv preprint arXiv:1612.06851 , 2016.
- [22] Sanghyun Woo, Soonmin Hwang, and In So Kweon. Stairnet: Top-down semantic aggregation for accurate one shot detection. 2018 IEEE Winter Conference on Applications of Computer Vision (WACV) , pages 1093-1102, 2018.
- [23] SHI Xingjian, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional lstm network: A machine learning approach for precipitation nowcasting. Advances in Neural Information Processing Systems (NIPS) , pages 802-810, 2015.
- [24] Liang Zhang, Guangming Zhu, Lin Mei, Peiyi Shen, Syed Afaq Ali Shah, and Mohammed Bennamoun. Attention in convolutional lstm for gesture recognition. Advances in Neural Information Processing Systems (NIPS) , pages 19571966, 2018.
- [25] Shifeng Zhang, Longyin Wen, Xiao Bian, Zhen Lei, and Stan Z Li. Single-shot refinement neural network for object detection. IEEE conference on Computer Vision and Pattern Recognition (CVPR) , pages 4203-4212, 2018.
Jin Hyeok Yoo Dongsuk Kum Jun Won Choi
ScarfNet: Multi-scale Features with Deeply Fused and Redistributed Semantics for Enhanced Object Detection
Convolutional neural network (CNN) has led to significant progress in object
detection. In order to detect the objects in various sizes, the object
detectors often exploit the hierarchy of the multi-scale feature maps called
feature pyramid, which is readily obtained by the CNN architecture. However,
the performance of these object detectors is limited since the bottom-level
feature maps, which experience fewer convolutional layers, lack the semantic
information needed to capture the characteristics of the small objects. In
order to address such problem, various methods have been proposed to increase
the depth for the bottom-level features used for object detection. While most
approaches are based on the generation of additional features through the
top-down pathway with lateral connections, our approach directly fuses
multi-scale feature maps using bidirectional long short term memory (biLSTM) in
effort to generate deeply fused semantics. Then, the resulting semantic
information is redistributed to the individual pyramidal feature at each scale
through the channel-wise attention model. We integrate our semantic combining
and attentive redistribution feature network (ScarfNet) with baseline object
detectors, i.e., Faster R-CNN, single-shot multibox detector (SSD) and
RetinaNet. Our experiments show that our method outperforms the existing
feature pyramid methods as well as the baseline detectors and achieve the state
of the art performances in the PASCAL VOC and COCO detection benchmarks.