Modality-Aware Integration with Large Language Models for Knowledge-Based Visual Question Answering

Junnan Dong, Qinggang Zhang, Huachi Zhou, Daochen Zha, Pai Zheng, Xiao Huang

Introduction

Knowledge-based Visual Question Answering (KVQA) represents a significant challenge in computer vision and natural language processing. Unlike standard VQA, which requires models to identify objects within an image, KVQA demands that a model bridge the gap between visual perception and external, structured knowledge. For instance, to answer a question about the blooming season of a flower in a photo, a model must first correctly identify the species and then retrieve specific botanical facts not present in the pixels themselves.

Current methodologies typically rely on two strategies: direct prompting of Large Language Models (LLMs) using image captions, or modality-agnostic fusion of visual and knowledge graph embeddings. The former often results in "hallucinations" due to a lack of specific domain grounding, while the latter frequently fails to capture the nuanced relationships between disparate data types. This paper introduces MAIL (Modality-Aware Integration with LLMs), a framework designed to close this "cross-modal reasoning gap" through structured graph fusion and parameter-efficient reasoning.

Methodology

The MAIL framework operates through a three-stage pipeline designed to transform raw images and external knowledge into a unified, reasoning-capable structure.

1. Scene Graph Construction

Rather than relying on simplistic image captions, MAIL utilizes a two-stage prompting strategy with a visual LLM (MiniGPT-4) to generate a structured Scene Graph. This graph represents the image as a set of triples based on 12 predefined relations (e.g., at_location, covered_by, part_of). This ensures the visual context is captured in a format compatible with external knowledge bases.

2. Coupled Concept Graph Construction

Entities identified in the Scene Graph are linked to ConceptNet, a large-scale commonsense knowledge graph. By retrieving relevant triples from ConceptNet, the model constructs a "Coupled Concept Graph." This provides the necessary external context—the "why" behind the "what"—linking visual entities to abstract facts (e.g., linking a visual "Sakura" to the fact that it is "spring blooming").

3. Pseudo-siamese Graph Medium Fusion (PS-GMF)

The core technical innovation of MAIL is the PS-GMF module. It employs two identical Graph Neural Network (GNN) architectures—one for the visual scene and one for external knowledge. To prevent "modality pollution," where noise from one source degrades the other, the graphs only exchange information through "medium nodes" (entities present in both graphs). By aligning these representations using a Maximum Mean Discrepancy (MMD) loss, the model ensures that visual features and abstract facts are semantically synchronized.

Experimental Results

Performance and Accuracy

The model was evaluated on two benchmark datasets: OK-VQA, the largest dataset for knowledge-intensive VQA, and FVQA, a standard fact-based benchmark.

  • OK-VQA: MAIL achieved 56.69% accuracy, outperforming significantly larger state-of-the-art (SOTA) models such as KAT and REVIVE.
  • FVQA: The model reached 73.95% accuracy, demonstrating robust generalization across different knowledge domains.

Efficiency and Speed

One of the most striking advantages of the MAIL framework is its efficiency. While many SOTA models rely on GPT-3 (175B parameters), MAIL utilizes a 7B parameter backbone. This results in:

  • 24x reduction in parameter requirements.
  • Inference speed of approximately 0.661 seconds per question, which is 2 to 4 times faster than existing LLM-enhanced competitors.

Discussion and Insights

The success of MAIL suggests that structure can outperform scale. By restricting cross-modal exchange to shared entities and using context-aware attention mechanisms within the GNNs, the model effectively filters out irrelevant knowledge. This targeted reasoning allows a 7B parameter model to surpass the performance of models twenty times its size.

However, the authors note a delicate balance in graph depth; excessive GNN layers can lead to "over-fusion," where the unique strengths of the visual and factual modalities are diluted.

Conclusion and Future Work

MAIL provides a highly efficient, modality-aware framework for KVQA that prioritizes structured reasoning over brute-force scaling. Future iterations of this work may explore expanding knowledge sources to include specialized medical or historical databases and moving toward open-vocabulary relation extraction to create even denser, more accurate scene graphs.

Summary updated

BibTeX
@inproceedings{dong2024modality,
  author = {Junnan Dong and Qinggang Zhang and Huachi Zhou and Daochen Zha and Pai Zheng and Xiao Huang},
  title = {{Modality-Aware Integration with Large Language Models for Knowledge-Based Visual Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.132},
}
Figure