# US 2023/0267309 A1 · Systems and methods for encoding/decoding a deep neural network

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

- Number: US 2023/0267309 A1
- Document ID: US20230267309A1
- Status: Published application
- Kind: A1
- Application number: 18/010,238
- Filed: 2021-06-09
- Published: 2023-08-24
- Earliest claimed: 2020-06-18
- Assignees: InterDigital VC Holdings France, SAS
- Applicants: InterDigital VC Holdings France, SAS
- Inventors: Shahab Hamidi-Rad; Swayambhoo Jain; Fabien Racape
- Web page: https://patentgrep.com/patent/US20230267309A1

## CPC

- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- H03M 7/3082: {Vector coding (for television signals, see H04N19/94)}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/105: {Shells for specifying net layout}
- H03M 7/3059: {Digital compression and data reduction techniques where the original information is represented by a subset or similar information, e.g. lossy compression}
- H03M 7/70: {Type of the data to be coded, other than image and sound}
- G06N 3/08: Learning methods
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

The disclosure relates to a method comprising quantizing parameters of an input tensor, said quantizing using a codebook whose size is obtained according to a distortion value determined between the at least one tensor and a quantized version of said at least one tensor. The disclosure also relates to a method for quantizing parameters of the input tensor using a pdf-based initialization bounded according to at least one first pdf factor, said first pdf factor being selected among several candidate bounding pdf factors according to resulting entropy. The disclosure also relates to corresponding signal; bitstream, storage media and encoder and/or decoder devices.

## Claims

### Claim at position 1

1-17. (canceled)

### Claim 18

A method comprising:
obtaining a codebook including a codebook size for quantizing parameters of a tensor associated with at least one layer of a Deep Neural Network, the codebook size obtained according to a distortion value determined between the tensor and a quantized version of the tensor; and
quantizing the parameters of the tensor using the obtained codebook to represent the parameters with at least a determined size.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
encoding the quantized parameters in a bitstream for transmission; and
transmitting the encoded parameters in the bitstream to a decoder.

### Claim 20 (depends on 18)

The method of claim 18, further comprising obtaining the codebook size from a binary search over a range of codebook sizes.

### Claim 21 (depends on 18)

The method of claim 18, further comprising:
quantizing based on a pdf-based initialization bounded according to a first pdf factor; and
selecting from a candidate bounding pdf factor, the candidate bounding pdf factor based on an entropy obtained from candidate quantized parameters.

### Claim 22 (depends on 18)

The method of claim 18, further comprising encoding information representative of a codebook type corresponding to the codebook.

### Claim 23

An apparatus comprising one or more processors, wherein the one or more processors are configured to:
obtain a codebook including a codebook size for quantizing parameters of a tensor associated with at least one layer of a Deep Neural Network, the codebook size obtained according to a distortion value determined between the tensor and a quantized version of the tensor; and
quantize the parameters of the tensor using the obtained codebook to represent the parameters with at least a determined size.

### Claim 24 (depends on 23)

The apparatus of claim 23, wherein the one or more processors are further configured to:
encode the quantized parameters in a bitstream for transmission; and
transmit the encoded parameters in the bitstream to a decoder.

### Claim 25 (depends on 23)

The apparatus of claim 23, wherein the one or more processors are further configured to obtain the codebook size from a binary search over a range of codebook sizes.

### Claim 26 (depends on 23)

The apparatus of claim 23, wherein the one or more processors are further configured to:
quantize based on a pdf-based initialization bounded according to a first pdf factor; and
select from a candidate bounding pdf factor, the candidate bounding pdf factor based on an entropy obtained from candidate quantized parameters.

### Claim 27 (depends on 23)

The apparatus of claim 23, wherein the one or more processors are further configured to encode information representative of a codebook type corresponding to the codebook.

### Claim 28

A method comprising:
receiving an encoded bitstream, wherein the encoded bitstream comprises quantized parameters of a tensor associated with at least one layer of a Deep Neural Network, and wherein the encoded bitstream comprises a codebook including a codebook size obtained according to a distortion value determined between the tensor and a quantized version of the tensor;
decoding the codebook from the bitstream; and
performing inverse quantization of the parameters of the tensor using the codebook.

### Claim 29 (depends on 28)

The method of claim 28, further comprising:
parsing input bins to extract quantized parameters.

### Claim 30 (depends on 29)

The method of claim 29, further comprising:
inversely quantizing the quantized parameters to derive a final parameter value; and
inversely transforming the final parameter value.

### Claim 31 (depends on 28)

The method of claim 28, further comprising:
dequantizing based on a pdf-based initialization bounded according to a first pdf factor.

### Claim 32 (depends on 28)

The method of claim 28, further comprising:
decoding information representative of a codebook type corresponding to the codebook.

### Claim 33

An apparatus comprising one or more processors, wherein the one or more processors are configured to:
receive an encoded bitstream, wherein the encoded bitstream comprises quantized parameters of a tensor associated with at least one layer of a Deep Neural Network, and wherein the encoded bitstream comprises a codebook including a codebook size obtained according to a distortion value determined between the tensor and a quantized version of the tensor; decode the codebook from the bitstream; and
perform inverse quantization of the parameters of the tensor using the codebook.

### Claim 34 (depends on 33)

The apparatus of claim 33, wherein the one or more processors are further configured to parse input bins to extract quantized parameters.

### Claim 35 (depends on 34)

The apparatus of claim 34, wherein the one or more processors are further configured to inversely quantize the quantized parameters to derive a final parameter value; and inversely transform the final parameter value.

### Claim 36 (depends on 33)

The apparatus of claim 33, wherein the one or more processors are further configured to dequantize based on a pdf-based initialization bounded according to a first pdf factor.

### Claim 37 (depends on 33)

The apparatus of claim 33, wherein the one or more processors are further configured to decode information representative of a codebook type corresponding to the codebook.
