# US 2023/0273972 A1 · Processor instruction set architecture for machine learning with low bit precision weights

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

- Number: US 2023/0273972 A1
- Document ID: US20230273972A1
- Status: Published application
- Kind: A1
- Application number: 17/682,520
- Filed: 2022-02-28
- Published: 2023-08-31
- Earliest claimed: 2022-02-28
- Applicants: Texas Instruments Incorporated
- Inventors: Mahesh Madhukar MEHENDALE; Uri WEINRIB; Avi Sammy BERKOVICH
- Web page: https://patentgrep.com/patent/US20230273972A1

## CPC

- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F 5/01: for shifting, e.g. justifying, scaling, normalising {(digital stores in which the information is moved stepwise, e.g. shift-registers G11C19/00; digital stores in which the information circulates G11C21/00)}
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/063: using electronic means
- G06F 2207/4824: Neural networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A technique for controlling a processing device. The technique includes receiving, from a first register, input feature values. The technique also includes receiving, from a second register, weight values. The technique further includes receiving first addresses of output registers. The technique also includes performing a matrix multiplication of the input feature values and weight values in parallel to obtain matrix multiplication results. The technique further includes providing the matrix multiplication results to the output registers.

## Claims

### Claim 1

A method for controlling a processing device, the method comprising:
receiving, from a first register, input feature values;
receiving, from a second register, weight values;
receiving an indication of output registers;
performing a matrix multiplication of the input feature values and weight values in parallel to obtain matrix multiplication results; and
providing the matrix multiplication results to the output registers based on the received indication of the output registers.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving an indication toto perform a post processing operation on the output matrix multiplication results;
generating a post processed result by clamping the matrix multiplication results to limit the matrix multiplication results to a range; and
providing the post processed result in the output registers.

### Claim 3 (depends on 2)

The method of claim 2, further comprising performing a bit shift operation.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
receiving an indication of a clamp range and a shift value; wherein:
the clamping is based on the indication of the clamp range, and
the bit shift operation is performed based on the shift value.

### Claim 5 (depends on 4)

The method of claim 4, further comprising receiving scaling values.

### Claim 6 (depends on 5)

The method of claim 5, wherein the post processing operation includes multiplying the matrix multiplication results with the scaling values.

### Claim 7 (depends on 2)

The method of claim 2, further comprising receiving an indication of a clamp range, wherein the clamping operation is performed based on the indication of the clamp range.

### Claim 8 (depends on 2)

The method of claim 2, wherein a bias is applied to the output matrix multiplication results before the post processing operation.

### Claim 9 (depends on 1)

The method of claim 1, wherein values of the weights include one of binary values or ternary values.

### Claim 10

A system, comprising:
a first register configured to receive input feature values;
a second register configured to receive weights;
output registers;
a processor including:
a set of multipliers, and
a series of adders, wherein the processor is configured to:
receive the input feature values from the first register;
receive the weights from the second register;
receive an indication of the output registers;
process, by the set of multipliers, the input feature values and the weights to obtain intermediate results;
process, by the series of adders, the intermediate results to obtain a matrix multiplication output value; and
output the matrix multiplication output value to the output registers based on the received indication.

### Claim 11 (depends on 10)

The system of claim 10, wherein values of the weights include one of binary values or ternary values.

### Claim 12 (depends on 10)

The system of claim 10, wherein the processor is configured to perform a post processing operation on the matrix multiplication output value, wherein the post processing operation includes:
generate a post processed result by clamping the matrix multiplication output value to limit the matrix multiplication output value to a range; and
providing the post processed result to the output registers.

### Claim 13 (depends on 12)

The system of claim 12, wherein the processor is configured to perform a bit shift operation.

### Claim 14 (depends on 13)

The system of claim 13, wherein the processor is configured to:
receive an indication of a clamp range and a shift value, wherein the clamping is performed based on the indication of the clamp range, and the bit shift operation is performed based on the shift value.

### Claim 15 (depends on 14)

The system of claim 14, wherein the processor is configured to:
receive a set of scaling values; and
multiply the matrix multiplication output value with scaling values of the set of scaling values.

### Claim 16 (depends on 12)

The system of claim 12, wherein the processor is configured to receive an indication of a clamp range and the clamping is performed based on the indication of the clamp range.

### Claim 17 (depends on 10)

The system of claim 10, wherein a bias is applied to the matrix multiplication output valuer before the post processing operation.

### Claim 18

An electronic circuit comprising:
a first register configured to store input feature values;
a second register configured to store weight values;
output registers configured to provide a matrix multiplication output value; and
a processor coupled to the first register, the second register, and the output registers, the processor comprising:
a set of multipliers configured to process the input feature values and the weights to obtain intermediate results; and
a series of adders configured to process the intermediate results to obtain the output value.

### Claim 19 (depends on 18)

The electronic circuit of claim 18, wherein values of the weights include one of binary values or ternary values.

### Claim 20 (depends on 18)

The electronic circuit of claim 18, wherein the processor further comprises a clamping circuit configured to perform a clamping operation on the matrix multiplication output value limiting the matrix multiplication results to a range to generate a post processed result, and the output registers are configured to provide the post processed result.
