# US 2025/0148279 A1 · Initialization of values for training a neural network with quantized weights

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

- Number: US 2025/0148279 A1
- Document ID: US20250148279A1
- Status: Published application
- Kind: A1
- Application number: 18/824,090
- Filed: 2024-09-04
- Published: 2025-05-08
- Earliest claimed: 2019-12-17
- Assignees: Perceive Corporation
- Applicants: Perceive Corporation
- Inventors: Alexandru F. Drimbarean; Steven L. Teig
- Web page: https://patentgrep.com/patent/US20250148279A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/063: using electronic means
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Some embodiments of the invention provide a method for configuring a network with multiple nodes. Each node generates an output value based on received input values and a set of weights that are previously trained to each have an initial value. For each weight, the method calculates a factor that represents a loss of accuracy to the network due to changing the weight from its initial value to a different value in a set of allowed values for the weight. Based on the factors, the method identifies a subset of the weights that have factors with values below a threshold. The method changes the values of each weight from its initial value to one of the values in its set of allowed values. The values of the identified subset are all changed to zero. The method trains the weights beginning with the changed values for each weight.

## Claims

### Claim 1

A method for configuring a machine-trained (MT) network comprising a plurality of nodes, wherein each node of a set of the nodes generates an output value based on received input values and a set of configurable weights that are previously trained to each have an initial value, the method comprising:
for each weight, calculating a factor that represents a loss of accuracy to the MT network due to changing the weight from the initial value for the weight to a different value in a set of allowed values for the weight, wherein the value zero is in the set of allowed values for each weight;
based on the calculated factors for the weights, identifying a subset of the weights that have factors with values below a particular threshold;
changing the values of each weight from the initial value for the weight to one of the values in the set of allowed values for the weight, wherein the values of the identified subset are all changed to zero; and
training the weights of the MT network beginning with the changed values for each weight.

### Claim 2 (depends on 1)

The method of claim 1, wherein changing the value of each weight that is not in the identified subset comprises, for each weight, assigning to the weight a value in the set of allowed values for the weight that is closest to the initial value for the weight.

### Claim 3 (depends on 1)

The method of claim 1, wherein changing the value of each weight that is not in the identified subset comprises, for each weight, assigning to the weight a non-zero value in the set of allowed values for the weight that is closest to the initial value for the weight.

### Claim 4 (depends on 1)

The method of claim 1, wherein the particular threshold is a particular percentage, wherein identifying the subset of weights comprises:
ranking the weights in order of decreasing value of the respective calculated factors; and
selecting the particular percentage of the ranked weights that have the lowest values of the respective calculated factor.

### Claim 5 (depends on 1)

The method of claim 1, wherein:
each node in the MT network belongs to one of a plurality of layers; and
for each layer, the set of allowed values is the same for each weight associated with a node belonging to the layer.

### Claim 6 (depends on 5)

The method of claim 5, wherein the particular threshold is a particular percentage, wherein identifying the subset of weights comprises, for each layer:
ranking the weights associated with nodes belonging to the layer in order of decreasing values of the respective calculated factors; and
selecting the particular percentage of the ranked weights for the layer that have the lowest values of calculated factors,
wherein the identified subset of weights comprises the selected weights from each layer.

### Claim 7 (depends on 5)

The method of claim 5 further comprising determining the set of allowed values for each layer from the initial values of the weights associated with nodes belonging to the layer.

### Claim 8 (depends on 7)

The method of claim 7, wherein determining the set of allowed values for each layer comprises calculating, for each layer, a variance of the initial values of the weights associated with nodes belonging to the layer.

### Claim 9 (depends on 8)

The method of claim 8, wherein the set of allowed values for each layer comprises (i) the value zero, (ii) the calculated variance of the initial values of the weights associated with nodes belonging to the layer, and (iii) the negation of the calculated variance of the initial values of the weights associated with nodes belonging to the layer.

### Claim 10 (depends on 1)

The method of claim 1, wherein training the weights of the MT network comprises:
propagating a set of inputs through the MT network using the changed values for each weight to generate a set of outputs, each input having a corresponding expected output; and
calculating a value of a loss function that (i) measures a difference between each generated output and its corresponding expected output and (ii) constrains the weights to the set of allowed values for the weights and accounts for an increase in the first term due to constraining the weights to the sets of allowed values.

### Claim 11 (depends on 10)

The method of claim 10, wherein calculating the factor for each weight comprises calculating the factor for each weight using the loss function.

### Claim 12 (depends on 11)

The method of claim 11, wherein calculating the factor for each weight using the loss function comprises estimating a matrix comprising second-order partial derivatives of the loss function with respect to each weight of a plurality of the weights.

### Claim 13 (depends on 12)

The method of claim 12 further comprising estimating the matrix by computing a first-order derivative of the loss function evaluated during a plurality of prior training iterations of the MT network.

### Claim 14 (depends on 13)

The method of claim 13, wherein the matrix is a Hessian matrix, wherein estimating the matrix by computing the first order derivative comprises using an empirical Fisher (EF) approximation method to estimate diagonal values of the Hessian matrix.

### Claim 15 (depends on 12)

The method of claim 12 further comprising estimating the matrix by using a natural gradient descent method.

### Claim 16 (depends on 15)

The method of claim 15, wherein the matrix is a Hessian matrix, wherein the natural gradient descent method comprises using a true Fisher (TF) information matrix method.

### Claim 17

A non-transitory machine-readable medium storing a program which when executed by at least one processing unit configures a machine-trained (MT) network comprising a plurality of nodes, wherein each node of a set of the nodes generates an output value based on received input values and a set of configurable weights that are previously trained to each have an initial value, the program comprising sets of instructions for:
calculating, for each weight, a factor that represents a loss of accuracy to the MT network due to changing the weight from the initial value for the weight to a different value in a set of allowed values for the weight, wherein the value zero is in the set of allowed values for each weight;
based on the calculated factors for the weights, identifying a subset of the weights that have factors with values below a particular threshold;
changing the values of each weight from the initial value for the weight to one of the values in the set of allowed values for the weight, wherein the values of the identified subset are all changed to zero; and
training the weights of the MT network beginning with the changed values for each weight.

### Claim 18 (depends on 17)

The non-transitory machine-readable medium of claim 17, wherein the set of instructions for changing the value of each weight that is not in the identified subset comprises a set of instructions for assigning to each weight a value in the set of allowed values for the weight that is closest to the initial value for the weight.

### Claim 19 (depends on 17)

The non-transitory machine-readable medium of claim 17, wherein the particular threshold is a particular percentage, wherein the set of instructions for identifying the subset of weights comprises sets of instructions for:
ranking the weights in order of decreasing value of the respective calculated factors; and
selecting the particular percentage of the ranked weights that have the lowest values of the respective calculated factor.

### Claim 20 (depends on 17)

The non-transitory machine-readable medium of claim 17, wherein:
each node in the MT network belongs to one of a plurality of layers; and
for each layer, the set of allowed values is the same for each weight associated with a node belonging to the layer.

### Claim at position 21

21-24. (canceled)
