R-FCN: Object Detection via Region-based Fully Convolutional Networks cover

R-FCN: Object Detection via Region-based Fully Convolutional Networks

Jifeng Dai
Microsoft Research Asia

Yi Li$^{*}$
Tsinghua University

Kaiming He
Microsoft Research

Jian Sun
Microsoft Research

$^{*}$ This work was done when Yi Li was an intern at Microsoft Research.

Abstract

We present region-based, fully convolutional networks for accurate and efficient object detection. In contrast to previous region-based detectors such as Fast/Faster R-CNN [6, 18] that apply a costly per-region subnetwork hundreds of times, our region-based detector is fully convolutional with almost all computation shared on the entire image. To achieve this goal, we propose position-sensitive score maps to address a dilemma between translation-invariance in image classification and translation-variance in object detection. Our method can thus naturally adopt fully convolutional image classifier backbones, such as the latest Residual Networks (ResNets) [9], for object detection. We show competitive results on the PASCAL VOC datasets (e.g., 83.6% mAP on the 2007 set) with the 101-layer ResNet. Meanwhile, our result is achieved at a test-time speed of 170ms per image, 2.5-20$\times$ faster than the Faster R-CNN counterpart. Code is made publicly available at: https://github.com/daijifeng001/r-fcn.

Executive Summary: R-FCN introduces a fully convolutional framework for object detection that shares nearly all computation across an entire image. Prior region-based detectors such as Fast and Faster R-CNN apply expensive per-region subnetworks hundreds of times after a shared backbone, which slows both training and inference. Newer image classifiers such as ResNet-101 are themselves fully convolutional, yet simply attaching region-of-interest pooling at the end yields poor detection accuracy because classification favors translation invariance while localization requires position sensitivity.

The work set out to resolve this trade-off while preserving end-to-end training and competitive accuracy. The authors attach a bank of position-sensitive score maps to a ResNet backbone and replace standard RoI pooling with a position-sensitive variant that pools each spatial bin from only one dedicated map. A lightweight voting step then produces category scores and bounding-box regressions for each proposed region. All learnable layers remain convolutional and image-wide; the per-region cost is negligible. Experiments used the PASCAL VOC 2007/2012 and MS COCO benchmarks, ResNet-101 pretrained on ImageNet, and region proposals from a Region Proposal Network, with single-scale training and testing at a 600-pixel short side.

The method reaches 79.5 percent mAP on VOC 2007 and 83.6 percent after COCO pre-training, matching or exceeding the accuracy of standard Faster R-CNN with the same backbone. At test time it runs in 0.17 seconds per image on a K40 GPU—2.5 times faster than the comparable Faster R-CNN pipeline and up to 20 times faster than multi-scale or iterative variants. Removing position sensitivity causes training to fail or accuracy to drop sharply (to 61.7 percent mAP). The approach also trains faster, supports online hard-example mining at almost no extra cost, and maintains accuracy when paired with alternative proposal methods such as Selective Search.

These results show that high-capacity image classifiers can be converted into accurate object detectors without sacrificing speed or requiring per-region layers. The gain in throughput directly reduces compute cost and latency for applications that must process many images, while the accuracy parity removes the previous penalty for using fully convolutional backbones. Because the framework is simple and modular, it can immediately incorporate future improvements developed for semantic segmentation or region-based detection.

Further gains are likely from multi-scale testing, context modeling, or iterative box refinement already shown effective elsewhere; the authors leave these orthogonal extensions for later work. The main limitations are reliance on external proposals, saturation of accuracy beyond 101-layer ResNets, and evaluation primarily at a single test scale. Results on both VOC and COCO are consistent and reproducible from public code, giving high confidence in the reported speed-accuracy trade-off under the stated conditions.

1. Introduction

Section Summary: Traditional object detection networks split computation between a shared convolutional backbone and a separate subnetwork that processes each candidate region, a design inherited from older image classifiers. Newer fully convolutional networks like ResNets excel at classification but lose the spatial sensitivity needed for accurate localization when used this way, leading to awkward and slower workarounds. The paper presents R-FCN, which keeps the entire network fully convolutional and shared across the image by generating position-sensitive score maps that encode both object presence and location, then pools these maps only at the final step to deliver competitive accuracy at much higher speed.

