hottub.patents
US 12,586,392 B2#3285268 Most CitedActiveUnited States (USPTO)Utility

Perturbation robust metric for evaluating image captions

0Forward Citations (#3285268 Global)
0.0/yrCitation Velocity (#3285268 Global)
0.00Citation PageRank (#3285268 Global)
1Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
8Drawings / Sheets

Abstract

Embodiments are disclosed for training an image caption evaluation system to perform evaluations of image captions. In particular, in one or more embodiments, the disclosed systems and methods comprise receiving a training image, a ground truth image caption for the training image, and a perturbed image caption for the training image, where the perturbed image caption includes modifications to the ground truth image caption. The disclosed systems and methods further comprise generating, by a visual encoder, a visual embedding representation of the training image and generating, by a perturbation-aware text encoder, a first text embedding for the ground truth image caption and a second text embedding for the perturbed image caption. The disclosed systems and methods further comprise computing losses between the visual embedding, the first text embedding, and the second text embedding and training the perturbation-aware text encoder based on the computed losses.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 1 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method, comprising: receiving a training image and a ground truth image caption for the training image; generating a perturbed image caption for the training image by performing modifications to text elements of the ground truth image caption; generating, by a visual encoder, a visual embedding representation of the training image; generating, by a perturbation-aware text encoder, a first text embedding for the ground truth image caption and a second text embedding for the perturbed image caption; computing losses between the visual embedding representation of the training image, the first text embedding for the ground truth image caption, and the second text embedding for the perturbed image caption; and training the perturbation-aware text encoder based on the computed losses.

  2. Claim 2Depends on #1

    The computer-implemented method of claim 1, further comprising: performing an initial training phase of the perturbation-aware text encoder using a set of ground truth image captions in a first language and the set of ground truth image captions translated into a second language.

  3. Claim 3Depends on #2

    The computer-implemented method of claim 2, wherein performing the initial training phase of the perturbation-aware text encoder further comprises: for each ground truth image caption of the set of ground truth image captions: translating the ground truth image caption from the first language to the second language; generating, by a text encoder, a first text embedding representation of the ground truth image caption in the first language; generating, by the perturbation-aware text encoder, a second text embedding representation of the ground truth image caption in the second language; computing a loss between the first text embedding representation and the second text embedding representation; and backpropagating the loss to train the perturbation-aware text encoder.

  4. Claim 4Depends on #1

    The computer-implemented method of claim 1, further comprising: generating the perturbed image caption by replacing first text elements in the ground truth image caption with second text elements from a different image caption.

  5. Claim 5Depends on #1

    The computer-implemented method of claim 1, further comprising: generating the perturbed image caption by swapping text elements within the ground truth image caption.

  6. Claim 6Depends on #1

    The computer-implemented method of claim 1, further comprising: generating the perturbed image caption by removing text elements within the ground truth image caption.

  7. Claim 7Depends on #1

    The computer-implemented method of claim 1, wherein computing the losses between the visual embedding representation of the training image, the first text embedding for the ground truth image caption, and the second text embedding for the perturbed image caption further comprises: computing a first loss between the visual embedding representation of the training image and the first text embedding for the ground truth image caption; computing a second loss between the visual embedding representation of the training image and the second text embedding for the perturbed image caption; computing a third loss between the first text embedding for the ground truth image caption and the second text embedding for the perturbed image caption; and aggregating the first loss, the second loss, and the third loss to generate an overall loss.

  8. Claim 8Depends on #1

    The computer-implemented method of claim 1, wherein the training image is part of a training dataset, and wherein each image in the training dataset is associated with a ground truth image caption for the image, a description of an image background, a description of objects in the image, and a description of a relationship between the objects in the image.

  9. Claim 9Independent Claim

    A non-transitory computer-readable storage medium storing executable instructions, which when executed by a processing device, cause the processing device to perform operations comprising: receiving a training image and a ground truth image caption for the training image; generating a perturbed image caption for the training image by performing modifications to text elements of the ground truth image caption; generating, by a visual encoder, a visual embedding representation of the training image; generating, by a perturbation-aware text encoder, a first text embedding for the ground truth image caption and a second text embedding for the perturbed image caption; computing losses between the visual embedding representation of the training image, the first text embedding for the ground truth image caption, and the second text embedding for the perturbed image caption; and training the perturbation-aware text encoder based on the computed losses.

  10. Claim 10Depends on #9

    The non-transitory computer-readable storage medium of claim 9, wherein the instructions further cause the processing device to perform operations comprising: performing an initial training phase of the perturbation-aware text encoder using a set of ground truth image captions in a first language and the set of ground truth image captions translated into a second language.

  11. Claim 11Depends on #10

    The non-transitory computer-readable storage medium of claim 10, wherein to perform the initial training phase of the perturbation-aware text encoder the instructions further cause the processing device to perform operations comprising: for each ground truth image caption of the set of ground truth image captions: translating the ground truth image caption from the first language to the second language; generating, by a text encoder, a first text embedding representation of the ground truth image caption in the first language; generating, by the perturbation-aware text encoder, a second text embedding representation of the ground truth image caption in the second language; computing a loss between the first text embedding representation and the second text embedding representation; and backpropagating the loss to train the perturbation-aware text encoder.

  12. Claim 12Depends on #9

    The non-transitory computer-readable storage medium of claim 9, wherein the instructions further cause the processing device to perform operations comprising: generating the perturbed image caption by replacing first text elements in the ground truth image caption with second text elements from a different image caption.

  13. Claim 13Depends on #9

    The non-transitory computer-readable storage medium of claim 9, wherein the instructions further cause the processing device to perform operations comprising: generating the perturbed image caption by swapping text elements within the ground truth image caption.

  14. Claim 14Depends on #9

    The non-transitory computer-readable storage medium of claim 9, wherein the instructions further cause the processing device to perform operations comprising: generating the perturbed image caption by removing text elements within the ground truth image caption.

  15. Claim 15Depends on #9

    The non-transitory computer-readable storage medium of claim 9, wherein to computer the losses between the visual embedding representation of the training image, the first text embedding for the ground truth image caption, and the second text embedding for the perturbed image caption the instructions further cause the processing device to perform operations comprising: computing a first loss between the visual embedding representation of the training image and the first text embedding for the ground truth image caption; computing a second loss between the visual embedding representation of the training image and the second text embedding for the perturbed image caption; computing a third loss between the first text embedding for the ground truth image caption and the second text embedding for the perturbed image caption; and aggregating the first loss, the second loss, and the third loss to generate an overall loss.

  16. Claim 16Depends on #9

    The non-transitory computer-readable storage medium of claim 9, wherein the training image is part of a training dataset, and wherein each image in the training dataset is associated with a ground truth image caption for the image, a description of an image background, a description of objects in the image, and a description of a relationship between the objects in the image.

  17. Claim 17Independent Claim

    A computer-implemented method, comprising: receiving an image and an image caption, the image caption describing content in the image; generating, by a visual encoder, a visual embedding representation of the image; generating, by a perturbation-aware text encoder, a text embedding for the image caption, wherein the perturbation-aware text encoder is trained to recognize perturbations in image captions; and computing an image caption score for the image caption using the visual embedding representation of the image and text embedding for the image caption, wherein the image caption score is a metric indicating an accuracy of the image caption to the content in the image.

  18. Claim 18Depends on #17

    The computer-implemented method of claim 17, wherein the perturbation-aware text encoder is trained by: receiving a training image and a ground truth image caption for the training image; generating a perturbed image caption for the training image by performing modifications to text elements of the ground truth image caption; generating, by the visual encoder, a visual embedding representation of the training image; generating, by the perturbation-aware text encoder, a first text embedding for the ground truth image caption and a second text embedding for the perturbed image caption; computing losses between the visual embedding representation of the training image, the first text embedding for the ground truth image caption, and the second text embedding for the perturbed image caption; and training the perturbation-aware text encoder to recognize the perturbations in the perturbed image caption using the computed losses.

  19. Claim 19Depends on #17

    The computer-implemented method of claim 17, wherein computing an image caption score using the visual embedding representation of the image and text embedding for the image caption comprises: computing a cosine similarity of the visual embedding representation of the image and the text embedding for the image caption; and applying a weighting to the computed cosine similarity to compute the image caption score for the image caption.

  20. Claim 20Depends on #17

    The computer-implemented method of claim 17, wherein the perturbation-aware text encoder is trained by: performing an initial training phase of the perturbation-aware text encoder using a set of ground truth image captions in a first language and the set of ground truth image captions translated into a second language.

Technical Overview & Description

BACKGROUND Automatic image captioning is the process of generating a textual description of an image based on its content and is an important aspect in semantic scene understanding. This process can be performed using machine learning models trained to identify the subject, location, etc. of images. Automatic image captioning can provide numerous benefits, including for annotating images, assisting visually impaired people to understand the content of images, and visual question-answering purposes. SUMMARY Introduced here are techniques/technologies that allow for training a text encoder of an image caption evaluation system to distinguish between the original text of a ground truth caption and a modified version of the ground truth caption containing perturbed text. The text encoder of the image caption evaluation system can be further trained to handle image captions in multiple languages through a pre-training process. In particular, in one or more embodiments, as part of a training process, an image caption evaluation system receives an input that includes an image, a ground truth image caption and a perturbed image caption. The perturbed image caption is a modified version of the ground truth image caption (e.g., words removed, masked, repeated, randomly shuffled, swapped within sentence, or replaced with words from another sentence). The image caption evaluation system uses a visual encoder, or image encoder, to generate a visual embedding representing the image. The image caption evaluation system uses a text encoder to generate a ground truth text embedding representing the ground truth image caption and a perturbed text embedding representing the perturbed image caption. The image caption evaluation system uses the embeddings to compute losses that, once backpropagated to the text encoder, train the text encoder to produce a higher evaluation score for the ground truth image caption by increasing the cosine similarity of the visual embedding and the ground

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (1)

Non-Patent Literature (10)

  • Anderson et al.,
  • “
  • SPICE: Semantic Propositional Image Caption Evaluation
  • ”
  • , Jul. 29, 2016, pp. 1-17.
  • Banerjee et al.,
  • “
  • METEOR: An Automatic Metric for MT Evaluation with Improved Correlation with Human Judgments
  • ”
  • , Proceedings of the ACL Workshop on Intrinsic and Extrinsic Evaluation Measures for Machine Translation and/or Summarization, Jun. 2005, pp. 65-72.