On the (In)Effectiveness of Images for Text Classification

Chunpeng Ma, Aili Shen, Hiyori Yoshikawa, Tomoya Iwakura, Daniel Beck, Timothy BaldwinEACL 2021

TL;DR

This paper investigates whether images actually improve text classification tasks, especially when using powerful pre-trained language models like BERT. They found that while images do help when training models from scratch, their benefit completely disappears when combined with large, pre-trained language models, even across multiple languages. This suggests that advanced language models have already learned to extract all the necessary information from text alone, rendering visual input redundant for this specific task.

What Problem Does This Paper Address?

The field of multimodal learning, which combines different types of data like text and images, has seen a lot of success in tasks like visual question answering. However, the benefit of adding images to traditionally text-based tasks, like text classification, has been mixed. Some studies show improvements, while others suggest models learn to ignore visual information. This paper aims to clarify when and why images are truly useful for text classification. They specifically address two gaps: the lack of research on how images affect pre-trained language models (like BERT) and the limited exploration of this in languages other than English.

Methods

The researchers tackled text classification on Wikipedia pages, specifically assigning named entity classes. They used the SHINRA dataset, which provides Wikipedia articles in multiple languages.

Their approach involved two main experimental setups:

  1. Baseline Experiments (No Pre-trained Text Models): They trained models from scratch using various text representations (bag-of-words, sent2vec, and BERT) and combined them with image features. For image features, they experimented with SIFT + Visual Bag-of-Words (VBoW) and pre-trained Faster R-CNN.
  2. Pre-trained Textual Encoder: They employed a multimodal model called VL-BERT, which integrates text and image embeddings within a BERT-style transformer. Crucially, the textual encoder (BERT) was pre-trained on large external datasets. They then evaluated VL-BERT with different combinations of text (title, title+body) and image inputs.

They also conducted experiments to assess the influence of training data size, varying it from 4k to 24k instances.

Datasets

  • SHINRA Dataset: This dataset, released by the SHINRA project, was used for classifying Wikipedia pages into fine-grained entity classes. It's notable for containing data in 29 typologically diverse languages.
  • English Wikipedia Dump (June 2020): Used to extract image links to augment the SHINRA documents.
  • Visual Genome: Used for pre-training the Faster R-CNN model.

Key Insights and Ideas

  • Pre-training is King: The most striking finding is that when a powerful, externally pre-trained language model (like BERT) is used, the addition of images provides no significant benefit for text classification. This suggests that these models have already learned to extract all the necessary semantic information from the text itself.
  • Images Help When Training from Scratch: In contrast, when models are trained without external pre-training (e.g., using simpler models or BERT trained only on the SHINRA data), images do contribute positively to performance.
  • Language Independence: The phenomenon of images becoming redundant with pre-trained models is not limited to English; it holds across the various languages tested, indicating a general trend.
  • Image Feature Choice Matters (Initially): In the baseline experiments, SIFT + VBoW performed better than pre-trained Faster R-CNN features. The authors hypothesize this is because Faster R-CNN was trained on a dataset (Visual Genome) with labels not perfectly aligned with the abstract categories in SHINRA.

Key Results

  • In baseline experiments (no pre-trained text models), adding images consistently improved F₁ scores across all tested languages and text representations. For example, for English, the BOW + SIFT+V model achieved an F₁ score of 74.1, compared to 72.3 for BOW alone.
  • When using VL-BERT with a pre-trained BERT encoder, the performance gains from adding images were marginal at best. For instance, for the "title + body" text input with images, the F₁ score was 89.8, very close to the 88.6 achieved without images.
  • Experiments with varying training data size showed that even with smaller datasets, images didn't offer a substantial advantage when pre-trained models were involved.

Limitations and Future Work

  • Task Specificity: The authors acknowledge that their findings are specific to text classification and may not generalize to inherently multimodal tasks like Visual Question Answering (VQA).
  • Image Representation: While SIFT+VBoW outperformed Faster R-CNN in baseline experiments, the authors wonder why pre-trained image models don't contribute more to "pure" NLP tasks, unlike their success in vision tasks.
  • Instance Selection: The study used a maximum of four images per document. Future work could explore whether selecting specific images could enhance their utility.
  • Human Performance: The paper raises the question of how human performance compares in single-modal vs. multimodal settings for such tasks.
  • Other Modalities: The authors suggest exploring the utility of other input modalities like audio.
  • Wikipedia Redundancy: Given the rich textual information in Wikipedia, the authors ponder if there's any inherent utility in multimodal inputs for simple NLP tasks like text classification.

Summary updated

BibTeX
@inproceedings{ma2021effectiveness,
  author = {Chunpeng Ma and Aili Shen and Hiyori Yoshikawa and Tomoya Iwakura and Daniel Beck and Timothy Baldwin},
  title = {{On the (In)Effectiveness of Images for Text Classification}},
  booktitle = {EACL},
  year = {2021},
  url = {https://openreview.net/forum?id=8_YZ45KSII},
}
Figure