# US 2024/0005173 A1 · Verifying Neural Networks

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

- Number: US 2024/0005173 A1
- Document ID: US20240005173A1
- Status: Published application
- Kind: A1
- Application number: 18/039,997
- Filed: 2021-12-02
- Published: 2024-01-04
- Earliest claimed: 2020-12-02
- Assignees: Imperial College Innovations Limited
- Applicants: Imperial College Innovations Limited
- Inventors: Alessio LOMUSCIO; Patrick HENRIKSEN; Panagiotis KOUVAROS
- Web page: https://patentgrep.com/patent/US20240005173A1

## CPC

- G06N 3/10: Interfaces, programming languages or software development kits, e.g. for simulating neural networks
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- 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

Systems and methods are provided for verifying the transformational robustness of a neural network. Data is obtained representing a trained neural network, a set of algebraic constraints on the output of the network, and a range of inputs to the neural network over which the algebraic constraints are to be verified, such that the data defines a transformational robustness verification problem. A set of complementary constrains on the pre-activation of a node in the network are then determined such that for any input in the range of inputs, at least one of the complementary constraints is satisfied. A plurality of child verification problems are generated based on the transformational robustness verification problem and the set of complementary constraints. For each child verification problem, it is determined whether a counter-example to the child verification problem exists. Based on the determination of whether counter-examples to the child verification problems exist, it is determined whether the neural network is transformationally robust.

## Claims

### Claim 1

A computer-implemented method for verifying the transformational robustness of a neural network, comprising the steps of:
obtaining data representing a trained neural network, a set of algebraic constraints on the output of the network, and a range of inputs to the neural network over which the algebraic constraints are to be verified, such that the data defines a transformational robustness verification problem;
determining a set of complementary constraints on the pre-activation of a node in the network such that for any input in the range of inputs, at least one of the complementary constraints is satisfied;
generating a plurality of child verification problems based on the transformational robustness verification problem and the set of complementary constraints;
determining, for each child verification problem, whether a counter-example to the child verification problem exists; and
based on the determination of whether counter-examples to the child verification problems exist, determining whether the neural network is transformationally robust.

### Claim 2 (depends on 1)

A method according to claim 1, wherein at least two constraints of the complementary constraints constrain the pre-activation of the node to be respectively less than and greater than a threshold pre-activation value at which the activation function of the node has a breakpoint.

### Claim 3 (depends on 1)

A method according to claim 1, wherein the neural network comprises one or more nodes which apply a Rectified Linear Unit (ReLU) activation function, and wherein the complementary constraints are constraints on the pre-activation of a ReLU node.

### Claim 4 (depends on 1)

A method according to claim 1, wherein determining the set of complementary constraints on the pre-activation of a node in the network comprises:
estimating, for each of a plurality of candidate node pre-activation constraints, a reduction in complexity of the transformational robustness verification problem occasioned by introducing the constraint; and
selecting, based on the estimated reductions in complexity, a set of two or more complementary constraints.

### Claim 5 (depends on 4)

A method according to claim 4, wherein estimating, for a candidate node pre-activation constraint, a reduction in complexity of the transformational robustness verification problem occasioned by introducing the constraint comprises:
estimating a reduction in the estimated ranges of the pre-activations of other nodes occasioned by introducing the candidate node pre-activation constraint; and
estimating, based on the estimated reductions in estimated ranges of pre-activations of other nodes, an estimated reduction in complexity of the transformational robustness verification problem.

### Claim 6 (depends on 5)

A method according to claim 5, wherein estimating, for a candidate node pre-activation constraint, a reduction in the estimated ranges of the pre-activations of other nodes occasioned by introducing the candidate node pre-activation constraint, comprises:
determining, for each node in the network, a symbolic expression in terms of the input to the neural network that is a lower bound to the pre-activation of the node, and a symbolic expression in terms of the input to the neural network that is an upper bound to the pre-activation of the node; and
estimating the reduction in the estimated ranges of the pre-activations of other nodes based on the lower and upper symbolic bounds.

### Claim 7 (depends on 6)

A method according to claim 6, wherein the lower and the upper symbolic bounds are both linear functions of the input to the neural network, and wherein determining the lower and upper symbolic bounds comprises performing a Symbolic Interval Propagation.

### Claim 8 (depends on 6)

A method according to claim 6, wherein determining, for each child verification problem, whether a counter-example to the child verification problem exists comprises encoding the child verification problem as a set of algebraic constraints and solving for a solution to the set of algebraic constraints using a branch-and-bound algorithm.

### Claim 9 (depends on 8)

A method according to claim 8, wherein estimating, based on the estimated reductions in estimated ranges of pre-activations of other nodes, an estimated reduction in complexity of the transformational robustness verification problem occasioned by introducing a candidate node pre-activation constraint comprises:
determining a number of nodes whose pre-activations would be constrained to be fully positive or fully negative over the entire range of inputs to the network were the candidate node pre-activation constraint to be introduced.

### Claim 10 (depends on 6)

A method according to claim 6, wherein determining, for each child verification problem, whether a counter-example to the child verification problem exists comprises:
determining, for each node in the network, a symbolic expression in terms of the input to the neural network that is a lower bound to the pre-activation of the node, and a symbolic expression in terms of the input to the neural network that is an upper bound to the pre-activation of the node;
determining, based on the lower and upper symbolic bounds, a lower and an upper bound for each component of the output of the network; and
determining, based on the lower and upper bounds, whether a counter-example to the child verification problem exists.

### Claim 11 (depends on 10)

A method according to claim 10, wherein estimating, based on the estimated reductions in estimated ranges of pre-activations of other nodes, an estimated reduction in complexity of the transformational robustness verification problem occasioned by introducing a candidate node pre-activation constraint comprises:
determining an estimated improvement in the lower and upper bounds for each component of the output of the network were the candidate node pre-activation constraint to be introduced.

### Claim 12 (depends on 1)

A method according to claim 1, wherein the neural network is an image processing neural network which takes an image as input.

### Claim 13 (depends on 1)

A method according to claim 1, wherein the neural network is a controller neural network for controlling a physical device.

### Claim 14 (depends on 1)

A computer program product comprising computer executable instructions which, when executed by one or more processors, cause the one or more processors to carry out the method of claim 1.

### Claim 15 (depends on 1)

A perception system comprising one or more processors configured to carry out the method of claim 1.
