[Paper Review] KVL-BERT: Knowledge Enhanced Visual-and-Linguistic BERT for Visual Commonsense Reasoning
This paper proposes KVL-BERT, a knowledge-enhanced visual-and-linguistic BERT model that integrates external commonsense knowledge from ConceptNet into multimodal BERT to improve visual commonsense reasoning. By using relative position embeddings and a mask-self-attention mechanism, it preserves sentence structure and semantic integrity while injecting relevant knowledge, achieving state-of-the-art performance on the VCR benchmark with a 75.1% accuracy on the QA→R subtask.
Reasoning is a critical ability towards complete visual understanding. To develop machine with cognition-level visual understanding and reasoning abilities, the visual commonsense reasoning (VCR) task has been introduced. In VCR, given a challenging question about an image, a machine must answer correctly and then provide a rationale justifying its answer. The methods adopting the powerful BERT model as the backbone for learning joint representation of image content and natural language have shown promising improvements on VCR. However, none of the existing methods have utilized commonsense knowledge in visual commonsense reasoning, which we believe will be greatly helpful in this task. With the support of commonsense knowledge, complex questions even if the required information is not depicted in the image can be answered with cognitive reasoning. Therefore, we incorporate commonsense knowledge into the cross-modal BERT, and propose a novel Knowledge Enhanced Visual-and-Linguistic BERT (KVL-BERT for short) model. Besides taking visual and linguistic contents as input, external commonsense knowledge extracted from ConceptNet is integrated into the multi-layer Transformer. In order to reserve the structural information and semantic representation of the original sentence, we propose using relative position embedding and mask-self-attention to weaken the effect between the injected commonsense knowledge and other unrelated components in the input sequence. Compared to other task-specific models and general task-agnostic pre-training models, our KVL-BERT outperforms them by a large margin.
Motivation & Objective
- To enhance machine reasoning in visual commonsense tasks beyond object detection and attribute recognition.
- To address the limitation of existing models that do not leverage external commonsense knowledge for reasoning complex visual questions.
- To preserve the structural and semantic integrity of original input sentences when injecting external knowledge.
- To develop a robust method for integrating commonsense knowledge from ConceptNet into multimodal BERT without introducing noise or disrupting representation learning.
Proposed method
- Injecting relevant entities from ConceptNet into the input text sequence to create a knowledge-enriched input.
- Applying relative position embeddings to maintain the structural information of the original sentence after knowledge injection.
- Using a visible matrix to restrict attention so that injected knowledge only affects its related entity token, reducing interference with unrelated components.
- Employing mask-self-attention to preserve the semantic and visual representations of the original input during attention computation.
- Feeding the enriched token embeddings, position embeddings, segment embeddings, visual features, and visible matrix into a pre-trained VL-BERT for joint training and inference.
- Evaluating two variants: one using transE to embed knowledge subgraphs, and another sharing position embeddings between injected and source tokens to ablate the effectiveness of structural preservation.
Experimental results
Research questions
- RQ1Can external commonsense knowledge from ConceptNet significantly improve performance on visual commonsense reasoning tasks?
- RQ2How can injected knowledge be integrated into a multimodal BERT model without disrupting the semantic and structural representation of the original input?
- RQ3What is the optimal number of knowledge entities to inject per token for maximizing reasoning performance?
- RQ4Does the use of relative position embedding and mask-self-attention improve reasoning accuracy compared to standard attention mechanisms?
- RQ5How does the proposed KVL-BERT model compare to both task-specific and task-agnostic pre-trained multimodal models on the VCR benchmark?
Key findings
- KVL-BERT achieves a 75.1% accuracy on the QA→R subtask, outperforming all compared task-specific and task-agnostic models.
- The model achieves 74.0% on Q→A and 55.6% on Q→AR, demonstrating strong performance across all VCR subtasks.
- Variant I, which uses transE to embed knowledge subgraphs, underperforms KVL-BERT by 2.3–4.0 percentage points, indicating that direct injection is more effective.
- Variant II, which shares position embeddings between injected and source tokens, shows decreasing performance as more knowledge entities are injected, unlike KVL-BERT which maintains stability.
- Ablation studies confirm that relative position embedding and mask-self-attention significantly reduce knowledge noise and improve reasoning accuracy.
- The optimal number of injected knowledge entities per token is two, as performance drops when increased to three, suggesting a trade-off between knowledge coverage and noise.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.