# US 11,775,779 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,775,779 B2
- Document ID: US11775779B2
- Status: Granted
- Kind: B2
- Application number: 17/246,892
- Filed: 2021-05-03
- Published: 2021-09-09
- Granted: 2023-10-03
- 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/US11775779B2

## 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

An accelerator comprising:
a plurality of digital-to-analog converters (DACs) configured to generate a plurality of input analog signals based on a data vector;
an analog processor arranged to perform matrix-vector multiplication and comprising inputs and outputs;
a plurality of n-bit analog-to-digital converters (ADCs) coupled to respective outputs of the analog processor, where n is equal to or less than 16;
a plurality of analog amplifiers, coupled between the plurality of DACs and respective inputs of the analog processor, configured to generate a plurality of amplified input analog signals based on the plurality of input analog signals; and
a controller configured to:
receive a set of parameters representing a matrix;
set a first gain of a first analog amplifier of the plurality of analog amplifiers and a second gain of a second amplifier of the plurality of analog amplifiers, wherein the first gain is different from the second gain;
control the analog processor to generate a plurality of output analog signals based on the plurality of amplified input analog signals and the set of parameters; and
control the plurality of ADCs to digitize the plurality of output analog signals.

### Claim 2 (depends on 1)

The accelerator of claim 1, wherein the first and second gains are greater or less than 1.

### Claim 3 (depends on 1)

The accelerator of claim 1, wherein the analog processor is a photonic processor configured to receive light and to perform matrix-vector multiplication using the light.

### Claim 4 (depends on 3)

The accelerator of claim 3, wherein the plurality of analog amplifiers are optical amplifiers.

### Claim 5 (depends on 3)

The accelerator of claim 3, further comprising a plurality of homodyne photodetectors coupled between the outputs of the analog processor and the plurality of n-bit ADCs.

### Claim 6 (depends on 1)

The accelerator of claim 1, where n is equal to or less than 12.

### Claim 7

A method for performing matrix-vector multiplication, comprising:
generating a plurality of input analog signals based on a data vector;
setting a first gain of a first multiplication unit of a plurality of multiplication units and a second gain of a second multiplication unit of the plurality of multiplication units, wherein the first gain is different from the second gain;
controlling an analog processor based on a set of parameters representing a matrix;
with the plurality of multiplication units, generating a plurality of scaled input analog signals by scaling the plurality of input analog signals;
with the analog processor, generating a plurality of output analog signals based on the plurality of scaled input analog signals and the set of parameters; and
controlling a plurality of n-bit analog-to-digital converters (ADCs), where n is equal to or less than 16, to digitize the plurality of output analog signals.

### Claim 8 (depends on 7)

The method of claim 7, where n is equal to or less than 12.

### Claim 9 (depends on 7)

The method of claim 7, wherein:
the matrix has at least MxM parameters,
the parameters of the set are represented by m1bits,
the data vector has entries represented by m2 bits, and
n is less than log2(M)+m1+m2.

### Claim 10 (depends on 7)

The method of claim 7, wherein the first and second gains are greater or less than 1.

### Claim 11 (depends on 7)

The method of claim 7, wherein m1 is equal to m2.

### Claim 12 (depends on 7)

The method of claim 7, wherein generating the plurality of output analog signals based on the plurality of scaled input analog signals and the set of parameters comprises performing a convolution based on the plurality of scaled input analog signals and the set of parameters.

### Claim 13 (depends on 7)

The method of claim 7, wherein controlling the analog processor comprises:
controlling, based on the set of parameters, the analog processor with a plurality of matrices that, collectively, represent an arbitrary matrix.

### Claim 14 (depends on 7)

The method of claim 7, further comprising determining the first and second gains based on the set of parameters and the data vector.

### Claim 15 (depends on 14)

The method of claim 14, wherein determining the first and second gains comprises determining the first and second gains based on statistical bounds on the set of parameters and statistical bounds on the data vector.

### Claim 16 (depends on 14)

The method of claim 14, wherein determining the first and second gains comprises determining the first and second gains using machine learning and regularizing the first and second gains using a regularization loss term.

### Claim 17 (depends on 7)

The method of claim 7, wherein data vector is represented according to a floating-point binary representation.

### Claim 18 (depends on 7)

The method of claim 7, wherein the set of parameters is represented according to a floating-point binary representation.

### Claim 19 (depends on 7)

The method of claim 7, wherein the scaling the plurality of input analog signals is represented according to a floating-point binary representation.

### Claim 20

An accelerator comprising:
a plurality of digital-to-analog converters (DACs) configured to generate a plurality of input analog signals based on a data vector;
an analog processor arranged to generate a plurality of output analog signals by performing matrix-vector multiplication based on the plurality of input analog signals, the analog processor comprising inputs and outputs;
a plurality of n-bit analog-to-digital converters (ADCs), where n is equal to or less than 16;
a plurality of analog scaling units, coupled between respective outputs of the analog processor and the plurality of ADCs, configured to generate a plurality of scaled output analog signals based on the plurality of output analog signals; and
a controller configured to:
receive a set of parameters representing a matrix;
set a first gain of a first analog scaling unit of the plurality of analog scaling units and a second gain of a second analog scaling unit of the plurality of analog scaling units, wherein the first gain is different from the second gain; and
control the analog processor based on the set of parameters.

### Claim 21 (depends on 20)

The accelerator of claim 20, wherein the first gain of the first analog scaling unit is greater or less than 1.

### Claim 22 (depends on 20)

The accelerator of claim 20, wherein the analog processor is a photonic processor configured to receive light and to perform matrix-vector multiplication using the light.

### Claim 23 (depends on 22)

The accelerator of claim 22, wherein the plurality of analog scaling units comprises a plurality of optical amplifiers.

### Claim 24 (depends on 20)

The accelerator of claim 20, where n is equal to or less than 12.

### Claim 25

A method for performing matrix-vector multiplication, comprising:
generating a plurality of input analog signals based on a data vector;
setting a first gain of a first multiplication unit-of a plurality of multiplication units and a second gain of a second multiplication unit of the plurality of multiplication units, wherein the first gain is different from the second gain;
controlling an analog processor based on a set of parameters representing a matrix;
with the analog processor, generating a plurality of output analog signals based on the plurality of input analog signals and the set of parameters;
with the plurality of multiplication units, generating a plurality of scaled output analog signals by scaling the plurality of output analog signals; and
controlling a plurality of n-bit analog-to-digital converters (ADCs), where n is equal to or less than 16, to digitize the plurality of scaled output analog signals.

### Claim 26 (depends on 25)

The method of claim 25, where n is equal to or less than 12.

### Claim 27 (depends on 25)

The method of claim 25, wherein:
the matrix has at least MxM parameters,
the parameters of the set are represented by m1 bits,
the data vector has entries represented by m2 bits, and
n is less than log2(M)+m1+m2.

### Claim 28 (depends on 27)

The method of claim 27, wherein m1 is equal to m2.

### Claim 29 (depends on 25)

The method of claim 25, wherein the first and second gains are greater or less than 1.
