Abstract: Integrating visual features has been proved useful for natural language understanding tasks. Nevertheless, in most existing multimodal language models, the alignment of visual and textual data is expensive. In this paper, we propose a novel semi-supervised visual integration framework for pre-trained language models. In the framework, the visual features are obtained through a visualization and fusion mechanism. The uniqueness includes: 1) the integration is conducted via a semi-supervised approach, which does not require aligned images for every sentences 2) the visual features are integrated as an external component and can be directly used by pre-trained language models. To verify the efficacy of the proposed framework, we conduct the experiments on both natural language inference and reading comprehension tasks. The results demonstrate that our mechanism brings improvement to two strong baseline models. Considering that our framework only requires an image database, and no not requires further alignments, it provides an efficient and feasible way for multimodal language learning.
Introduction
While humans naturally combine linguistic input with visual sensory information to understand the world, most Natural Language Understanding (NLU) models are "blind," relying solely on text. Existing multimodal models attempt to bridge this gap, but they typically require massive, expensive datasets where every sentence is manually paired with an image. This paper addresses two primary challenges: data scarcity in NLU benchmarks and lexical ambiguity in text. By introducing a semi-supervised framework, the authors allow models to "imagine" a scene by retrieving relevant images from an external database, providing necessary context for disambiguation and spatial reasoning.
Methodology: Sentence Visualization and Fusion
The proposed framework operates by decoupling the need for perfectly aligned image-text pairs. Instead of requiring a specific image for every training sentence, it utilizes an external "Image Memory" to retrieve visual context.
As shown in the architecture above, the system consists of two main stages:
- Sentence Visualization: A text-to-image retrieval module (using a bidirectional GRU and ResNet-152) searches an image database to find the "Top 1" visual match for a given sentence.
- Text-Visual Fusion: Once an image is retrieved, the framework extracts global and object-level features. An attention mechanism then weighs these visual features based on the text representation, ensuring the model focuses on the most relevant parts of the "imagined" image.
Task Integration and Experimental Setup
To verify the efficacy of this approach, the framework was integrated into two strong baseline models: BERT for Natural Language Inference (NLI) and TriAN for Reading Comprehension.
The researchers evaluated the system using the SNLI and SICK corpora for NLI, and SemEval-2018 Task 11 for reading comprehension. The training pipeline involves three steps: training the retrieval network on existing aligned data (like COCO), training the fusion layer while keeping the language model frozen, and finally fine-tuning the entire integrated system end-to-end.
Key Results and Insights
The integrated models consistently outperformed their text-only counterparts:
- Reading Comprehension: The model achieved an absolute performance gain of 1.34% over the TriAN baseline on SemEval-2018 Task 11, outperforming other common-sense enhancement methods like ConceptNet.
- Natural Language Inference: The model reached 91.3% accuracy on SNLI and 90.6% on SICK, surpassing text-only BERT and other multimodal competitors.
Qualitative analysis revealed that visual features are most effective for concrete questions regarding objects and spatial relationships. For instance, seeing an image of a dining room helped the model correctly infer where a cake might be placed. However, the framework still struggles with abstract concepts like "Why" or "When," which are inherently harder to visualize.
Conclusion
This research demonstrates that a model does not need to generate new images to benefit from visual context; it simply needs to find representative ones from a sufficiently large memory. By utilizing a semi-supervised retrieval mechanism, the framework provides a scalable and efficient way to enhance NLU models with a sense of "imagination," paving the way for more robust multimodal language learning.
Summary updated