IP Library › Granted Patent US 11,244,111
Granted Patent B2
US 11,244,111 · App. 16/668,333 · Granted Feb 8, 2022

Adaptive attention model for image captioning

Inventors: Jiasen Lu (Atlanta, GA); Caiming Xiong (Menlo Park, CA); Richard Socher (Menlo Park, CA)
Assignee: salesforce.com, inc.
G06F40/274G06F40/169G06F40/30G06K9/00684G06K9/00986G06K9/4628G06K9/4671G06K9/481G06K9/6271G06K9/6277G06K9/66G06N3/0445G06N3/0454G06N3/08G06N3/082G06N3/084
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,244,111
App. No.
16/668,333
Filed
Oct 30, 2019
Granted
Feb 8, 2022
Kind
B2
Art Unit
2666
USPC
382/157
Abstract

The technology disclosed presents a novel spatial attention model that uses current hidden state information of a decoder long short-term memory (LSTM) to guide attention and to extract spatial image features for use in image captioning. The technology disclosed also presents a novel adaptive attention model for image captioning that mixes visual information from a convolutional neural network (CNN) and linguistic information from an LSTM. At each timestep, the adaptive attention model automatically decides how heavily to rely on the image, as opposed to the linguistic model, to emit the next caption word. The technology disclosed further adds a new auxiliary sentinel gate to an LSTM architecture and produces a sentinel LSTM (Sn-LSTM). The sentinel gate produces a visual sentinel at each timestep, which is an additional representation, derived from the LSTM's memory, of long and short term visual and linguistic information.

Claims (37)

1. A system comprising:

an encoder for processing an input image to generate encoded image features;

a decoder for processing a previously emitted caption word combined with the encoded image features to produce, at each decoder iteration, a current hidden state of the decoder and a visual sentinel;

an adaptive attender for:

attending to the encoded image features at each decoder iteration to produce an image context conditioned on the current hidden state of the decoder; and

mixing the image context and the visual sentinel to produce an adaptive context at each decoder iteration; and

an emitter for generating a natural language caption for the input image based on the adaptive contexts produced over successive decoder iterations.

2. The system of claim 1 , wherein the encoder comprises a convolutional neural network (CNN).

3. The system of claim 1 , wherein the decoder comprises a long short-term memory network (LSTM).

4. The system of claim 1 , wherein the adaptive attender enhances attention directed to the image context when a next caption word is a visual word.

5. The system of claim 1 , wherein the adaptive attender enhances attention directed to the visual sentinel when a next caption word is a non-visual word or linguistically correlated to the previously emitted caption word.

6. The system of claim 1 , further configured to prevent, during training, backpropagation of gradients from the decoder to the encoder when a next caption word is a non-visual word or linguistically correlated to the previously emitted caption word.

7. The system of claim 1 , wherein the visual sentinel includes visual context determined from previously processed image features and textual context determined from previously emitted caption words.

8. A method comprising:

processing an input image with an encoder to generate encoded image features;

processing with a decoder a previously emitted caption word combined with the encoded image features to produce, at each decoder iteration, a current hidden state of the decoder and a visual sentinel;

attending to the encoded image features at each decoder iteration to produce an image context conditioned on the current hidden state of the decoder; and

mixing the image context and the visual sentinel to produce an adaptive context at each decoder iteration; and

generating a natural language caption for the input image with an emitter based on the adaptive contexts produced over successive decoder iterations.

9. The method of claim 8 , wherein the encoder comprises a convolutional neural network (CNN).

10. The system of claim 8 , wherein the decoder comprises a long short-term memory network (LSTM).

11. The method of claim 8 , comprising enhancing attention directed to the image context when a next caption word is a visual word.

12. The method of claim 8 , comprising enhancing attention directed to the visual sentinel when a next caption word is a non-visual word or linguistically correlated to the previously emitted caption word.

13. The method of claim 8 , comprising preventing, during training, backpropagation of gradients from the decoder to the encoder when a next caption word is a non-visual word or linguistically correlated to the previously emitted caption word.

14. The method of claim 8 , wherein the visual sentinel includes visual context determined from previously processed image features and textual context determined from previously emitted caption words.

15. A non-transitory machine-readable medium comprising a plurality of machine-readable instructions which, when executed by one or more processors, are adapted to cause the one or more processors to perform a method comprising:

processing an input image with an encoder to generate encoded image features;

processing with a decoder a previously emitted caption word combined with the encoded image features to produce, at each decoder iteration, a current hidden state of the decoder and a visual sentinel;

attending to the encoded image features at each decoder iteration to produce an image context conditioned on the current hidden state of the decoder; and

mixing the image context and the visual sentinel to produce an adaptive context at each decoder iteration; and

generating a natural language caption for the input image with an emitter based on the adaptive contexts produced over successive decoder iterations.

16. The non-transitory machine-readable medium of claim 15 , wherein the encoder comprises a convolutional neural network (CNN).

17. The non-transitory machine-readable medium of claim 15 , wherein the decoder comprises a long short-term memory network (LSTM).

18. The non-transitory machine-readable medium of claim 15 , comprising enhancing attention directed to the image context when a next caption word is a visual word.

19. The non-transitory machine-readable medium of claim 15 , comprising enhancing attention directed to the visual sentinel when a next caption word is a non-visual word or linguistically correlated to the previously emitted caption word.

20. The non-transitory machine-readable medium of claim 15 , comprising preventing, during training, backpropagation of gradients from the decoder to the encoder when a next caption word is a non-visual word or linguistically correlated to the previously emitted caption word.

21. The non-transitory machine-readable medium of claim 15 , wherein the visual sentinel includes visual context determined from previously processed image features and textual context determined from previously emitted caption words.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 30, 2019
From: LU, JIASEN; XIONG, CAIMING; SOCHER, RICHARD
To: SALESFORCE.COM, INC.
Reel/Frame 050863/0636 →
Continuity (3)
Continuation 15817161 · Nov 17, 2017
Provisional Application 62424353 · Nov 18, 2016
Related Publication 20200117854A1 · Apr 16, 2020
Cited By (2)
US 12,299,408 US 12,675,998