# US 2021/0081765 A1 · Efficient inferencing with fast pointwise convolution

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

- Number: US 2021/0081765 A1
- Document ID: US20210081765A1
- Status: Published application
- Kind: A1
- Application number: 16/571,760
- Filed: 2019-09-16
- Published: 2021-03-18
- Earliest claimed: 2019-09-16
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Jamie Menjay LIN; Yang YANG; Jilei HOU
- Web page: https://patentgrep.com/patent/US20210081765A1

## CPC

- G06N 3/045: Combinations of networks
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06F 17/15: Correlation function computation {including computation of convolution operations (arithmetic circuits for sum of products per se, e.g. multiply-accumulators G06F7/5443; digital filters, e.g. FIR, IIR, adaptive filters H03H17/00)}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F 18/217: {Validation; Performance evaluation; Active pattern learning techniques}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06F 18/24: Classification techniques
- G06T 7/70: Determining position or orientation of objects or cameras (camera calibration G06T7/80)
- G06T 2207/20084: Artificial neural networks [ANN]
- G06V 40/10: Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- 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
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Embodiments described herein relate to a method, comprising: receiving input data at a convolutional neural network (CNN) model; generating a factorized computation network comprising a plurality of connections between a first layer of the CNN model and a second layer of the CNN model, wherein: the factorized computation network comprises N inputs, the factorized computation network comprises M outputs, and the factorized computation network comprises at least one path from every input of the N inputs to every output of the M outputs; setting a connection weight for a plurality of connections in the factorized computation network to 1 so that a weight density for the factorized computation network is <100%; performing fast pointwise convolution using the factorized computation network to generate fast pointwise convolution output; and providing the fast pointwise convolution output to the second layer of the CNN model.

## Claims

### Claim 1

A method, comprising:
receiving input data at a convolutional neural network (CNN) model;
generating a factorized computation network comprising a plurality of connections between a first layer of the CNN model and a second layer of the CNN model, wherein:
the factorized computation network comprises N inputs,
the factorized computation network comprises M outputs, and
the factorized computation network comprises at least one path from every input of the N inputs to every output of the M outputs;
performing fast pointwise convolution using the factorized computation network to generate fast pointwise convolution output; and
providing the fast pointwise convolution output to the second layer of the CNN model.

### Claim 2 (depends on 1)

The method of claim 1, further comprising: setting a connection weight for a plurality of connections in the factorized computation network to 1 so that a weight density for the factorized computation network is <100%.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
the factorized computation network comprises a number of stages n=log2 N, and
the plurality of connections comprise a plurality of weighting connections connected to addition nodes between the first layer of the CNN model and the second layer of the CNN model.

### Claim 4 (depends on 3)

The method of claim 3, wherein setting the connection weight for the plurality of connections in the factorized computation network to 1 comprises setting all connection weights for at least one stage of the number of stage to 1.

### Claim 5 (depends on 3)

The method of claim 3, wherein setting the connection weight for the plurality of connections in the factorized computation network to 1 comprises setting a subset of connection weights for at least one stage of the number of stages to 1.

### Claim 6 (depends on 1)

The method of claim 1, wherein:
N≠2n or N≠M, and
the method further comprises: performing linear scaling with null activation skipping on the factorized computation network, and
providing the fast pointwise convolution output to the second layer of the CNN model comprises providing only a first M channels of the fast pointwise convolution output to the second layer of the CNN model.

### Claim 7 (depends on 1)

The method of claim 1, further comprising: adding a plurality of skip connection to the factorized computation network.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
generating a model output from the CNN model; and
providing the model output to a low-power application running on a mobile electronic device.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
performing, by a first processor, a first inference based on the fast pointwise convolution output;
performing, by a second processor, a second fast pointwise convolution using the factorized computation network to generate second fast pointwise convolution output; and
providing the second fast pointwise convolution output to the second layer of the CNN model.

### Claim 10 (depends on 1)

The method of claim 1, wherein:
the input data is received from a sensor in a mobile electronic device, and
the input data is associated with an application running on the mobile electronic device and configured for at least one of: biometric feature detection, human presence detection, environmental condition detection, object detection, or object classification.

### Claim 11

A processing system, comprising:
a memory comprising computer-executable instructions; and
a first processor configured to execute the computer-executable instructions and cause the processing system to:
receive input data at a convolutional neural network (CNN) model;
generate a factorized computation network comprising a plurality of connections between a first layer of the CNN model and a second layer of the CNN model, wherein:
the factorized computation network comprises N inputs,
the factorized computation network comprises M outputs, and
the factorized computation network comprises at least one path from every input of the N inputs to every output of the M outputs;
perform fast pointwise convolution using the factorized computation network to generate fast pointwise convolution output; and
provide the fast pointwise convolution output to the second layer of the CNN model.

