# US 2021/0279594 A1 · Method and apparatus 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 2021/0279594 A1
- Document ID: US20210279594A1
- Status: Published application
- Kind: A1
- Application number: 17/096,126
- Filed: 2020-11-12
- Published: 2021-09-09
- Earliest claimed: 2020-03-06
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Wei JIANG; Wei WANG; Shan LIU
- Web page: https://patentgrep.com/patent/US20210279594A1

## CPC

- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F 18/2163: {Partitioning the feature space}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/09: Supervised learning
- G06T 9/002: {using neural networks}
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

In the present disclosure, a method for compressing a feature map is provided, where the feature map is generated by passing a first input through a deep neural network (DNN). A respective optimal index order and a respective optimal unifying method are determined for each of super-blocks that are partitioned from the feature map. A selective structured unification (SSU) layer is subsequently determined based on the respective optimal index order and the respective optimal unifying method for each of the super-blocks. The SSU layer is added to the DNN to form an updated DNN, and is configured to perform unification operations on the feature map. Further, a first estimated output is determined, where the first estimated output is generated by passing the first input through the updated DNN.

## Claims

### Claim 1

A method of compressing a feature map generated by passing a first input through a deep neural network (DNN), comprising:
determining a respective optimal index order and a respective optimal unifying method for each of super-blocks partitioned from the feature map;
determining a selective structured unification (SSU) layer based on the respective optimal index order and the respective optimal unifying method for each of the super-blocks, the SSU layer being added to the DNN to form an updated DNN, the SSU layer being configured to perform unification operations on the feature map; and
determining a first estimated output that is generated by passing the first input through the updated DNN.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
updating network coefficients of the DNN based on a first expected output and the first estimated output.

### Claim 3 (depends on 1)

The method of claim 1, wherein the determining the respective optimal index order and the respective optimal unifying method for each of the super-blocks further comprises:
defining unifying methods for each of the super-blocks;
obtaining feature unification losses based on the unifying methods for each of the super-blocks; and
determining the respective optimal index order and the respective optimal unifying method for each of the super-blocks based on the feature unification losses, the respective optimal index order, and the respective optimal unifying method for the respective super-block corresponding to a minimum feature unification loss of the feature unification losses.

### Claim 4 (depends on 3)

The method of claim 3, wherein the obtaining the feature unification losses further comprises:
obtaining a first feature unification loss of the feature unification losses for a first super-block, the first feature unification loss being equal to a sum of a compression rate loss, a unification distortion loss, and a computation speed loss.

### Claim 5 (depends on 4)

The method of claim 4, wherein the obtaining the first feature unification loss further comprises:
partitioning the first super-block into blocks, each of the blocks having a respective sub compression rate loss, a respective sub unification distortion loss, and a respective sub computation speed loss;
obtaining the compression rate loss of the first super-block, the compression rate loss of the first super-block being a sum of the sub compression rate losses of the blocks;
obtaining the unification distortion loss of the first super-block, the unification distortion loss of the first super-block being a sum of the sub unification distortion losses of the blocks; and
obtaining the computation speed loss of the first super-block, the computation speed loss of the first super-block being a sum of the sub computation speed losses of the blocks.

### Claim 6 (depends on 5)

The method of claim 5, wherein:
each of the sub compression rate losses is equal to a standard deviation of absolute values of features in a corresponding block;
each of the sub unification distortion losses is equal to a reciprocal of a multiplication value of a height, a width, and a depth for a corresponding block; and
each of the sub computation speed losses is a function of a number of multiplication operations in a computation using a unifying method for a corresponding block.

### Claim 7 (depends on 2)

The method of claim 2, wherein the SSU layer is added after an extraction layer of the DNN that generates the feature map.

### Claim 8 (depends on 7)

The method of claim 7, wherein the updating the network coefficients of the DNN further comprises:
generating the feature map by passing the first input through the updated DNN, the feature map being generated by the extraction layer;
generating a unified feature map by passing the feature map through the SSU layer that is positioned after the extraction layer; and
passing the unified feature map through remaining layers of the updated DNN to generate the first estimated output.

### Claim 9 (depends on 8)

