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

Deformable Kernels: Adapting Effective Receptive Fields for Object Deformation

Hang Gao, Xizhou Zhu, Stephen Lin, Jifeng Dai

TL;DR

Standard Convolutional Neural Networks (CNNs) struggle with objects that are rotated, scaled, or deformed because their "filters" are rigid grids. While previous methods tried to solve this by moving the data sampling points, Deformable Kernels (DKs) take the opposite approach: they leave the data alone and instead "deform" the kernel itself. By learning to resample kernel values at runtime, DKs directly adapt the Effective Receptive Field (ERF) to match an object's shape, leading to better performance in image classification and object detection.

What Problem Does This Paper Address?

In computer vision, objects rarely appear in perfect, upright poses. They tilt, stretch, and shrink. Standard CNNs handle this "geometric variation" inefficiently by using massive amounts of data and model capacity to learn every possible orientation.

Comparison of rigid kernels, deformable convolutions, and deformable kernels under scaling and rotation.

Previous state-of-the-art solutions, like Deformable Convolutions, addressed this by learning to shift the locations where the network "looks" at the input image (adapting the theoretical receptive field). However, the authors of this paper argue that what actually matters is the Effective Receptive Field (ERF)—a measure of how much each input pixel actually contributes to the final output. They suggest that instead of just changing where we sample data, we should change how the kernel responds to that data by adapting the kernel values themselves based on the input.

Methods

The authors introduce Deformable Kernels (DKs). Instead of a fixed $3 \times 3$ grid of weights, a DK learns a set of "offsets" for the kernel coordinates.

  1. Kernel Resampling: For a given input, a small sub-network (the offset generator) predicts how to shift the coordinates of the kernel. The network then uses bilinear interpolation to "sample" new weights from the original kernel space at these shifted coordinates.
  2. Two Flavors:
    • Global DK: Learns one set of offsets for the entire image. This is computationally cheap and helps the network adapt to image-wide traits like global scale.
  3. Local DK: Learns unique offsets for every single patch in the image. This allows the network to adapt to specific, local object deformations (e.g., a bird's wing vs. its body).
Architecture of Global vs. Local Deformable Kernels.
  1. Depthwise Efficiency: To keep the computational cost low, the authors implement these using depthwise convolutions, which separate the spatial filtering from the channel mixing.

Datasets

The researchers evaluated their approach on two industry-standard benchmarks:

  • ImageNet (ILSVRC 2012): Used for large-scale image classification (1,000 classes).
  • COCO (Common Objects in Context): Used for object detection, which requires the model to locate and identify multiple objects of varying sizes and shapes.

Key Insights and Ideas

  • ERF is the Real Target: The paper provides theoretical proof that the Effective Receptive Field is determined by both sampling locations and kernel values. By deforming the kernel, you can tune the ERF more precisely than by just moving sampling points.
  • "Scope Size" Matters: DKs can sample from a "scope" larger than their nominal size. For example, a $3 \times 3$ DK can learn to sample from a $9 \times 9$ area of kernel weights, effectively allowing the network to "zoom in" or "zoom out" on features without adding significant parameters.
  • Scale vs. Semantics: Through t-SNE visualizations, the authors found that DKs naturally learn to group objects by scale (size), whereas other dynamic methods (like Conditional Convolutions) tend to group objects by semantics (category).
  • Orthogonality: Because DKs move the kernel and Deformable Convolutions move the data sampling, the two methods are "orthogonal." Using them together yields even better results, suggesting they solve different parts of the deformation problem.

Key Results

  • Image Classification: On a ResNet-50-DW base model, adding local DKs improved Top-1 accuracy on ImageNet by 1.4% (from 76.7% to 78.1%) with negligible increases in parameters.
  • Object Detection: On the COCO benchmark using Faster R-CNN, DKs provided a +1.8 mAP (mean Average Precision) boost over the baseline.
  • Synergy: When combined with Deformable Convolutions (DCN), the model reached 40.6 mAP on COCO, outperforming either method used in isolation.

Limitations and Future Work

  • Computational Complexity: While the authors used depthwise convolutions to mitigate costs, the "Local DK" variant still requires generating offsets for every spatial location, which can be demanding for very high-resolution inputs.
  • Implementation Constraints: The current implementation of Local DKs does not easily support a very large number of output channels, which the authors noted as a technical hurdle.
  • Future Directions: The authors suggest that exploring the theoretical limits of ERF adaptation could lead to even more efficient "dynamic" operators that change their behavior entirely based on the input image.

Summary updated

BibTeX
@inproceedings{gao2020deformable,
  author = {Hang Gao and Xizhou Zhu and Stephen Lin and Jifeng Dai},
  title = {{Deformable Kernels: Adapting Effective Receptive Fields for Object Deformation}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=wSkICblvbhmR},
}
Figure