# US 2023/0056304 A1 · Using a low-bit-width dot product engine to sum high-bit-width numbers

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

- Number: US 2023/0056304 A1
- Document ID: US20230056304A1
- Status: Published application
- Kind: A1
- Application number: 17/894,431
- Filed: 2022-08-24
- Published: 2023-02-23
- Earliest claimed: 2020-05-07
- Assignees: Meta Platforms, Inc.
- Applicants: Meta Platforms, Inc.
- Inventors: Thomas Mark Ulrich; Krishnakumar Narayanan Nair; Ehsan Khish Ardestani Zadeh
- Web page: https://patentgrep.com/patent/US20230056304A1

## CPC

- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06F 7/483: Computations with numbers represented by a non-linear combination of denominational numbers, e.g. rational numbers, logarithmic number system or floating-point numbers {(G06F7/4806, G06F7/4824, G06F7/49, G06F7/491, G06F7/544 take precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system includes a vector multiplier configured to multiply a first vector of integer elements with a second vector of integer elements to determine a resulting vector of integer elements, wherein integer elements of the first and second vectors of integer elements are represented using a first number of bits and an integer element of the first vector of integer elements represents a portion of a value of a group of values. The system further includes a vector adder configured to add together the integer elements of the resulting vector of integer elements to determine a summed result, a bit shifter configured to shift bits of the summed result leftward, and an accumulator configured to determine an accumulated output sum that includes the leftward-shifted summed result.

## Claims

### Claim 1

A system, comprising:
a vector multiplier configured to multiply a first vector of integer elements with a second vector of integer elements to determine a resulting vector of integer elements, wherein:
integer elements of the first and second vectors of integer elements are represented using a first number of bits; and
an integer element of the first vector of integer elements represents a corresponding portion of a corresponding value of a group of values, wherein:
a value of the group of values is represented using a second number of bits greater than the first number of bits; and
the value of the group of values is stored as split segments across more than one integer element of the first vector of integer elements;
a vector adder configured to add together the integer elements of the resulting vector of integer elements to determine a summed result;
a bit shifter configured to shift bits of the summed result leftward; and
an accumulator configured to determine an accumulated output sum that includes the leftward-shifted summed result.

### Claim 2 (depends on 1)

The system of claim 1, wherein each integer element of the second vector of integer elements has a value that is either zero or one.

### Claim 3 (depends on 1)

The system of claim 1, wherein the first number of bits is eight bits and the second number of bits is thirty-two bits.

### Claim 4 (depends on 1)

The system of claim 1, further comprising a multiplexer configured to select a bit shift amount of the bit shifter based at least in part on an iteration count.

### Claim 5 (depends on 1)

The system of claim 1, further comprising a first storage unit of one or more registers configured to store the first vector of integer elements.

### Claim 6 (depends on 5)

The system of claim 5, wherein the first storage unit is configured to store at least 256 bits.

### Claim 7 (depends on 1)

The system of claim 1, further comprising a second storage unit of one or more registers configured to store the second vector of integer elements.

### Claim 8 (depends on 1)

The system of claim 1, wherein the accumulated output sum includes a plurality of leftward-shifted summed results.

### Claim 9 (depends on 1)

The system of claim 1, wherein the accumulated output sum is utilized in an artificial neural network operation.

### Claim 10

A system, comprising:
a vector multiplier configured to multiply a first vector of floating-point elements with a second vector of floating-point elements to determine a resulting vector of floating-point elements, wherein:
floating-point elements of the first and second vectors of floating-point elements are represented using a first number of bits; and
a floating-point element of the first vector of floating-point elements represents a corresponding portion of a corresponding value of a group of values, wherein:
a value of the group of values is represented using a second number of bits greater than the first number of bits; and
the value of the group of values is stored as split segments across more than one floating-point element of the first vector of floating-point elements;
a vector adder configured to add together the floating-point elements of the resulting vector of floating-point elements to determine a summed result;
a subtractor configured to subtract a subtraction amount from an exponent portion of the summed result to determine an exponent-modified result; and
an accumulator configured to determine an accumulated output sum that includes the exponent-modified result.

### Claim 11 (depends on 10)

The system of claim 10, wherein each floating-point element of the second vector of floating-point elements has a value that is either zero or one.

### Claim 12 (depends on 10)

The system of claim 10, wherein the first number of bits is sixteen bits and the second number of bits is thirty-two bits.

### Claim 13 (depends on 12)

The system of claim 12, wherein the first number of bits are formatted in a Brain Floating Point floating-point format and the second number of bits are formatted in a single-precision floating-point format.

### Claim 14 (depends on 10)

The system of claim 10, further comprising a multiplexer configured to select the subtraction amount of the subtractor based at least in part on an iteration count.

### Claim 15 (depends on 10)

The system of claim 10, wherein the subtractor comprises an adder configured to add negative numbers.

### Claim 16 (depends on 10)

The system of claim 10, further comprising a first storage unit of one or more registers configured to store the first vector of floating-point elements.

### Claim 17 (depends on 16)

The system of claim 16, wherein the first storage unit is configured to store at least 256 bits.

### Claim 18 (depends on 10)

The system of claim 10, further comprising a second storage unit of one or more registers configured to store the second vector of floating-point elements.

### Claim 19 (depends on 10)

The system of claim 10, wherein the accumulated output sum includes a plurality of exponent-modified results.

### Claim 20 (depends on 10)

The system of claim 10, wherein the accumulated output sum is utilized in an artificial neural network operation.
