# US 2025/0220182 A1 · Method and device for compressing feature tensor on basis of neural network

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

- Number: US 2025/0220182 A1
- Document ID: US20250220182A1
- Status: Published application
- Kind: A1
- Application number: 18/848,036
- Filed: 2023-03-20
- Published: 2025-07-03
- Earliest claimed: 2022-03-18
- Assignees: Intellectual Discovery Co., Ltd.
- Applicants: Intellectual Discovery Co., Ltd.
- Inventors: Yongjo AHN; Jongseok LEE
- Web page: https://patentgrep.com/patent/US20250220182A1

## CPC

- H04N 19/124: Quantisation
- G06N 3/045: Combinations of networks
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/08: Learning methods
- G06T 9/00: Image coding (bandwidth or redundancy reduction for static pictures H04N1/41; coding or decoding of static colour picture signals H04N1/64; methods or arrangements for coding, decoding, compressing or decompressing digital video signals H04N19/00)
- G06V 10/7715: {Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods}
- G06V 10/82: using neural networks
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/146: Data rate or code amount at the encoder output
- H04N 19/169: characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/18: the unit being a set of transform coefficients
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/189: characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
- H04N 19/60: using transform coding
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A method and a device for processing an image on the basis of a neural network, according to an embodiment of the present invention, can acquire a feature tensor from an input image by using a first neural network including a plurality of neural network layers, acquire a quantized feature tensor by quantizing the acquired feature tensor on the basis of the quantization size, and generate a bitstream by performing entropy encoding on the quantized feature tensor.

## Claims

### Claim 1

A neural network-based image processing method, comprising:
acquiring a feature tensor from an input image by using a first neural network including a plurality of neural network layers;
acquiring a quantized feature tensor by quantizing the acquired feature tensor based on a quantization size; and
generating a bitstream by performing entropy encoding on the quantized feature tensor,
wherein the quantization size is adaptively derived based on predefined encoding information.

### Claim 2 (depends on 1)

The method of claim 1, wherein the quantization size is adaptively derived based on at least one of the acquired feature tensor, a target bit rate, or distribution information.

### Claim 3 (depends on 2)

The method of claim 2, wherein the distribution information is acquired based on a distribution feature tensor, and
wherein the distribution feature tensor is acquired from the acquired feature tensor by using a second neural network including a plurality of neural network layers.

### Claim 4 (depends on 3)

The method of claim 3, wherein the bitstream includes a distribution bitstream generated by performing the entropy encoding on the distribution feature tensor.

### Claim 5 (depends on 2)

The method of claim 2, wherein the quantization size is derived by repeatedly updating the quantization size based on a backpropagated error, and
wherein the error is derived based on a difference between the target bit rate and a prediction bit rate.

### Claim 6 (depends on 5)

The method of claim 5, wherein an update for the quantization size is repeatedly performed so that the prediction bit rate converges to the target bit rate.

### Claim 7 (depends on 5)

The method of claim 5, wherein an update for the quantization size is repeatedly performed so that the error becomes smaller than or equal to a predefined threshold value.

### Claim 8 (depends on 5)

The method of claim 5, wherein an update for the quantization size is performed by using at least one method of a stochastic gradient descent, an adaptive moment estimation, or a root mean square propagation.

### Claim 9 (depends on 5)

The method of claim 5, wherein the prediction bit rate is calculated by using a probability value of values of the acquired feature tensor determined according to the distribution information.

### Claim 10 (depends on 9)

The method of claim 9, wherein the prediction bit rate is calculated by adding a value obtained by taking a logarithm with a base of 2 to the probability value of the values of the acquired feature tensor.

### Claim 11 (depends on 5)

The method of claim 5, wherein the error is backpropagated by using a Straight Through Estimator (STE) method in which a differential value is fixed to a predefined value.

### Claim 12 (depends on 11)

The method of claim 11, wherein the differential value is predefined as one of ½, 1, 2, 3, or 4.

### Claim 13 (depends on 1)

The method of claim 1, wherein the bitstream is generated by performing an Asymmetric Numeral System (ANS)-based entropy encoding on the quantized feature tensor based on a predefined probability table.

### Claim 14 (depends on 3)

The method of claim 3, wherein the first neural network and the second neural network are learned so that a sum of a difference between the input image and a reconstructed image and an amount of generated bits becomes smaller.

### Claim 15

A neural network-based image processing device, comprising:
a processor configured to control the image processing device; and
a memory connected to the processor, the memory being configured to store data, wherein the processor is configured to:
acquire a feature tensor from an input image by using a first neural network including a plurality of neural network layers,
acquire a quantized feature tensor by quantizing the acquired feature tensor based on a quantization size,
generate a bitstream by performing entropy encoding on the quantized feature tensor,
wherein the quantization size is adaptively derived based on predefined encoding information.