### Claim 12 (depends on 11)

The processing system of claim 11, wherein the first processor is further configured to cause the processing system to: set a connection weight for a plurality of connections in the factorized computation network to 1 so that a weight density for the factorized computation network is <100%.

### Claim 13 (depends on 11)

The processing system of claim 11, wherein:
the factorized computation network comprises a number of stages n=log2N, and
the plurality of connections comprise a plurality of weighting connections connected to addition nodes between the first layer of the CNN model and the second layer of the CNN model.

### Claim 14 (depends on 13)

The processing system of claim 13, wherein the plurality of connections in the factorized computation network set to 1 comprise all connection weights for at least one stage of the number of stages.

### Claim 15 (depends on 13)

The processing system of claim 13, wherein the plurality of connections in the factorized computation network set to 1 comprise a subset of connection weights for at least one stage of the number of stages.

### Claim 16 (depends on 11)

The processing system of claim 11, wherein:
N≠2n or N≠M, and
the first processor is further configured to cause the processing system to:
perform linear scaling with null activation skipping on the factorized computation network, and
provide, as the fast pointwise convolution output, only a first M channels of the fast pointwise convolution output to the second layer of the CNN model.

### Claim 17 (depends on 11)

The processing system of claim 11, further comprising: adding a plurality of skip connection to the factorized computation network.

### Claim 18 (depends on 11)

The processing system of claim 11, wherein the first processor is further configured to cause the processing system to:
generate a model output from the CNN model; and
provide the model output to a low-power application running on a mobile electronic device.

### Claim 19 (depends on 11)

The processing system of claim 11, wherein:
the first processor is further configured to cause the processing system to perform a first inference based on the fast pointwise convolution output, and
the processing system further comprises a second processor configured to cause the processing system to:
perform a second fast pointwise convolution using the factorized computation network to generate second fast pointwise convolution output; and
provide the second fast pointwise convolution output to the second layer of the CNN model.

### Claim 20 (depends on 11)

The processing system of claim 11, wherein:
the input data is received from a sensor in a mobile electronic device, and
the input data is associated with an application running on the mobile electronic device and configured for at least one of: biometric feature detection, human presence detection, environmental condition detection, object detection, or object classification.

### Claim 21

A non-transitory computer-readable medium comprising instructions that, when executed by a first processor of a processing system, cause the processing system to perform a method, the method comprising:
receiving input data at a convolutional neural network (CNN) model;
generating a factorized computation network comprising a plurality of connections between a first layer of the CNN model and a second layer of the CNN model, wherein:
the factorized computation network comprises N inputs,
the factorized computation network comprises M outputs, and
the factorized computation network comprises at least one path from every input of the N inputs to every output of the M outputs;
performing fast pointwise convolution using the factorized computation network to generate fast pointwise convolution output; and
providing the fast pointwise convolution output to the second layer of the CNN model.

### Claim 22 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein the method further comprises: setting a connection weight for a plurality of connections in the factorized computation network to 1 so that a weight density for the factorized computation network is <100%.

### Claim 23 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein:
the factorized computation network comprises a number of stages n=log2N, and
the plurality of connections comprise a plurality of weighting connections connected to addition nodes between the first layer of the CNN model and the second layer of the CNN model.

### Claim 24 (depends on 23)

The non-transitory computer-readable medium of claim 23, wherein setting the connection weight for the plurality of connections in the factorized computation network to 1 comprises setting all connection weights for at least one stage of the number of stages to 1.

### Claim 25 (depends on 23)

The non-transitory computer-readable medium of claim 23, wherein setting the connection weight for the plurality of connections in the factorized computation network to 1 comprises setting a subset of connection weights for at least one stage of the number of stages to 1.

### Claim 26 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein:
N≠2n or N≠M, and
the method further comprises: performing linear scaling with null activation skipping on the factorized computation network, and
providing the fast pointwise convolution output to the second layer of the CNN model comprises providing only a first M channels of the fast pointwise convolution output to the second layer of the CNN model.

### Claim 27 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein the method further comprises: adding a plurality of skip connection to the factorized computation network.

### Claim 28 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein the method further comprises:
generating a model output from the CNN model; and
providing the model output to a low-power application running on a mobile electronic device.

### Claim 29 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein the method further comprises:
performing, by a first processor, a first inference based on the fast pointwise convolution output;
performing, by a second processor, a second fast pointwise convolution using the factorized computation network to generate second fast pointwise convolution output; and
providing the second fast pointwise convolution output to the second layer of the CNN model.

### Claim 30 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein:
the input data is received from a sensor in a mobile electronic device, and
the input data is associated with an application running on the mobile electronic device and configured for at least one of: biometric feature detection, human presence detection, environmental condition detection, object detection, or object classification.
