InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutions

Wenhai Wang, Jifeng Dai, Zhe Chen, Zhenhang Huang, Zhiqi Li, Xizhou Zhu, Xiaowei Hu, Tong Lu, Lewei Lu, Hongsheng Li, Xiaogang Wang, Yu Qiao

Abstract

In recent years, Vision Transformers (ViTs) have dominated the landscape of large-scale computer vision, largely due to their ability to capture long-range dependencies and perform adaptive spatial aggregation. This paper introduces InternImage, a new family of large-scale vision foundation models that demonstrates convolutional neural networks (CNNs) can scale just as effectively as ViTs. By utilizing an upgraded core operator, Deformable Convolution v3 (DCNv3), InternImage achieves record-breaking performance on major benchmarks like COCO and ADE20K, reaching up to 1 billion parameters while maintaining superior efficiency.

Introduction

The success of ViTs is attributed to two key properties: long-range dependencies and adaptive spatial aggregation. Traditional CNNs typically suffer from a "strict inductive bias" characterized by fixed-grid sampling and static weights, which limits their scalability. While recent attempts to bridge this gap involved using large dense kernels (e.g., 31x31), these methods are computationally expensive. InternImage addresses these challenges by adopting a dynamic sparse kernel approach, providing the benefits of global self-attention without its massive overhead.

Methods: The DCNv3 Operator

The heart of InternImage is the DCNv3 operator. Unlike standard convolutions that sample from a rigid grid, deformable convolutions shift their sampling points to focus on relevant image regions. This provides a massive effective receptive field with a fraction of the computation required by dense kernels.

Comparison of spatial aggregation mechanisms. InternImage uses dynamic sparse kernels (d) to achieve long-range dependence and adaptive aggregation efficiently.

To make DCNv3 suitable for billion-parameter models, the authors introduced three critical enhancements:

  1. Shared Weights: Splitting weights into depth-wise and point-wise parts to significantly reduce parameter count and memory complexity.
  2. Multi-group Mechanism: Dividing spatial aggregation into multiple groups, similar to multi-head attention, allowing the network to learn diverse spatial patterns simultaneously.
  3. Softmax Normalization: Replacing traditional sigmoid with softmax normalization to stabilize the sum of modulation scalars and prevent gradient explosions during large-scale training.

The overall architecture follows a hierarchical 4-stage design, integrating modern components like Layer Normalization (LN) and Feed-Forward Networks (FFN) into a "Transformer-flavored" CNN.

Experimental Results

InternImage was evaluated across a wide range of tasks, including ImageNet-1K classification, COCO object detection, and ADE20K semantic segmentation. The flagship model, InternImage-H, was pre-trained on a massive 427M joint dataset combining Laion-400M, YFCC-15M, and CC12M.

COCO object detection performance vs. model parameters. InternImage-H achieves state-of-the-art results with significantly fewer parameters than competing models.

Key results include:

  • Object Detection: InternImage-H achieved 65.4 mAP on COCO test-dev, outperforming the previous leader (SwinV2-G) while using 27% fewer parameters.
  • Semantic Segmentation: It reached a record 62.9 mIoU on ADE20K.
  • Classification: The model reached a top-1 accuracy of 89.6% on ImageNet-1K.
  • Efficiency: At the 1-billion parameter scale, InternImage demonstrated better GPU memory efficiency and faster inference throughput than comparable ViT counterparts at high resolutions.

Conclusion

InternImage proves that CNNs are not obsolete for large-scale vision. By combining the local inductive bias of convolutions with the adaptive, long-range capabilities of modern architectures, InternImage sets a new standard for vision foundation models. While future work remains in optimizing hardware-level latency for deformable operators, InternImage provides a highly efficient and powerful alternative to the Transformer-dominated status quo.

Summary updated

BibTeX
@inproceedings{wang2022internimage,
  author = {Wenhai Wang and Jifeng Dai and Zhe Chen and Zhenhang Huang and Zhiqi Li and Xizhou Zhu and Xiaowei Hu and Tong Lu and Lewei Lu and Hongsheng Li and Xiaogang Wang and Yu Qiao},
  title = {{InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutions}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure