Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Deformable Convolutional Networks

Deformable convolution lets CNNs learn where to sample their inputs

  • Problem Standard CNNs read inputs at fixed grid locations and pool over fixed bins, so they cannot follow the shape of objects. Data augmentation and larger models only partly compensate for this fixed geometry.
  • Method Deformable convolutional networks add a learned offset to each sampling point of a convolution. Offsets are predicted from the input feature map by an extra convolution, and the same idea is applied to RoI pooling.
  • Results On COCO test-dev, deformable R-FCN scored 34.5 mAP@[0.5:0.95], up from 30.8 for the plain model with the same ResNet-101 backbone.

Why fixed sampling limits CNNs

CNNs handle geometric variation mostly through heavy data augmentation, large model capacity, and a few hand-built pooling steps. Those sources of invariance are partial, because a convolution reads its input at fixed locations and a pooling layer shrinks resolution by a fixed ratio. RoI pooling works the same way: it splits every region into a fixed set of spatial bins, so it has no built-in way to follow an object's shape.

The authors trace the limitation to this fixed geometry of CNN modules rather than to the amount of training data.

The fixed geometry has a visible cost. Every activation unit in one layer has the same receptive field size, even though different locations may cover objects of different scales. That matters for segmentation with fully convolutional networks, where adaptive scale or receptive field size is needed for fine localization. Object detection faces a similar problem, since current approaches still extract features from primitive bounding boxes, which the authors call clearly sub-optimal for non-rigid objects.

Learned offsets on the sampling grid

The key idea is to let each sampling point of a convolution move by a learned offset that depends on the image, so the kernel reads from an irregular grid. The offsets come from the preceding feature map through an extra convolutional layer, so the deformation depends on the local input features. The authors expected this to be cheap, since the modules add only a small number of parameters and computation for offset learning.

A standard 2D convolution first samples the input over a regular grid R and then sums the samples weighted by w, which gives the output at each location p0. In deformable convolution each grid point gets an offset Δpn, so the sample at p0 + pn + Δpn replaces the sample at p0 + pn: \[ y(p_0)=\sum_{p_n\in R} w(p_n)\, x(p_0+p_n+\Delta p_n) \] Because an offset is usually fractional, the value at a fractional location is read by bilinear interpolation, a weighted sum over integral positions q with the kernel G(q, p).

That kernel is separable into two one-dimensional parts, g(qx, px) times g(qy, py), with g(a, b) = max(0, 1 − |a − b|), and only a few integral positions have a non-zero weight, so the computation stays fast.

The offsets are produced by a convolution over the same input feature map, with the same kernel size and dilation as the layer it modifies. Its output has 2N channels, one 2D offset for each of the N sampling positions, and the output has the same spatial resolution as the input. The offset layer and the output convolution kernels are learned together, with gradients passed back through the bilinear operations.

Offsets for RoI pooling

RoI pooling divides a w × h region into k × k bins and averages the input values in each bin, which gives a fixed-size output for any RoI size. Deformable RoI pooling adds an offset Δpij to each bin position before averaging, and the offset is again sampled through bilinear interpolation.

The offsets are generated in two steps: RoI pooling first produces pooled feature maps, and a fully connected layer then predicts normalized offsets from them. Those normalized offsets are multiplied element-wise by the RoI width and height and by γ, as Δpij = γ · Δp̂ij ∘ (w, h), with γ set to 0.1. The authors normalize by RoI size so that the offset learning does not depend on how large the RoI is.

Position-sensitive RoI pooling works differently, because a convolution first turns the input into k² score maps for each class, and each bin pools from its own map. In the deformable PS version, the offsets come from a convolution at full spatial resolution, and PS RoI pooling is applied to these offset fields for each RoI and each class.

Plugging the modules into backbones and detectors

The authors use ResNet-101 and a modified Inception-ResNet, called Aligned-Inception-ResNet, as feature extractors, both pre-trained on ImageNet. The last convolutional block's stride is reduced from 2 to 1, so the effective stride drops from 32 to 16 pixels, and the dilation of its filters is changed from 1 to 2 to compensate. Deformable convolution is applied to the last few convolutional layers, and the authors settled on 3 layers as a trade-off across tasks.

The added offset layers start from zero weights, so the network begins as the plain model and the offsets grow only as training requires. Their learning rate is β times the rate of the existing layers, with β set to 1 by default and to 0.01 for the fc layer in Faster R-CNN.

The task-specific heads sit on top of this feature map: DeepLab adds a 1 × 1 convolution with a softmax, and the category-aware RPN replaces the 2-class classifier with a (C+1)-class classifier. In both detectors the RoI pooling layer can optionally be swapped for its deformable version.

On PASCAL VOC, training runs for 30k SGD iterations, and on COCO for 240k iterations, on 8 GPUs. For the VOC ablations the authors use pre-trained, fixed RPN proposals without feature sharing, which keeps the comparisons controlled.

How many layers to make deformable