A prevalent family [4, 1, 2] of deep networks for object detection can be divided into two subnetworks by the Region-of-Interest (RoI) pooling layer [1]: (i) a shared, "fully convolutional" subnetwork independent of RoIs, and (ii) an RoI-wise subnetwork that does not share computation. This decomposition [4] was historically resulted from the pioneering classification architectures, such as AlexNet [5] and VGG Nets [6], that consist of two subnetworks by design — a convolutional subnetwork ending with a spatial pooling layer, followed by several fully-connected (fc) layers. Thus the (last) spatial pooling layer in image classification networks is naturally turned into the RoI pooling layer in object detection networks [4, 1, 2].

But recent state-of-the-art image classification networks such as Residual Nets (ResNets) [3] and GoogLeNets [7, 8] are by design fully convolutional[^1]. By analogy, it appears natural to use all convolutional layers to construct the shared, convolutional subnetwork in the object detection architecture, leaving the RoI-wise subnetwork no hidden layer. However, as empirically investigated in this work, this naïve solution turns out to have considerably inferior detection accuracy that does not match the network's superior classification accuracy. To remedy this issue, in the ResNet paper [3] the RoI pooling layer of the Faster R-CNN detector [2] is unnaturally inserted between two sets of convolutional layers — this creates a deeper RoI-wise subnetwork that improves accuracy, at the cost of lower speed due to the unshared per-RoI computation.

[^1]: Only the last layer is fully-connected, which is removed and replaced when fine-tuning for object detection.

We argue that the aforementioned unnatural design is caused by a dilemma of increasing translation invariance for image classification vs. respecting translation variance for object detection. On one hand, the image-level classification task favors translation invariance — shift of an object inside an image should be indiscriminative. Thus, deep (fully) convolutional architectures that are as translation-invariant as possible are preferable as evidenced by the leading results on ImageNet classification [3, 7, 8]. On the other hand, the object detection task needs localization representations that are translation-variant to an extent. For example, translation of an object inside a candidate box should produce meaningful responses for describing how good the candidate box overlaps the object. We hypothesize that deeper convolutional layers in an image classification network are less sensitive to translation. To address this dilemma, the ResNet paper's detection pipeline [3] inserts the RoI pooling layer into convolutions — this region-specific operation breaks down translation invariance, and the post-RoI convolutional layers are no longer translation-invariant when evaluated across different regions. However, this design sacrifices training and testing efficiency since it introduces a considerable number of region-wise layers (Table 1).

In this paper, we develop a framework called Region-based Fully Convolutional Network (R-FCN) for object detection. Our network consists of shared, fully convolutional architectures as is the case of FCN [9]. To incorporate translation variance into FCN, we construct a set of position-sensitive score maps by using a bank of specialized convolutional layers as the FCN output. Each of these score maps encodes the position information with respect to a relative spatial position (e.g., "to the left of an object"). On top of this FCN, we append a position-sensitive RoI pooling layer that shepherds information from these score maps, with no weight (convolutional/fc) layers following. The entire architecture is learned end-to-end. All learnable layers are convolutional and shared on the entire image, yet encode spatial information required for object detection. Figure 1 illustrates the key idea and Table 1 compares the methodologies among region-based detectors.

Using the 101-layer Residual Net (ResNet-101) [3] as the backbone, our R-FCN yields competitive results of 83.6% mAP on the PASCAL VOC 2007 set and 82.0% the 2012 set. Meanwhile, our results are achieved at a test-time speed of 170ms per image using ResNet-101, which is 2.5 $\times$ to 20 $\times$ faster than the Faster R-CNN + ResNet-101 counterpart in [3]. These experiments demonstrate that our method manages to address the dilemma between invariance/variance on translation, and fully convolutional image-level classifiers such as ResNets can be effectively converted to fully convolutional object detectors. Code is made publicly available at: https://github.com/daijifeng001/r-fcn.

**Figure 1:** Key idea of **R-FCN** for object detection. In this illustration, there are $k \times k = 3 \times 3$ position-sensitive score maps generated by a fully convolutional network. For each of the $k \times k$ bins in an RoI, pooling is only performed on one of the $k^2$ maps (marked by different colors).

: Table 1: Methodologies of region-based detectors using ResNet-101 [3].

R-CNN [10] Faster R-CNN [11, 3] R-FCN [ours]
depth of shared convolutional subnetwork 0 91 101
depth of RoI-wise subnetwork 101 10 0

**Figure 2:** Overall architecture of R-FCN. A Region Proposal Network (RPN) [2] proposes candidate RoIs, which are then applied on the score maps. All learnable weight layers are convolutional and are computed on the entire image; the per-RoI computational cost is negligible.

