{"notes":[{"id":"feature-fusion/detectors","category":"feature-fusion","legacyPath":"feature-fusion/2006-detectors","legacySlug":"2006-detectors","legacyPaths":[],"title":"DetectoRS","subtitle":"Recursive Pyramid","author":"Z. Yuan","paperDate":"2020-06-03","publishedOn":"2025-02-05","paperTitle":"DetectoRS: Detecting Objects with Recursive Feature Pyramid and Switchable Atrous Convolution","paperUrl":"https://arxiv.org/abs/2006.02334","bibliography":{"title":"DetectoRS: Detecting Objects with Recursive Feature Pyramid and Switchable Atrous Convolution","authors":["Siyuan Qiao","Liang-Chieh Chen","Alan Yuille"],"url":"https://arxiv.org/abs/2006.02334","pdfUrl":"https://arxiv.org/pdf/2006.02334","codeUrl":null,"preprint":{"id":"2006.02334","submittedOn":"2020-06-03","url":"https://arxiv.org/abs/2006.02334"},"publication":{"venue":"CVPR","year":2021,"kind":"conference","url":"https://doi.org/10.1109/cvpr46437.2021.01008"},"citation":"@misc{featurefusiondetectors2020,\n  title = {{DetectoRS: Detecting Objects with Recursive Feature Pyramid and Switchable Atrous Convolution}},\n  author = {Siyuan Qiao and Liang-Chieh Chen and Alan Yuille},\n  year = {2020},\n  eprint = {2006.02334},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2006.02334}\n}\n","citationPath":"/content/papers/citations/feature-fusion/detectors.6b46f9ec0a09.bib"},"thumbnail":{"src":"/content/papers/assets/3eef672626e1e4898fc0f046fffe431e0f34a4b314ff13691cb96a6095a7ec9f.jpg","width":1392,"height":594},"locale":"en","path":"/content/papers/en/feature-fusion/detectors.eedc2e0ed06c.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"recursive-feature-pyramid","text":"Recursive Feature Pyramid","depth":3},{"id":"atrous-convolution","text":"Atrous Convolution","depth":3},{"id":"switchable-atrous-convolution","text":"Switchable Atrous Convolution","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"performance-boost-from-rfp-and-sac","text":"Performance Boost from RFP and SAC","depth":3},{"id":"ablation-studies-of-rfp-and-sac","text":"Ablation Studies of RFP and SAC","depth":3},{"id":"comparison-with-other-methods","text":"Comparison with Other Methods","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"feature-fusion/nasfpn","relation":"comparison","topic":"Designing and searching feature pyramids"},{"id":"feature-fusion/bifpn","relation":"comparison","topic":"Designing and searching feature pyramids"}]},{"id":"feature-fusion/nasfpn","category":"feature-fusion","legacyPath":"feature-fusion/1904-nasfpn","legacySlug":"1904-nasfpn","legacyPaths":[],"title":"NAS-FPN","subtitle":"Money Talks","author":"Z. Yuan","paperDate":"2019-04-16","publishedOn":"2024-04-06","paperTitle":"NAS-FPN: Learning Scalable Feature Pyramid Architecture for Object Detection","paperUrl":"https://arxiv.org/abs/1904.07392","bibliography":{"title":"NAS-FPN: Learning Scalable Feature Pyramid Architecture for Object Detection","authors":["Golnaz Ghiasi","Tsung-Yi Lin","Ruoming Pang","Quoc V. Le"],"url":"https://arxiv.org/abs/1904.07392","pdfUrl":"https://arxiv.org/pdf/1904.07392","codeUrl":null,"preprint":{"id":"1904.07392","submittedOn":"2019-04-16","url":"https://arxiv.org/abs/1904.07392"},"publication":{"venue":"CVPR","year":2019,"kind":"conference","url":"https://arxiv.org/abs/1904.07392"},"citation":"@misc{featurefusionnasfpn2019,\n  title = {{NAS-FPN: Learning Scalable Feature Pyramid Architecture for Object Detection}},\n  author = {Golnaz Ghiasi and Tsung-Yi Lin and Ruoming Pang and Quoc V. Le},\n  year = {2019},\n  eprint = {1904.07392},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1904.07392}\n}\n","citationPath":"/content/papers/citations/feature-fusion/nasfpn.5cd688019361.bib"},"thumbnail":{"src":"/content/papers/assets/ec8c271631cd6ce3dc6155e5cc5ac47f4ce9ccec9a507f6c9671a39a7cb697a7.jpg","width":1024,"height":284},"locale":"en","path":"/content/papers/en/feature-fusion/nasfpn.9ece6e983a08.md","headings":[{"id":"what-is-nas","text":"What is NAS?","depth":2},{"id":"advantages","text":"Advantages","depth":3},{"id":"disadvantages","text":"Disadvantages","depth":3},{"id":"more-disadvantages","text":"More Disadvantages","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"nas-fpn-model-design","text":"NAS-FPN Model Design","depth":3},{"id":"merging-cells","text":"Merging Cells","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"feature-fusion/bifpn","relation":"comparison","topic":"Designing and searching feature pyramids"},{"id":"feature-fusion/detectors","relation":"comparison","topic":"Designing and searching feature pyramids"}]},{"id":"feature-fusion/bifpn","category":"feature-fusion","legacyPath":"feature-fusion/1911-bifpn","legacySlug":"1911-bifpn","legacyPaths":[],"title":"EfficientDet","subtitle":"The Power of BiFPN","author":"Z. Yuan","paperDate":"2019-11-20","publishedOn":"2024-08-15","paperTitle":"EfficientDet: Scalable and Efficient Object Detection","paperUrl":"https://arxiv.org/abs/1911.09070","bibliography":{"title":"EfficientDet: Scalable and Efficient Object Detection","authors":["Mingxing Tan","Ruoming Pang","Quoc V. Le"],"url":"https://arxiv.org/abs/1911.09070","pdfUrl":"https://arxiv.org/pdf/1911.09070","codeUrl":null,"preprint":{"id":"1911.09070","submittedOn":"2019-11-20","url":"https://arxiv.org/abs/1911.09070"},"publication":{"venue":"CVPR","year":2020,"kind":"conference","url":"https://arxiv.org/abs/1911.09070"},"citation":"@misc{featurefusionbifpn2019,\n  title = {{EfficientDet: Scalable and Efficient Object Detection}},\n  author = {Mingxing Tan and Ruoming Pang and Quoc V. Le},\n  year = {2019},\n  eprint = {1911.09070},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/1911.09070}\n}\n","citationPath":"/content/papers/citations/feature-fusion/bifpn.dc7bc273ef7a.bib"},"thumbnail":{"src":"/content/papers/assets/27521b31a9957f1549825cc13abf74d8b51136759adf8d801c24f1b64f5c8d2b.jpg","width":1322,"height":500},"locale":"en","path":"/content/papers/en/feature-fusion/bifpn.5b5be9fa4810.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"model-scaling","text":"Model Scaling","depth":3},{"id":"weighted-average","text":"Weighted Average","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"performance-on-coco","text":"Performance on COCO","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"feature-fusion/panet","relation":"background","topic":"Fusing multiscale features for detection"},{"id":"feature-fusion/nasfpn","relation":"comparison","topic":"Designing and searching feature pyramids"},{"id":"feature-fusion/detectors","relation":"comparison","topic":"Designing and searching feature pyramids"}]}],"text":"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?\n\nBut Google Research still wanted to try another angle: could designing the Backbone and Neck together open a new path?\n\n## Defining the Problem\n\nPast major achievements such as PANet, BiFPN, NAS-FPN, etc., have all been improvements based on the FPN, without disrupting the pyramid's fundamental structure.\n\nDetection still has room to improve; the contribution of feature fusion requires targeted experiments.\n\nWe still need richer features to potentially achieve new performance levels on evaluation datasets.\n\n\n> [!TIP]\n> \n> If you're interested in previous studies, you can refer to our past articles:\n> \n> - [**[18.03] PANet: Give Me a Shortcut**](/blog/papers/feature-fusion/panet)\n> - [**[19.04] NAS-FPN: Money Talks**](/blog/papers/feature-fusion/nasfpn)\n> - [**[19.11] EfficientDet: The Power of BiFPN**](/blog/papers/feature-fusion/bifpn)\n\n\n## Solving the Problem\n\n### Recursive Feature Pyramid\n\n\n\n![Paper Figure 2: FPN, feedback connections in RFP and a two-step unrolling](/content/papers/assets/3eef672626e1e4898fc0f046fffe431e0f34a4b314ff13691cb96a6095a7ec9f.jpg)\n\n\n\nRecursive 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.\n\nAs 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.\"\n\nWe 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.\n\nPart (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.\n\n### Atrous Convolution\n\nBefore moving to the next section, let’s cover some background knowledge: What is atrous convolution?\n\nAtrous 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.\n\n\n> [!TIP]\n> \n> Atrous convolution is widely used in feature extraction in the DeepLab series of research.\n\n\nIn 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.\n\nLet’s look at how a 3×3 convolution behaves under different atrous rates:\n\n- **(a) Standard Convolution (Atrous Rate = 1)**\n\n  ```bash\n  X  X  X\n  X  X  X\n  X  X  X\n  ```\n\n  - The convolution kernel covers a small range, suitable for learning local details.\n\n- **(b) Atrous Convolution (Atrous Rate = 2)**\n\n  ```bash\n  X  -  X  -  X\n  -  -  -  -  -\n  X  -  X  -  X\n  -  -  -  -  -\n  X  -  X  -  X\n  ```\n\n  - 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.\n\n- **(c) Atrous Convolution (Atrous Rate = 3)**\n\n  ```bash\n  X  -  -  X  -  -  X\n  -  -  -  -  -  -  -\n  -  -  -  -  -  -  -\n  X  -  -  X  -  -  X\n  -  -  -  -  -  -  -\n  -  -  -  -  -  -  -\n  X  -  -  X  -  -  X\n  ```\n\n  - Each weight is spaced 2 pixels apart, further expanding the receptive field.\n\nBy adjusting the atrous rate $r$, the model can flexibly learn features at different scales, further enhancing its semantic understanding capability.\n\n### Switchable Atrous Convolution\n\nSwitchable 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.\n\nThe SAC architecture is shown in the diagram below, which consists of three main components:\n\n\n\n![Paper Figure 4: SAC branches at two atrous rates, related weights and global context modules](/content/papers/assets/0887a76b910ba832eb8f58e539640d2856d4c28f5c3a56af1549d469e577645f.jpg)\n\n\n\n1. **Pre-Global Context** module on the left\n2. The central **SAC body**\n3. **Post-Global Context** module on the right\n\nLet’s focus on the SAC body design and leave the Global Context parts aside for now:\n\nThe authors represent a convolution operation with weights $w$ and atrous rate $r$ acting on the input $x$ as $\\text{Conv}(x, w, r)$, with output denoted as $y$.\n\nTo transform a standard 3×3 convolution into SAC, the mathematical expression is as follows:\n\n$$\n\\underbrace{\\text{Conv}(x,\\, w,\\, 1)}_{\\text{Standard Convolution}}\n\\;\\;\n\\xrightarrow{\\text{Convert to SAC}}\n\\;\\;\n$$\n\n$$\nS(x)\\,\\cdot\\,\\underbrace{\\text{Conv}(x,\\, w,\\, 1)}_{\\text{Atrous Rate = 1}}\n\\;+\\;\n\\bigl[\\,1 - S(x)\\bigr]\\;\\cdot\\;\\underbrace{\\text{Conv}\\bigl(x,\\; w + \\Delta w,\\; r\\bigr)}_{\\text{Atrous Rate = r}}\n$$\n\nWhere:\n\n- $r$ is the atrous rate hyperparameter of SAC (default $r=3$ in experiments).\n- $w$ comes from the originally pretrained weights.\n- $w + \\Delta w$ represents the weights corresponding to \"atrous rate = $r$\", where $\\Delta w$ is a learnable parameter, initialized to 0.\n- $S(x)$ is the \"switching function,\" which dynamically decides at each pixel whether to prefer the \"standard convolution\" or the \"convolution with a larger atrous rate.\"\n\n\n> [!TIP]\n> \n> In the paper, the implementation of $S(x)$ involves 5×5 average pooling followed by a 1×1 convolution, **without sigmoid**. Its spatial weight map is therefore not constrained to the interval from 0 to 1, enabling the model to dynamically adjust the receptive field size based on spatial location.\n\n\nWhen $S(x)$ approaches 1, the rate-1 branch contributes more; when it approaches 0, the rate-$r$ branch contributes more. Both branches are still computed, and $S(x)$ is not restricted to $[0,1]$, 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.\n\nNext, we face the following issue:\n\n- **How should the added atrous branch use the pretrained weights?**\n\nTo address this, the authors propose a \"weight locking mechanism,\" where both branches share a base weight $w$, and the second learns an additional difference $\\Delta w$, giving $w + \\Delta w$. This approach retains the benefits of pretrained weights while allowing $\\Delta w$ to fine-tune the behavior of the convolution with atrous rate = $r$ during training. “Locking” describes this parameter relationship, not freezing $w$. Independent branch weights would not inherently require training the entire model from scratch.\n\n---\n\nFinally, let's return to the design of the Global Context module. The SAC body is preceded and followed by a lightweight \"Global Context\" module.\n\nThe method is similar to SENet, but the authors make two key modifications:\n\n1. They use only a single 1×1 convolution without additional non-linearity (such as ReLU).\n2. The output features are added to the main features, rather than multiplying as in SENet after a Sigmoid.\n\nThe 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.\n\n\n> [!TIP]\n> \n> Readers unfamiliar with SENet can refer to our previous article:\n> \n> - [**[17.09] SENet: Squeeze and Excitation Network**](/blog/papers/lightweight/senet)\n\n\n## Discussion\n\nHere, we focus on the performance of **RFP (Recursive Feature Pyramid)** and **SAC (Switchable Atrous Convolution)** in experiments.\n\n### Performance Boost from RFP and SAC\n\n\n\n![Paper Table 2: box and mask AP plus FPS for RFP and SAC on COCO val2017](/content/papers/assets/6b03c8657ce11f0ba2b34d72830e8169bc88ab1c471ce265826dd5262b74ab93.jpg)\n\n\n\nThe 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.\n\nIn 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.\n\nAfter 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.\n\n\n> [!TIP]\n> \n> Readers interested in the specifics of HTC can refer to the paper:\n> \n> - [**[19.01] Hybrid Task Cascade for Instance Segmentation**](https://arxiv.org/abs/1901.07518)\n\n\n### Ablation Studies of RFP and SAC\n\n\n\n![Paper Table 3: box AP ablations of RFP and SAC components](/content/papers/assets/880bfcf6c17630a1e42e514353234027246c1544067795176ca548d0f4c471aa.jpg)\n\n\n\nFirst, let's look at the ablation experiments of RFP:\n\n- **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.\n- **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.\n- **RFP - fusion**: This disables the Fusion Module. Without fusion, there is less integration of the recursive feature maps, resulting in reduced performance.\n- **RFP + 3X**: This increases the unrolled step $T$ 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.\n\n---\n\nNext, we look at the ablation experiments of SAC:\n\n- **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.\n- **SAC - DCN - global**: This further removes the Global Context modules before and after SAC without using DCN, which leads to a drop in AP.\n- **SAC - DCN - locking**: This removes the \"locking mechanism\" in SAC and directly uses $\\Delta w$ instead of $w + \\Delta w$ 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.\n- **SAC - DCN + DS (dual-switch)**: This tries to replace the original design with two independent switches, $S1(x)$ and $S2(x)$, instead of $S(x)$ and $1 - S(x)$. The results did not show improvements, indicating that the original complementary-weight design is more effective.\n\n---\n\nThe ablations support RFP and SAC under this HTC/COCO setup. Recursion and multiple branches also add cost, so latency matters alongside AP.\n\n### Comparison with Other Methods\n\n![Paper Table 4: COCO test-dev box AP comparisons and TTA flags](/content/papers/assets/64a5d081f462e191d7767bed2cd0430b3a414fafa8ebafc33540b93f5ede9078.jpg)\n\nThe results in the table are divided into four major categories:\n\n1. One-stage detectors\n2. Multi-stage detectors\n3. HTC\n4. The authors' DetectoRS results\n\nThe models are also categorized by whether **Test-Time Augmentation (TTA)** is used, and the third column indicates which models used TTA.\n\nDifferent 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.\n\nIn 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.\n\n\n> [!TIP]\n> \n> **What is TTA?**\n> \n> TTA (Test-Time Augmentation) refers to \"applying diverse transformations to the input data during testing\" and integrating multiple inference results. It is a common \"trading computation for accuracy\" strategy that improves a model's accuracy and stability during inference without changing the training process, though it comes with added inference time costs.\n\n\n\n> [!NOTE]\n> \n> The paper also includes results from other domains such as instance segmentation and panoptic segmentation. For brevity, these are not listed here, but interested readers can refer to the original paper.\n\n\n## Conclusion\n\nIn this paper, the authors introduced two core concepts: **Recursive Feature Pyramid (RFP)** and **Switchable Atrous Convolution (SAC)**, and combined them into the **DetectoRS** model.\n\nAt 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.\n\nFrom a feature fusion perspective, considering both Backbone and Neck together may be a potential direction for future research.\n","imageSizes":{"/content/papers/assets/3eef672626e1e4898fc0f046fffe431e0f34a4b314ff13691cb96a6095a7ec9f.jpg":{"width":1392,"height":594},"/content/papers/assets/0887a76b910ba832eb8f58e539640d2856d4c28f5c3a56af1549d469e577645f.jpg":{"width":1492,"height":458},"/content/papers/assets/6b03c8657ce11f0ba2b34d72830e8169bc88ab1c471ce265826dd5262b74ab93.jpg":{"width":1680,"height":364},"/content/papers/assets/880bfcf6c17630a1e42e514353234027246c1544067795176ca548d0f4c471aa.jpg":{"width":1008,"height":700},"/content/papers/assets/64a5d081f462e191d7767bed2cd0430b3a414fafa8ebafc33540b93f5ede9078.jpg":{"width":1468,"height":1128}}}
