# US 10,803,259 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 10,803,259 B2
- Document ID: US10803259B2
- Status: Granted
- Kind: B2
- Application number: 16/801,015
- Filed: 2020-02-25
- Published: 2020-08-27
- Granted: 2020-10-13
- 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/US10803259B2

## 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 configured to perform a mathematical operation, comprising:
circuitry comprising an analog processor and an analog scaling unit, wherein the circuitry is configured to:
generate a plurality of input analog signals based on an input data set;
set a gain of the analog scaling unit based on one or more scaling factors;
program the analog processor with a set of parameters representing a matrix;
generate a plurality of output analog signals based on the plurality of input analog signals and the set of parameters;
generate a plurality of amplified or attenuated output analog signals by amplifying or attenuating, using the analog scaling unit, the plurality of input analog signals and/or the plurality of output analog signals; and
generate an output data set based on the plurality of amplified or attenuated output analog signals.

### Claim 2 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein the hybrid analog-digital processor is further configured to perform a multi-pass computation based on the mathematical operation, wherein the circuitry is further configured to:
set the gain of the analog scaling unit to a first value during a first pass of the multi-pass computation; and
set the gain of the analog scaling unit to a second value, different from the first value, during a second pass of the multi-pass computation.

### Claim 3 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein generating a plurality of output analog signals based on the plurality of input analog signals and the set of parameters comprises performing a matrix-matrix multiplication based on the plurality of input analog signals and the set of parameters.

### Claim 4 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein generating a plurality of output analog signals based on the plurality of input analog signals and the set of parameters comprises performing a convolution based on the plurality of input analog signals and the set of parameters.

### Claim 5 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein the circuitry comprises a plurality of analog-to-digital converters (ADCs), and the plurality of ADCs are configured to generate the output data set based on the plurality of output analog signals, wherein the plurality of ADCs comprise n-bit ADCs, with n equal to or less than 12.

### Claim 6 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein programming the analog processor comprises:
programming, based on the set of parameters, the analog processor with a plurality of matrices that, collectively, represent an arbitrary matrix.

### Claim 7 (depends on 6)

The hybrid analog-digital processor of claim 6, wherein programming the analog processor with a plurality of matrices comprises:
programming, based on the set of parameters, the analog processor with a plurality of matrices that, collectively, represent the arbitrary matrix based on a singular value decomposition (SVD) of the arbitrary matrix.

### Claim 8 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein the circuitry is further configured to determine the one or more scaling factors based on the set of parameters and the input data set.

### Claim 9 (depends on 8)

The hybrid analog-digital processor of claim 8, wherein determining the one or more scaling factors comprises determining the one or more scaling factors based on statistical bounds on the set of parameters and statistical bounds on the input data set.

### Claim 10

A method for performing a mathematical operation, the method comprising:
generating a plurality of input analog signals based on an input data set;
setting a gain of an analog scaling unit based on one or more scaling factors;
programming an analog processor with a set of parameters representing a matrix;
generating a plurality of output analog signals based on the plurality of input analog signals and the set of parameters;
generating a plurality of amplified or attenuated output analog signals by amplifying or attenuating, using the analog scaling unit, the plurality of input analog signals and/or the plurality of output analog signals; and
generating an output data set based on the plurality of amplified or attenuated output analog signals.

### Claim 11 (depends on 10)

The method of claim 10, wherein the hybrid analog-digital processor is further configured to perform a multi-pass computation based on the mathematical operation, wherein the circuitry is further configured to:
set the gain of the analog scaling unit to a first value during a first pass of the multi-pass computation; and
set the gain of the analog scaling unit to a second value, different from the first value, during a second pass of the multi-pass computation.

### Claim 12 (depends on 10)

The method of claim 10, wherein generating a plurality of output analog signals based on the plurality of input analog signals and the set of parameters comprises performing a matrix-matrix multiplication based on the plurality of input analog signals and the set of parameters.

### Claim 13 (depends on 10)

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

### Claim 14 (depends on 10)

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

### Claim 15 (depends on 14)

The method of claim 14, wherein programming the analog processor with a plurality of matrices comprises:
programming, based on the set of parameters, the analog processor with a plurality of matrices that, collectively, represent the arbitrary matrix based on a singular value decomposition (SVD) of the arbitrary matrix.

### Claim 16 (depends on 10)

The method of claim 10, further comprising determining the one or more scaling factors based on the set of parameters and the input data set.