2. Our approach

Section Summary: R-FCN follows the standard two-stage object detection pipeline by first generating candidate regions with a Region Proposal Network and then classifying those regions while refining their bounding boxes. All computation is performed through convolutional layers applied to the entire image, culminating in a position-sensitive RoI pooling step that aggregates responses from a bank of specialized score maps. Each score map encodes object evidence for a specific relative position within a grid of bins, allowing the network to learn location-aware features that are averaged to produce category scores and box adjustments with minimal per-region cost.

Overview. Following R-CNN [10], we adopt the popular two-stage object detection strategy [10, 4, 1, 2, 12, 13] that consists of: (i) region proposal, and (ii) region classification. Although methods that do not rely on region proposal do exist (e.g., [14, 15]), region-based systems still possess leading accuracy on several benchmarks [16, 17, 18]. We extract candidate regions by the Region Proposal Network (RPN) [2], which is a fully convolutional architecture in itself. Following [2], we share the features between RPN and R-FCN. Figure 2 shows an overview of the system.

Given the proposal regions (RoIs), the R-FCN architecture is designed to classify the RoIs into object categories and background. In R-FCN, all learnable weight layers are convolutional and are computed on the entire image. The last convolutional layer produces a bank of $k^2$ position-sensitive score maps for each category, and thus has a $k^2(C+1)$-channel output layer with $C$ object categories ($+1$ for background). The bank of $k^2$ score maps correspond to a $k\times k$ spatial grid describing relative positions. For example, with $k\times k = 3\times3$, the 9 score maps encode the cases of top-left, top-center, top-right, ..., bottom-right of an object category.

R-FCN ends with a position-sensitive RoI pooling layer. This layer aggregates the outputs of the last convolutional layer and generates scores for each RoI. Unlike [4, 1], our position-sensitive RoI layer conducts selective pooling, and each of the $k\times k$ bin aggregates responses from only one score map out of the bank of $k\times k$ score maps. With end-to-end training, this RoI layer shepherds the last convolutional layer to learn specialized position-sensitive score maps. Figure 1 illustrates this idea. Figure 3 and Figure 4 visualize an example. The details are introduced as follows.

Backbone architecture. The incarnation of R-FCN in this paper is based on ResNet-101 [3], though other networks [5, 6] are applicable. ResNet-101 has 100 convolutional layers followed by global average pooling and a 1000-class fc layer. We remove the average pooling layer and the fc layer and only use the convolutional layers to compute feature maps. We use the ResNet-101 released by the authors of [3], pre-trained on ImageNet [18]. The last convolutional block in ResNet-101 is 2048-d, and we attach a randomly initialized 1024-d 1 $\times$ 1 convolutional layer for reducing dimension (to be precise, this increases the depth in Table 1 by 1). Then we apply the $k^2(C+1)$-channel convolutional layer to generate score maps, as introduced next.

Position-sensitive score maps & Position-sensitive RoI pooling. To explicitly encode position information into each RoI, we divide each RoI rectangle into $k \times k$ bins by a regular grid. For an RoI rectangle of a size $w \times h$, a bin is of a size $\approx \frac{w}{k} \times \frac{h}{k}$ [4, 1]. In our method, the last convolutional layer is constructed to produce $k^2$ score maps for each category. Inside the $(i, j)$-th bin ($0 \leq i, j \leq k-1$), we define a position-sensitive RoI pooling operation that pools only over the $(i, j)$-th score map:

$ r_c(i, j | \Theta) = \sum_{(x, y)\in \text{bin}(i, j)} z_{i, j, c}(x+x_0, y+y_0 | \Theta)/n.\tag{1} $

Here $r_c(i, j)$ is the pooled response in the $(i, j)$-th bin for the $c$-th category, $z_{i, j, c}$ is one score map out of the $k^2(C+1)$ score maps, $(x_0, y_0)$ denotes the top-left corner of an RoI, $n$ is the number of pixels in the bin, and $\Theta$ denotes all learnable parameters of the network. The $(i, j)$-th bin spans $\lfloor i\frac{w}{k} \rfloor \leq x < \lceil (i+1)\frac{w}{k} \rceil$ and $\lfloor j\frac{h}{k} \rfloor \leq y < \lceil (j+1)\frac{h}{k} \rceil$. The operation of Eqn. (1) is illustrated in Figure 1, where a color represents a pair of $(i, j)$. Eqn. (1) performs average pooling (as we use throughout this paper), but max pooling can be conducted as well.

