# US 2026/0065137 A1 · Systems and methods for compressing models during model training while considering target alignment for efficient ai runtime

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

- Number: US 2026/0065137 A1
- Document ID: US20260065137A1
- Status: Published application
- Kind: A1
- Application number: 18/823,829
- Filed: 2024-09-04
- Published: 2026-03-05
- Earliest claimed: 2024-09-04
- Assignees: NetApp, Inc.
- Applicants: NetApp, Inc.
- Inventors: Anton Krug
- Web page: https://patentgrep.com/patent/US20260065137A1

## CPC

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

## Abstract

Techniques are provided for compressing weights of models during training of the models. A model is trained for execution on a target device. As part of training, weights of the model are compressed utilizing palettes to represent weight values using bits. A coding procedure, such as Huffman coding, is used to remove or modify the bit representations of infrequently utilized palettes. The model may be iteratively trained to compress the weights of the model in order to reduce the amount of storage consumed by the model without unduly sacrificing quality of the model. Reducing the size of the model provides the ability to deploy the model on devices that would otherwise lack storage and compute resources for storing and running an uncompressed version of the model.

## Claims

### Claim 1

A method, comprising:
initiating training of a model for execution on a target device;
compressing, during the training, weights of the model utilizing palettes to represent weight values using bits, wherein the compressing includes adjusting a weight value of a weight that occurs less frequently than other weight values of the weight;
in response to identifying an infrequently utilized palette that is less frequently repeated than other palettes, implementing a coding procedure to either remove the infrequently utilized palette or modify a bit representation for the infrequently utilized palette to be different than bit representations used for the other palettes; and
deploying the model to the target device for execution.

### Claim 2 (depends on 1)

The method of claim 1, wherein one or more weights compensate for the weight with the weight value adjusted during the training.

### Claim 3 (depends on 1)

The method of claim 1, comprising:
in response to identifying a frequently utilized palette that is more frequently repeated than the other palettes, implementing the coding procedure to utilize a different bit representation for the frequently utilized palette than the infrequently utilized palette.

### Claim 4 (depends on 1)

The method of claim 1, comprising:
in response to determining that removal of a palette entry, as part of palette shrinking performed by the coding procedure, affects quality of the model, modifying the weight to discourage utilization of the weight by the model.

### Claim 5 (depends on 1)

The method of claim 1, comprising:
training the model to utilize a set of compressed weights and a set of uncompressed weights for generating an inference result.

### Claim 6 (depends on 1)

The method of claim 1, comprising:
modifying, during the training, a configuration of the model based upon resources, architecture, and capabilities of the target device.

### Claim 7 (depends on 1)

The method of claim 1, comprising:
configuring an inference engine, incorporated into the target device, based upon characteristics of the model, wherein the inference engine is configured to at least one of: skip memory accesses, reduce branching performed and increase branching predictions by a branch predictor of the processor, skip instructions, omit pre-compiled functions based upon functions that will not be utilized during runtime, or omit a lookup table.

### Claim 8 (depends on 1)

The method of claim 1, comprising:
configuring an inference engine, incorporated into at least one of a processor or a field programmable gate array of the target device, based upon characteristics of the model, wherein the inference engine is restricted from running other models than the model.

### Claim 9 (depends on 1)

The method of claim 1, comprising:
configuring an inference engine based upon characteristics of the model, wherein the inference engine is restricted from running other models than the model.

### Claim 10

A computing device, comprising:
a memory comprising machine executable code; and
a processor coupled to the memory, the processor configured to execute the machine executable code to cause the machine to:
initiate training of a model for execution on a target device;
compress, during the training, weights of the model utilizing palettes to represent weight values using bits, wherein the compressing includes adjusting a weight value of a weight that occurs less frequently than other weight values of the weight;
in response to identifying an infrequently utilized palette that is less frequently repeated than other palettes, implement a coding procedure to either remove the infrequently utilized palette or modify a bit representation for the infrequently utilized palette to be different than bit representations used for the other palettes; and
deploy the model to the target device for execution.

### Claim 11 (depends on 10)

The computing device of claim 10, wherein the machine executable code causes the machine to:
constrain the weight values to a set of 3 values.

### Claim 12 (depends on 10)

The computing device of claim 10, wherein the machine executable code causes the machine to:
constrain the weight values to a set of 5 values, wherein bit shifting is implemented in place of multiplication to perform matrix multiplication.

### Claim 13 (depends on 10)

The computing device of claim 10, wherein the machine executable code causes the machine to:
store the weights as byte-aligned data, wherein 5 weights are stored within a byte.

### Claim 14 (depends on 10)

The computing device of claim 10, wherein the machine executable code causes the machine to:
identifying errors produced by rounding a plurality of weight values to whole numbers; and
training the model utilizing a subset of the plurality of weight values that produce a smallest error.

### Claim 15

A non-transitory machine readable medium comprising instructions for performing a method, which when executed by a machine, causes the machine to:
initiate training of a model for execution on a target device;
compress, during the training, weights of the model utilizing palettes to represent weight values using bits, wherein the compressing includes adjusting a weight value of a weight that occurs less frequently than other weight values of the weight;
in response to identifying an infrequently utilized palette that is less frequently repeated than other palettes, implement a coding procedure to either remove the infrequently utilized palette or modify a bit representation for the infrequently utilized palette to be different than bit representations used for the other palettes; and
deploy the model to the target device for execution.

### Claim 16 (depends on 15)

The non-transitory machine readable medium of claim 15, wherein the instructions cause the machine to:
quantize and compress the weights during training, wherein new errors generated from the quantization and compression are identified; and
adjust the weights during subsequent training based upon the new errors to reduce errors of the model.

### Claim 17 (depends on 15)

The non-transitory machine readable medium of claim 15, wherein the instructions cause the machine to:
quantize the weights during training as quantizations; and
utilize the quantizations to adjust the model.

### Claim 18 (depends on 15)

The non-transitory machine readable medium of claim 15, wherein the instructions cause the machine to:
identify a first error produced by rounding the weight value to a first whole number;
identify a second error produced by rounding the weight value to a second whole number; and
round the weight value towards the first whole number based upon the first error being less than the second error.

### Claim 19 (depends on 15)

The non-transitory machine readable medium of claim 15, wherein the instructions cause the machine to:
order the weights during the training to create an ordered set of weights.

### Claim 20 (depends on 15)

The non-transitory machine readable medium of claim 15, wherein the instructions cause the machine to:
order the weights during the training to create an ordered set of weights, where a weight is swapped from a first position to a second position.