With deformable convolution in the last three 3 × 3 layers of ResNet-101, DeepLab's mIoU@V rose from 69.7 to 75.2. Class-aware RPN's mAP@0.7 rose from 44.9 to 57.2 with the same three layers. The gain for R-FCN was smaller, with mAP@0.5 rising from 80.0 to 81.4 and mAP@0.7 from 61.8 to 64.7 on VOC 2007 test.

Most of the improvement comes from the first few deformable layers, and the curve flattens after that. For DeepLab the gain saturates at 3 layers, and the other tasks saturate at 6, so the authors kept 3 for the remaining experiments. Six layers gave DeepLab 74.8 mIoU@V, slightly below the 75.2 with three layers, so more deformable layers do not always help.

Do learned receptive fields follow objects?

They applied R-FCN with three deformable layers to VOC 2007 test images and grouped the filters by ground truth box size and by where the filter center lies. Objects are split into small, medium and large by bounding box area, with small below 962 pixels and large above 2242 pixels.

In res5c, the effective dilation was 5.3 ± 3.3 for small objects, 5.8 ± 3.5 for medium ones and 8.4 ± 4.5 for large ones, and 6.2 ± 3.0 for background. The same ordering holds in res5b and res5a, so larger objects are matched with larger receptive fields. Background filters fall between the medium and large values, which the authors read as a sign that a fairly large receptive field is needed to recognize background.

Against atrous dilation and deformable RoI pooling

The default ResNet-101 uses atrous convolution with dilation 2 in the last three 3 × 3 layers, and the authors tried dilations 4, 6 and 8 to see whether a larger receptive field alone would close the gap. For DeepLab, dilation 6 reached 73.6 mIoU@V, compared to 75.3 with deformable convolution. For R-FCN, dilation 6 gave 80.2 mAP@0.5 and 63.5 mAP@0.7, compared to 81.4 and 64.7 with deformable convolution.

Larger dilations help every task, but the best dilation differs by task, which the authors take as evidence that the receptive field should be learned rather than set by hand. Deformable convolution gave the best accuracy in this comparison, so the authors conclude that adaptive filter deformation is effective and necessary. Deformable RoI pooling alone raised R-FCN's mAP@0.7 from 61.8 to 65.0, and combining it with deformable convolution gave 82.6 mAP@0.5 and 68.5 mAP@0.7.

COCO detection gains

With ResNet-101, Faster R-CNN rose from 29.4 to 33.1 mAP@[0.5:0.95] on COCO test-dev when made deformable. R-FCN rose from 30.8 to 34.5 with the same backbone. The authors report these as relative gains of about 13% and 12%, which they count as the same kind of improvement across detectors.

With Aligned-Inception-ResNet, R-FCN rose from 32.9 to 36.1, and Faster R-CNN rose from 30.8 to 34.1. So the deformable modules still help after the backbone itself gets stronger.

Overhead in parameters and runtime

These timings were measured on an Intel E5-2650 v2 CPU with an Nvidia K40 GPU, so they are not comparable to other hardware. The authors conclude that the gains come from modeling geometric transformations rather than from extra parameters.

How the approach differs from earlier learned transformations

Spatial Transform Networks learn one global parametric transformation, such as an affine map, and warp the feature map with it. Deformable convolution instead samples locally and densely and then applies a weighted summation, which Spatial Transform Networks lack. Active Convolution also learns sampling offsets, but its offsets are shared across spatial locations and are static parameters.

The offsets in deformable convolution are dynamic outputs that change with each image location, which the authors argue is needed for dense prediction.

The authors also describe deformable convolution as a generalization of atrous convolution, since the special cases in their figure cover scale, aspect ratio and rotation. Deformable RoI pooling is similar in spirit to deformable part models, because both learn the deformation of object parts, but it considers no spatial relations between parts.

Limitations

The COCO gains are reported on test-dev with ResNet-101 and Aligned-Inception-ResNet backbones only. The layer-count and dilation comparisons are on VOC, and the effective dilation analysis uses only R-FCN on VOC 2007 test images. The simplified Faster R-CNN head that the authors use is said to slightly lower accuracy, so the baseline numbers are conservative for that detector.

The authors leave open whether the gains carry over to tasks beyond the segmentation and detection benchmarks reported here.

Paper info

Authors
Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, Yichen Wei
Venue
arXiv · Preprint
First published
2017-3-17
Added
2026-11-11
Updated
2017-6-5
Version
v3
arXiv
1703.06211
Category
cs.CV
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, Yichen Wei (2017). Deformable Convolutional Networks. arXiv:1703.06211v3. https://arxiv.org/abs/1703.06211v3

BibTeX
@misc{dai2017deformable,
  title = {{Deformable Convolutional Networks}},
  author = {Jifeng Dai and Haozhi Qi and Yuwen Xiong and Yi Li and Guodong Zhang and Han Hu and Yichen Wei},
  year = {2017},
  eprint = {1703.06211},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.06211v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up