### Claim 17 (depends on 16)

The method of claim 16, wherein determining the one or more scaling factors comprises determining the one or more scaling factors based on statistical bounds on the set of parameters and statistical bounds on the input data set.

### Claim 18

A hybrid analog-digital processor configured to perform a mathematical operation, comprising:
circuitry comprising a photonic processor and at least one amplifier, wherein the circuitry is configured to:
generate a plurality of input optical signals based on an input data set;
set a gain of the at least one amplifier based on one or more scaling factors;
program the photonic processor with a set of parameters representing a matrix;
generate a plurality of output optical signals based on the plurality of input optical signals and the set of parameters;
generate a plurality of output analog signals based on the plurality of output optical signals;
generate a plurality of amplified output signals by amplifying, using the at least one amplifier, at least one among:
the plurality of input optical signals,
the plurality of output optical signals, and
the plurality of output analog signals; and
generate an output data set based on the plurality of amplified output signals.

### Claim 19 (depends on 18)

The hybrid analog-digital processor of claim 18, wherein the at least one amplifier comprises an optical amplifier and an electronic amplifier, wherein amplifying, using the at least one amplifier, at least one among the plurality of input optical signals, the plurality of output optical signals and the plurality of output analog signals comprises:
amplifying the plurality of input optical signals with the optical amplifier; and
amplifying the plurality of output analog signals with the electronic amplifier.

### Claim 20 (depends on 18)

The hybrid analog-digital processor of claim 18, wherein the at least one amplifier comprises a laser, and wherein setting the gain of the amplifier comprises setting a gain of the laser.

### Claim 21 (depends on 18)

The hybrid analog-digital processor of claim 18, wherein the hybrid analog-digital processor is further configured to perform a multi-pass computation based on the mathematical operation, wherein the circuitry is further configured to:
set the gain of the at least one amplifier to a first value during a first pass of the multi-pass computation; and
set the gain of the at least one amplifier to a second value, different from the first value, during a second pass of the multi-pass computation.

### Claim 22 (depends on 18)

The hybrid analog-digital processor of claim 18, wherein generating a plurality of output analog signals based on the plurality of input analog signals and the set of parameters comprises performing a matrix-matrix multiplication based on the plurality of input analog signals and the set of parameters.

### Claim 23 (depends on 18)

The hybrid analog-digital processor of claim 18, wherein generating a plurality of output analog signals based on the plurality of input analog signals and the set of parameters comprises performing a convolution based on the plurality of input analog signals and the set of parameters.

### Claim 24 (depends on 18)

The hybrid analog-digital processor of claim 18, wherein the photonic processor comprises a plurality of optical resonators.

### Claim 25 (depends on 18)

The hybrid analog-digital processor of claim 18, wherein the photonic processor comprises:
a first array of interconnected variable beam splitters (VBSs) comprising a first plurality of optical inputs and a first plurality of optical outputs;
a second array of interconnected VBSs comprising a second plurality of optical inputs and a second plurality of optical outputs; and
a plurality of controllable optical elements, each of the plurality of these controllable optical elements coupling a single one of the first plurality of optical outputs of the first array to a respective single one of the second plurality of optical inputs of the second array.

### Claim 26 (depends on 18)

The hybrid analog-digital processor of claim 18, wherein programming the photonic processor comprises:
programming, based on the set of parameters, the photonic processor with a plurality of matrices that, collectively, represent an arbitrary matrix.

### Claim 27 (depends on 26)

The hybrid analog-digital processor of claim 26, wherein programming the photonic processor with a plurality of matrices comprises:
programming, based on the set of parameters, the photonic processor with a plurality of matrices that, collectively, represent the arbitrary matrix based on a singular value decomposition (SVD) of the arbitrary matrix.

### Claim 28 (depends on 26)

The hybrid analog-digital processor of claim 26, wherein programming the photonic processor with a plurality of matrices comprises:
programming, based on the scaled set of parameters, the photonic processor with a plurality of matrices that, collectively, represent the arbitrary matrix based on a dilation of the arbitrary matrix.

### Claim 29 (depends on 18)

The hybrid analog-digital processor of claim 18, wherein the circuitry is further configured to determine the one or more scaling factors based on the set of parameters and the input data set.

### Claim 30 (depends on 29)

The hybrid analog-digital processor of claim 29, wherein determining the one or more scaling factors comprises determining the one or more scaling factors based on statistical bounds on the set of parameters and statistical bounds on the input data set.
