FMDConv: Fast multi-attention dynamic convolution via speed-accuracy trade-off

Tianyu Zhang, Fan Wan, Haoran Duan, Kevin W. Tong, Jingjing Deng, Yang LongKnowledge-Based Systems 2025

Abstract

Dynamic convolution has emerged as a powerful technique to enhance the representational capacity of Convolutional Neural Networks (CNNs) by allowing kernels to adapt to input features. However, the computational cost of these methods often hinders deployment on resource-constrained devices. This paper introduces FMDConv, a lightweight dynamic convolution block that strategically integrates input, temperature-degraded kernel, and output attention. By omitting computationally expensive spatial and filter attentions, FMDConv achieves a significant reduction in FLOPs (up to 49.8%) while maintaining or exceeding the accuracy of state-of-the-art models like ODConv.

Introduction

The evolution of CNNs has seen a transition from static architectures to dynamic ones that adapt to input data. While methods like Omni-Dimensional Dynamic Convolution (ODConv) provide high accuracy, they often suffer from high latency and memory overhead, making them difficult to deploy on edge devices.

Comparison of various CNN architectures and dynamic convolution methods.

As shown in the table above, existing methods often face a trade-off between complexity and performance. FMDConv addresses this by focusing on the most impactful attention mechanisms to optimize for real-world deployment efficiency.

Methodology

FMDConv simplifies the dynamic convolution process into three optimized stages, focusing on efficiency without sacrificing the model's ability to learn complex features.

Overview of the FMDConv architecture featuring multi-attention mechanisms.

Multi-Attention Mechanisms

  1. Input Attention: This stage enhances discriminative regions of the input feature map before convolution, ensuring the model focuses on relevant spatial information.
  2. Temperature-Degraded (TD) Kernel Attention: To prevent the model from converging prematurely on a single kernel, a temperature parameter ($T$) is introduced. Starting at a high value (e.g., 40), it decays to 1 during training, encouraging uniform exploration of kernels in early stages.
  3. Output Attention: This final stage refines the output features by emphasizing class-relevant regions, improving the final classification performance.

Efficiency Metrics

Beyond standard FLOPs and Top-1 accuracy, the authors employ metrics borrowed from cognitive psychology to better quantify the speed-accuracy trade-off:

  • Inverse Efficiency Score (IES): The ratio of training time per epoch to Top-1 accuracy (lower is better).
  • Rate-Correct Score (RCS): The number of correct classifications per unit of time (higher is better).

Experimental Results

The framework was validated on CIFAR-10/100 and ImageNet (ILSVRC 2012) benchmarks.

Performance on ImageNet

Using ResNet-18 as a backbone, FMDConv achieved 73.21% Top-1 accuracy, outperforming ODConv (73.09%) while being nearly twice as fast to train (620s vs. 1236s per epoch). On ResNet-18 and ResNet-50, FMDConv reduced FLOPs by 49.8% and 42.2%, respectively.

MobileNet Efficiency

When integrated into MobileNetV2, FMDConv achieved the highest Rate-Correct Score (10298.31), demonstrating its suitability for lightweight architectures designed for edge devices.

Conclusion

FMDConv demonstrates that "less is more" in the context of dynamic attention. By pruning redundant spatial and filter attentions and introducing a temperature-degraded kernel selection strategy, the model achieves superior efficiency. Future work will explore the application of FMDConv to dense prediction tasks like object detection and semantic segmentation, where spatial information may play a more critical role.

Summary updated

BibTeX
@article{zhang2025fmdconv,
  author = {Tianyu Zhang and Fan Wan and Haoran Duan and Kevin W. Tong and Jingjing Deng and Yang Long},
  title = {{FMDConv: Fast multi-attention dynamic convolution via speed-accuracy trade-off}},
  journal = {Knowledge-Based Systems},
  year = {2025},
}
Figure