# US 2021/0287087 A1 · Efficient simultaneous inference computation for multiple neural networks

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

- Number: US 2021/0287087 A1
- Document ID: US20210287087A1
- Status: Published application
- Kind: A1
- Application number: 17/192,250
- Filed: 2021-03-04
- Published: 2021-09-16
- Earliest claimed: 2020-03-10
- Assignees: Robert Bosch GmbH
- Applicants: Robert Bosch GmbH
- Inventors: Dirk Staneker; Hans-Georg Horst; Nicolai Wacker; Thomas Matschke; Wolfgang Dressler
- Web page: https://patentgrep.com/patent/US20210287087A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for the inference computation of a plurality of neural networks on a hardware platform. Each of the neural networks comprise a plurality of neurons, which respectively aggregate inputs into a network input using a transfer function characterized by weights and process this network input into an activation using an activation function. The method includes: identifying at least one unit, which comprises one or multiple transfer functions and/or complete neurons and exists in at least two of the networks in the same form or in a form that is similar according to a predefined criterion; performing a single inference computation for the unit on the hardware platform so that the unit provides a set of outputs; processing this set of outputs in the respective networks as an output of the unit. A method for the simultaneous execution of multiple applications is also provided.

## Claims

### Claim 1

A method for an inference computation of a plurality of neural networks on a hardware platform, each of the neural networks including a plurality of neurons, which respectively aggregate inputs into a network input using a transfer function characterized by weights and process the network input into an activation using an activation function, the method comprising the following steps:
identifying at least one unit, which includes one or multiple transfer functions and/or complete neurons and exists in at least two networks of the networks in the same form or in a form that is similar in the at least two networks according to a predefined criterion;
performing a single inference computation for the unit on the hardware platform so that the unit provides a set of outputs; and
processing the set of outputs in respective networks of the at least two networks as an output of the unit.

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein the predefined criterion specifies that the unit in the at least two networks receives identical or similar inputs.

### Claim 3 (depends on 2)

The method as recited in claim 2, wherein similarity of two sets of inputs depends on the extent to which they refer to physical observation of one and the same scene using one or multiple sensors.

### Claim 4 (depends on 2)

The method as recited in claim 2, wherein similarity of two sets of inputs depends on the extent to which they stem from identical, and/or similar and/or overlapping physical sensors.

### Claim 5 (depends on 1)

The method as recited in claim 1, wherein the predefined criterion specifies that the unit in the at least two networks is characterized by identical or similar sets of weights of the transfer functions or neurons.

### Claim 6 (depends on 5)

The method as recited in claim 5, wherein the similarity of two sets of weights depends on the extent to which distributions formed via the sets of weights are similar to one another.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein sets of inputs, which the unit receives in respective networks of the at least two networks, are combined into a single set of inputs.

### Claim 8 (depends on 1)

The method as recited in claim 1, wherein sets of weights, by which the unit is characterized in respective networks of the at least two networks, are combined into a single set of weights.

### Claim 9 (depends on 1)

The method as recited in claim 1, wherein the neural networks are amalgamated into one single neural network in such a way that the unit occurs therein only once, and an inference computation for the amalgamated neural network is performed on the hardware platform.

### Claim 10 (depends on 1)

The method as recited in claim 1, wherein the inputs of the neural networks include identical or similar audio data and the neural networks are respectively trained for classification of different sounds.

### Claim 11 (depends on 1)

The method as recited in claim 1, wherein the inputs of the neural networks include identical or similar image data, and/or thermal image data, an/or video data, and/or radar data, and/or ultrasonic data and/or LIDAR data and the neural networks are respectively trained for the classification of different objects.

### Claim 12 (depends on 1)

The method as recited in claim 1, wherein a control signal is formed from a result of the inference computation of the one or multiple neural networks, and a vehicle, and/or a system for quality control of products produced in series, and/or a system for medical imaging, and/or an access control system is controlled using the control signal.

### Claim 13

A method for simultaneous execution of multiple applications on a hardware platform, at least one inference computation for at least one neural network being executed within each of the applications, a memory area being allocated to each application on the hardware platform, which is protected against access by other applications of the applications, comprising the following steps:
requesting, by each of the applications, an inference computation it requires from a central worker process by specifying a respective neural network and respective inputs to be processed;
performing each of the inference computations within the central worker process, on the hardware platform, each of the neural networks including a plurality of neurons, which respectively aggregate inputs into a network input using a transfer function characterized by weights and process the network input into an activation using an activation function, including, for each of the interference computations:
identifying at least one unit, which includes one or multiple transfer functions and/or complete neurons and exists in at least two networks of the networks in the same form or in a form that is similar in the at least two networks according to a predefined criterion,
performing a single inference computation for the unit on the hardware platform so that the unit provides a set of outputs, and
processing the set of outputs in respective networks of the at least two networks as an output of the unit;
returning, by the worker process, outputs of the inference computations respectively to the requesting applications.

### Claim 14

A non-transitory machine-readable data carrier on which is stored a computer program for an inference computation of a plurality of neural networks on a hardware platform, each of the neural networks including a plurality of neurons, which respectively aggregate inputs into a network input using a transfer function characterized by weights and process the network input into an activation using an activation function, the computer program, when executed by one or more computers, causing the one or more computers to perform the following steps:
identifying at least one unit, which includes one or multiple transfer functions and/or complete neurons and exists in at least two networks of the networks in the same form or in a form that is similar in the at least two networks according to a predefined criterion;
performing a single inference computation for the unit on the hardware platform so that the unit provides a set of outputs; and
processing the set of outputs in respective networks of the at least two networks as an output of the unit.

### Claim 15

A computer configured for an inference computation of a plurality of neural networks on a hardware platform, each of the neural networks including a plurality of neurons, which respectively aggregate inputs into a network input using a transfer function characterized by weights and process the network input into an activation using an activation function, the computer configured to:
identify at least one unit, which includes one or multiple transfer functions and/or complete neurons and exists in at least two networks of the networks in the same form or in a form that is similar in the at least two networks according to a predefined criterion;
perform a single inference computation for the unit on the hardware platform so that the unit provides a set of outputs; and
process the set of outputs in respective networks of the at least two networks as an output of the unit.
