PatentRef

Data version 20261117.2, as of 2026-11-17. Free beta.

US 10678508

Accelerated quantized multiply-and-add operations

Granted 2020-06-09 · Filed 2018-03-23 · Application 15/934,681 · Utility · Kind B2 · Prior publication US 2019/0294413 A1, 2019-09-26

Assignee as printed
  • Amazon Technologies, Inc., Seattle, WA (US)
Inventors
Dana Michelle Vantrease, Austin, TX (US); Randy Renfu Huang, معلمی نژاد, CA (US); Ron Diamant, Albany, CA (US); Thomas Elmer, Austin, TX (US); Sundeep Amirineni, Austin, TX (US)
CPC, current
G06F7/5443; G06F7/16; G06F7/5095; G06F17/15; G06F17/153; G06N3/0464; G06N3/0495; G06N3/063; G06F2207/4824; G06N3/045

Abstract

Disclosed herein are techniques for accelerating convolution operations or other matrix multiplications in applications such as neural network. A computer-implemented method includes receiving low-precision inputs for a convolution operation from a storage device, and subtracting a low-precision value representing a high-precision zero value from the low-precision inputs to generate difference values, where the low-precision inputs are asymmetrically quantized from high-precision inputs. The method also includes performing multiplication and summation operations on the difference values to generate a sum of products, and generating a high-precision output by scaling the sum of products with a scaling factor.

Claims

24 claims · independent 1, 6 and 16

The claims as the USPTO long-text file prints them (text data version 20261117.3), split by PatentRef's claim parser (structure version 2): each claim's opening words, then one row for each element with its character offsets in the claim text, and the dependent claims under the claim they refer to. The split describes the text; it is not a reading of it. Each claim and each element has a link of its own. How the links are made.

Claim 1

Independent claim.

1. A computer-implemented method, comprising:

  1. Claim 1, element e1receiving floating point inputs to a convolution layer of an artificial neural network; 46–132
  2. Claim 1, element e2quantizing the floating point inputs linearly into n-bit integer inputs, 134–205
  3. Claim 1, element e3wherein: 207–214
  4. Claim 1, element e4n is a multiple of 8; 216–236
  5. Claim 1, element e5a minimum value of the floating point inputs is quantized as integer zero; 238–311
  6. Claim 1, element e6a maximum value of the floating point inputs is quantized as 2 n −1; and 313–380
  7. Claim 1, element e7a zero value of the floating point inputs is quantized as an integer representing the zero value of the floating point inputs with no quantization error; 386–538
  8. Claim 1, element e8storing the integer inputs in a memory; 540–578
  9. Claim 1, element e9reading, by the convolution layer, the integer inputs from the memory; 580–649
  10. Claim 1, element e10creating difference values by subtracting, by a subtraction engine, the integer representing the zero value of the floating point inputs from the integer inputs such that the zero value of the floating point inputs is represented by an integer value zero; 651–905
  11. Claim 1, element e11performing, by the convolution layer, one set of (n+1)-bit integer multiplication and summation operations on the difference values to generate a sum of products; and 907–1068
  12. Claim 1, element e12generating, by an activation layer, a pooling layer, or an output buffer of the artificial neural network, a floating point output by scaling the sum of products with a floating point scaling factor.1074–1272
4 dependent claims: 2 to 5 (2, 3, 4, 5 on claim 1)

Claim 2

Depends on claim 1.

2. The computer-implemented method of claim 1 , wherein

  1. Claim 2, element e1n is equal to 8.56–71

Claim 3

Depends on claim 1.

3. The computer-implemented method of claim 1 , wherein

  1. Claim 3, element e1the minimum value and the maximum value of the floating point inputs are not symmetrical with respect to the zero value of the floating point inputs.56–204

Claim 4

Depends on claim 1.

4. The computer-implemented method of claim 1 , wherein

  1. Claim 4, element e1the floating point output represents a convolution result of the floating point inputs.56–142

Claim 5

Depends on claim 1.

5. The computer-implemented method of claim 1 , wherein

  1. Claim 5, element e1the floating point scaling factor is a first floating point scaling factor; and 56–130
  2. Claim 5, element e2wherein the first floating point scaling factor comprises a multiplication product of second floating point scaling factors, each second floating point scaling factor being associated with the quantization of one of the floating point inputs into the respective n-bit integer input.136–417

Claim 6

Independent claim.

