# US 2026/0065670 A1 · Generating video descriptions using a machine learning model

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

- Number: US 2026/0065670 A1
- Document ID: US20260065670A1
- Status: Published application
- Kind: A1
- Application number: 18/823,603
- Filed: 2024-09-03
- Published: 2026-03-05
- Earliest claimed: 2024-09-03
- Assignees: Lemon Inc.
- Applicants: Lemon Inc.
- Inventors: Lu Xu; Sijie Zhu; Fan Chen; Longyin Wen
- Web page: https://patentgrep.com/patent/US20260065670A1

## CPC

- G06V 20/41: {Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items (segmenting video sequences G06V20/49)}
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06V 10/82: using neural networks
- G06V 20/70: Labelling scene content, e.g. deriving syntactic or semantic representations
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure describes techniques for generating video descriptions using a machine learning model. A plurality of sets of visual tokens corresponding to a plurality of frames of a video is generated. A first type of tokens is generated by implementing temporal pooling on the plurality of sets of visual tokens corresponding to the plurality of frames. A second type of tokens is generated by compressing each of the plurality of sets of visual tokens corresponding to each of the plurality of frames. A third type of tokens is generated by applying cross-attention between each of the plurality of sets of visual tokens and a fourth type of tokens including text tokens generated based on an input text query. A text description of the video is generated based on the first type of tokens, the second type of tokens, the third type of tokens, and the fourth type of tokens.

## Claims

### Claim 1

A method of generating video descriptions using a machine learning model, comprising:
generating a plurality of sets of visual tokens corresponding to a plurality of frames of a video;
generating a first type of tokens by implementing temporal pooling on the plurality of sets of visual tokens corresponding to the plurality of frames;
generating a second type of tokens by compressing each of the plurality of sets of visual tokens corresponding to each of the plurality of frames;
generating a third type of tokens by applying cross-attention between each of the plurality of sets of visual tokens and a fourth type of tokens, wherein the fourth type of tokens comprise text tokens generated based on an input text query; and
generating a text description of the video based on the first type of tokens, the second type of tokens, the third type of tokens, and the fourth type of tokens.

### Claim 2 (depends on 1)

The method of claim 1, wherein the generating a first type of tokens by implementing temporal pooling on the plurality of sets of visual tokens comprises:
generating the first type of tokens based on averaging the plurality of sets of visual tokens across the plurality of frames.

### Claim 3 (depends on 1)

The method of claim 1, wherein the generating a second type of tokens by compressing each of the plurality of sets of visual tokens comprises:
generating the second type of tokens based on averaging each of the plurality of sets of visual tokens corresponding to each of the plurality of frames.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
projecting the first type of tokens, the second type of tokens, and the third type of tokens by a multilayer perceptron (MLP) to align with the fourth type of tokens.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
separating the projected first type of tokens, the projected second type of tokens, the projected third type of the tokens, and the fourth type of tokens from each other using indicator tokens.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
concatenating the projected first type of tokens, the projected second type of tokens, the projected third type of the tokens, the fourth type of tokens, and the indicator tokens; and
inputting the concatenated tokens into a sub-model of the machine learning model.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
generating the text description of the video by the sub-model based on the concatenated tokens.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
generating the plurality of sets of visual tokens corresponding to the plurality of frames by a Contrastive Language-Image Pre-Training (CLIP) encoder.

### Claim 9

A system of generating video descriptions using a machine learning model, comprising:
at least one processor; and
at least one memory communicatively coupled to the at least one processor and comprising computer-readable instructions that upon execution by the at least one processor cause the at least one processor to perform operations comprising:
generating a plurality of sets of visual tokens corresponding to a plurality of frames of a video;
generating a first type of tokens by implementing temporal pooling on the plurality of sets of visual tokens corresponding to the plurality of frames;
generating a second type of tokens by compressing each of the plurality of sets of visual tokens corresponding to each of the plurality of frames;
generating a third type of tokens by applying cross-attention between each of the plurality of sets of visual tokens and a fourth type of tokens, wherein the fourth type of tokens comprise text tokens generated based on an input text query; and
generating a text description of the video based on the first type of tokens, the second type of tokens, the third type of tokens, and the fourth type of tokens.

### Claim 10 (depends on 9)

The system of claim 9, wherein the generating a first type of tokens by implementing temporal pooling on the plurality of sets of visual tokens comprises:
generating the first type of tokens based on averaging the plurality of sets of visual tokens across the plurality of frames.

### Claim 11 (depends on 9)

The system of claim 9, wherein the generating a second type of tokens by compressing each of the plurality of sets of visual tokens comprises:
generating the second type of tokens based on averaging each of the plurality of sets of visual tokens corresponding to each of the plurality of frames.

### Claim 12 (depends on 9)

The system of claim 9, the operations further comprising:
projecting the first type of tokens, the second type of tokens, and the third type of tokens by a multilayer perceptron (MLP) to align with the fourth type of tokens.

### Claim 13 (depends on 12)

The system of claim 12, the operations further comprising:
separating the projected first type of tokens, the projected second type of tokens, the projected third type of the tokens, and the fourth type of tokens from each other using indicator tokens;
concatenating the projected first type of tokens, the projected second type of tokens, the projected third type of the tokens, the fourth type of tokens, and the indicator tokens; and
inputting the concatenated tokens into a sub-model of the machine learning model.

### Claim 14 (depends on 13)

The system of claim 13, the operations further comprising:
generating the text description of the video by the sub-model based on the concatenated tokens.

### Claim 15

A non-transitory computer-readable storage medium, storing computer-readable instructions that upon execution by a processor cause the processor to implement operations comprising:
generating a plurality of sets of visual tokens corresponding to a plurality of frames of a video;
generating a first type of tokens by implementing temporal pooling on the plurality of sets of visual tokens corresponding to the plurality of frames;
generating a second type of tokens by compressing each of the plurality of sets of visual tokens corresponding to each of the plurality of frames;
generating a third type of tokens by applying cross-attention between each of the plurality of sets of visual tokens and a fourth type of tokens, wherein the fourth type of tokens comprise text tokens generated based on an input text query; and
generating a text description of the video based on the first type of tokens, the second type of tokens, the third type of tokens, and the fourth type of tokens.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the generating a first type of tokens by implementing temporal pooling on the plurality of sets of visual tokens comprises:
generating the first type of tokens based on averaging the plurality of sets of visual tokens across the plurality of frames.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the generating a second type of tokens by compressing each of the plurality of sets of visual tokens comprises:
generating the second type of tokens based on averaging each of the plurality of sets of visual tokens corresponding to each of the plurality of frames.

### Claim 18 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, the operations further comprising:
projecting the first type of tokens, the second type of tokens, and the third type of tokens by a multilayer perceptron (MLP) to align with the fourth type of tokens.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, the operations further comprising:
separating the projected first type of tokens, the projected second type of tokens, the projected third type of the tokens, and the fourth type of tokens from each other using indicator tokens;
concatenating the projected first type of tokens, the projected second type of tokens, the projected third type of the tokens, the fourth type of tokens, and the indicator tokens; and
inputting the concatenated tokens into a sub-model of the machine learning model.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, the operations further comprising:
generating the text description of the video by the sub-model based on the concatenated tokens.