The $k^2$ position-sensitive scores then vote on the RoI. In this paper we simply vote by averaging the scores, producing a $(C+1)$-dimensional vector for each RoI: $r_c(\Theta)=\sum_{i, j}r_c(i, j | \Theta)$. Then we compute the softmax responses across categories: $s_c(\Theta)=e^{r_c(\Theta)} / \sum_{c'=0}^C e^{r_{c'}(\Theta)}$. They are used for evaluating the cross-entropy loss during training and for ranking the RoIs during inference.

We further address bounding box regression [10, 1] in a similar way. Aside from the above $k^2(C+1)$-d convolutional layer, we append a sibling $4 k^2$-d convolutional layer for bounding box regression. The position-sensitive RoI pooling is performed on this bank of $4 k^2$ maps, producing a $4 k^2$-d vector for each RoI. Then it is aggregated into a $4$-d vector by average voting. This $4$-d vector parameterizes a bounding box as $t=(t_x, t_y, t_w, t_h)$ following the parameterization in [1]. We note that we perform class-agnostic bounding box regression for simplicity, but the class-specific counterpart (i.e., with a $4 k^2 C$-d output layer) is applicable.

The concept of position-sensitive score maps is partially inspired by [19] that develops FCNs for instance-level semantic segmentation. We further introduce the position-sensitive RoI pooling layer that shepherds learning of the score maps for object detection. There is no learnable layer after the RoI layer, enabling nearly cost-free region-wise computation and speeding up both training and inference.

Training. With pre-computed region proposals, it is easy to end-to-end train the R-FCN architecture. Following [1], our loss function defined on each RoI is the summation of the cross-entropy loss and the box regression loss: $L(s, t_{x, y, w, h}) = L_{cls}(s_{c^{}}) + \lambda [c^{}>0] L_{reg}(t, t^*)$. Here $c^{}$ is the RoI's ground-truth label ($c^{}=0$ means background). $L_{cls}(s_{c^{}})=-\log(s_{c^{}})$ is the cross-entropy loss for classification, $L_{reg}$ is the bounding box regression loss as defined in [1], and $t^*$ represents the ground truth box. $[c^{*}>0]$ is an indicator which equals to 1 if the argument is true and 0 otherwise. We set the balance weight $\lambda=1$ as in [1]. We define positive examples as the RoIs that have intersection-over-union (IoU) overlap with a ground-truth box of at least 0.5, and negative otherwise.

It is easy for our method to adopt online hard example mining (OHEM) [13] during training. Our negligible per-RoI computation enables nearly cost-free example mining. Assuming $N$ proposals per image, in the forward pass, we evaluate the loss of all $N$ proposals. Then we sort all RoIs (positive and negative) by loss and select $B$ RoIs that have the highest loss. Backpropagation [20] is performed based on the selected examples. Because our per-RoI computation is negligible, the forward time is nearly not affected by $N$, in contrast to OHEM Fast R-CNN in [13] that may double training time. We provide comprehensive timing statistics in Table 3 in the next section.

We use a weight decay of 0.0005 and a momentum of 0.9. By default we use single-scale training: images are resized such that the scale (shorter side of image) is 600 pixels [1, 2]. Each GPU holds 1 image and selects $B=128$ RoIs for backprop. We train the model with 8 GPUs (so the effective mini-batch size is $8\times$). We fine-tune R-FCN using a learning rate of 0.001 for 20k mini-batches and 0.0001 for 10k mini-batches on VOC. To have R-FCN share features with RPN (Figure 2), we adopt the 4-step alternating training[^2] in [2], alternating between training RPN and training R-FCN.

[^2]: Although joint training [2] is applicable, it is not straightforward to perform example mining jointly.

Inference. As illustrated in Figure 2, the feature maps shared between RPN and R-FCN are computed (on an image with a single scale of 600). Then the RPN part proposes RoIs, on which the R-FCN part evaluates category-wise scores and regresses bounding boxes. During inference we evaluate 300 RoIs as in [2] for fair comparisons. The results are post-processed by non-maximum suppression (NMS) using a threshold of 0.3 IoU [10], as standard practice.

