Attacking Visual Language Grounding with Adversarial Examples: A Case Study on Neural Image Captioning



  • Hongge Chen
  • Huan Zhang
  • Pin-Yu Chen
  • Jinfeng Yi
  • Cho-Jui Hsieh

Published on


Visual language grounding is widely studied in modern neural image captioning systems, which typically adopts an encoder-decoder framework consisting of two principal components: a convolutional neural network (CNN) for image feature extraction and a recurrent neural network (RNN) for language caption generation. To study the robustness of language grounding to adversarial perturbations in machine vision and perception, we propose Show-and-Fool, a novel algorithm for crafting adversarial examples in neural image captioning. The proposed algorithm provides two evaluation approaches, which check whether neural image captioning systems can be mislead to output some randomly chosen captions or keywords. Our extensive experiments show that our algorithm can successfully craft visually-similar adversarial examples with randomly targeted captions or keywords, and the adversarial examples can be made highly transferable to other image captioning systems. Consequently, our approach leads to new robustness implications of neural image captioning and novel insights in visual language grounding.

Please cite our work using the BibTeX below.

  author    = {Hongge Chen and
               Huan Zhang and
               Pin{-}Yu Chen and
               Jinfeng Yi and
               Cho{-}Jui Hsieh},
  title     = {Show-and-Fool: Crafting Adversarial Examples for Neural Image Captioning},
  journal   = {CoRR},
  volume    = {abs/1712.02051},
  year      = {2017},
  url       = {},
  archivePrefix = {arXiv},
  eprint    = {1712.02051},
  timestamp = {Sat, 31 Aug 2019 16:23:05 +0200},
  biburl    = {},
  bibsource = {dblp computer science bibliography,}
Close Modal