Skip to main content
QUICK 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 Science被引用 9
一句话总结

介绍 DCNv4,一种快速而灵活的可变形卷积算子,移除 softmax 归一化并优化内存访问,在分类、分割和生成任务中实现约 3 倍前向速度的强大性能。

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.

研究动机与目标

  • 激发并提升可变形卷积以实现更实用的速度和可扩展性。
  • 消除 DCN 中冗余的内存访问,以在现代 GPU 上解锁更快的执行速度。
  • 重新评估在 DCN 类算子中的空间聚合是否需要 softmax 归一化。
  • 展示 DCNv4 作为通用的一键替换,在骨干网络和任务中都可使用,包括生成模型。

提出的方法

  • 通过移除空间聚合权重中的 softmax 归一化,将 DCNv3 重新设计为形成无界动态权重。
  • 分析 GPU 内存访问模式,实现一个内存优化的 DCN 内核,在组内跨通道共享偏置/权重以减少读取。
  • 进行向量化内存访问、融合双线性插值和合并内存操作,以最小化 MAC 和延迟。
  • 在 InternImage 中用 DCNv4 替换 DCNv3,创建 FlashInternImage,并在 ImageNet、COCO、ADE20K 和 nuScenes 上评估加速和性能。
  • 通过在 ConvNeXt 和 ViT 中替换注意力和深度卷积为 DCNv4(无需超参数调整),展示其作为通用算子。

实验结果

研究问题

  • RQ1与 DCNv3 相比,移除 softmax 归一化是否提升了可变形卷积的表达能力和收敛速度?
  • RQ2在不改变 FLOPs 的情况下,内存访问优化可以使 DCN 加速到何种程度,DCNv4 相对于稠密注意力和标准卷积的表现如何?
  • RQ3DCNv4 是否能够作为跨骨干网络和下游视觉任务(包括生成模型)的通用一键替换?
  • RQ4将 DCNv4 集成到高性能模型如 FlashInternImage 时,可以实现哪些速度提升和性能增益?
  • RQ5DCNv4 在高分辨率感知任务(如实例分割/语义分割和 3D 检测)中是否有效?

主要发现

  • DCNv4 相较 DCNv3 的前向速度提升超过 3 倍。
  • 移除 softmax 归一化会产生无界动态权重,并提升收敛性和表达能力。
  • 内存访问优化减少冗余读取,在保持或提升准确度的同时实现显著的加速。
  • 在 InternImage 中用 DCNv4 替换 DCNv3 得到 FlashInternImage,速度提升 50-80%,且在无需超参数调整的情况下性能提升。
  • 基于 DCNv4 的 FlashInternImage 在 ImageNet、COCO、ADE20K 和 nuScenes 上提供了最先进或具竞争力的结果,吞吐量高于基线。
  • DCNv4 作为通用算子,在替换 ConvNeXt 和 ViT 的注意力或逐通道卷积时能够提高吞吐量且无需重新调参。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。