FG-CLIP: Fine-Grained Visual and Textual Alignment
Chunyu Xie, Bin Wang, Fanjing Kong, Jincheng Li, Dawei Liang, Gengshen Zhang, Dawei Leng, Yuhui Yin
TL;DR
FG-CLIP tackles the challenge of fine-grained visual-textual alignment by combining global-long-caption learning with regional grounding and hard negative sampling. It introduces a two-stage training pipeline and the FineHARD dataset (12M images, 40M region boxes, 10M hard negatives) built from recaptioned data and GRIT-based selections, enabling precise region-to-text correspondences. Empirical results across fine-grained understanding, open-vocabulary detection, and retrieval benchmarks demonstrate significant gains over CLIP and several state-of-the-art methods. The work provides a scalable data-and-methodology blueprint for enhancing fine-grained multimodal reasoning and offers resources to the community for further research and application in multimodal perception and localization.
Abstract
Contrastive Language-Image Pre-training (CLIP) excels in multimodal tasks such as image-text retrieval and zero-shot classification but struggles with fine-grained understanding due to its focus on coarse-grained short captions. To address this, we propose Fine-Grained CLIP (FG-CLIP), which enhances fine-grained understanding through three key innovations. First, we leverage large multimodal models to generate 1.6 billion long caption-image pairs for capturing global-level semantic details. Second, a high-quality dataset is constructed with 12 million images and 40 million region-specific bounding boxes aligned with detailed captions to ensure precise, context-rich representations. Third, 10 million hard fine-grained negative samples are incorporated to improve the model's ability to distinguish subtle semantic differences. We construct a comprehensive dataset, termed FineHARD, by integrating high-quality region-specific annotations with hard fine-grained negative samples. Corresponding training methods are meticulously designed for these data. Extensive experiments demonstrate that FG-CLIP outperforms the original CLIP and other state-of-the-art methods across various downstream tasks, including fine-grained understanding, open-vocabulary object detection, image-text retrieval, and general multimodal benchmarks. These results highlight FG-CLIP's effectiveness in capturing fine-grained image details and improving overall model performance. The data, code, and models are available at https://github.com/360CVGroup/FG-CLIP.
