# US 2026/0094056 A1 · Efficiency and flexibility of machine learning models

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

- Number: US 2026/0094056 A1
- Document ID: US20260094056A1
- Status: Published application
- Kind: A1
- Application number: 18/902,837
- Filed: 2024-09-30
- Published: 2026-04-02
- Earliest claimed: 2024-09-30
- Assignees: Lemon Inc.
- Applicants: Lemon Inc.
- Inventors: Chia-Wen Kuo; Sijie Zhu; Fan Chen; Longyin Wen
- Web page: https://patentgrep.com/patent/US20260094056A1

## CPC

- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The present disclosure describes techniques for improving efficiency and flexibility of a machine learning model. A machine learning model is configured to decompose self-attention in the machine learning model into a plurality of attention operations. The machine learning model is configured to process information from a plurality of modalities. Concatenated tokens are received by the machine learning model. The concatenated tokens comprise multimodal tokens representative of a content item and textual tokens indicative of a text query. Updated multimodal tokens for a next layer of computation are generated by performing diagonal-attention on the multimodal tokens. Updated textual tokens for the next layer of computation are generated by performing self-attention on the textual tokens and performing cross-attention between the multimodal tokens and the textual tokens.

## Claims

### Claim 1

A method of improving efficiency and flexibility of a machine learning model, comprising:
configuring a machine learning model by decomposing self-attention in the machine learning model into a plurality of attention operations, wherein the machine learning model is configured to process information from a plurality of modalities;
receiving concatenated tokens by the machine learning model, wherein the concatenated tokens comprise multimodal tokens representative of a content item and textual tokens indicative of a text query;
generating updated multimodal tokens for a next layer of computation by performing diagonal-attention on the multimodal tokens; and
generating updated textual tokens for the next layer of computation by performing self-attention on the textual tokens and performing cross-attention between the multimodal tokens and the textual tokens.

### Claim 2 (depends on 1)

The method of claim 1, wherein the content item comprises an image, a video, or an audio item.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
generating the updated multimodal tokens by performing the diagonal-attention based on comparing each of the multimodal tokens to itself but not to any other multimodal token among the plurality of multimodal tokens.

### Claim 4 (depends on 1)

The method of claim 1, wherein the generating updated textual tokens comprises:
generating a set of cross-attention tokens by performing the cross-attention between the multimodal tokens and the textual tokens;
generating a set of text self-attention tokens by performing the self-attention on the textual tokens; and
generating the updated textual token based on the set of cross-attention tokens and the set of text self-attention tokens.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
assigning a first weight to the set of cross-attention tokens; and
assigning a second weight to the set of text self-attention tokens.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
adjusting at least one of the first weight or the second weight to customize the machine learning model.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
reducing computational complexity by performing the diagonal-attention on the multimodal tokens; and
enabling flexible processing for each of the plurality of modalities by performing cross-attention between the multimodal tokens and the textual tokens.

### Claim 8

A system of improving efficiency and flexibility of 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:
configuring a machine learning model by decomposing self-attention in the machine learning model into a plurality of attention operations, wherein the machine learning model is configured to process information from a plurality of modalities;
receiving concatenated tokens by the machine learning model, wherein the concatenated tokens comprise multimodal tokens representative of a content item and textual tokens indicative of a text query;
generating updated multimodal tokens for a next layer of computation by performing diagonal-attention on the multimodal tokens; and
generating updated textual tokens for the next layer of computation by performing self-attention on the textual tokens and performing cross-attention between the multimodal tokens and the textual tokens.

### Claim 9 (depends on 8)

The system of claim 8, wherein the content item comprises an image, a video, or an audio item.

### Claim 10 (depends on 8)

The system of claim 8, the operations further comprising:
generating the updated multimodal tokens by performing the diagonal-attention based on comparing each of the multimodal tokens to itself but not to any other multimodal token among the plurality of multimodal tokens.

### Claim 11 (depends on 8)

The system of claim 8, wherein the generating updated textual tokens comprises:
generating a set of cross-attention tokens by performing the cross-attention between the multimodal tokens and the textual tokens;
generating a set of text self-attention tokens by performing the self-attention on the textual tokens; and
generating the updated textual token based on the set of cross-attention tokens and the set of text self-attention tokens.

### Claim 12 (depends on 11)

The system of claim 11, the operations further comprising:
assigning a first weight to the set of cross-attention tokens; and
assigning a second weight to the set of text self-attention tokens.

### Claim 13 (depends on 12)

The system of claim 12, the operations further comprising:
adjusting at least one of the first weight or the second weight to customize the machine learning model.

### Claim 14 (depends on 8)

The system of claim 8, the operations further comprising:
reducing computational complexity by performing the diagonal-attention on the multimodal tokens; and
enabling flexible processing for each of the plurality of modalities by performing cross-attention between the multimodal tokens and the textual 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:
configuring a machine learning model by decomposing self-attention in the machine learning model into a plurality of attention operations, wherein the machine learning model is configured to process information from a plurality of modalities;
receiving concatenated tokens by the machine learning model, wherein the concatenated tokens comprise multimodal tokens representative of a content item and textual tokens indicative of a text query;
generating updated multimodal tokens for a next layer of computation by performing diagonal-attention on the multimodal tokens; and
generating updated textual tokens for the next layer of computation by performing self-attention on the textual tokens and performing cross-attention between the multimodal tokens and the textual tokens.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the content item comprises an image, a video, or an audio item.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, the operations further comprising:
generating the updated multimodal tokens by performing the diagonal-attention based on comparing each of the multimodal tokens to itself but not to any other multimodal token among the plurality of multimodal tokens.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the generating updated textual tokens comprises:
generating a set of cross-attention tokens by performing the cross-attention between the multimodal tokens and the textual tokens;
generating a set of text self-attention tokens by performing the self-attention on the textual tokens; and
generating the updated textual token based on the set of cross-attention tokens and the set of text self-attention tokens.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, the operations further comprising:
assigning a first weight to the set of cross-attention tokens; and
assigning a second weight to the set of text self-attention tokens.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, the operations further comprising:
adjusting at least one of the first weight or the second weight to customize the machine learning model.
