Integrate Image Representation to Text Model on Sentence Level: a Semi-supervised Framework

Lisai Zhang, Qingcai Chen, Dongfang Li, Buzhou Tang

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.

The Sentence Visualization and Text-Visual Fusion architecture.

As shown in the architecture above, the system consists of two main stages:

  1. 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.
  2. 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.

Integration of the framework into NLI and reading comprehension models.

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

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.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
SNLIBERT + sentence visualization and fusion frameworkAccuracy91.3%+0.1 vs baselinesplit: test
Source quote
L195: BERT + Ours │ 91.3 │ 90.6
SICKBERT + sentence visualization and fusion frameworkAccuracy90.6%+0.2 vs baselinesplit: test
Source quote
L195: BERT + Ours │ 91.3 │ 90.6
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
SNLIBERT baselineAccuracy91.2%split: test
Source quote
L194: BERT \cite{devlin:bert} │ 91.2 │ 90.4
SICKBERT baselineAccuracy90.4%split: test
Source quote
L194: BERT \cite{devlin:bert} │ 91.2 │ 90.4
BibTeX
@misc{zhang2019integrate,
  author = {Lisai Zhang and Qingcai Chen and Dongfang Li and Buzhou Tang},
  title = {{Integrate Image Representation to Text Model on Sentence Level: a Semi-supervised Framework}},
  year = {2019},
  eprint = {1912.00336},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.00336},
}
Figure