# US 2021/0174162 A1 · Spatial-Temporal Reasoning Through Pretrained Language Models for Video-Grounded Dialogues

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

- Number: US 2021/0174162 A1
- Document ID: US20210174162A1
- Status: Published application
- Kind: A1
- Application number: 16/860,977
- Filed: 2020-04-28
- Published: 2021-06-10
- Earliest claimed: 2019-12-09
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Hung LE; Chu Hong HOI
- Web page: https://patentgrep.com/patent/US20210174162A1

## CPC

- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/0475: Generative networks
- G06N 3/049: Temporal neural networks, e.g. delay elements, oscillating neurons or pulsed inputs
- G06N 3/08: Learning methods
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/09: Supervised learning
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/82: using neural networks
- G06V 20/40: in video content (extracting overlay text G06V20/62; video retrieval G06F16/70; processing of video elementary streams in video servers H04N21/234; processing of video elementary streams in video clients H04N21/44)
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- H04N 19/31: in the temporal domain
- H04N 19/33: in the spatial domain
- H04N 19/90: using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- G06F 40/30: Semantic analysis
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A system and method for generating a response in a video grounded dialogue are provided. A video-grounded dialogue neural network language model receives video input and text input. The text input includes a dialogue history between the model and a human user and a current utterance by the user. Encoded video input is generated using video encoding layers. Encoded text input is generated using text encoding layers. The encoded video input and the encoded text input are concatenated in to a single input sequence. A generative pre-trained transformer model generates the response to the current utterance from the singe input sequence.

## Claims

### Claim 1

A method for generating a response by a video-grounded dialogue neural network language model in a video grounded dialogue, the method comprising:
receiving, at the video-grounded dialogue neural network language model, a video input and text input, wherein the text input comprises a dialogue history between the video-grounded dialogue neural network language model and a human user and a current utterance by the human user;
generating, using a plurality of video encoding layers in the video-grounded dialogue neural network language model, an encoded video input, wherein the encoded video input includes a spatial level encoding and at least one of a modality level encoding, a temporal level encoding, or a position level encoding;
generating, using a plurality of text encoding layers in the video-grounded dialogue neural network language model, an encoded text input, wherein the encoded text input includes a token level encoding and at least one of a modality level encoding, a turn-level encoding, or a position level encoding;
concatenating the encoded video input and the encoded text input in to a single input sequence; and
generating from the single input sequence and using a generative pre-trained transformer model in the video-grounded dialogue neural network language model, the response to the current utterance of the human user.

### Claim 2 (depends on 1)

The method of claim 1, wherein a spatial level encoding layer from the plurality of video encoding layers generates the spatial level encoding from the video input, wherein the spatial level encoding includes a spatial region in a video frame.

### Claim 3 (depends on 1)

The method of claim 1, wherein a modality level encoding layer from the plurality of video encoding layers generates the modality level encoding from the video input, wherein the modality level encoding identities visual information type of the video input.

### Claim 4 (depends on 1)

The method of claim 1, wherein a temporal level encoding layer from the plurality of video encoding layers generates the temporal level encoding from the video input, wherein the temporal level encoding identifies a spatial level position of a frame in the video input.

### Claim 5 (depends on 1)

The method of claim 1, wherein a position level encoding layer from the plurality of video encoding layers generates the position level encoding, wherein the position level encoding identifies a spatial level ordering of frames in the video input and spatial ordering of spatial regions within each frame.

### Claim 6 (depends on 1)

The method of claim 1, wherein a word level encoding layer from the plurality of text encoding layers generates the word level encoding from the text input, wherein the word level encoding includes a word from the text input.

### Claim 7 (depends on 1)

The method of claim 1, wherein a modality level encoding layer from the plurality of text encoding layers generates the modality level encoding from the text input, wherein the modality level encoding identities text information type of a token in the text input that indicates that the token is included in a caption, an utterance of the human user in the dialogue history or a language model response.

### Claim 8 (depends on 1)

The method of claim 1, wherein a turn level encoding layer from the plurality of text encoding layers generates the turn level encoding from the text input, wherein the turn level encoding identifies a turn number in the dialogue history that includes a token.

### Claim 9 (depends on 1)

The method of claim 1, wherein a position level encoding layer from the plurality of text encoding layers generates the position level encoding, wherein the position level encoding identifies a token ordering in the text input.

