# US 11,886,942 B2 · Hybrid analog-digital matrix processors

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

- Number: US 11,886,942 B2
- Document ID: US11886942B2
- Status: Granted
- Kind: B2
- Application number: 17/545,137
- Filed: 2021-12-08
- Published: 2022-03-31
- Granted: 2024-01-30
- Earliest claimed: 2019-02-26
- Assignees: Lightmatter, Inc.
- Applicants: Lightmatter, Inc.
- Inventors: Tyler J. Kenney; Martin B. Z. Forsythe; Tomo Lazovich; Darius Bunandar
- Web page: https://patentgrep.com/patent/US11886942B2

## CPC

- G06J 1/005: {for correlation; for convolution; for Z or Fourier Transform}
- G06J 1/02: Differential analysers
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06N 3/065: Analogue means
- G06J: HYBRID COMPUTING ARRANGEMENTS (optical hybrid computing devices G06E3/00)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Techniques for computing matrix operations for arbitrarily large matrices on a finite-sized hybrid analog-digital matrix processor are described. Techniques for gain adjustment in a finite-sized hybrid analog-digital matrix processor are described which enable the system to obtain higher energy efficiencies, greater physical density and improved numerical accuracy. In some embodiments, these techniques enable maximization of the predictive accuracy of a GEMM-based convolutional neural network using low-precision data representations.

## Claims

### Claim 1

A hybrid analog-digital processor comprising:
circuitry comprising an analog processor, wherein the circuitry is configured to perform an operation involving a matrix, the performing comprising:
determining a plurality of scaling factors for a plurality of portions of the matrix, the plurality of scaling factors comprising a first scaling factor for a first portion of the plurality of portions and a second scaling factor for a second portion of the plurality of portions;
scaling the plurality of portions of the matrix using respective ones of the plurality of scaling factors to obtain a scaled plurality of portions of the matrix, the scaling comprising scaling the first portion of the matrix using the first scaling factor and scaling the second portion of the matrix using the second scaling factor;
programming the analog processor using the scaled plurality of portions of the matrix;
performing, by the analog processor programmed using the scaled plurality of portions of the matrix, the operation to generate an output; and
determining a result of the operation involving the matrix using the output generated by the analog processor.

### Claim 2 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein the performing further comprises:
determining a plurality of output scaling factors for the output generated by the analog processor;
scaling the output using the plurality of output scaling factors to obtain a scaled output; and
determining the result of the matrix operation using the scaled output.

### Claim 3 (depends on 2)

The hybrid analog-digital processor of claim 2, wherein the plurality of portions of the matrix have values stored using a dynamic range, and determining the plurality of output scaling factors for the output comprises determining the plurality of output scaling factors to restore the output to the dynamic range.

### Claim 4 (depends on 1)

The hybrid analog digital processor of claim 1, wherein each of the plurality of portions of the matrix is a row or column of the matrix.

### Claim 5 (depends on 1)

The hybrid analog digital processor of claim 1, wherein each of the plurality of portions of the matrix is a vector of the matrix.

### Claim 6 (depends on 1)

The hybrid analog-digital processor of claim 1, further comprising an analog-to-digital converter (ADC), wherein determining the plurality of scaling factors for the plurality of portions of the matrix comprises determining the plurality of scaling factors based on a dynamic range of the ADC.

### Claim 7 (depends on 6)

The hybrid-analog digital processor of claim 6, wherein a dynamic range of the floating point representation is greater than a dynamic range of the fixed point representation.

### Claim 8 (depends on 1)

The hybrid-analog digital processor of claim 1, wherein:
values of the plurality of portions of the matrix are stored in a floating point representation and the analog processor is configured to operate using a fixed-point representation; and
programming the analog processor using the scaled plurality of portions of the matrix comprises programming the analog processor based on the fixed-point representation.

### Claim 9 (depends on 1)

The hybrid-analog digital processor of claim 1, wherein the circuitry is configured to determine an output of a neural network, wherein determining the output of the neural network comprises the performing of the operation involving the matrix.

### Claim 10

A method comprising:
performing an operation involving a matrix using an analog processor of a hybrid analog-digital processor, the performing comprising:
determining a plurality of scaling factors for a plurality of portions of the matrix;
scaling the plurality of portions of the matrix using respective ones of the plurality of scaling factors to obtain a scaled plurality of portions of the matrix;
programming the analog processor using the scaled plurality of portions of the matrix;
performing, by the analog processor programmed using the scaled plurality of portions of the matrix, the operation to generate an output; and
determining a result of the operation involving the matrix using the output generated by the analog processor.

### Claim 11 (depends on 10)

The method of claim 10, wherein performing the operation involving the matrix further comprises:
determining a plurality of output scaling factors for the output generated by the analog processor; and
scaling the output using the plurality of output scaling factors to obtain a scaled output; and
determining the result of the matrix operation using the scaled output.

### Claim 12 (depends on 11)

The method of claim 11, wherein the plurality of portions of the matrix have values stored using a dynamic range, and determining the plurality of output scaling factors for the output comprises determining the plurality of output scaling factors to restore the output to the dynamic range.

### Claim 13 (depends on 10)

The method of claim 10, wherein each of the plurality of portions of the matrix is a vector of the matrix.

### Claim 14 (depends on 10)

The method of claim 10, wherein determining the plurality of scaling factors for the plurality of portions of the matrix comprises determining the plurality of scaling factors based on a dynamic range of an ADC of the hybrid analog-digital processor.

### Claim 15 (depends on 10)

The method of claim 10, wherein:
values of the plurality of portions of the matrix are stored in a floating point representation and the analog processor is configured to operate using a fixed-point representation; and
programming the analog processor using the scaled plurality of portions of the matrix comprises programming the analog processor based on the fixed-point representation.

### Claim 16 (depends on 10)

The method of claim 10, further comprising determining an output of a neural network, wherein determining the output of the neural network comprises the performing of the operation involving the matrix.

### Claim 17

A non-transitory computer-readable storage medium storing instructions that, when executed by a hybrid analog-digital processor, cause the hybrid analog-digital processor to perform an operation involving a matrix using an analog processor of the hybrid analog-digital processor, the performing comprising:
determining a plurality of scaling factors for a plurality of portions of the matrix;
scaling the plurality of portions of the matrix using respective ones of the plurality of scaling factors to obtain a scaled plurality of portions of the matrix;
programming the analog processor using the scaled plurality of portions of the matrix;
performing, by the analog processor programmed using the scaled plurality of portions of the matrix, the operation to generate an output; and
determining a result of the operation involving the matrix using the output generated by the analog processor.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the performing further comprises:
determining a plurality of output scaling factors for the output generated by the analog processor; and
scaling the output using the plurality of output scaling factors to obtain a scaled output; and
determining the result of the matrix operation using the scaled output.