The method of claim 8, wherein the generating the unified feature map further comprises:
ranking the super-blocks of the feature map according to feature unification losses of the super-blocks in an ascending order, each of the super-blocks being reordered along a depth of the feature map according to a corresponding index order;
defining a unification ratio q; and
unifying a q percent of the super-blocks ranked in the ascending order with an index order and an unifying method that generates a minimum feature unification loss in the feature unification losses of the super-blocks.

### Claim 10 (depends on 9)

The method of claim 9, wherein the updating the network coefficients of the DNN based on the first input and the first estimated output further comprises:
defining a target loss according to the first estimated output and the first expected output;
obtaining a gradient of the target loss; and
updating the network coefficients of the DNN based on the gradient of the target loss through a back propagation and weight update process.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
determining a second estimated output that is generated by passing a second input through the updated DNN; and
updating the network coefficients of the DNN based on a second expected output and the second estimated output.

### Claim 12

Al apparatus, comprising:
processing circuitry configured to:
determine a respective optimal index order and a respective optimal unifying method for each of super-blocks partitioned from a feature map generated by passing a first input through a deep neural network (DNN);
determine a selective structured unification (SSU) layer based on the respective optimal index order and the respective optimal unifying method for each of the super-blocks, the SSU layer being added to the DNN to form an updated DNN, the SSU layer being configured to perform unification operations on the feature map; and
determine a first estimated output that is generated by passing the first input through the updated DNN.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the processing circuitry is further configured to:
update network coefficients of the DNN based on a first expected output and the first estimated output.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein the processing circuitry is further configured to:
define unifying methods for each of the super-blocks;
obtain feature unification losses based on the unifying methods for each of the super-blocks; and
determine the respective optimal index order and the respective optimal unifying method for each of the super-blocks based on the feature unification losses, the respective optimal index order, and the respective optimal unifying method for the respective super-block corresponding to a minimum feature unification loss of the feature unification losses.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the processing circuitry is further configured to:
obtain a first feature unification loss of the feature unification losses for a first super-block, the first feature unification loss being equal to a sum of a compression rate loss, a unification distortion loss, and a computation speed loss.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the processing circuitry is further configured to:
partition the first super-block into blocks, each of the blocks having a respective sub compression rate loss, a respective sub unification distortion loss, and a respective sub computation speed loss;
obtain the compression rate loss of the first super-block, the compression rate loss of the first super-block being a sum of the sub compression rate losses of the blocks;
obtain the unification distortion loss of the first super-block, the unification distortion loss of the first super-block being a sum of the sub unification distortion losses of the blocks; and
obtain the computation speed loss of the first super-block, the computation speed loss of the first super-block being a sum of the sub computation speed losses of the blocks.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein:
each of the sub compression rate losses is equal to a standard deviation of absolute values of features in a corresponding block;
each of the sub unification distortion losses is equal to a reciprocal of a multiplication value of a height, a width, and a depth for a corresponding block; and
each of the sub computation speed losses is a function of a number of multiplication operations in a computation using a unifying method for a corresponding block.

### Claim 18 (depends on 13)

The apparatus of claim 13, wherein the SSU layer is added after an extraction layer of the DNN that generates the feature map.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the processing circuitry is further configured to:
generate the feature map by passing the first input through the updated DNN, the feature map being generated by the extraction layer;
generate a unified feature map by passing the feature map through the SSU layer that is positioned after the extraction layer;
pass the unified feature map through remaining layers of the updated DNN to generate the first estimated output;
define a target loss according to the first estimated output and the first expected output;
obtain a gradient of the target loss; and
update the network coefficients of the DNN based on the gradient of the target loss through a back propagation and weight update process.

### Claim 20

A non-transitory computer-readable medium storing instructions which when executed by a computer cause the computer to perform:
determining a respective optimal index order and a respective optimal unifying method for each of super-blocks partitioned from a feature map generated by passing a first input through a deep neural network (DNN);
determining a selective structured unification (SSU) layer based on the respective optimal index order and the respective optimal unifying method for each of the super-blocks, the SSU layer being added to the DNN to form an updated DNN, the SSU layer being configured to perform unification operations on the feature map; and
determining a first estimated output that is generated by passing the first input through the updated DNN.
