# US 2023/0267333 A1 · Reparameterization of selective networks for end-to-end training

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

- Number: US 2023/0267333 A1
- Document ID: US20230267333A1
- Status: Published application
- Kind: A1
- Application number: 18/113,492
- Filed: 2023-02-23
- Published: 2023-08-24
- Earliest claimed: 2022-02-23
- Applicants: Royal Bank of Canada
- Inventors: Mahmoud Salem; Frederick Tung; Mohamed O. Ahmed; Gabriel Oliveira
- Web page: https://patentgrep.com/patent/US20230267333A1

## CPC

- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/09: Supervised learning
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method is provided for training a selective network that includes a selection node for selecting whether to make a prediction. During training, the selection node is reparameterized as a differentiable function of learnable parameters acting on noise from a base distribution. The differentiable function approximates a sampling from a categorical distribution.

## Claims

### Claim 1

A method of training a selective network, wherein:
the selective network includes a selection node for selecting whether to make a prediction;
wherein:
during training, the selection node is reparameterized as a differentiable function of learnable parameters acting on noise from a base distribution;
wherein the differentiable function approximates a sampling from a categorical distribution.

### Claim 2 (depends on 1)

The method of claim 1, wherein the base distribution is the Gumbel distribution.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
during at least one forward pass of the network, using argmax to perform selection at the selection node; and
during at least one backward pass of the network, using a softmax approximation of the argmax at the selection node to compute gradients.

### Claim 4 (depends on 3)

The method of claim 3, wherein the softmax approximation uses temperature annealing.

### Claim 5 (depends on 1)

The method of claim 1, wherein the noise is i.i.d. noise.

### Claim 6 (depends on 1)

The method of claim 1, wherein the prediction is a classification.

### Claim 7 (depends on 1)

The method of claim 1, wherein the prediction is a numerical value.

### Claim 8 (depends on 1)

The method of claim 1, wherein the selective network is one of a convolutional network, a fully connected network, a residual network, and a recurrent network.

### Claim 9

A data processing system, comprising;
at least one processor;
a memory coupled to the at least one processor, the memory containing instructions which, when executed by the at least one processor, cause the at least one processor to:
train a selective network, wherein the selective network includes a selection node for selecting whether to make a prediction; and
during training, reparameterize the selection node as a differentiable function of learnable parameters acting on noise from a base distribution, wherein the differentiable function approximates a sampling from a categorical distribution.

### Claim 10 (depends on 9)

The data processing system of claim 9, wherein the base distribution is the Gumbel distribution.

### Claim 11 (depends on 10)

The data processing system of claim 10, wherein the instructions, when executed by the at least one processor, further cause the at least one processor to:
during at least one forward pass of the network, use argmax to perform selection at the selection node; and
during at least one backward pass of the network, use a softmax approximation of the argmax at the selection node to compute gradients.

### Claim 12 (depends on 11)

The data processing system of claim 11, wherein the softmax approximation uses temperature annealing.

### Claim 13 (depends on 9)

The data processing system of claim 9, wherein the noise is i.i.d. noise.

### Claim 14 (depends on 9)

The data processing system of claim 9, wherein the prediction is a classification.

### Claim 15 (depends on 9)

The data processing system of claim 9, wherein the prediction is a numerical value.

### Claim 16 (depends on 9)

The data processing system of claim 9, wherein the selective network is one of a convolutional network, a fully connected network, a residual network, and a recurrent network.

### Claim 17

A computer program product comprising a non-transitory tangible computer-readable medium having computer-readable instructions embodied therewith, wherein the instructions, when executed by at least one processor, cause the at least one processor to:
train a selective network, wherein the selective network includes a selection node for selecting whether to make a prediction; and
during training, reparameterize the selection node as a differentiable function of learnable parameters acting on noise from a base distribution, wherein the differentiable function approximates a sampling from a categorical distribution.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the base distribution is the Gumbel distribution.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the instructions, when executed by the at least one processor, cause the at least one processor to:
during at least one forward pass of the network, use argmax to perform selection at the selection node; and
during at least one backward pass of the network, use a softmax approximation of the argmax at the selection node to compute gradients.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the softmax approximation uses temperature annealing.

### Claim 21 (depends on 17)

The computer program product of claim 17, wherein the noise is i.i.d. noise.

### Claim 22 (depends on 17)

The computer program product of claim 17, wherein the prediction is a classification.

### Claim 23 (depends on 17)

The computer program product of claim 17, wherein the prediction is a numerical value.

### Claim 24 (depends on 17)

The computer program product of claim 17, wherein the selective network is one of a convolutional network, a fully connected network, a residual network, and a recurrent network.
