Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Language-Image Pre-Training with Knowledge Graphs

Xuran Pan, Tianzhu Ye|arXiv (Cornell University)|Oct 17, 2022
Multimodal Machine Learning ApplicationsComputer Science23 citations
TL;DR

Knowledge-CLIP injects multi-modal knowledge graphs into CLIP, adds a multi-modal encoder and new loss terms to align vision and language with semantic relations, improving downstream vision-language tasks.

ABSTRACT

Recent years have witnessed the fast development of large-scale pre-training frameworks that can extract multi-modal representations in a unified form and achieve promising performances when transferred to downstream tasks. Nevertheless, existing approaches mainly focus on pre-training with simple image-text pairs, while neglecting the semantic connections between concepts from different modalities. In this paper, we propose a knowledge-based pre-training framework, dubbed Knowledge-CLIP, which injects semantic information into the widely used CLIP model. Through introducing knowledge-based objectives in the pre-training process and utilizing different types of knowledge graphs as training data, our model can semantically align the representations in vision and language with higher quality, and enhance the reasoning ability across scenarios and modalities. Extensive experiments on various vision-language downstream tasks demonstrate the effectiveness of Knowledge-CLIP compared with the original CLIP and competitive baselines.

Motivation & Objective

  • Motivate the limitations of CLIP in semantic understanding and cross-modal reasoning.
  • Propose a knowledge-augmented pre-training framework that incorporates multi-modal, scene, and language graphs.
  • Enable efficient training via continuous learning from CLIP weights while injecting graph-based knowledge.

Proposed method

  • Use two encoders (image and text) plus a multi-modal transformer to fuse triplet-based knowledge graph data.
  • Represent knowledge as triplets (h, r, t) drawn from multi-modal, scene, and language KG datasets.
  • Introduce triplet-based (E2E, E2R) and graph-based (G2E) losses to model semantic relations and graph structure.
  • Retain a knowledge distillation loss to mitigate forgetting by aligning with the original CLIP outputs.
  • Pre-train on VisualSem, Visual Genome, ConceptNet and image-text datasets COCO Caption and CC3M; initialize from CLIP weights.

Experimental results

Research questions

  • RQ1Can knowledge graphs improve cross-modal semantic alignment beyond what CLIP achieves with image-text pairs?
  • RQ2Do triplet-based and graph-based objectives jointly contribute to better vision-language understanding?
  • RQ3Does continuous learning with CLIP initialization prevent forgetting while injecting knowledge?
  • RQ4How does Knowledge-CLIP perform on retrieval, VQA/SNLI-VE, ImageNet, and GLUE compared to CLIP and baselines?

Key findings

  • Knowledge-CLIP improves over CLIP on image-text retrieval tasks (Flickr30K and COCO Caption) and multi-modal VQA tasks.
  • It also yields competitive or superior results on VQA/SNLI-VE and ImageNet/GLUE benchmarks, especially in tasks requiring semantic reasoning.
  • Ablations show E2E, E2R, and G2E losses each contribute to gains, and the KD loss is vital for preventing forgetting.
  • Continuous learning with CLIP initialization yields better performance than naive CLIP fine-tuning with more knowledge data alone.

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.