Improving Commonsense in Vision-Language Models via Knowledge Graph Riddles

Shuquan Ye, Yujia Xie, Dongdong Chen, Yichong Xu, Lu Yuan, Chenguang Zhu, Jing Liao

Introduction: The Commonsense Gap

Modern Vision-Language (VL) models, such as CLIP and BLIP, have achieved remarkable success in visual perception tasks like object detection and image-text retrieval. However, these models often lack the "commonsense" reasoning that humans take for granted. For example, when presented with an image of a lemon and a chocolate cake and asked to identify which one "tastes sour," many state-of-the-art models fail to make the correct association.

Vision-Language models often fail at simple commonsense tasks, such as identifying a sour object when presented with a lemon and a cake.

The researchers identify the root cause in the training data distribution. Standard datasets like COCO or CC12M are descriptive, focusing heavily on nouns and adjectives (e.g., "a yellow fruit"). In contrast, human commonsense is often encoded in the relationships and properties of objects—verbs and particles—which are abundant in Knowledge Graphs (KGs) but sparse in visual training sets.

The DANCE Method: Turning Knowledge into Riddles

To bridge this gap, the authors introduce DANCE (Data Augmentation with kNowledge graph linearization for CommonsensE capability). DANCE is a strategy that transforms abstract facts from a Knowledge Graph into "riddles" that can be grounded in visual data.

The DANCE workflow consists of three primary stages:

  1. Entity Extraction: Using NLP tools like spaCy, the system extracts key entities from existing image captions (e.g., "cat" and "box").
  2. Knowledge Graph Query: The system queries ConceptNet, a large-scale commonsense knowledge graph, for edges related to these entities. For the entity "cat," it might retrieve the triplet (cat, has_a, tail).
  3. Linearization (Riddle Generation): These triplets are converted into natural language descriptions where the subject is replaced by a demonstrative pronoun. The triplet (cat, has_a, tail) becomes the riddle: "This item has a tail."
The DANCE workflow: extracting entities from captions, querying ConceptNet for relationships, and linearizing them into riddles.

By hiding the explicit name of the object, the model is forced to learn the visual features associated with the property (e.g., what a "tail" looks like) to solve the riddle. To ensure stable training, the authors employ a Curriculum Learning strategy, initially focusing on a high ratio of riddles and gradually re-introducing standard image-caption pairs.

Evaluation and Results

The effectiveness of DANCE was evaluated across several dimensions, including a new diagnostic benchmark, standard VQA tasks, and traditional retrieval benchmarks.

Diagnostic and Zero-Shot Performance

The authors introduced a Retrieval-based Commonsense Diagnostic Benchmark to test how well models can link images to riddle-like descriptions. While humans score approximately 83% on this test, standard models like CLIP and BLIP initially scored below 42%. Models trained with DANCE showed significant improvements of 12-16% over their respective baselines. Notably, these models also performed well on "unseen" knowledge, suggesting they learned generalizable reasoning rather than just memorizing specific triplets.

OK-VQA and Standard Retrieval

On the OK-VQA benchmark, which explicitly requires external knowledge to answer visual questions, DANCE provided a substantial boost. For a ViT-B based model, accuracy increased from 29.45% to 37.56%. Importantly, these gains in commonsense did not degrade performance on standard tasks; the models maintained or slightly improved their accuracy on the COCO image-text retrieval benchmark.

Discussion and Future Directions

DANCE demonstrates that "grounding" Knowledge Graph facts through riddle-like data augmentation is a powerful way to inject commonsense into VL models. By forcing models to look for properties rather than just labels, DANCE creates a more robust alignment between visual features and semantic relationships.

However, challenges remain. The authors noted that models still struggle with:

  • Mathematical Reasoning: Tasks involving counting or numerical properties are not well-represented in standard commonsense KGs.
  • Physical Dynamics: Reasoning about weight, trajectories, or complex physical interactions remains difficult.
  • Knowledge Scope: The model's reasoning is bounded by the breadth of the underlying KG (ConceptNet).

Future research may involve integrating more specialized knowledge bases or exploring how to teach models the physical and mathematical laws of the world that are currently missing from text-based commonsense repositories.

Reference: Ye, S., Xie, Y., Chen, D., Xu, Y., Yuan, L., Zhu, C., & Liao, J. (2022). Improving Commonsense in Vision-Language Models via Knowledge Graph Riddles. arXiv:2211.16504v1.

Summary updated

BibTeX
@inproceedings{ye2022improving,
  author = {Shuquan Ye and Yujia Xie and Dongdong Chen and Yichong Xu and Lu Yuan and Chenguang Zhu and Jing Liao},
  title = {{Improving Commonsense in Vision-Language Models via Knowledge Graph Riddles}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure