# US 2026/0065671 A1 · Method and computer system for inference using a vision-language model based on cached information associated with input prompt

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

- Number: US 2026/0065671 A1
- Document ID: US20260065671A1
- Status: Published application
- Kind: A1
- Application number: 18/916,190
- Filed: 2024-10-15
- Published: 2026-03-05
- Earliest claimed: 2024-09-05
- Assignees: Nota, Inc.
- Applicants: Nota, Inc.
- Inventors: Seungmin Yang; Tae-Ho Kim; Jewon Lee
- Web page: https://patentgrep.com/patent/US20260065671A1

## 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/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Provided is an inference method using a vision-language model (VLM). The VLM is pretrained to sequentially generate inference results for consecutive inputs according to an input prompt, and the inference method includes caching information associated with the input prompt acquired during an operation for generating a first inference result for a first input among the consecutive inputs to the VLM, maintaining the cached information after the first inference result is generated; and generating a second inference result for a second input following the first input among the consecutive inputs to the VLM, based on the cached information.

## Claims

### Claim 1

An inference method using a vision-language model (VLM), performed by a computer system, the VLM being pretrained to sequentially generate inference results for consecutive inputs according to an input prompt, the inference method comprising:
caching information associated with the input prompt acquired during an operation for generating a first inference result for a first input among the consecutive inputs to the VLM:
maintaining the cached information after the first inference result is generated; and
generating a second inference result for a second input following the first input among the consecutive inputs to the VLM, based on the cached information.

### Claim 2 (depends on 1)

The inference method of claim 1, wherein the consecutive inputs correspond to a video stream including a plurality of frames,
the first input is a first frame being an initial frame among the frames, and the second input is a subsequent frame following the first frame among the frames,
the input prompt is a text prompt applied to analyze or explain each frame of the frames using the VLM, and
the first inference result includes text that analyzes or explains the first frame, and the second inference result includes text that analyzes or explains the subsequent frame.

### Claim 3 (depends on 1)

The inference method of claim 1, wherein the cached information associated with the input prompt includes a text token constituting the input prompt and attention information acquired during an operation for generating the first inference result.

### Claim 4 (depends on 3)

The inference method of claim 3, wherein, as a first input embedding generated based on the input prompt and the first input is input to at least one transformer including an attention mechanism constituting the VLM, a first output token constituting the first inference result is generated, and
at least one of a key, a value, and an attention output of the attention mechanism is cached as the attention information.

### Claim 5 (depends on 4)

The inference method of claim 4, wherein the VLM includes a plurality of transformers, and
the caching comprises caching the text token constituting the input prompt and at least one of the key, the value, and the attention output of the attention mechanism of each of the plurality of transformers constituting the VLM as the attention information.

### Claim 6 (depends on 4)

The inference method of claim 4, wherein the first input includes an image or a frame, and
the first input embedding is generated based on the text token constituting the input prompt and a first visual token constituting the first input, and
the first visual token is generated by performing:
padding at least one pixel outside the image or the frame;
generating visual tokens from the padded image or frame using a visual encoder; and
removing at least one unrelated visual token among the visual tokens.

### Claim 7 (depends on 6)

The inference method of claim 6, wherein the removing comprises removing a visual token corresponding to a location of the padded pixel among the visual tokens as the unrelated visual token.

### Claim 8 (depends on 6)

The inference method of claim 6, wherein the removing comprises removing a visual token of which similarity to the text token is less than or equal to a predetermined value among the visual tokens as the unrelated visual token.

### Claim 9 (depends on 4)

The inference method of claim 4, wherein the second input includes an image or a frame, and
the generating of the second inference result comprises:
generating a second visual token constituting the second input; and
generating a second output token constituting the second inference result based on the cached attention information as the second visual token is input to the transformer.

### Claim 10 (depends on 9)

The inference method of claim 9, wherein the generating of the second visual token comprises:
padding at least one pixel outside the image or the frame that is the second input;
generating visual tokens from the padded image or frame using a visual encoder; and
removing at least one unrelated visual token among the visual tokens.

### Claim 11 (depends on 10)

The inference method of claim 10, wherein the removing comprises removing a visual token corresponding to a location of the padded pixel among the visual tokens as the unrelated visual token.

### Claim 12 (depends on 10)

The inference method of claim 10, wherein the removing comprises removing a visual token of which similarity to the cached text token is less than or equal to a predetermined value among the visual tokens as the unrelated visual token.

### Claim 13 (depends on 1)

The inference method of claim 1, wherein the VLM is pretrained using a training input embedding that includes a training visual token and a training text token, and
the training input embedding is configured such that the training text token is arranged before the training visual token.

### Claim 14 (depends on 4)

The inference method of claim 4, wherein the first input embedding is configured such that the text token constituting the input prompt is arranged before a first visual token constituting the first input.

### Claim 15 (depends on 4)

The inference method of claim 4, wherein the cached information is stored in a form acquirable by the VLM when performing an operation for generating the second inference result for the second input, and is maintained without being removed until the inference results are generated for all of the consecutive inputs.

### Claim 16 (depends on 1)

A non-transitory computer-readable recording medium to execute the method of claim 1 on the computer system.

### Claim 17

A computer system to perform inference using a vision-language model (VLM), the VLM being pretrained to sequentially generate inference results for consecutive inputs according to an input prompt, the computer system comprising:
at least one processor configured to execute computer-readable instructions on the computer system,
wherein the at least one processor is configured to cache information associated with the input prompt acquired during an operation for generating a first inference result for a first input among the consecutive inputs to the VLM, to maintain the cached information after the first inference result is generated, and to generate a second inference result for a second input following the first input among the consecutive inputs to the VLM, based on the cached information.
