# US 2024/0193409 A1 · Techniques for accelerating 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 2024/0193409 A1
- Document ID: US20240193409A1
- Status: Published application
- Kind: A1
- Application number: 18/529,635
- Filed: 2023-12-05
- Published: 2024-06-13
- Earliest claimed: 2022-12-07
- Assignees: Vianai Systems, Inc.
- Applicants: Vianai Systems, Inc.
- Inventors: Michael KEMELMAKHER; Gilad SABAN; Naama KADOSH; Tatiana OSOKIN; Gil SHABAT
- Web page: https://patentgrep.com/patent/US20240193409A1

## CPC

- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

One embodiment of a method for accelerating a trained machine learning model includes parsing the trained machine learning model to identify one or more layers of the trained machine learning model and, for each layer included in the one or more layers, one or more corresponding compression techniques that can be applied to compress the layer, performing, based on a hardware device on which the trained machine learning model is intended to execute, one or more iterative operations to select, for each layer included in the one or more layers, a compression technique and values of one or more parameters associated with the compression technique, and compressing each layer included in the one or more layers using the compression technique that is selected for the layer and the values of the one or more parameters associated with the compression technique to generate a compressed trained machine learning model.

## Claims

### Claim 1

A computer-implemented method for accelerating a trained machine learning model, the method comprising:
parsing the trained machine learning model to identify one or more layers of the trained machine learning model and, for each layer included in the one or more layers, one or more corresponding compression techniques that can be applied to compress the layer;
performing, based on a hardware device on which the trained machine learning model is intended to execute, one or more iterative operations to select, for each layer included in the one or more layers, a compression technique included in the one or more corresponding compression techniques and values of one or more parameters associated with the compression technique; and
compressing each layer included in the one or more layers using the compression technique that is selected for the layer and the values of the one or more parameters associated with the compression technique to generate a compressed trained machine learning model.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising performing one or more quantization operations on the compressed trained machine learning model to generate a quantized trained machine learning model.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the one or more iterative operations comprise one or more reinforcement learning operations.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, where the compression technique included in the one or more corresponding compression techniques comprises at least one of a pruning technique, a decomposition technique, or an approximation technique.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the one or more iterative operations are further based on at least one of a predefined accuracy constraint or a predefined execution speed constraint.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising, in response to determining that the compressed trained machine learning model does not satisfy a predefined accuracy constraint, performing one or more operations to re-train the compressed trained machine learning model.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising performing one or more operations to fuse at least two layers included in the one or more layers to generate a fused layer.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, further comprising updating, based on user input, the one or more corresponding compression techniques for at least one layer included in the one or more layers.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, further comprising performing one or more operations to convert the compressed trained machine learning model to a binary format that is executable via the hardware device.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the trained machine learning model comprises a trained artificial neural network.

### Claim 11

One or more non-transitory computer readable media including instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of:
parsing a trained machine learning model to identify one or more layers of the trained machine learning model and, for each layer included in the one or more layers, one or more corresponding compression techniques that can be applied to compress the layer;
performing, based on a hardware device on which the trained machine learning model is intended to execute, one or more iterative operations to select, for each layer included in the one or more layers, a compression technique included in the one or more corresponding compression techniques and values of one or more parameters associated with the compression technique; and
compressing each layer included in the one or more layers using the compression technique that is selected for the layer and the values of the one or more parameters associated with the compression technique to generate a compressed trained machine learning model.

### Claim 12 (depends on 11)

The one or more non-transitory computer readable media of claim 11, wherein the instructions, when executed by the one or more processors, further cause the one or more processors to perform the step of performing one or more quantization operations on the compressed trained machine learning model to generate a quantized trained machine learning model.

### Claim 13 (depends on 11)

The one or more non-transitory computer readable media of claim 11, wherein the one or more iterative operations are further based on at least one of a predefined accuracy constraint or a predefined execution speed constraint.

### Claim 14 (depends on 11)

The one or more non-transitory computer readable media of claim 11, where the compression technique included in the one or more corresponding compression techniques comprises at least one of a pruning technique, a decomposition technique, or an approximation technique.

### Claim 15 (depends on 11)

The one or more non-transitory computer readable media of claim 11, where the compression technique included in the one or more corresponding compression techniques comprises at least one of a global pruning technique, a local pruning technique, a filter pruning via geometric median (FPGM) technique, a structured pruning technique, an unstructured pruning technique, an Energy Threshold (QR) technique, a Nystromformer technique, a Tucker tensor decomposition technique, a principle component analysis (PCA) decomposition technique, or a canonical polyadic tensor decomposition (CPD) technique.

### Claim 16 (depends on 11)

The one or more non-transitory computer readable media of claim 11, wherein the instructions, when executed by the one or more processors, further cause the one or more processors to perform the step of, in response to determining that the compressed trained machine learning model does not satisfy the predefined accuracy constraint, performing one or more operations to re-train the compressed trained machine learning model.

### Claim 17 (depends on 11)

The one or more non-transitory computer readable media of claim 11, wherein the instructions, when executed by the one or more processors, further cause the one or more processors to perform the step of performing one or more operations to fuse at least two layers included in the one or more layers to generate a fused layer.

### Claim 18 (depends on 11)

The one or more non-transitory computer readable media of claim 11, wherein the instructions, when executed by the one or more processors, further cause the one or more processors to perform the step of performing one or more operations to convert the compressed trained machine learning model to a binary format that is executable via the hardware device.

### Claim 19 (depends on 11)

The one or more non-transitory computer readable media of claim 11, wherein the one or more iterative operations are further based on a predefined constraint on a size of the compressed trained machine learning model.

### Claim 20

A system comprising:
one or more memories storing instructions; and
one or more processors coupled to the one or more memories that, when executing the instructions, perform the steps of:
parsing the trained machine learning model to identify one or more layers of the trained machine learning model and, for each layer included in the one or more layers, one or more corresponding compression techniques that can be applied to compress the layer,
performing, based on a hardware device on which the trained machine learning model is intended to execute, for each layer included in the one or more layers, a compression technique included in the one or more corresponding compression techniques and values of one or more parameters associated with the compression technique, and
compressing each layer included in the one or more layers using the compression technique that is selected for the layer and the values of the one or more parameters associated with the compression technique to generate a compressed trained machine learning model.
