DetectoRS: Detecting Objects with Recursive Feature Pyramid and Switchable Atrous Convolution
- Publication
- CVPR 2021Conference
- First submitted to arXiv
- arXiv:2006.02334
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{featurefusiondetectors2020,
title = {{DetectoRS: Detecting Objects with Recursive Feature Pyramid and Switchable Atrous Convolution}},
author = {Siyuan Qiao and Liang-Chieh Chen and Alan Yuille},
year = {2020},
eprint = {2006.02334},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2006.02334}
}
Does tinkering only with FPN connections feel close to a dead end? PANet, NAS-FPN, and BiFPN have each tried a different route, but how far can we go by rearranging paths inside the pyramid?
But Google Research still wanted to try another angle: could designing the Backbone and Neck together open a new path?
Defining the Problem
Past major achievements such as PANet, BiFPN, NAS-FPN, etc., have all been improvements based on the FPN, without disrupting the pyramid's fundamental structure.
Detection still has room to improve; the contribution of feature fusion requires targeted experiments.
We still need richer features to potentially achieve new performance levels on evaluation datasets.
Solving the Problem
Recursive Feature Pyramid
Recursive Feature Pyramid (RFP) is a new design approach proposed by the authors in this paper. The "R" in RFP stands for Recursive, which means feeding the FPN output "back" into the backbone network.
As shown in the image, part (a) is the traditional FPN architecture, while part (b) is the proposed RFP architecture. When the backbone network receives the feedback features, it will re-extract and fuse richer information, then go through the FPN process again, achieving the effect of "multiple reflections and corrections."
We can recall the design concept of BiFPN: connecting multiple feature pyramids to fuse multi-scale information, with the goal of training a "strong Neck." On the other hand, RFP feeds the feature map back into the backbone network, so the goal here is to train a "strong Backbone." In other words, BiFPN focuses on enhancing the backend feature fusion, while RFP focuses on providing the backbone with multiple "re-look" opportunities to further improve overall feature representation ability.
Part (c) unrolls recursion into two sequential passes. Green nodes show ASPP on the feedback paths; red nodes show fusion. The latter uses sigmoid-derived spatial weights to combine FPN features from the previous and current passes. By default, the backbone stages do not share weights across passes. This is not a residual addition between a feature map and a prediction head.
Atrous Convolution
Before moving to the next section, let’s cover some background knowledge: What is atrous convolution?
Atrous Convolution (also known as dilated convolution) is a technique that inserts holes (dilations) into the convolution kernel. At fixed output dimensions and channel counts, it expands the receptive field without increasing weight count or theoretical multiply-adds. Measured latency can still depend on the implementation. This allows the model to simultaneously focus on "local details" and "global information," which is particularly effective in tasks like semantic segmentation and object detection.
In standard convolution, the range of the convolution kernel is limited by its size, and it cannot capture large-scale information all at once. While stacking multiple layers of convolution can increase the receptive field, it also significantly increases computational costs. Atrous convolution, by inserting "gaps" into the convolution kernel, allows the fixed-size kernel to skip certain pixels, thus expanding the receptive field without extra computational cost.
Let’s look at how a 3×3 convolution behaves under different atrous rates:
-
(a) Standard Convolution (Atrous Rate = 1)
X X X X X X X X X- The convolution kernel covers a small range, suitable for learning local details.
-
(b) Atrous Convolution (Atrous Rate = 2)
X - X - X - - - - - X - X - X - - - - - X - X - X- Each weight is spaced 1 pixel apart (
-represents skipped pixels), making the effective kernel 5×5 rather than 3×3; the side length does not exactly double.
- Each weight is spaced 1 pixel apart (
-
(c) Atrous Convolution (Atrous Rate = 3)
X - - X - - X - - - - - - - - - - - - - - X - - X - - X - - - - - - - - - - - - - - X - - X - - X- Each weight is spaced 2 pixels apart, further expanding the receptive field.
By adjusting the atrous rate , the model can flexibly learn features at different scales, further enhancing its semantic understanding capability.
Switchable Atrous Convolution
Switchable Atrous Convolution (SAC) is another key design proposed by the authors in this paper. It softly combines two branches with related weights at different atrous rates. Both branches are generally computed; this is not a hard choice to execute only one.
The SAC architecture is shown in the diagram below, which consists of three main components:
- Pre-Global Context module on the left
- The central SAC body
- Post-Global Context module on the right
Let’s focus on the SAC body design and leave the Global Context parts aside for now:
The authors represent a convolution operation with weights and atrous rate acting on the input as , with output denoted as .
To transform a standard 3×3 convolution into SAC, the mathematical expression is as follows:
Where:
- is the atrous rate hyperparameter of SAC (default in experiments).
- comes from the originally pretrained weights.
- represents the weights corresponding to "atrous rate = ", where is a learnable parameter, initialized to 0.
- is the "switching function," which dynamically decides at each pixel whether to prefer the "standard convolution" or the "convolution with a larger atrous rate."
When approaches 1, the rate-1 branch contributes more; when it approaches 0, the rate- branch contributes more. Both branches are still computed, and is not restricted to , so this is an intuition for values near those endpoints. The paper's implementation also replaces both branch convolutions with deformable convolutions; SAC - DCN in Table 3 removes that component.
Next, we face the following issue:
- How should the added atrous branch use the pretrained weights?
To address this, the authors propose a "weight locking mechanism," where both branches share a base weight , and the second learns an additional difference , giving . This approach retains the benefits of pretrained weights while allowing to fine-tune the behavior of the convolution with atrous rate = during training. “Locking” describes this parameter relationship, not freezing . Independent branch weights would not inherently require training the entire model from scratch.
Finally, let's return to the design of the Global Context module. The SAC body is preceded and followed by a lightweight "Global Context" module.
The method is similar to SENet, but the authors make two key modifications:
- They use only a single 1×1 convolution without additional non-linearity (such as ReLU).
- The output features are added to the main features, rather than multiplying as in SENet after a Sigmoid.
The process is essentially as shown in the diagram above: first, global average pooling (Global AvgPool) is applied to the input, followed by a 1×1 convolution to scale the channels, and finally, this global information is added back to the original feature map.
Discussion
Here, we focus on the performance of RFP (Recursive Feature Pyramid) and SAC (Switchable Atrous Convolution) in experiments.
Performance Boost from RFP and SAC
The authors conducted experiments on the COCO dataset using HTC + ResNet-50 + FPN as the baseline model, and added RFP and SAC separately, then combined both to form the final DetectoRS model.
In these 12-epoch experiments on COCO val2017, RFP and SAC raise box AP from 42.0 to 46.2 and 46.3: gains of 4.2 and 4.3 AP points. Both raise mask AP from 37.1 to 40.4. Speed falls from the baseline's 4.3 fps to 4.1 and 4.2 fps, respectively. These AP differences are points, not relative percentages.
After combining the two (i.e., DetectoRS), the model achieves 49.0% box AP and 42.1% mask AP, at approximately 3.9 fps on a single NVIDIA TITAN RTX, versus 4.3 fps for the baseline. Whether that speed is acceptable depends on the application.
Ablation Studies of RFP and SAC
First, let's look at the ablation experiments of RFP:
- RFP + sharing: Corresponding backbone stages share weights across the two recursive passes; the default RFP does not share them. Sharing lowers box AP from 46.2 to 45.4 in this ablation. This is sharing across passes, not across stages of different resolution.
- RFP - aspp: This removes the ASPP module used in the feedback connection. The results show that ASPP provides better multi-scale information, and its removal leads to a performance drop.
- RFP - fusion: This disables the Fusion Module. Without fusion, there is less integration of the recursive feature maps, resulting in reduced performance.
- RFP + 3X: This increases the unrolled step from 2 to 3, which improves box AP by 1.3 AP points. This shows that "looking more times (3 times)" indeed enhances feature representation, but it comes with a higher computational cost.
Next, we look at the ablation experiments of SAC:
- SAC - DCN: This represents the case where Deformable Convolution is not used (only atrous convolution). The AP is lower compared to the version with DCN.
- SAC - DCN - global: This further removes the Global Context modules before and after SAC without using DCN, which leads to a drop in AP.
- SAC - DCN - locking: This removes the "locking mechanism" in SAC and directly uses instead of for the second atrous convolution. The results show a drop in AP, confirming that the "locking mechanism" is crucial for retaining pretrained weights while allowing learning differences.
- SAC - DCN + DS (dual-switch): This tries to replace the original design with two independent switches, and , instead of and . The results did not show improvements, indicating that the original complementary-weight design is more effective.
The ablations support RFP and SAC under this HTC/COCO setup. Recursion and multiple branches also add cost, so latency matters alongside AP.
Comparison with Other Methods
The results in the table are divided into four major categories:
- One-stage detectors
- Multi-stage detectors
- HTC
- The authors' DetectoRS results
The models are also categorized by whether Test-Time Augmentation (TTA) is used, and the third column indicates which models used TTA.
Different papers use different TTA programs and scales. The paper's prose reports CBNet box AP rising from 50.7 without TTA to 53.3 with TTA; Table 4 shows only the 53.3 entry. For DetectoRS with a ResNeXt-101-32x4d backbone, TTA adds 1.4 AP points.
In Table 4, DetectoRS with ResNet-50 reaches 51.3 box AP without TTA and 53.0 with it. The ResNeXt-101-32x4d version scores 53.3/54.7 without/with TTA, while ResNeXt-101-64x4d with TTA reaches 55.7. These are COCO test-dev results, distinct from the 12-epoch val2017 ablation above. Backbones, training recipes and TTA costs also vary across papers, so this is not a controlled architecture-only comparison.
Conclusion
In this paper, the authors introduced two core concepts: Recursive Feature Pyramid (RFP) and Switchable Atrous Convolution (SAC), and combined them into the DetectoRS model.
At the "macro level," RFP strengthens features by injecting FPN's output back into the Backbone across various stages. At the "micro level," SAC enables flexible adaptation to different receptive fields, increasing the diversity of feature learning.
From a feature fusion perspective, considering both Backbone and Neck together may be a potential direction for future research.