Localized Symbolic Knowledge Distillation for Visual Commonsense Models

Jae Sung Park, Jack Hessel, Khyathi Chandu, Paul Pu Liang, Ximing Lu, Peter West, Youngjae Yu, Qiuyuan Huang, Jianfeng Gao, Ali Farhadi, Yejin Choi

Abstract

Current vision-language (VL) models often struggle with localized reasoning—understanding specific regions of an image rather than the global scene. This paper introduces Localized Symbolic Knowledge Distillation (LSKD), a method to distill commonsense knowledge from Large Language Models (LLMs) into VL models. By converting images into dense textual proxies and employing a critic model to filter hallucinations, the authors generate a massive dataset of 1 million localized inferences. This approach yields state-of-the-art zero-shot performance on complex visual reasoning benchmarks like VCR and Sherlock without requiring architectural modifications.

Introduction

While modern vision-language models excel at global image captioning and general question answering, they frequently falter when tasks require reasoning about specific, localized regions. For instance, a user might point to a specific person in a crowded scene and ask, "Why is this person laughing?" or "What is their relationship to the person next to them?"

Specifying these regions through text (referring expressions) is often inefficient or ambiguous. A more natural interface involves using "references-as-input," such as bounding boxes. However, training models to reason about these boxes requires high-quality, localized commonsense data, which is scarce. This research addresses this gap by leveraging the reasoning capabilities of "blind" Large Language Models (LLMs) to teach vision models how to interpret local visual contexts.

The LSKD Framework

The core of this work is Localized Symbolic Knowledge Distillation (LSKD), a four-stage pipeline designed to transfer commonsense logic from LLMs (like ChatGPT) to vision-language students.

1. Image-to-Text Verbalization

Because LLMs cannot perceive pixels directly, the first step involves creating a "textual proxy" for the image. This is achieved through a multi-faceted approach:

  • Global Context: Using CLIP to identify broad concepts.
  • Detailed Narratives: Generating descriptive text via OFA.
  • Local Region Captions: Utilizing a fine-tuned BLIP-2 to describe specific bounding boxes.
  • Dynamic Q&A: Generating question-answer pairs to capture nuanced details that standard captions might miss.

2. Knowledge Generation

The textual proxies are fed into ChatGPT with prompts designed to elicit Question-Answer-Rationale (QAR) triples. These triples go beyond simple identification, asking "Why" or "What happens next" regarding specific regions. For example, if a region contains a person with a surfboard, the model might generate: Question: Why is [Region 1] holding a surfboard? Answer: To go surfing. Rationale: They are standing on a beach in swimwear.

3. Supervised Critic Filtering

A significant challenge in using LLMs for visual tasks is hallucination; if the textual proxy is incomplete, the LLM may invent details. The researchers found that roughly 55% of LLM-generated statements contained inaccuracies. To mitigate this, they trained a "Critic Model" (based on BLIP-2) on human-annotated data. This critic evaluates the QAR triples against the actual image, discarding incoherent or incorrect entries.

4. Student Training

The final stage involves fine-tuning a student model (such as BLIP-2 or Mini-GPT4) on the filtered, high-quality symbolic knowledge. This process allows the student to inherit the LLM's reasoning logic while maintaining its own visual grounding.

The Localized Commonsense Knowledge Corpus

A primary contribution of this research is the creation of a new dataset comprising 1 million localized commonsense inferences. These inferences were derived from 250,000 seed images sourced from the Visual Genome and VCR datasets. This corpus provides a dense resource for training models to understand the "why" and "how" behind specific visual elements.

Experimental Results

The LSKD-trained models were evaluated on several benchmarks for both localized and general reasoning. The results demonstrate significant improvements in zero-shot performance:

  • VCR (Visual Commonsense Reasoning): The model achieved a 5.4% improvement in the Q→AR metric.
  • Sherlock: The model saw a substantial 10.2% boost in comparison tasks, which require identifying subtle differences between regions.
  • VisualCOMET: There was a 1.3% increase in performance for predicting intents and future actions.

Qualitative evaluations also favored the LSKD student. Human evaluators preferred the student model's outputs over the "teacher" (the LLM with verbalizers), noting that the student provided more informative and visually grounded responses.

Discussion and Key Insights

The success of LSKD highlights several important concepts in AI training:

  • The "Blind" Teacher: LLMs possess vast internal logic about the world. By providing them with "textual eyes," researchers can extract this logic and "compress" it into models that can actually see.
  • Criticism is Essential: The high hallucination rate of LLMs in visual contexts makes a filtering mechanism like the Critic Model indispensable for maintaining data integrity.
  • Architecture Agnosticism: LSKD does not require changing the underlying architecture of the vision model. It proves that better data, rather than just more parameters, can significantly expand a model's capabilities.
  • Granularity Matters: Interestingly, the model performed better on smaller bounding boxes. This suggests that specificity reduces visual "clutter," allowing the model to focus its reasoning more effectively.

Limitations and Future Work

The primary bottleneck of LSKD is the initial verbalization. If the image-to-text models fail to mention a critical object, the LLM cannot reason about it, and the student model will not learn that specific association. Furthermore, while the 1-million-instance dataset is extensive, it may still lack coverage for rare social interactions or complex counting tasks. Future research will focus on developing more grounded critic models and expanding the dataset to include more diverse visual reasoning categories.

Summary updated

BibTeX
@inproceedings{park2023localized,
  author = {Jae Sung Park and Jack Hessel and Khyathi Chandu and Paul Pu Liang and Ximing Lu and Peter West and Youngjae Yu and Qiuyuan Huang and Jianfeng Gao and Ali Farhadi and Yejin Choi},
  title = {{Localized Symbolic Knowledge Distillation for Visual Commonsense Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=V5eG47pyVl},
}
Figure