# US 2025/0384256 A1 · Method for local metric-based mixed-precision quantization applicable at compiler level and apparatus therefor

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

- Number: US 2025/0384256 A1
- Document ID: US20250384256A1
- Status: Published application
- Kind: A1
- Application number: 19/240,038
- Filed: 2025-06-17
- Published: 2025-12-18
- Earliest claimed: 2024-06-18
- Assignees: Electronics and Telecommunications Research Institute
- Applicants: Electronics and Telecommunications Research Institute
- Inventors: Je-Min LEE; Yong-In KWON
- Web page: https://patentgrep.com/patent/US20250384256A1

## CPC

- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Disclosed herein are a method for local metric-based mixed-precision quantization applicable at the compiler level and an apparatus for the same. The method includes measuring, by the apparatus, sensitivity of each layer by applying values measured through two local metrics, which are selected by considering compile time, among local metrics for quantization of a neural network model, according to a preset ratio; and performing, by the apparatus, quantization by applying mixed precision to the neural network model based on the sensitivity of each layer.

## Claims

### Claim 1

A method for mixed-precision quantization, performed by a mixed-precision quantization apparatus, comprising:
measuring sensitivity of each layer by applying values measured through two local metrics, which are selected by considering compile time, among local metrics for quantization of a neural network model, according to a preset ratio; and
performing quantization by applying mixed precision to the neural network model based on the sensitivity of each layer.

### Claim 2 (depends on 1)

The method of claim 1, wherein the two local metrics correspond to a Signal-to-Quantization Noise Ratio (SQNR) and a Mean Squared Error (MSE).

### Claim 3 (depends on 2)

The method of claim 2, wherein the sensitivity of each layer is computed by considering a weight and an activation value.

### Claim 4 (depends on 3)

The method of claim 3, wherein the sensitivity of each layer is measured by applying, according to the preset ratio, a first measurement value to which the weight and the SQNR are applied, a second measurement value to which the activation value and the SQNR are applied, a third measurement value to which the weight and the MSE are applied, and a fourth measurement value to which the activation value and the MSE are applied.

### Claim 5 (depends on 4)

The method of claim 4, wherein performing the quantization comprises
generating a sensitivity list by sorting layers in descending order of sensitivity based on the sensitivity of each layer; and
generating a quantization exclusion list by extracting layers to which quantization is not to be applied based on priority in the sensitivity list.

### Claim 6 (depends on 5)

The method of claim 5, wherein performing the quantization comprises applying the mixed precision such that the layers included in the quantization exclusion list, among layers constituting the neural network model, are prevented from being quantized.

### Claim 7 (depends on 5)

The method of claim 5, wherein performing the quantization further comprises performing operator fusion based on a convolution operation, a batch normalization operation, and an activation function.

### Claim 8 (depends on 7)

The method of claim 7, wherein performing the operator fusion comprises integrating the batch normalization operation into weights and bias values of the convolution operation when the batch normalization operation is performed after the convolution operation.

### Claim 9 (depends on 7)

The method of claim 7, wherein performing the operator fusion comprises substituting an output scale of the activation function with an output scale of the convolution operation.

### Claim 10 (depends on 4)

The method of claim 4, wherein the first and second measurement values are measured by applying a gradient of the SQNR.

### Claim 11

An apparatus for mixed-precision quantization, comprising:
a processor for measuring sensitivity of each layer by applying values measured through two local metrics, which are selected by considering compile time, among local metrics for quantization of a neural network model, according to a preset ratio and performing quantization by applying mixed precision to the neural network model based on the sensitivity of each layer; and
memory for storing the sensitivity of each layer.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the two local metrics correspond to a Signal-to-Quantization Noise Ratio (SQNR) and a Mean Squared Error (MSE).

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the sensitivity of each layer is computed by considering a weight and an activation value.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the sensitivity of each layer is measured by applying, according to the preset ratio, a first measurement value to which the weight and the SQNR are applied, a second measurement value to which the activation value and the SQNR are applied, a third measurement value to which the weight and the MSE are applied, and a fourth measurement value to which the activation value and the MSE are applied.

### Claim 15 (depends on 11)

The apparatus of claim 11, wherein the processor generates a sensitivity list by sorting layers in descending order of sensitivity based on the sensitivity of each layer and generates a quantization exclusion list by extracting layers to which quantization is not to be applied based on priority in the sensitivity list.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the processor applies the mixed precision such that the layers included in the quantization exclusion list, among layers constituting the neural network model, are prevented from being quantized.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein the processor performs operator fusion based on a convolution operation, a batch normalization operation, and an activation function.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the processor integrates the batch normalization operation into weights and bias values of the convolution operation when the batch normalization operation is performed after the convolution operation.

### Claim 19 (depends on 17)

The apparatus of claim 17, wherein the processor substitutes an output scale of the activation function with an output scale of the convolution operation.

### Claim 20 (depends on 14)

The apparatus of claim 14, wherein the first and second measurement values are measured by applying a gradient of the SQNR.
