# US 2024/0205436 A1 · Network based image filtering for video coding

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

- Number: US 2024/0205436 A1
- Document ID: US20240205436A1
- Status: Published application
- Kind: A1
- Application number: 18/426,274
- Filed: 2024-01-29
- Published: 2024-06-20
- Earliest claimed: 2021-07-29
- Assignees: Beijing Dajia Internet Information Technology Co., Ltd.
- Applicants: Beijing Dajia Internet Information Technology Co., Ltd.
- Inventors: Wei CHEN; Xiaoyu XIU; Yi-Wen CHEN; Hong-Jheng JHU; Che-Wei KUO; Xianglin WANG; Bing YU
- Web page: https://patentgrep.com/patent/US20240205436A1

## CPC

- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/436: using parallelised computational arrangements
- 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
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- H04N 19/124: Quantisation
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/463: by compressing encoding parameters before transmission
- G06N 3/048: Activation functions
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method and an apparatus for hybrid training of neural networks for video coding are provided. The method includes: obtaining, in an offline training stage, an offline trained network by training a neural network offline; and refining, in an online training stage, a plurality of neural network layers with constraint on a plurality of parameters of the plurality of neural network layers, where the plurality of neural network layers may include at least one neural network layer in the offline trained network or in a simple neural network connected to the offline trained network.

## Claims

### Claim 1

A method for hybrid training of neural networks for video coding, comprising:
obtaining, in an offline training stage, an offline trained network by training a neural network offline; and
refining, in an online training stage, a plurality of neural network layers with constraint on a plurality of parameters of the plurality of neural network layers, wherein the plurality of neural network layers comprise at least one neural network layer in the offline trained network or in a simple neural network connected to the offline trained network.

### Claim 2 (depends on 1)

The method of claim 1, wherein refining the plurality of neural network layers with constraint on the plurality of parameters comprising:
applying regularization based constraint on the plurality of parameters.

### Claim 3 (depends on 2)

The method of claim 2, wherein applying the regularization based constraint on the plurality of parameters comprises at least one of:
updating the plurality of parameters using a dynamic range before and after an online training epoch;
updating the plurality of parameters according to a parameter category of at least one parameter of the plurality of neural network layers;
updating one or more parameters of a subset of channels, wherein a neural network layer of the plurality of neural network layers comprises a plurality of channels comprising the subset of channels; or
updating the plurality of parameters based on regularization of a loss function.

### Claim 4 (depends on 3)

The method of claim 3, wherein updating the plurality of parameters using the dynamic range before and after an online training epoch comprises at least one of:
clipping a first parameter of the at least one neural network layer in the offline trained network using the dynamic range, based on a value of the first parameter before the online training epoch and a predetermined value; or
clipping a second parameter of the at least one neural network layer in the simple neural network connected to the offline trained network by a predefined range.

### Claim 5 (depends on 3)

The method of claim 3, wherein updating the plurality of parameters according to the parameter category of the at least one parameter of the plurality of neural network layers comprises:
classifying the plurality of parameters into different categories and assigning the different categories into different bands; and
updating one or more parameters in the different bands differently.

### Claim 6 (depends on 5)

The method of claim 5, wherein classifying the plurality of parameters into different categories comprises:
classifying the plurality of parameters based on one of followings: intensity values of the plurality of parameters, or roles of neurons.

### Claim 7 (depends on 5)

The method of claim 5, wherein the different bands comprise a first band and a second band, one or more parameters in the first band are updated using a first dynamic range and one or more parameters in the second band are updated using a second dynamic range, and the first dynamic range is greater than the second dynamic range.

### Claim 8 (depends on 5)

The method of claim 5, further comprising:
skipping updating one or more parameters in one or more bands.

### Claim 9 (depends on 5)

The method of claim 5, wherein updating one or more parameters in the different bands differently comprises:
dividing a band into a first sub-band and a second sub-band; and
updating one or more parameters in the first sub-band without updating one or more parameters in the second sub-band, wherein the one or more parameters in the first sub-band have higher values than the one or more parameters in the second sub-band.

### Claim 10 (depends on 3)

The method of claim 3, wherein the plurality of parameters are updated based on regularization of a loss function, and the method further comprises:
generating a penalty term based on a difference of a first parameter of the at least one neural network layer in the offline trained network between before and after an online training epoch; and
obtaining an updated loss function by adding the penalty term to an existing loss function.

### Claim 11 (depends on 3)

The method of claim 3, wherein the plurality of parameters are updated based on regularization of a loss function, and the method further comprises:
generating a penalty term based on a value of a second parameter of the at least one neural network layer in the simple neural network connected to the offline trained network; and
obtaining an updated loss function by adding the penalty term to an existing loss function.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
applying post-processing based constraint on the plurality of parameters after the online training stage.

### Claim 13 (depends on 12)

The method of claim 12, wherein applying the post-processing based constraint on the plurality of parameters after the online training stage comprises:
approximating an update difference to a predefined value, wherein the update difference is a difference between a first value of at least one parameter of the at least one neural network layer in the offline trained network before the online training and a second value of the at least one parameter after the online training; and
updating the at least one parameter according to the updated difference.

### Claim 14 (depends on 13)

The method of claim 13, wherein approximating the update difference to a predefined value comprises:
approximating the update difference by quantizing the update difference.

### Claim 15 (depends on 13)

The method of claim 13, wherein approximating the update difference to a predefined value comprises:
in response to determining that the update difference is smaller than a predefined threshold, determining that the update difference is 0.

### Claim 16 (depends on 12)

The method of claim 12, wherein applying the post-processing based constraint on the plurality of parameters after the online training stage comprises:
approximating a parameter of the at least one neural network layer in the simple neural network connected to the offline trained network to a predefined value.

### Claim 17 (depends on 16)

The method of claim 16, wherein approximating the parameter of the at least one neural network layer in the simple neural network connected to the offline trained network to a predefined value comprises:
approximating the parameter by quantizing the parameter.

### Claim 18 (depends on 16)

The method of claim 16, wherein approximating the parameter of the at least one neural network layer in the simple neural network connected to the offline trained network to a predefined value comprises:
in response to determining that a value of the parameter is smaller than a predefined threshold, determining that the value of the parameter is 0.

### Claim 19

An apparatus for hybrid training of neural networks for video coding, comprising:
one or more processors; and
a memory configured to store instructions executable by the one or more processors,
wherein the one or more processors, upon execution of the instructions, are configured to perform a method comprising:
obtaining, in an offline training stage, an offline trained network by training a neural network offline; and
refining, in an online training stage, a plurality of neural network layers with constraint on a plurality of parameters of the plurality of neural network layers, wherein the plurality of neural network layers comprise at least one neural network layer in the offline trained network or in a simple neural network connected to the offline trained network.

### Claim 20

A non-transitory computer-readable storage medium storing a bitstream generated or to be decoded by using neural networks for video coding, wherein the neural networks are trained according to a method comprising:
obtaining, in an offline training stage, an offline trained network by training a neural network offline; and
refining, in an online training stage, a plurality of neural network layers with constraint on a plurality of parameters of the plurality of neural network layers, wherein the plurality of neural network layers comprise at least one neural network layer in the offline trained network or in a simple neural network connected to the offline trained network.
