Skip to main content
QUICK REVIEW

[Paper Review] Efficient Deformable ConvNets: Rethinking Dynamic and Sparse Operator for Vision Applications

Yuwen Xiong, Zhiqi Li|arXiv (Cornell University)|Jan 11, 2024
Advanced Neural Network ApplicationsComputer Science9 citations
TL;DR

Introduces DCNv4, a fast and flexible deformable convolution operator that removes softmax normalization and optimizes memory access, achieving 3x forward speed and strong performance across classification, segmentation, and generation tasks.

ABSTRACT

We introduce Deformable Convolution v4 (DCNv4), a highly efficient and effective operator designed for a broad spectrum of vision applications. DCNv4 addresses the limitations of its predecessor, DCNv3, with two key enhancements: 1. removing softmax normalization in spatial aggregation to enhance its dynamic property and expressive power and 2. optimizing memory access to minimize redundant operations for speedup. These improvements result in a significantly faster convergence compared to DCNv3 and a substantial increase in processing speed, with DCNv4 achieving more than three times the forward speed. DCNv4 demonstrates exceptional performance across various tasks, including image classification, instance and semantic segmentation, and notably, image generation. When integrated into generative models like U-Net in the latent diffusion model, DCNv4 outperforms its baseline, underscoring its possibility to enhance generative models. In practical applications, replacing DCNv3 with DCNv4 in the InternImage model to create FlashInternImage results in up to 80% speed increase and further performance improvement without further modifications. The advancements in speed and efficiency of DCNv4, combined with its robust performance across diverse vision tasks, show its potential as a foundational building block for future vision models.

Motivation & Objective

  • Motivate and improve deformable convolution for practical speed and scalability.
  • Eliminate redundant memory accesses in DCN to unlock faster execution on modern GPUs.
  • Reassess the necessity of softmax normalization in spatial aggregation for DCN-like operators.
  • Demonstrate DCNv4 as a universal, drop-in replacement across backbones and tasks, including generative models.

Proposed method

  • Redesign DCNv3 by removing softmax normalization in the spatial aggregation weights to form unbounded dynamic weights.
  • Analyze GPU memory access patterns and implement a memory-optimized DCN kernel that shares offsets/weights across channels within a group to reduce reads.
  • Perform vectorized memory access, fused bilinear interpolation, and merged memory operations to minimize MAC and latency.
  • Replace DCNv3 in InternImage with DCNv4 to create FlashInternImage, and evaluate speedups and performance across ImageNet, COCO, ADE20K, and nuScenes.
  • Demonstrate DCNv4 as a universal operator by substituting it for attention and depthwise conv in ConvNeXt and ViT without hyperparameter changes.

Experimental results

Research questions

  • RQ1Does removing softmax normalization improve the expressive power and convergence speed of deformable convolution compared to DCNv3?
  • RQ2How much can memory access optimization accelerate DCN without changing FLOPs, and how does DCNv4 perform relative to dense attention and standard convs?
  • RQ3Can DCNv4 serve as a universal drop-in replacement across backbone architectures and downstream vision tasks, including generative models?
  • RQ4What speedups and performance gains are achievable when integrating DCNv4 into high-performance models like FlashInternImage?
  • RQ5Is DCNv4 effective in high-resolution perception tasks such as instance/semantic segmentation and 3D detection?

Key findings

  • DCNv4 achieves more than 3x forward speed improvement over DCNv3.
  • Removing softmax normalization yields unbounded dynamic weights and enhances convergence and expressivity.
  • Memory-access optimizations reduce redundant reads and enable substantial speedups while maintaining or improving accuracy.
  • Replacing DCNv3 with DCNv4 in InternImage yields FlashInternImage with 50-80% speedup and improved performance without hyperparameter changes.
  • DCNv4-based FlashInternImage delivers state-of-the-art or competitive results across ImageNet, COCO, ADE20K, and nuScenes with higher throughput than baselines.
  • DCNv4 functions effectively as a universal operator, improving throughput when used to replace attention or depthwise conv in ConvNeXt and ViT without retuning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.