# US 2025/0168369 A1 · Neural network-based adaptive image and video compression method with variable rate

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

- Number: US 2025/0168369 A1
- Document ID: US20250168369A1
- Status: Published application
- Kind: A1
- Application number: 19/033,120
- Filed: 2025-01-21
- Published: 2025-05-22
- Earliest claimed: 2022-07-19
- Assignees: Bytedance Inc.
- Applicants: Bytedance Inc.
- Inventors: Semih Esenlik; Zhaobin Zhang; Kai Zhang; Li Zhang
- Web page: https://patentgrep.com/patent/US20250168369A1

## CPC

- H04N 19/192: the adaptation method, adaptation tool or adaptation type being iterative or recursive
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- H04N 19/124: Quantisation
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/436: using parallelised computational arrangements
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A mechanism for processing video data is in a neural network disclosed. The mechanism includes obtaining quantized residual latent samples. The quantized residual latent samples are processed to obtain processed quantized residual latent samples. A reconstructed latent sample can then be acquired based on the processed quantized residual latent sample.

## Claims

### Claim 1

A method for visual data processing comprising:
obtaining a quantized residual latent sample for each component of visual data;
performing a first processing on the quantized residual latent sample to de-scale the quantized residual latent sample to obtain a processed quantized residual latent sample; and
acquiring a reconstructed latent sample based on the processed quantized residual latent sample.

### Claim 2 (depends on 1)

The method of claim 1, wherein the method is used for decoding the visual data from a bitstream.

### Claim 3 (depends on 1)

The method of claim 1, wherein a residual latent sample is obtained by subtracting a prediction sample of the component from a latent sample of the component, a second processing is performed on the residual latent sample to obtain a processed residual latent sample, and the quantized residual latent sample is obtained based on the processed residual latent sample.

### Claim 4 (depends on 3)

The method of claim 3, wherein the first processing is performed by an inverse gain unit and the second processing is performed by a gain unit;
wherein the first processing applies an opposite function as the second processing;
wherein the first processing adjusts a magnitude of the quantized residual latent sample; or wherein the second processing adjusts a magnitude of the residual latent sample.

### Claim 5 (depends on 3)

The method of claim 3, wherein the first processing is based on a first processing vector, the second processing is based on a second processing vector, and the first processing vector and the second processing vector satisfy the following:
T
=
1
/
R
,
where T is the first processing vector and R is the second process vector.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first processing is implemented according to:
[
i
]
=
T
[
K
]
[
i
]
⁢
x
×
w
ˆ
[
i
]
where [i] indicates the processed quantized residual latent sample, T[K] indicates a first processing vector, T[K][i] indicates an element in the first processing vector corresponding to the quantized residual latent sample, K indicates an index of the first processing vector, ŵ [i] indicates the quantized residual latent sample, and i is an index corresponding to a channel dimension.

### Claim 7 (depends on 6)

The method of claim 6, wherein [i] is [i,x,y], and ŵ [i] is ŵ [i,x,y],
where x is an index corresponding to a horizontal spatial dimension, and y is an index corresponding to a vertical spatial dimension.

### Claim 8 (depends on 1)

The method of claim 1, wherein an indication is included in a bitstream to indicate which vector in a set of vectors is used in the first processing.

### Claim 9 (depends on 1)

The method of claim 1, further comprising: performing a third processing on a probability parameter to obtain a processed probability parameter;
wherein the processed probability parameter is used to derive the quantized residual latent sample.

### Claim 10 (depends on 9)

The method of claim 9, wherein the first processing is based on a first processing vector, the third processing is based on a third processing vector, and the first processing vector is derived from the third processing vector.

### Claim 11 (depends on 9)

The method of claim 9, wherein an indication is included in a bitstream to indicate which vector in a first set of vectors is used in the first processing and which vector in a second set of vectors is used in the third processing;
wherein the first processing is performed after obtaining the quantized residual latent sample using the processed probability parameter.

### Claim 12 (depends on 1)

The method of claim 1, wherein acquiring the reconstructed latent sample based on the processed quantized residual latent sample, comprises:
processing the processed quantized residual latent sample by an inverse residual and variance scale module;
adding an output of the inverse residual and variance scale module to a prediction sample to obtain the reconstructed latent sample.

### Claim 13 (depends on 1)

The method of claim 1, wherein the component is a luma component or a chroma component, and
wherein a reconstructed image is obtained by processing of the reconstructed latent sample with a transform process, wherein the transform process is an inverse transform or a synthesis transform.

### Claim 14 (depends on 3)

The method of claim 3, wherein different vectors in the first processing are used for a first sample and a second sample, respectively, and the different vectors in the first processing are respectively based on different indications in a bitstream;
wherein different vectors in the second processing are used for the first sample and the second sample, respectively, and the different vectors in the second processing are respectively based on different indications in the bitstream;
wherein the first sample and the second sample belong to different tiles;
wherein the first sample and the second sample belong to different components;
wherein reconstructed latent samples in the visual data are divided into at least two tiles, and the at least two tiles are rectangular partitions of the reconstructed latent samples.

### Claim 15

A method for visual data processing comprising:
acquiring a residual latent sample for each component of visual data;
performing a second processing on the residual latent sample to scale the residual latent sample to obtain a processed residual latent sample; and
processing the processed residual latent sample to acquire a quantized residual latent sample.

### Claim 16 (depends on 15)

The method of claim 15, wherein the second processing is implemented according to:
ws
[
i
]
=
R
[
K
]
[
i
]
×
w
[
i
]
where ws [i] indicates the processed residual latent sample, R[K] indicates a second processing vector, R[K][i] indicates an element in the second processing vector corresponding to the residual latent sample, K indicates an index of the second processing vector, w [i] indicates the residual latent sample, and i is an index corresponding to a channel dimension.

### Claim 17 (depends on 16)

The method of claim 16, wherein ws [i] is ws [i,x,y], and w [i] is w [i,x,y],
where x is an index corresponding to a horizontal spatial dimension, and y is an index corresponding to a vertical spatial dimension.

### Claim 18 (depends on 15)

The method of claim 15, wherein the method is used for encoding the visual data into a bitstream.

### Claim 19

An apparatus for processing visual data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to:
obtain a quantized residual latent sample for each component of visual data;
perform a first processing on the quantized residual latent sample to de-scale the quantized residual latent sample to obtain a processed quantized residual latent sample; and
acquire a reconstructed latent sample based on the processed quantized residual latent sample.

### Claim 20

An apparatus for processing visual data comprising: a processor; and a non-transitory memory with instructions thereon, wherein the instructions upon execution by the processor, cause the processor to:
acquire a residual latent sample for each component of visual data;
perform a second processing on the residual latent sample to scale the residual latent sample to obtain a processed residual latent sample; and
process the processed residual latent sample to acquire a quantized residual latent sample.