À trous and stride. Our fully convolutional architecture enjoys the benefits of the network modifications that are widely used by FCNs for semantic segmentation [9, 21]. Particularly, we reduce ResNet-101's effective stride from 32 pixels to 16 pixels, increasing the score map resolution. All layers before and on the conv $4$ stage [3] (stride=16) are unchanged; the stride=2 operations in the first conv $5$ block is modified to have stride=1, and all convolutional filters on the conv $5$ stage are modified by the "hole algorithm" [9, 21] ("Algorithme à trous" [22]) to compensate for the reduced stride. For fair comparisons, the RPN is computed on top of the conv $4$ stage (that are shared with R-FCN), as is the case in [3] with Faster R-CNN, so the RPN is not affected by the à trous trick. The following table shows the ablation results of R-FCN ($k\times k = 7\times 7$, no hard example mining). The à trous trick improves mAP by 2.6 points.

R-FCN with ResNet-101 on: conv $4$, stride=16 conv $5$, stride=32 conv $5$, à trous, stride=16
mAP (%) on VOC 07 test 72.5 74.0 76.6

**Figure 3:** Visualization of R-FCN ($k \times k = 3 \times 3$) for the *person* category.

**Figure 4:** Visualization when an RoI does not correctly overlap the object.

Visualization. In Figure 3 and Figure 4 we visualize the position-sensitive score maps learned by R-FCN when $k \times k = 3 \times 3$. These specialized maps are expected to be strongly activated at a specific relative position of an object. For example, the "top-center-sensitive" score map exhibits high scores roughly near the top-center position of an object. If a candidate box precisely overlaps with a true object (Figure 3), most of the $k^2$ bins in the RoI are strongly activated, and their voting leads to a high score. On the contrary, if a candidate box does not correctly overlaps with a true object (Figure 4), some of the $k^2$ bins in the RoI are not activated, and the voting score is low.

3. Related Work

Section Summary: Previous object detection methods such as R-CNN processed proposed image regions separately with deep networks, leading to high computational costs, while later approaches like SPPnet and Fast R-CNN shared convolutional computations across the full image before handling individual regions. Other fully convolutional designs, including OverFeat and the region proposal network in Faster R-CNN, applied sliding windows or anchor-based predictions directly on shared feature maps to detect objects more efficiently. A separate group of detectors relied on fully connected layers to produce holistic detection results for an entire image at once.

R-CNN [10] has demonstrated the effectiveness of using region proposals [23, 24] with deep networks. R-CNN evaluates convolutional networks on cropped and warped regions, and computation is not shared among regions (Table 1). SPPnet [4], Fast R-CNN [1], and Faster R-CNN [2] are "semi-convolutional", in which a convolutional subnetwork performs shared computation on the entire image and another subnetwork evaluates individual regions.

There have been object detectors that can be thought of as "fully convolutional" models. OverFeat [25] detects objects by sliding multi-scale windows on the shared convolutional feature maps; similarly, in Fast R-CNN [1] and [26], sliding windows that replace region proposals are investigated. In these cases, one can recast a sliding window of a single scale as a single convolutional layer. The RPN component in Faster R-CNN [2] is a fully convolutional detector that predicts bounding boxes with respect to reference boxes (anchors) of multiple sizes. The original RPN is class-agnostic in [2], but its class-specific counterpart is applicable (see also [15]) as we evaluate in the following.

Another family of object detectors resort to fully-connected (fc) layers for generating holistic object detection results on an entire image, such as [27, 28, 14].

4. Experiments

Section Summary: In experiments on the PASCAL VOC dataset with 20 object categories, models were trained on combined 2007 and 2012 training data and evaluated by mean average precision on the 2007 test set. Tests of fully convolutional detection strategies using ResNet-101 showed that a naive application of Faster R-CNN or a class-specific region proposal network yielded substantially lower accuracy than the standard Faster R-CNN, while R-FCN reached comparable accuracy around 76-80 percent mAP. The position-sensitive design proved essential for success, and R-FCN delivered this accuracy at far lower computational cost, running several times faster during both training and testing than Faster R-CNN because it avoids expensive per-region processing after pooling.

\begin{tabular}{l|c|c}
method & RoI output size ($k\times k$) & mAP on VOC 07 (\%) \\
\midrule
\midrule
{naïve Faster R-CNN}
 {} & $1\times 1$ & 61.7 \\
 {} & $7\times 7$ & 68.9 \\
\midrule
class-specific RPN & - & 67.6 \\
\midrule
R-FCN \scriptsize(w/o position-sensitivity) & $1\times 1$ & \emph{fail} \\
\midrule
{R-FCN}
 {} & $3\times 3$ & 75.5 \\
 {} & $7\times 7$ & \textbf{76.6} \\