### Claim 10

A system for generating a response for a video grounded dialogue, the method comprising:
a memory configured to store a video-grounded dialogue neural network language model; and
a processor coupled to the memory and configured to:
receive, at the video-grounded dialogue neural network language model, a video input and text input, wherein the text input comprises a dialogue history between the video-grounded dialogue neural network language model and a human user, and a current utterance by the human user;
generate, using a plurality of video encoding layers in the video-grounded dialogue neural network language model, an encoded video input, wherein the encoded video input includes a spatial level encoding and at least one of a modality level encoding, a temporal level encoding, or a position level encoding;
generate, using a plurality of text encoding layers in the video-grounded dialogue neural network language model, an encoded text input, wherein the encoded text input includes a token level encoding and at least one of a modality level encoding, a turn-level encoding, or a position level encoding;
concatenate the encoded video input and the encoded text input in to a single input sequence; and
generate from the single input sequence and using a generative pre-trained transformer model in the video-grounded dialogue neural network language model, the response to the current utterance of the human user.

### Claim 11 (depends on 10)

The system of claim 10, wherein a spatial level encoding layer from the plurality of video encoding layers generates spatial level encoding from the video input, wherein the spatial level encoding includes at least one spatial region in a video frame.

### Claim 12 (depends on 10)

The system of claim 10, wherein a modality level encoding layer from the plurality of video encoding layers generates the modality level encoding from the video input, wherein the modality level encoding identities information type of the video input as video.

### Claim 13 (depends on 10)

The system of claim 10, wherein a temporal level encoding layer from the plurality of video encoding layers generates the temporal level encoding from the video input, wherein the temporal level encoding identifies a spatial level position of a frame in the video input.

### Claim 14 (depends on 10)

The system of claim 10, wherein a position level encoding layer from the plurality of video encoding layers generates a position level encoding, wherein the position level encoding identifies a spatial level ordering of frames in the video input and spatial ordering of spatial regions within each frame.

### Claim 15 (depends on 10)

The system of claim 10, wherein a word level encoding layer from the plurality of text encoding layers generates word level encoding from the text input, wherein the word level encoding includes a word from the text input.

### Claim 16 (depends on 10)

The system of claim 10, wherein a modality level encoding layer from the plurality of text encoding layers generates the modality level encoding from the text input, wherein the modality level encoding identities text information type of the text input that indicates that a token in the text input is part of a caption, an utterance of the human user or a response.

### Claim 17 (depends on 10)

The system of claim 10, wherein a turn level encoding layer from the plurality of text encoding layers generates the turn level encoding from the text input, wherein the turn level encoding identifies a turn number in the dialogue history that includes a token.

### Claim 18 (depends on 10)

The system of claim 10, wherein a position level encoding layer from the plurality of text encoding layers generates a position level encoding, wherein the position level encoding identifies a token ordering in the text input.

### Claim 19

A non-transitory machine-readable medium having stored thereon machine-readable instructions executable to cause a machine to perform operations that process a natural language, the operations comprising:
receiving, at a video-grounded dialogue neural network language model, a video input and text input, wherein the text input comprises a dialogue history between the video-grounded dialogue neural network language model and a human user and a current utterance by the human user;
generating, using a plurality of video encoding layers in the video-grounded dialogue neural network language model, an encoded video input, wherein the encoded video input includes a spatial level encoding and at least one of a modality level encoding, a temporal level encoding, or a position level encoding;
generating, using a plurality of text encoding layers in the video-grounded dialogue neural network language model, an encoded text input, wherein the encoded text input includes a token level encoding and at least one of a modality level encoding, a turn-level encoding, or a position level encoding;
concatenating the encoded video input and the encoded text input in to a single input sequence; and
generating from the single input sequence and using a generative pre-trained transformer model in the video-grounded dialogue neural network language model, the response to the current utterance of the human user.

### Claim 20 (depends on 19)

A non-transitory machine-readable medium of claim 19, wherein the video encodings identify at least one spatial region in a video frame in the video input, a visual information type of the visual frame, a spatial level position of the video frames in the video input, and spatial ordering of the at least one spatial region in the video frame and the video frame; and
wherein the text encodings identify a word from the text input, an information type of the word, a turn in the dialogue history associated with the word, and a position of the word in the text input.
