Skip to main content
QUICK REVIEW

[Paper Review] Learning Visually-Grounded Semantics from Contrastive Adversarial Samples

Haoyue Shi, Jiayuan Mao|arXiv (Cornell University)|Jun 27, 2018
Multimodal Machine Learning ApplicationsComputer Science38 references24 citations
TL;DR

This paper proposes VSE-C, a method that enhances visually-grounded text embeddings by training on contrastive adversarial samples—synthetic captions with semantically contradictory but structurally similar phrases—using WordNet and linguistic rules. By incorporating these samples with intra-pair hard negative mining, VSE-C significantly improves zero-shot transfer performance on image-to-text retrieval and word-to-concept retrieval, outperforming VSE++ and GloVe across multiple benchmarks.

ABSTRACT

We study the problem of grounding distributional representations of texts on the visual domain, namely visual-semantic embeddings (VSE for short). Begin with an insightful adversarial attack on VSE embeddings, we show the limitation of current frameworks and image-text datasets (e.g., MS-COCO) both quantitatively and qualitatively. The large gap between the number of possible constitutions of real-world semantics and the size of parallel data, to a large extent, restricts the model to establish the link between textual semantics and visual concepts. We alleviate this problem by augmenting the MS-COCO image captioning datasets with textual contrastive adversarial samples. These samples are synthesized using linguistic rules and the WordNet knowledge base. The construction procedure is both syntax- and semantics-aware. The samples enforce the model to ground learned embeddings to concrete concepts within the image. This simple but powerful technique brings a noticeable improvement over the baselines on a diverse set of downstream tasks, in addition to defending known-type adversarial attacks. We release the codes at https://github.com/ExplorerFreda/VSE-C.

Motivation & Objective

  • To address the limitation of current visual-semantic datasets like MS-COCO, which are sparse and biased due to insufficient coverage of real-world semantic combinations.
  • To investigate why existing VSE models fail under adversarial textual perturbations, especially in distinguishing semantically contradictory captions with similar syntax.
  • To improve the grounding of word embeddings in visual space by introducing contrastive adversarial samples that enforce fine-grained alignment between text and visual concepts.
  • To evaluate the transferability of learned embeddings across downstream tasks such as image-to-text retrieval and fill-in-the-blank word prediction.
  • To develop a generalizable data augmentation framework that integrates linguistic rules and knowledge bases (e.g., WordNet) to generate semantically consistent but contrasting training samples.

Proposed method

  • Synthesizes contrastive adversarial samples using linguistic rules and WordNet to generate semantically opposite but structurally similar captions (e.g., changing 'on' to 'under' or replacing a noun with a synonym).
  • Generates three types of adversarial samples: noun-level (replacing a noun with a synonym), numeral-level (changing number of objects), and relation-level (shifting spatial prepositions).
  • Introduces an intra-pair hard negative mining strategy to select the most challenging adversarial samples during training, improving model robustness.
  • Trains a VSE-style model on a combination of original MS-COCO captions and the generated adversarial samples, using cosine similarity loss for joint embedding optimization.
  • Employs a fill-in-the-blank model with bidirectional GRUs and image features from ResNet-152 to predict masked words, with the final prediction made via a two-layer MLP.
  • Uses a joint training objective that encourages the model to distinguish between real and adversarial captions at the level of specific visual concepts (e.g., object, relation).

Experimental results

Research questions

  • RQ1How do adversarial caption perturbations expose weaknesses in current VSE models, particularly in grounding textual semantics to visual concepts?
  • RQ2To what extent can the addition of contrastive adversarial samples improve the robustness and generalization of visual-semantic embeddings?
  • RQ3Does training on semantically contrastive but syntactically similar captions enhance the model’s ability to ground word-level semantics to specific visual entities?
  • RQ4How does the performance of VSE-C transfer across diverse downstream tasks such as image-to-text retrieval and word-to-concept retrieval?
  • RQ5Can the proposed data augmentation strategy, based on linguistic rules and WordNet, effectively alleviate data sparsity and bias in image-text datasets?

Key findings

  • VSE-C achieves the highest performance on image-object retrieval, with R@1 of 27.3% and R@10 of 62.9% on noun filling, outperforming VSE++ (25.0% and 61.7%) and GloVe (23.2% and 58.8%).
  • Even with only relation-level adversarial samples, VSE-C achieves 35.2% R@1 and 85.2% R@10 on preposition filling—comparable to models trained with all adversarial types.
  • The model demonstrates strong zero-shot transferability, achieving 30.0% R@1 and 70.98% R@10 on combined noun and preposition filling, surpassing VSE++ (28.4% and 68.1%).
  • VSE-C shows robustness against known adversarial attacks, maintaining high confidence in retrieval tasks even when presented with semantically contradictory captions.
  • The intra-pair hard negative mining strategy effectively improves model discrimination by focusing on the most challenging negative examples during training.
  • The results confirm that introducing human priors and knowledge bases (via WordNet) significantly reduces the sparsity and non-contiguity of language in visual-semantic learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.