6. An apparatus comprising:

  1. Claim 6, element e1a storage device configured to store low-precision inputs for a convolution operation, 28–113
  2. Claim 6, element e2wherein the low-precision inputs are generated from high-precision inputs using asymmetrical quantization; 115–220
  3. Claim 6, element e3an array of subtraction engines configured to receive the low-precision inputs from the storage device and subtract a low-precision value representing a high-precision zero value from the low-precision inputs, thereby creating difference values; 222–466
  4. Claim 6, element e4a processing element (PE) array configured to generate a sum of products using the difference values, the PE array including a plurality of rows of processing elements, each row of processing elements configured to receive difference values from a corresponding subtraction engine; and 468–748
  5. Claim 6, element e5a processing engine configured to scale the sum of products by a scaling factor to generate a high-precision output.754–869
9 dependent claims: 7 to 15 (7, 9, 10, 12, 13, 14, 15 on claim 6; 8 on 7; 11 on 10)

Claim 7

Depends on claim 6.

7. The apparatus of claim 6 , wherein:

  1. Claim 7, element e1the low-precision inputs are stored in the storage device in an n-bit format; and 39–115
  2. Claim 7, element e2n is a multiple of 8.121–141

Claim 8

Depends on claim 7.

8. The apparatus of claim 7 , wherein:

  1. Claim 8, element e1the high-precision inputs comprise 32-bit floating point inputs; 39–102
  2. Claim 8, element e2the low-precision inputs comprise 8-bit unsigned integers; and 104–161
  3. Claim 8, element e3the difference values comprise 9-bit signed integers.167–219

Claim 9

Depends on claim 6.

9. The apparatus of claim 6 , wherein,

  1. Claim 9, element e1in the asymmetrical quantization: 39–71
  2. Claim 9, element e2a minimum value of the high-precision inputs is quantized as a zero value in the low-precision inputs; 73–174
  3. Claim 9, element e3a maximum value of the high-precision inputs is quantized as a maximum value in the low-precision inputs; and 176–280
  4. Claim 9, element e4a zero value of the high-precision inputs is quantized as the low-precision value representing the high-precision zero value with no quantization error.286–437

Claim 10

Depends on claim 6.

10. The apparatus of claim 6 , wherein:

  1. Claim 10, element e1the high-precision inputs comprise weights and input data elements for a layer of an artificial neural network; and 40–150
  2. Claim 10, element e2the weights and the input data elements are quantized independently.156–223

Claim 11

Depends on claim 10.

11. The apparatus of claim 10 , wherein

  1. Claim 11, element e1the array of subtraction engines is configured to subtract from low-precision inputs corresponding to both the weights and the input data elements.40–186

Claim 12

Depends on claim 6.

12. The apparatus of claim 6 , wherein

  1. Claim 12, element e1the apparatus comprises a field-programmable gate array (FPGA), a system-on-chip (SoC), an application specific integrated circuit (ASIC), a programmable array logic (PAL), or a complex programmable logic device (CPLD).39–257

Claim 13

Depends on claim 6.

13. The apparatus of claim 6 , wherein

  1. Claim 13, element e1the processing element array is configured to perform one set of multiplications and summations using the difference values to generate the sum of products.39–194

Claim 14

Depends on claim 6.

14. The apparatus of claim 6 , wherein

  1. Claim 14, element e1the processing engine comprises an activation engine, a pooling engine, or an output buffer of an artificial neural network.39–162

Claim 15

Depends on claim 6.

15. The apparatus of claim 6 , wherein

  1. Claim 15, element e1the sum of products is generated by the PE array in a single pass.39–104

Claim 16

Independent claim.

16. A computer-implemented method, comprising:

  1. Claim 16, element e1receiving, from a storage device, low-precision inputs for a convolution operation, 47–129
  2. Claim 16, element e2wherein the low-precision inputs are generated from high-precision inputs using asymmetrical quantization; 131–236
  3. Claim 16, element e3subtracting, by a subtraction engine, a low-precision value representing a high-precision zero value from the low-precision inputs to create difference values; 238–396
  4. Claim 16, element e4performing, by a processing engine, multiplication and summation operations on the difference values to generate a sum of products; and 398–528
  5. Claim 16, element e5generating, by a post-processing engine, a high-precision output by scaling the sum of products with a scaling factor.534–651
8 dependent claims: 17 to 23 (17, 18, 20, 21, 22, 23, 23 on claim 16; 19 on 18)

Claim 17

Depends on claim 16.

17. The computer-implemented method of claim 16 , wherein:

  1. Claim 17, element e1the high-precision inputs comprise 32-bit floating point inputs; 59–122
  2. Claim 17, element e2the low-precision inputs comprise 8-bit unsigned integers; and 124–181
  3. Claim 17, element e3the difference values comprise 9-bit signed integers.187–239

