NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deformable Convolutional Networks

Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, Yichen Wei

Abstract

Convolutional neural networks (CNNs) are inherently limited to model geometric transformations due to the fixed geometric structures in their building modules. In this work, we introduce two new modules to enhance the transformation modeling capability of CNNs, namely, deformable convolution and deformable RoI pooling. Both are based on the idea of augmenting the spatial sampling locations in the modules with additional offsets and learning the offsets from the target tasks, without additional supervision. The new modules can readily replace their plain counterparts in existing CNNs and can be easily trained end-to-end by standard back-propagation, giving rise to deformable convolutional networks. Extensive experiments validate the performance of our approach. For the first time, we show that learning dense spatial transformation in deep CNNs is effective for sophisticated vision tasks such as object detection and semantic segmentation.

Introduction

Standard Convolutional Neural Networks (CNNs) have achieved remarkable success in visual recognition. However, they are fundamentally limited by their fixed geometric structures. A standard convolution operation samples the input feature map at fixed locations, typically a regular grid. This rigidity makes it difficult for CNNs to handle objects with significant geometric variations in scale, pose, or viewpoint.

Traditionally, researchers have addressed these variations through extensive data augmentation (e.g., training on warped or rotated images) or by using hand-crafted invariant modules like max-pooling. However, these methods do not address the underlying limitation: the receptive field of a neuron is fixed regardless of the object's actual shape. If an object is elongated or tilted, a square sampling grid is inherently sub-optimal.

Illustration of sampling locations: (a) regular $3 \times 3$ grid; (b) deformable sampling; (c, d) special cases of scale and rotation.

Proposed Modules

To overcome these limitations, this paper introduces two novel modules that allow networks to adaptively sample input features based on the content itself.

Deformable Convolution

In a deformable convolution, the regular sampling grid is augmented with 2D offsets. These offsets are learned by an additional, parallel convolutional layer that operates on the same input feature map. Because the predicted offsets are typically fractional, bilinear interpolation is employed to sample the input feature map, ensuring the entire module remains differentiable and trainable via standard back-propagation.

The architecture of a deformable convolution layer. A parallel convolution layer learns 2D offsets that augment the regular sampling grid.

This mechanism allows the receptive field to "stretch" or "shrink" to fit the object of interest. For example, the sampling points can spread out to cover a large object or contract to focus on a small one. It effectively generalizes atrous (dilated) convolution by making the dilation factor learnable and spatially varying.

Deformable RoI Pooling

Standard Region of Interest (RoI) pooling divides an object proposal into a fixed grid of bins. Deformable RoI pooling adds learned offsets to each bin, allowing the pooling process to focus on the most informative parts of an object. This is particularly useful when an object does not perfectly fill its bounding box or has a non-rigid structure.

Crucially, these offsets are learned "for free" from the target task (such as detection or segmentation) without requiring additional supervision or manual part labeling.

Experimental Evaluation

The effectiveness of Deformable Convolutional Networks was evaluated on major benchmarks including PASCAL VOC, COCO, and Cityscapes.

  • Object Detection: On the COCO dataset, replacing standard convolutional layers with deformable ones in a ResNet-101 backbone improved Mean Average Precision (mAP) by approximately 3-4%.
  • Semantic Segmentation: On PASCAL VOC, using deformable convolutions in a "DeepLab" architecture increased the mean Intersection over Union (mIoU) from 70.4% to 75.2%.
  • Efficiency: The computational overhead is minimal. For a ResNet-101, the addition of deformable modules increased the parameter count and computation time by less than 1%.

Conclusion

Deformable Convolutional Networks provide a simple yet powerful way to grant CNNs the flexibility to model geometric transformations. By learning dense spatial transformations end-to-end, these networks can adapt their receptive fields to the actual shapes of objects in an image. This approach is particularly effective for tasks requiring precise localization, such as high-precision object detection and semantic segmentation. Future work may extend these concepts to 3D spatial deformations for video analysis or explore multi-scale binning in RoI pooling.

Summary updated

BibTeX
@inproceedings{dai2017deformable,
  author = {Jifeng Dai and Haozhi Qi and Yuwen Xiong and Yi Li and Guodong Zhang and Han Hu and Yichen Wei},
  title = {{Deformable Convolutional Networks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=rJNqYWfdWH},
}
Figure