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

Omni-Dimensional Dynamic Convolution

Chao Li, Aojun Zhou, Anbang Yao

Abstract

Standard dynamic convolutions typically apply a single attention scalar to an entire convolutional kernel, limiting their capacity to capture fine-grained features. This paper introduces Omni-Dimensional Dynamic Convolution (ODConv), a novel approach that applies multi-dimensional attention across spatial, input channel, output channel, and kernel index dimensions. By modulating kernels in a more granular fashion, ODConv achieves significant performance gains on ImageNet and MS-COCO with high parameter efficiency, often outperforming multi-kernel baselines with just a single kernel.

Introduction

Standard Convolutional Neural Networks (CNNs) typically use static kernels, where weights remain fixed during inference regardless of the input. To increase model capacity, researchers introduced dynamic convolutions (e.g., CondConv, DyConv), which compute a linear combination of $n$ kernels weighted by input-dependent attention. However, the authors identify a major limitation: existing dynamic convolutions are primarily "one-dimensional," assigning a single attention scalar to an entire convolutional kernel. This overlooks the other three dimensions of the kernel space: the spatial grid ($k \times k$), the input channels ($c_{in}$), and the output channels ($c_{out}$). By treating the kernel as a monolithic block, these methods fail to capture fine-grained contextual cues, often requiring many kernels (high $n$) to be effective, which bloats the number of parameters.

Methods

ODConv leverages a multi-head attention mechanism to learn four complementary types of attention for convolutional kernels in a parallel strategy:

  1. Spatial Attention ($\alpha_{si}$): Assigns different weights to each $k \times k$ spatial location.
  2. Input Channel Attention ($\alpha_{ci}$): Assigns different weights to each input channel.
  3. Filter Attention ($\alpha_{fi}$): Assigns different weights to each convolutional filter (output channel).
  4. Kernel Attention ($\alpha_{wi}$): The traditional scalar weighting for the entire kernel.
Comparison between (a) traditional dynamic convolution (DyConv) and (b) the proposed Omni-Dimensional Dynamic Convolution (ODConv).

The architecture employs a Squeeze-and-Excitation (SE) style module to compute these attentions. Specifically, the input feature map $x$ is first processed via global average pooling (GAP) to produce a channel-wise descriptor. This is followed by a fully connected (FC) layer, a ReLU activation, and another set of four parallel FC layers. Each of these branches is responsible for generating one of the four attention types using either Sigmoid or Softmax functions. These attention values are then applied to the $n$ convolutional kernels $W_1, \dots, W_n$ through element-wise multiplication, effectively modulating the weights before the convolution operation is performed on the input $x$.

Detailed view of (c) filter attention and (d) kernel attention mechanisms within ODConv.

As a drop-in replacement, ODConv can be plugged into existing architectures like ResNet or MobileNetV2 with minimal structural changes.

Key Insights and Ideas

  • The Power of "One": Perhaps the most significant finding is that ODConv with just one single kernel ($n=1$) can often outperform existing dynamic convolution methods that use 4 or 8 kernels. This suggests that multi-dimensional attention is far more effective at feature learning than simply adding more kernels.
  • Complementary Dimensions: Through ablation studies, the authors demonstrate that all four dimensions of attention are complementary. Removing any one of them leads to a drop in performance, proving that spatial, channel, and kernel-wise dynamics all contribute unique value.
  • Weight vs. Feature Modulation: While the famous SENet modulates output features, ODConv modulates the convolutional weights themselves. The authors show that ODConv is superior to standard attention modules because it strengthens the basic feature extraction capability of the convolution operation.

Key Results

ODConv delivers consistent, "solid" accuracy boosts across various backbones:

  • ImageNet Classification: On ImageNet, ODConv improved top-1 accuracy for MobileNetV2 by 3.77% to 5.71% absolute. ResNet18 and ResNet50 saw improvements of 1.86% to 3.72% top-1 accuracy.
  • Object Detection and Segmentation: When used as a backbone for Faster R-CNN or Mask R-CNN on MS-COCO, ODConv provided significant gains (e.g., +1.8% to +1.9% AP on ResNet50), proving its features generalize well beyond classification.
  • Efficiency: ODConv (1x) achieves better accuracy than DyConv (4x) while using substantially fewer parameters, highlighting its superior efficiency.

Limitations and Future Work

Training ODConv is more computationally expensive than static or simpler dynamic convolutions. The backpropagation process through additive kernels weighted by input-dependent attention is time-intensive, with training times roughly 2x to 4x slower than baseline models. Additionally, while parameter-efficient, the multi-head attention mechanism adds extra FLOPs, leading to higher latency on CPUs compared to static models. Future research may focus on optimizing these computational overheads and exploring ODConv's performance in extremely large-scale architectures.

Summary updated

BibTeX
@inproceedings{li2022omni,
  author = {Chao Li and Aojun Zhou and Anbang Yao},
  title = {{Omni-Dimensional Dynamic Convolution}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=DmpCfq6Mg39},
}
Figure