Claim 18

Depends on claim 16.

18. The computer-implemented method of claim 16 , wherein,

  1. Claim 18, element e1in the asymmetrical quantization: 59–91
  2. Claim 18, element e2a minimum value of the high-precision inputs is quantized as a zero value in the low-precision inputs; 93–194
  3. Claim 18, element e3a maximum value of the high-precision inputs is quantized as a maximum value in the low-precision inputs; and 196–300
  4. Claim 18, element e4a zero value of the high-precision inputs is quantized as the low-precision value representing the high-precision zero value with no quantization error.306–457

Claim 19

Depends on claim 18.

19. The computer-implemented method of claim 18 , wherein

  1. Claim 19, element e1the minimum value and the maximum value of the high-precision inputs are not symmetrical with respect to the zero value of the high-precision inputs.58–206

Claim 20

Depends on claim 16.

20. The computer-implemented method of claim 16 , wherein

  1. Claim 20, element e1the high-precision inputs comprise weights or input data elements for a layer of an artificial neural network.58–167

Claim 21

Depends on claim 16.

21. The computer-implemented method of claim 16 , wherein

  1. Claim 21, element e1the processing engine is configured to perform low-precision multiplication and summation operations rather than high-precision multiplication and summation operations.58–225

Claim 22

Depends on claim 16.

22. The computer-implemented method of claim 16 , wherein

  1. Claim 22, element e1the multiplication and summation operations are performed by a processing element array.58–145

Claim 23

Depends on claim 16.

23. The computer-implemented method of claim 16 , wherein

  1. Claim 23, element e1scaling the sum of products with the scaling factor comprises scaling the sum of products using an activation engine, a pooling engine, or an output buffer of an artificial neural network.58–245

23. The computer-implemented method of claim 16 , wherein

  1. Claim 23, element e1scaling the sum of products with the scaling factor comprises scaling the sum of products using an activation engine, a pooling engine, or an output buffer of an artificial neural network.58–245

Status

active

As of 2026-11-17, the USPTO record for US 10678508 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record is 2038-05-28 (20 years from filing, plus 66 days of patent term adjustment), a date not yet passed (data version 20261117.2).

Basis
term_20y · pta_days:66 (20 years from filing, plus 66 days of patent term adjustment)
Term end
2038-05-28 Computed from the dates in the USPTO record
Fee lapse
none on record
Reinstatement
none on record; reinstatement_possible: false, not lapsed
As of
2026-11-17
Data version
20261117.2

A fact about the record with its basis and its as-of date, not legal advice.

Citations

References cited on the grant: 0 US patent documents · Cited by: 44 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/10678508/ (needs a free key, as the links under Get this as data)

Family outside the US

Publications outside the US that Google Patents Public Datasets lists in the same patent family as US 10678508 (read 2026-10-15). Their legal status is not shown here.

OfficeNumberKindPublished
CN111937010A2020-11-13
CN111937010B2021-09-21
EP3738082A12020-11-18
EP3738082B12023-01-11
JP2021510888A2021-04-30
JP6946572B22021-10-06
WO2019183202A12019-09-26

This patent's family on USPTO Global Dossier

Family data from Google Patents Public Datasets, used under CC BY 4.0.

Record JSON
{
 "patent_id": "10678508",
 "status": "active",
 "basis": [
  "term_20y",
  "pta_days:66"
 ],
 "reinstatement_possible": false,
 "reinstatement_basis": "not lapsed",
 "expiry_date_estimated": "2038-05-28",
 "lapse_date": null,
 "reinstated_date": null,
 "as_of": "2026-11-17",
 "data_version": "20261117.2",
 "catalog_data_version": "20261117.2",
 "permalink": "https://patentref.io/p/10678508?v=20261117.2",
 "next_steps": [
  {
   "kind": "record",
   "url": "https://patentref.io/p/10678508?v=20261117.2",
   "audience": "human"
  },
  {
   "kind": "patent",
   "url": "https://patentref.io/api/v1/patent/10678508/",
   "audience": "agent"
  },
  {
   "kind": "fee_events",
   "tool": "uspto_patent_center",
   "url": "https://patentcenter.uspto.gov/applications?patentNumber=10678508",
   "audience": "agent"
  }
 ]
}

Get this as data

These four links need a free key (1,000 requests a month). Opened in a browser, which sends no key, they answer 403. Get a free key on the sign-up page, then send it in the X-Api-Key header. To see the shape of an answer without a key, open Try it.

Elsewhere

Cite this record

https://patentref.io/p/10678508?v=20261117.2

Data 20261117.2 · as of 2026-11-17