Dataset Creation for Visual Entailment using Generative AI

Rob Reijtenbach, Suzan Verberne, Gijs WijnholdsarXiv 2025 · arXiv · OpenReview

Abstract

In this paper, we present and validate a new synthetic dataset for training visual entailment models. Existing datasets for visual entailment are small and sparse compared to datasets for textual entailment, and manual creation is labor-intensive. We base our synthetic dataset on the SNLI dataset for textual entailment, using its premise text as input prompts for the Stable Diffusion generative model to create corresponding images. We evaluate our dataset both intrinsically and extrinsically. Extrinsic evaluation shows that synthetic training data leads to only a slight drop in performance on SNLI-VE (F-score 0.686 vs. 0.703) and SICK-VTE (F-score 0.384 vs. 0.400). These results indicate that synthetic data is a promising solution for training visual entailment models in data-sparse settings.

Introduction

Natural Language Inference (NLI) is a fundamental task in NLP where a model determines the logical relationship—entailment, contradiction, or neutral—between a premise and a hypothesis. Visual Entailment (VE) extends this by using an image as the premise. However, the development of VE models is hindered by the scarcity of large-scale, high-quality datasets. While textual NLI datasets like SNLI contain over 500,000 pairs, VE datasets are significantly smaller due to the high cost of manual image collection and annotation. This research explores whether Generative AI can mitigate this bottleneck by synthesizing visual premises from existing textual premises.

Methodology

The proposed pipeline, Synthetic-SNLI-VE, transforms the textual SNLI dataset into a visual format through the following steps:

  1. Image Generation: Textual premises from SNLI serve as prompts for Stable Diffusion (using the Realistic Vision v51 checkpoint). This process generates "child images" that visually represent the "parent" text.
  2. Feature Extraction: The CLIP (Contrastive Language-Image Pre-training) model is used to extract feature vectors from both the generated images and the hypothesis text.
  3. Classification Model: A Multi-Layer Perceptron (MLP) serves as the classifier. It utilizes a fusion function that concatenates five relational features between the image vector ($v_1$) and text vector ($v_2$): $v_1$, $v_2$, $(v_1 + v_2)$, $(v_1 - v_2)$, and $(v_1 \odot v_2)$.
Example of a synthetic image generated by Stable Diffusion from a textual premise.

Datasets

The study utilizes three primary datasets:

  • SNLI-VE: The standard benchmark derived from Flickr30k.
  • Synthetic-SNLI-VE: The newly created dataset where original Flickr30k images are replaced with Stable Diffusion-generated images.
  • SICK-VTE: A smaller dataset used to evaluate the model's cross-dataset generalization capabilities.
Synthetic image representing a social gathering, used as a premise in the Synthetic-SNLI-VE dataset.

Results and Discussion

The extrinsic evaluation compared models trained on real images versus those trained on synthetic images. The performance gap was found to be remarkably narrow:

  • On SNLI-VE: A model trained on real data achieved an F-score of 0.703, while the model trained on synthetic data achieved 0.686.
  • On SICK-VTE (Transfer Learning): The real-data model scored 0.400, while the synthetic-data model scored 0.384.

These results suggest that synthetic images effectively capture the semantic essence required for logical inference, despite not being perfect replicas of reality. Interestingly, the synthetic-trained model performed best on synthetic test data (F-score 0.732), likely due to reduced visual noise in generated images compared to real-world photography.

A significant finding was that both models struggled with generalization to SICK-VTE. This indicates that the "domain shift" between different datasets (e.g., Flickr30k vs. SICK) is a more substantial challenge than the "reality shift" between real and synthetic imagery.

Conclusion and Future Work

Synthetic data generation offers a scalable alternative for visual entailment tasks. Future research could improve this approach by generating multiple image variations per caption to augment the training set and employing advanced prompt engineering to enhance the accuracy of visual premises.

Summary updated

Abstract

In this paper we present and validate a new synthetic dataset for training visual entailment models. Existing datasets for visual entailment are small and sparse compared to datasets for textual entailment. Manually creating datasets is labor-intensive. We base our synthetic dataset on the SNLI dataset for textual entailment. We take the premise text from SNLI as input prompts in a generative image model, Stable Diffusion, creating an image to replace each textual premise. We evaluate our dataset both intrinsically and extrinsically. For extrinsic evaluation, we evaluate the validity of the generated images by using them as training data for a visual entailment classifier based on CLIP feature vectors. We find that synthetic training data only leads to a slight drop in quality on SNLI-VE, with an F-score 0.686 compared to 0.703 when trained on real data. We also compare the quality of our generated training data to original training data on another dataset: SICK-VTE. Again, there is only a slight drop in F-score: from 0.400 to 0.384. These results indicate that in settings with data sparsity, synthetic data can be a promising solution for training visual entailment models.
BibTeX
@misc{reijtenbach2025dataset,
  author = {Rob Reijtenbach and Suzan Verberne and Gijs Wijnholds},
  title = {{Dataset Creation for Visual Entailment using Generative AI}},
  year = {2025},
  eprint = {2508.11605},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.11605},
}
Figure