# US 2026/0065156 A1 · Weight data quantization method, apparatus, and electronic device

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

- Number: US 2026/0065156 A1
- Document ID: US20260065156A1
- Status: Published application
- Kind: A1
- Application number: 19/310,120
- Filed: 2025-08-26
- Published: 2026-03-05
- Earliest claimed: 2024-08-30
- Assignees: Smarter Silicon (Shanghai) Technologies Co., Ltd.
- Applicants: Smarter Silicon (Shanghai) Technologies Co., Ltd.
- Inventors: Zhuo YANG; Zhenbo LIU; Yubin CAO
- Web page: https://patentgrep.com/patent/US20260065156A1

## CPC

- G06N 20/00: Machine learning
- G06N 3/063: using electronic means
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A weight data quantization method includes determining quantization parameters layer by layer for all processing layers of an artificial intelligence model to be quantized and, after the quantization parameters of all the processing layers of the artificial intelligence model to be quantized are determined, determining quantized weights of all the processing layers based on the quantization parameters of all the processing layers. A quantization parameter determined for each processing layer includes a quantization parameter of a current processing layer and quantization parameters of all the processing layers prior to the current processing layer. The quantization parameter of the current processing layer is determined for a first time. The quantization parameters of all the processing layers prior to the current processing layer are updated based on original quantization parameters of all the processing layers prior to the current processing layer.

## Claims

### Claim 1

A weight data quantization method comprising:
determining quantization parameters layer by layer for all processing layers of an artificial intelligence model to be quantized, wherein a quantization parameter determined for each processing layer includes a quantization parameter of a current processing layer and quantization parameters of all the processing layers prior to the current processing layer, the quantization parameter of the current processing layer is determined for a first time, and the quantization parameters of all the processing layers prior to the current processing layer are updated based on original quantization parameters of all the processing layers prior to the current processing layer; and
after the quantization parameters of all the processing layers of the artificial intelligence model to be quantized are determined, determining quantized weights of all the processing layers based on the quantization parameters of all the processing layers.

### Claim 2 (depends on 1)

The weight data quantization method according to claim 1, wherein a loss function used to determine the quantization parameters includes:
a first sub-function representing an activation value error of the current processing layer; and
a second sub-function representing weight loss during a current time quantization parameter determination process.

### Claim 3 (depends on 2)

The weight data quantization method according to claim 2, wherein:
the weight loss represents an accumulation of weight errors of the current processing layer and all the processing layers prior to the current processing layer and is determined based on a weight error of the current processing layer and weight errors of all the processing layers prior to the current processing layer.

### Claim 4 (depends on 2)

The weight data quantization method according to claim 2, wherein determining the quantization parameters layer by layer for all the processing layers of the artificial intelligence model to be quantized includes:
determining an initial quantization parameter and a quantized weight of an i-th processing layer based on an original weight of the i-th processing layer;
training the initial quantization parameter of the i-th processing layer and quantization parameters of 1st processing layer to (i−1)-th processing layer based on the loss function to obtain a target quantization parameter, the target quantization parameters including N quantization parameters from the 1st processing layer to the current processing layer, and N being equal to i.

### Claim 5 (depends on 4)

The weight data quantization method according to claim 4, wherein determining the initial quantization parameter and the quantized weight of the i-th processing layer based on the original weight of the i-th processing layer includes:
calculating the initial quantization parameter and the corresponding initial quantized weight of the i-th processing layer based on the original weight of the i-th processing layer in a nearest-neighbor method.

### Claim 6 (depends on 2)

The weight data quantization method according to claim 2, wherein:
the activation value error represents a norm of a difference between output values at the current processing layer after training data passes through the processing layers from a 1st processing layer to the current processing layer before and after quantizing the weight data of the current processing layer; and/or
the weight loss represents a result of a weighted sum of the weight errors of the current processing layer and all the processing layers prior to the current processing layer.

### Claim 7 (depends on 6)

The weight data quantization method according to claim 6, wherein input data corresponding to the output value before quantizing the weight data of the current processing layer is the same as input data corresponding to the output value after quantizing the weight data.

### Claim 8 (depends on 1)

The weight data quantization method according to claim 1, wherein determining the quantized weights of the processing layers based on the quantization parameters of the processing layers includes:
determining the quantized weights of the processing layers in a target quantization method based on the quantization parameters of the processing layers, the target quantization method including any one of group-wise quantization, tensor quantization, or channel-wise quantization.

### Claim 9

Computer readable storage medium storing computer programs, when executed by one or more processors, the computer programs implementing a weight data quantization method comprising:
determining quantization parameters layer by layer for all processing layers of an artificial intelligence model to be quantized, wherein a quantization parameter determined for each processing layer includes a quantization parameter of a current processing layer and quantization parameters of all the processing layers prior to the current processing layer, the quantization parameter of the current processing layer is determined for a first time, and the quantization parameters of all the processing layers prior to the current processing layer are updated based on original quantization parameters of all the processing layers prior to the current processing layer; and
after the quantization parameters of all the processing layers of the artificial intelligence model to be quantized are determined, determining quantized weights of all the processing layers based on the quantization parameters of all the processing layers.

### Claim 10 (depends on 9)

The computer readable storage medium according to claim 9, wherein a loss function used to determine the quantization parameters includes:
a first sub-function representing an activation value error of the current processing layer; and
a second sub-function representing weight loss during a current time quantization parameter determination process.

### Claim 11 (depends on 10)

The computer readable storage medium according to claim 10, wherein:
the weight loss represents an accumulation of weight errors of the current processing layer and all the processing layers prior to the current processing layer and is determined based on a weight error of the current processing layer and weight errors of all the processing layers prior to the current processing layer.

### Claim 12 (depends on 10)

The computer readable storage medium according to claim 10, wherein the weight data quantization method further comprises:
determining an initial quantization parameter and a quantized weight of an i-th processing layer based on an original weight of the i-th processing layer; and
training the initial quantization parameter of the i-th processing layer and quantization parameters of 1st processing layer to (i−1)-th processing layer based on the loss function to obtain a target quantization parameter, the target quantization parameters including N quantization parameters from the 1st processing layer to the current processing layer, and N being equal to i.

### Claim 13

An electronic device comprising:
one or more processors; and
one or more memories storing a computer program that, when executed by the one or more processors, causes the one or more processors to:
determine quantization parameters layer by layer for all processing layers of an artificial intelligence model to be quantized, wherein a quantization parameter determined for each processing layer includes a quantization parameter of a current processing layer and quantization parameters of all the processing layers prior to the current processing layer, the quantization parameter of the current processing layer is determined for a first time, and the quantization parameters of all the processing layers prior to the current processing layer are updated based on original quantization parameters of all the processing layers prior to the current processing layer; and
after the quantization parameters of all the processing layers of the artificial intelligence model to be quantized are determined, determine quantized weights of all the processing layers based on the quantization parameters of all the processing layers.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein a loss function used to determine the quantization parameters includes:
a first sub-function representing an activation value error of the current processing layer; and
a second sub-function representing weight loss during a current time quantization parameter determination process.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein:
the weight loss represents an accumulation of weight errors of the current processing layer and all the processing layers prior to the current processing layer and is determined based on a weight error of the current processing layer and weight errors of all the processing layers prior to the current processing layer.

### Claim 16 (depends on 14)

The electronic device according to claim 14, wherein the one or more processors are further configured to:
determine an initial quantization parameter and a quantized weight of an i-th processing layer based on an original weight of the i-th processing layer; and
train the initial quantization parameter of the i-th processing layer and quantization parameters of 1st processing layer to (i−1)-th processing layer based on the loss function to obtain a target quantization parameter, the target quantization parameters including N quantization parameters from the 1st processing layer to the current processing layer, and N being equal to i.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein the one or more processors are further configured to:
calculate the initial quantization parameter and the corresponding initial quantized weight of the i-th processing layer based on the original weight of the i-th processing layer in a nearest-neighbor method.

### Claim 18 (depends on 14)

The electronic device according to claim 14, wherein:
the activation value error represents a norm of a difference between output values at the current processing layer after training data passes through the processing layers from a 1st processing layer to the current processing layer before and after quantizing the weight data of the current processing layer; and/or
the weight loss represents a result of a weighted sum of the weight errors of the current processing layer and all the processing layers prior to the current processing layer.

### Claim 19 (depends on 18)

The electronic device according to claim 18, wherein input data corresponding to the output value before quantizing the weight data of the current processing layer is the same as input data corresponding to the output value after quantizing the weight data.

### Claim 20 (depends on 13)

The electronic device according to claim 13, wherein the one or more processors are further configured to:
determine the quantized weights of the processing layers in a target quantization method based on the quantization parameters of the processing layers, the target quantization method including any one of group-wise quantization, tensor quantization, or channel-wise quantization.
