# US 2023/0057387 A1 · System and Method for Low Rank Training of Neural Networks

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

- Number: US 2023/0057387 A1
- Document ID: US20230057387A1
- Status: Published application
- Kind: A1
- Application number: 17/814,041
- Filed: 2022-07-21
- Published: 2023-02-23
- Earliest claimed: 2021-07-23
- Assignees: Cohere Inc.
- Applicants: Cohere Inc.
- Inventors: Siddhartha Rao KAMALAKARA; Bharat VENKITESH; Aidan N. GOMEZ; Acyr Flavio Neto Locatelli
- Web page: https://patentgrep.com/patent/US20230057387A1

## CPC

- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/08: Learning methods
- G06N 3/045: Combinations of networks
- G06N 3/09: Supervised learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method of training a neural network model and related systems are disclosed. The method includes training the neural network model by factorising, based on a singular value decomposition scheme, a first plurality of nodes of the neural network model into a low rank neural network model comprising a second plurality of nodes. Each node of the second plurality of nodes is defined at least in part by at least one weight matrix, and the factorisation is based on a matrix decomposition scheme constrained by one or more directionality criteria.

## Claims

### Claim 1

A method of training a neural network model including a first plurality of nodes, the method comprising:
providing a training data set comprising a plurality of inputs and a corresponding plurality of expected results;
training the neural network model by:
factorising, based on a singular value decomposition scheme, the first plurality of nodes into a low rank neural network model comprising a second plurality of nodes such that each node of the second plurality of nodes is defined at least in part by at least one weight matrix, wherein the factorisation is based on a matrix decomposition scheme constrained by one or more directionality criteria;
iteratively updating a respective value of the at least one weight matrix of the second plurality of nodes based on an error determined by comparing (i) a prediction of the low rank neural network model based on the input, to (ii) the expected result corresponding to the input upon which the prediction is based; and
storing the trained low rank neural network model.

### Claim 2 (depends on 1)

The method of claim 1, wherein the at least one weight matrix has a lower effective rank compared to the respective node of the first plurality of nodes.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
constraining the factorising to a desired depth by constraining a number of matrices of the at least one matrix.

### Claim 4 (depends on 3)

The method of claim 3, wherein the desired depth is two.

### Claim 5 (depends on 1)

The method of claim 1, wherein the one or more directionality criteria requires all values of a dimensional matrix of the low rank neural network model to have a single value.

### Claim 6 (depends on 5)

The method of claim 5, wherein the single value of the dimensional matrix is one.

### Claim 7 (depends on 1)

The method of claim 1, further comprising pre-training the neural network model for a subset of a number of desired training iterations.

### Claim 8 (depends on 1)

The method of claim 1, further comprising, in response to determining an effective rank of the low rank neural network model is too low, increasing a rank of at least one of the at least one of the weight matrix in subsequent iterations.

### Claim 9 (depends on 1)

The method of claim 1, further comprising transmitting the trained low rank neural network model to a third party.

### Claim 10 (depends on 1)

The method of claim 1, further comprising receiving the training data from a third party.

### Claim 11 (depends on 1)

The method of claim 1, further comprising processing one or more new data points with the trained low rank neural network model to generate a new prediction.

### Claim 12 (depends on 1)

The method of claim 1, wherein the neural network processes at least one of language or image data.

### Claim 13

A system for training a neural network model including a first plurality of nodes, the system comprising:
a processor;
a memory in communication with the processor, the memory comprising computer executable instructions that when executed by the processor cause the processor to:
provide a training data set comprising a plurality of inputs and a corresponding plurality of expected results;
train the neural network model by:
factorizing, based on a singular value decomposition scheme, the first plurality of nodes into a low rank neural network model comprising a second plurality of nodes such that each node of the second plurality of nodes is defined at least in part by at least one weight matrix, wherein the factorizing is based on a matrix decomposition scheme constrained by one or more directionality criteria;
iteratively updating a respective value of the at least one weight matrix of the second plurality of nodes based on an error determined by comparing (i) a prediction of the low rank neural network model based on the input, to (ii) the expected result corresponding to the input upon which the prediction is based; and
store the trained low rank neural network model.

### Claim 14 (depends on 13)

The device of claim 13, wherein the at least one weight matrix has a lower effective rank compared to the respective node of the first plurality of nodes.

### Claim 15 (depends on 13)

The device of claim 13, wherein the instructions cause the processor to constrain the factorizing to a desired depth by constraining a number of matrices of the at least one matrix.

### Claim 16 (depends on 15)

The device of claim 15, wherein the desired depth is two.

### Claim 17 (depends on 13)

The device of claim 13, wherein the one or more directionality criteria requires all values of a dimensional matrix to have a single value.

### Claim 18 (depends on 13)

The device of claim 13, wherein the instructions cause the processor to, in response to determining an effective rank of the low rank neural network model is too low, increase a rank of at least one of the at least one of the weight matrix in subsequent iterations.

### Claim 19 (depends on 13)

The device of claim 13, wherein the instructions cause the processor to process one or more new data points with the trained low rank neural network model to generate a new prediction.

### Claim 20

A non-transitory computer readable medium for training a neural network model including a first plurality of nodes, the computer readable medium comprising computer executable instructions to:
provide a training data set comprising a plurality of inputs and a corresponding plurality of expected results;
train the neural network model by:
factorising, based on a singular value decomposition scheme, the first plurality of nodes into a low rank neural network model comprising a second plurality of nodes such that each node of the second plurality of nodes is defined at least in part by at least one weight matrix, wherein the factorisation is based on a matrix decomposition scheme constrained by one or more directionality criteria;
iteratively updating a respective value of the at least one weight matrix of the second plurality of nodes based on an error determined by comparing a prediction of the low rank neural network model based on the input to the expected result corresponding to the input upon which the prediction is based; and
store the trained low rank neural network model.
