Knowledge Aware Semantic Concept Expansion for Image-Text Matching

Botian Shi, Lei Ji, Pan Lu, Zhendong Niu, Nan Duan

TL;DR

This paper introduces a novel framework for image-text matching that uses a Scene Concept Graph (SCG) to "expand" the semantic labels detected in an image. By leveraging common-sense knowledge about which objects typically appear together (e.g., a "laptop" often implies a "keyboard"), the model bridges the semantic gap even when specific objects are occluded or belong to the "long-tail" of rare categories.

The Semantic Gap in Image-Text Matching

Image-text matching—the task of finding the right image for a given caption or vice versa—is a cornerstone of cross-modal AI. While deep learning has improved this significantly, a major hurdle remains: the semantic gap.

Standard models often rely on global visual features or a small, fixed vocabulary of object detectors. However, these detectors frequently fail in two scenarios:

  1. Long-tail concepts: Rare objects (like a "calico" cat) that aren't in the detector's training set.
  2. Occlusion: Objects that are present but hidden (like a "keyboard" underneath a cat sitting on a laptop).
Illustration of the semantic gap: a generic 'cat' and 'laptop' detection can be expanded into specific concepts like 'calico' and 'keyboard' using a Scene Concept Graph.

If a user searches for "a calico cat on a keyboard," and the detector only sees "cat" and "laptop," the matching score will be low. The authors argue that models need "imagination" powered by external common-sense knowledge to fill in these missing semantic pieces.

Proposed Methodology

The authors propose a multi-stage pipeline to enrich image representations by integrating external knowledge into the visual embedding process.

The proposed multi-stage architecture for knowledge-aware image-text matching.
  1. Scene Concept Graph (SCG) Construction: Using the Visual Genome dataset, they aggregated millions of human-labeled scene graphs to find frequently co-occurring concept pairs (e.g., sky and cloud, tree and leaves).
  2. Concept Detection & Expansion: An initial multi-label classifier detects a base set of concepts. The SCG then acts as a knowledge base to expand these into a larger set of candidate concepts.
  3. Concept Prediction Module: To prevent noise, this module uses the global image feature to filter the expanded list, predicting which concepts are actually likely to be present or relevant to the specific scene.
  4. Gated Fusion: Instead of simple concatenation, a gated mechanism intelligently fuses visual embeddings with expanded semantic embeddings. This allows the model to decide how much weight to give to the "seen" pixels versus the "inferred" concepts.
  5. Joint Learning: The entire system is trained using a triplet loss with neighborhood constraints, ensuring that related images and texts are pulled closer together in the embedding space.

Experimental Setup

  • Visual Genome: Used to build the SCG (2.3M scene graphs) and define the 7,699-concept vocabulary.
  • MSCOCO (1K and 5K splits): A standard large-scale benchmark for image-text matching.
  • Flickr30K: A dataset of 31,000 images with five captions each, used for cross-validation and testing.

Key Insights

  • Common Sense as a Prior: We don't need a perfect detector for every object if we understand the context of a scene. Common sense provides a powerful prior that can recover "missing" information.
  • Expansion vs. Noise: Simply adding every related concept creates noise. The Concept Prediction Module is the critical "sanity check" that ensures the expansion stays grounded in the actual visual evidence.
  • The Vocabulary Sweet Spot: Interestingly, the authors found that a detector vocabulary of around 512 concepts performed better than much larger ones (1024+). This suggests that smaller, more accurate detectors provide a cleaner "seed" for the expansion process.

Results and Performance

The model achieved state-of-the-art (SOTA) results at the time of publication on both MSCOCO and Flickr30K:

  • MSCOCO 1K (Sentence Retrieval): Achieved a Recall@1 of 76.6%, significantly outperforming the previous SOTA (SCAN at 72.7%).
  • Flickr30K (Sentence Retrieval): Achieved a Recall@1 of 71.8%, compared to SCAN's 67.4%.
  • Qualitative Success: The model successfully matched queries containing long-tail terms like "calico" or "tabby" even when the base detector only recognized a generic "cat."

Limitations and Future Directions

  • Pairwise vs. Structural Knowledge: The current SCG relies on co-occurrence pairs. Future work could use full triplets (Subject-Relation-Object) to provide richer context (e.g., riding a horse vs. standing near one).
  • Ground Truth Gap: Ablation studies showed that if the model had access to perfect "ground truth" labels, performance would jump to 92.4% R@1 on MSCOCO, indicating room for improvement in underlying concept prediction.
  • Unidirectional Expansion: While this work focuses on expanding image concepts, a similar logic could be applied to the text/query side to handle synonyms or related descriptions.

Summary updated

BibTeX
@inproceedings{shi2019knowledge,
  author = {Botian Shi and Lei Ji and Pan Lu and Zhendong Niu and Nan Duan},
  title = {{Knowledge Aware Semantic Concept Expansion for Image-Text Matching}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/720},
}
Figure