\end{tabular}

4.1 Experiments on PASCAL VOC

We perform experiments on PASCAL VOC [16] that has 20 object categories. We train the models on the union set of VOC 2007 trainval and VOC 2012 trainval ("07+12") following [1], and evaluate on VOC 2007 test set. Object detection accuracy is measured by mean Average Precision (mAP).

Comparisons with Other Fully Convolutional Strategies

Though fully convolutional detectors are available, experiments show that it is nontrivial for them to achieve good accuracy. We investigate the following fully convolutional strategies (or "almost" fully convolutional strategies that have only one classifier fc layer per RoI), using ResNet-101:

Naïve Faster R-CNN. As discussed in the introduction, one may use all convolutional layers in ResNet-101 to compute the shared feature maps, and adopt RoI pooling after the last convolutional layer (after conv $5$). An inexpensive 21-class fc layer is evaluated on each RoI (so this variant is "almost" fully convolutional). The à trous trick is used for fair comparisons.

Class-specific RPN. This RPN is trained following [2], except that the 2-class (object or not) convolutional classifier layer is replaced with a 21-class convolutional classifier layer. For fair comparisons, for this class-specific RPN we use ResNet-101's conv $5$ layers with the à trous trick.

R-FCN without position-sensitivity. By setting $k=1$ we remove the position-sensitivity of the R-FCN. This is equivalent to global pooling within each RoI.

::: {caption="Table 3: Comparisons between Faster R-CNN and R-FCN using ResNet-101. Timing is evaluated on a single Nvidia K40 GPU. With OHEM, N RoIs per image are computed in the forward pass, and 128 samples are selected for backpropagation. 300 RoIs are used for testing following [2]."}

:::

Analysis. Table 2 shows the results. We note that the standard (not naïve) Faster R-CNN in the ResNet paper [3] achieves 76.4% mAP with ResNet-101 (see also Table 3), which inserts the RoI pooling layer between conv $4$ and conv $5$ [3]. As a comparison, the naïve Faster R-CNN (that applies RoI pooling after conv $5$) has a drastically lower mAP of 68.9% (Table 2). This comparison empirically justifies the importance of respecting spatial information by inserting RoI pooling between layers for the Faster R-CNN system. Similar observations are reported in [11].

The class-specific RPN has an mAP of 67.6% (Table 2), about 9 points lower than the standard Faster R-CNN's 76.4%. This comparison is in line with the observations in [1, 26] — in fact, the class-specific RPN is similar to a special form of Fast R-CNN [1] that uses dense sliding windows as proposals, which shows inferior results as reported in [1, 26].

On the other hand, our R-FCN system has significantly better accuracy (Table 2). Its mAP (76.6%) is on par with the standard Faster R-CNN's (76.4%, Table 3). These results indicate that our position-sensitive strategy manages to encode useful spatial information for locating objects, without using any learnable layer after RoI pooling.

The importance of position-sensitivity is further demonstrated by setting $k=1$, for which R-FCN is unable to converge. In this degraded case, no spatial information can be explicitly captured within an RoI. Moreover, we report that naïve Faster R-CNN is able to converge if its RoI pooling output resolution is $1 \times 1$, but the mAP further drops by a large margin to 61.7% (Table 2).

Comparisons with Faster R-CNN Using ResNet-101

Next we compare with standard "Faster R-CNN + ResNet-101" [3] which is the strongest competitor and the top-performer on the PASCAL VOC, MS COCO, and ImageNet benchmarks. We use $k \times k = 7 \times 7$ in the following. Table 3 shows the comparisons. Faster R-CNN evaluates a 10-layer subnetwork for each region to achieve good accuracy, but R-FCN has negligible per-region cost. With 300 RoIs at test time, Faster R-CNN takes 0.42s per image, 2.5 $\times$ slower than our R-FCN that takes 0.17s per image (on a K40 GPU; this number is 0.11s on a Titan X GPU). R-FCN also trains faster than Faster R-CNN. Moreover, hard example mining [13] adds no cost to R-FCN training (Table 3). It is feasible to train R-FCN when mining from 2000 RoIs, in which case Faster R-CNN is 6 $\times$ slower (2.9s vs. 0.46s). But experiments show that mining from a larger set of candidates (e.g., 2000) has no benefit (Table 3). So we use 300 RoIs for both training and inference in other parts of this paper.

