Skip to main content
QUICK REVIEW

[Paper Review] GridCLIP: One-Stage Object Detection by Grid-Level CLIP Representation Learning

Jiayi Lin, Shaogang Gong|arXiv (Cornell University)|Mar 16, 2023
Multimodal Machine Learning ApplicationsComputer Science6 citations
TL;DR

GridCLIP proposes a one-stage object detector that leverages CLIP's vision-language pretraining by introducing grid-level and image-level alignments to enhance detection performance on long-tail and open-vocabulary datasets. By adapting CLIP's holistic image-text representations to fine-grained grid-level features and distilling generalizable knowledge from image-level representations, GridCLIP achieves performance comparable to two-stage detectors like ViLD while being 43× faster in training and 5× faster in inference.

ABSTRACT

A vision-language foundation model pretrained on very large-scale image-text paired data has the potential to provide generalizable knowledge representation for downstream visual recognition and detection tasks, especially on supplementing the undersampled categories in downstream model training. Recent studies utilizing CLIP for object detection have shown that a two-stage detector design typically outperforms a one-stage detector, while requiring more expensive training resources and longer inference time. In this work, we propose a one-stage detector GridCLIP that narrows its performance gap to those of two-stage detectors, with approximately 43 and 5 times faster than its two-stage counterpart (ViLD) in the training and test process respectively. GridCLIP learns grid-level representations to adapt to the intrinsic principle of one-stage detection learning by expanding the conventional CLIP image-text holistic mapping to a more fine-grained, grid-text alignment. This differs from the region-text mapping in two-stage detectors that apply CLIP directly by treating regions as images. Specifically, GridCLIP performs Grid-level Alignment to adapt the CLIP image-level representations to grid-level representations by aligning to CLIP category representations to learn the annotated (especially frequent) categories. To learn generalizable visual representations of broader categories, especially undersampled ones, we perform Image-level Alignment during training to propagate broad pre-learned categories in the CLIP image encoder from the image-level to the grid-level representations. Experiments show that the learned CLIP-based grid-level representations boost the performance of undersampled (infrequent and novel) categories, reaching comparable detection performance on the LVIS benchmark.

Motivation & Objective

  • To close the performance gap between one-stage and two-stage detectors in object detection using CLIP-based representations.
  • To improve detection of undersampled (infrequent and novel) categories in long-tail datasets without requiring additional image-caption or labeled data.
  • To enable efficient, high-speed one-stage detection by adapting CLIP's holistic image-text mapping to localized grid-level representations.
  • To explore knowledge distillation from CLIP's image-level representations to grid-level features for broader category generalization.

Proposed method

  • GridCLIP introduces Grid-level Alignment to map CLIP's image-level embeddings to grid-level features, aligning them with CLIP text embeddings of base categories.
  • Image-level Alignment is applied during training to transfer generalizable knowledge from CLIP's image-level representations to grid-level features, benefiting both base and novel categories.
  • The method uses CLIP's pre-trained vision and text encoders to generate high-dimensional visual and textual embeddings without additional fine-tuning on detection-specific data.
  • Knowledge distillation is performed from the CLIP image encoder's holistic representation to the detector's grid-level features, enabling open-set detection capability.
  • The model leverages the CLIP-optimized vision encoder (e.g., ViT-B/32 or RN50×64) to extract feature maps that are aligned with text embeddings at both grid and image levels.
  • The detector uses standard one-stage head architecture (e.g., RetinaNet-style) with grid-level features as input for bounding box and category prediction.

Experimental results

Research questions

  • RQ1Can grid-level alignment in a one-stage detector improve detection performance on undersampled categories by adapting CLIP's holistic image-text mapping to localized features?
  • RQ2Does image-level alignment enhance generalization to novel (unseen) categories in open-set detection without additional fine-tuning data?
  • RQ3How does the combination of grid-level and image-level alignment affect performance on long-tail datasets like LVIS v1.0?
  • RQ4To what extent does CLIP's image-level representation capture multiple object categories simultaneously, and how does this support detection?

Key findings

  • GridCLIP achieves detection performance on LVIS v1.0 comparable to two-stage detectors like ViLD, despite being 43× faster in training and 5× faster in inference.
  • Image-level alignment improves mean AP on novel categories by 2.6 points, while preserving performance on base categories.
  • Grid-level alignment significantly boosts performance on the 100 most infrequent categories, outperforming baseline models in close-set detection.
  • ViT-B/32 and RN50×64 CLIP encoders achieve 75% and 60% recall of categories in images (RC@300), respectively, indicating strong multi-category representation capacity.
  • The combination of both alignments enables effective detection of rare and novel categories, mitigating long-tail distribution issues.
  • GridCLIP outperforms existing one-stage CLIP-based detectors in open-set detection, particularly on the most infrequent categories, due to effective knowledge distillation from image-level representations.

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.