# US 2022/0046206 A1 · Image caption apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0046206 A1
- Document ID: US20220046206A1
- Status: Published application
- Kind: A1
- Application number: 17/188,211
- Filed: 2021-03-01
- Published: 2022-02-10
- Earliest claimed: 2020-08-04
- Assignees: Vingroup Joint Stock Company
- Applicants: Vingroup Joint Stock Company
- Inventors: Hung Hai BUI; Hoai Minh Nguyen; Thien Huu Nguyen; Thu Minh Nguyen
- Web page: https://patentgrep.com/patent/US20220046206A1

## CPC

- H04N 7/08: Systems for the simultaneous or sequential transmission of more than one television signal, e.g. additional information signals, the signals occupying wholly or partially the same frequency band {, e.g. by time division (H04N7/007 takes precedence)}
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06T 9/00: Image coding (bandwidth or redundancy reduction for static pictures H04N1/41; coding or decoding of static colour picture signals H04N1/64; methods or arrangements for coding, decoding, compressing or decompressing digital video signals H04N19/00)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An image caption apparatus includes an encoder which encodes an input image; and a decoder which receives an output of the encoder. The decoder comprises a first long short-term memory (LSTM) configured to operate in cooperation with a second LSTM to respectively generate a first hidden vector and a second hidden vector, wherein the second hidden vector is used to generate a word for an output caption, a LSTM cell configured to be used for both the first LSTM and the second LSTM to generate the first hidden vector or the second hidden vector, wherein an personality embedding vector fed into the LSTM cell is employed to modulate an input signal of visual and language features of the internal gates of the LSTM cell, and a personality controller configured to decay the personality embedding vector at each word generation step before the personality embedding vector is fed into the LSTM cell.

## Claims

### Claim 1

An image caption apparatus comprising:
an encoder which encodes an input image; and
a decoder which receives an output of the encoder, wherein the decoder comprises:
a first long short-term memory (LSTM) configured to operate in cooperation with a second LSTM to respectively generate a first hidden vector and a second hidden vector, wherein the second hidden vector is used to generate a word for an output caption;
a LSTM cell configured to be used for both the first LSTM and the second LSTM to generate the first hidden vector or the second hidden vector, wherein an personality embedding vector fed into the LSTM cell is employed to modulate an input signal of visual and language features of the internal gates of the LSTM cell; and
a personality controller configured to decay the personality embedding vector at each word generation step before the personality embedding vector is fed into the LSTM cell.

### Claim 2 (depends on 1)

The image caption apparatus of claim 1, wherein the first LSTM corresponds with a visual attention model and the second LSTM corresponds with a language model.

### Claim 3 (depends on 1)

The image caption apparatus of claim 1, wherein
the output of the encoder comprises a feature map representing the input image and an average feature vector representing the global information of the input image,
the decoder is further configured to calculate a visual context vector based on the first hidden vector and the feature map,
the first LSTM calculates the first hidden vector using a first input vector that is a combination of the average feature vector, a previous second hidden vector and a previously generated word,
the second LSTM calculates the second hidden vector using a second input vector that is a combination of the first hidden vector and the visual context vector, and
the input signal is formed based on the first input vector and a previous first hidden vector when the LSTM cell is used for the first LSTM and the input signal is formed based on the second input vector and the previous second hidden vector when the LSTM cell is used for the second LSTM.

### Claim 4 (depends on 1)

The image caption apparatus of claim 1, wherein a feature-wise transformation layer is coupled to each internal gate of the LSTM cell wherein the feature-wise transformation layer comprises a conditional layer normalization which receives the input signal and the personality embedding vector as an input.

### Claim 5 (depends on 4)

The image caption apparatus of claim 4, wherein the conditional layer normalization is computed based on scaling and shifting factors of modulating the input signal, a mean of the input signal and a standard deviation of the input signal, wherein the scaling and shifting factors are regulated by the personality embedding vector.

### Claim 6 (depends on 1)

The image caption apparatus of claim 1, wherein the personality controller comprises a controller vector to determine the amount of information from a previous personality embedding vector to be kept in the personality embedding vector.

### Claim 7 (depends on 6)

The image caption apparatus of claim 6, wherein the controller vector is calculated based on the previous first hidden vector and the previous second hidden vector.