Table 3 shows more comparisons. Following the multi-scale training in [4], we resize the image in each training iteration such that the scale is randomly sampled from 400, 500, 600, 700, 800 pixels. We still test a single scale of 600 pixels, so add no test-time cost. The mAP is 80.5%. In addition, we train our model on the MS COCO [17] trainval set and then fine-tune it on the PASCAL VOC set. R-FCN achieves 83.6% mAP (Table 3), close to the "Faster R-CNN +++" system in [3] that uses ResNet-101 as well. We note that our competitive result is obtained at a test speed of 0.17 seconds per image, 20 $\times$ faster than Faster R-CNN +++ that takes 3.36 seconds as it further incorporates iterative box regression, context, and multi-scale testing [3]. These comparisons are also observed on the PASCAL VOC 2012 test set (Table 3).

On the Impact of Depth

The following table shows the R-FCN results using ResNets of different depth [3]. Our detection accuracy increases when the depth is increased from 50 to 101, but gets saturated with a depth of 152.

training data test data ResNet-50 ResNet-101 ResNet-152
R-FCN 07+12 07 77.0 79.5 79.6
R-FCN multi-sc train 07+12 07 78.7 80.5 80.4

On the Impact of Region Proposals

R-FCN can be easily applied with other region proposal methods, such as Selective Search (SS) [23] and Edge Boxes (EB) [24]. The following table shows the results (using ResNet-101) with different proposals. R-FCN performs competitively using SS or EB, showing the generality of our method.

training data test data RPN [2] SS [23] EB [24]
R-FCN 07+12 07 79.5 77.2 77.8

4.2 Experiments on MS COCO

Next we evaluate on the MS COCO dataset [17] that has 80 object categories. Our experiments involve the 80k train set, 40k val set, and 20k test-dev set. We set the learning rate as 0.001 for 90k iterations and 0.0001 for next 30k iterations, with an effective mini-batch size of 8. We extend the alternating training [2] from 4-step to 5-step (i.e., stopping after one more RPN training step), which slightly improves accuracy on this dataset when the features are shared; we also report that 2-step training is sufficient to achieve comparably good accuracy but the features are not shared.

The results are in Table 4. Our single-scale trained R-FCN baseline has a val result of 48.9%/27.6%. This is comparable to the Faster R-CNN baseline (48.4%/27.2%), but ours is 2.5 $\times$ faster testing. It is noteworthy that our method performs better on objects of small sizes (defined by [17]). Our multi-scale trained (yet single-scale tested) R-FCN has a result of 49.1%/27.8% on the val set and 51.5%/29.2% on the test-dev set. Considering COCO's wide range of object scales, we further evaluate a multi-scale testing variant following [3], and use testing scales of 200, 400, 600, 800, 1000. The mAP is 53.2%/31.5%. This result is close to the 1st-place result (Faster R-CNN +++ with ResNet-101, 55.7%/34.9%) in the MS COCO 2015 competition. Nevertheless, our method is simpler and adds no bells and whistles such as context or iterative box regression that were used by [3], and is faster for both training and testing.

::: {caption="Table 4: Comparisons on MS COCO dataset using ResNet-101. The COCO-style AP is evaluated @ IoU ∈[0.5, 0.95]. [email protected] is the PASCAL-style AP evaluated @ IoU =0.5."}

:::

5. Conclusion and Future Work

Section Summary: The authors introduce Region-based Fully Convolutional Networks, or R-FCN, as a straightforward yet effective approach to object detection that builds on existing image classification networks like ResNets. Their method delivers accuracy comparable to Faster R-CNN while running substantially faster in both training and testing. They note that the system was intentionally kept simple so it can readily incorporate future improvements from related research areas.

We presented Region-based Fully Convolutional Networks, a simple but accurate and efficient framework for object detection. Our system naturally adopts the state-of-the-art image classification backbones, such as ResNets, that are by design fully convolutional. Our method achieves accuracy competitive with the Faster R-CNN counterpart, but is much faster during both training and inference.

We intentionally keep the R-FCN system presented in the paper simple. There have been a series of orthogonal extensions of FCNs that were developed for semantic segmentation (e.g., see [21]), as well as extensions of region-based methods for object detection (e.g., see [3, 12, 13]). We expect our system will easily enjoy the benefits of the progress in the field.

**Figure 5:** Curated examples of R-FCN results on the PASCAL VOC 2007 test set (83.6% mAP). The network is ResNet-101, and the training data is 07+12+COCO. A score threshold of 0.6 is used for displaying. The running time per image is 170ms on one Nvidia K40 GPU.

**Figure 5:** Curated examples of R-FCN results on the MS COCO test-dev set (31.5% AP). The network is ResNet-101, and the training data is MS COCO trainval. A score threshold of 0.6 is used for displaying.

::: {caption="Table 5: Detailed detection results on the PASCAL VOC 2007 test set."}

:::

References

Section Summary: This section compiles a numbered list of academic citations that support the document's discussion of computer vision techniques. The entries focus on key papers about convolutional neural networks for tasks like object detection, image classification, and segmentation, along with influential datasets such as ImageNet and PASCAL VOC. They also reference earlier foundational work on neural networks and related algorithms.

[1] R. Girshick. Fast R-CNN. In ICCV, 2015.

[2] S. Ren, K. He, R. Girshick, and J. Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NIPS, 2015.

[3] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In CVPR, 2016.

[4] K. He, X. Zhang, S. Ren, and J. Sun. Spatial pyramid pooling in deep convolutional networks for visual recognition. In ECCV. 2014.

[5] A. Krizhevsky, I. Sutskever, and G. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012.

[6] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.

[7] C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, and A. Rabinovich. Going deeper with convolutions. In CVPR, 2015.

[8] C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna. Rethinking the inception architecture for computer vision. In CVPR, 2016.

[9] J. Long, E. Shelhamer, and T. Darrell. Fully convolutional networks for semantic segmentation. In CVPR, 2015.

[10] R. Girshick, J. Donahue, T. Darrell, and J. Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, 2014.

[11] S. Ren, K. He, R. Girshick, X. Zhang, and J. Sun. Object detection networks on convolutional feature maps. arXiv:1504.06066, 2015.

[12] S. Bell, C. L. Zitnick, K. Bala, and R. Girshick. Inside-outside net: Detecting objects in context with skip pooling and recurrent neural networks. In CVPR, 2016.

[13] A. Shrivastava, A. Gupta, and R. Girshick. Training region-based object detectors with online hard example mining. In CVPR, 2016.

[14] J. Redmon, S. Divvala, R. Girshick, and A. Farhadi. You only look once: Unified, real-time object detection. In CVPR, 2016.

[15] W. Liu, D. Anguelov, D. Erhan, C. Szegedy, and S. Reed. SSD: Single shot multibox detector. arXiv:1512.02325v2, 2015.

[16] M. Everingham, L. Van Gool, C. K. Williams, J. Winn, and A. Zisserman. The PASCAL Visual Object Classes (VOC) Challenge. IJCV, 2010.

[17] T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. Microsoft COCO: Common objects in context. In ECCV, 2014.

[18] O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, A. C. Berg, and L. Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. IJCV, 2015.

[19] J. Dai, K. He, Y. Li, S. Ren, and J. Sun. Instance-sensitive fully convolutional networks. arXiv:1603.08678, 2016.

[20] Y. LeCun, B. Boser, J. S. Denker, D. Henderson, R. E. Howard, W. Hubbard, and L. D. Jackel. Backpropagation applied to handwritten zip code recognition. Neural computation, 1989.

[21] L.-C. Chen, G. Papandreou, I. Kokkinos, K. Murphy, and A. L. Yuille. Semantic image segmentation with deep convolutional nets and fully connected crfs. In ICLR, 2015.

[22] S. Mallat. A wavelet tour of signal processing. Academic press, 1999.

[23] J. R. Uijlings, K. E. van de Sande, T. Gevers, and A. W. Smeulders. Selective search for object recognition. IJCV, 2013.

[24] C. L. Zitnick and P. Dollár. Edge boxes: Locating object proposals from edges. In ECCV, 2014.

[25] P. Sermanet, D. Eigen, X. Zhang, M. Mathieu, R. Fergus, and Y. LeCun. Overfeat: Integrated recognition, localization and detection using convolutional networks. In ICLR, 2014.

[26] K. Lenc and A. Vedaldi. R-CNN minus R. In BMVC, 2015.

[27] C. Szegedy, A. Toshev, and D. Erhan. Deep neural networks for object detection. In NIPS, 2013.

[28] D. Erhan, C. Szegedy, A. Toshev, and D. Anguelov. Scalable object detection using deep neural networks. In CVPR, 2014.