# US 10,803,258 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,258 B2
- Document ID: US10803258B2
- Status: Granted
- Kind: B2
- Application number: 16/800,998
- 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/US10803258B2

## 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 a mathematical operation using a plurality of passes, wherein for each of the plurality of passes, the circuitry is configured to:
determine one or more scaling factors for the pass based on a set of parameters representing a portion of a matrix;
scale at least some parameters of the set of parameters based on the one or more scaling factors to produce a scaled set of parameters;
program the analog processor based on the scaled set of parameters;
generate a plurality of input analog signals based on an input data set;
generate a plurality of output analog signals based on the plurality of input analog signals and the scaled set of parameters;
generate a partial output data set based on the plurality of output analog signals; and
scale the partial output data set based on the one or more scaling factors to produce a scaled partial output data set,
wherein the circuitry is further configured to generate an accumulated output data set by accumulating the scaled partial output data sets generated by at least two of the plurality of passes, wherein the accumulated output data set represents a result of the mathematical operation.

### Claim 2 (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 scaled set of parameters comprises performing a matrix-matrix multiplication based on the plurality of input analog signals and the scaled set of parameters.

### 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 scaled set of parameters comprises performing a convolution based on the plurality of input analog signals and the scaled set of parameters.

### Claim 4 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein the analog processor comprises a photonic processor comprising a plurality of programmable photonic devices, and wherein programming the analog processor based on the scaled set of parameters comprises setting respective characteristics for the plurality of programmable photonic devices based on the scaled set of parameters.

### Claim 5 (depends on 4)

The hybrid analog-digital processor of claim 4, wherein the programmable photonic devices comprise Mach-Zehnder interferometers, and wherein setting respective characteristics for the plurality of programmable photonic devices based on the scaled set of parameters comprises:
setting respective optical characteristics for the plurality of Mach-Zehnder interferometers based on the scaled set of parameters.

### Claim 6 (depends on 4)

The hybrid analog-digital processor of claim 4, wherein the programmable photonic devices comprise optical resonators, and wherein setting respective characteristics for the plurality of programmable photonic devices based on the scaled set of parameters comprises:
setting respective optical characteristics for the plurality of optical resonators based on the scaled set of parameters.

### Claim 7 (depends on 1)

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

### Claim 8 (depends on 7)

The hybrid analog-digital processor of claim 7, wherein programming the analog processor with a plurality of matrices comprises:
programming, based on the scaled 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 9 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein, for each of the plurality of passes, the circuitry is further configured to determine the one or more scaling factors based on a tile of the matrix that is associated with the pass.

### Claim 10

A method for performing a mathematical operation using a plurality of passes through an analog processor, the method comprising:
for each of the plurality of passes:
determining one or more scaling factors for the pass based on a set of parameters representing a portion of a matrix;
scaling at least some parameters of the set of parameters based on the one or more scaling factors to produce a scaled set of parameters;
programming the analog processor based on the scaled set of parameters;
generating a plurality of input analog signals based on an input data set;
generating a plurality of output analog signals based on the plurality of input analog signals and the scaled set of parameters;
generating a partial output data set based on the plurality of output analog signals; and
scaling the partial output data set based on the one or more scaling factors to produce a scaled partial output data set; and
generating an accumulated output data set by accumulating the scaled partial output data sets generated by at least two of the plurality of passes, wherein the accumulated output data set represents a result of the mathematical operation.

### Claim 11 (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 scaled set of parameters comprises performing a matrix-matrix multiplication based on the plurality of input analog signals and the scaled set of parameters.

### 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 scaled set of parameters comprises performing a convolution based on the plurality of input analog signals and the scaled set of parameters.

### Claim 13 (depends on 10)

The method of claim 10, wherein the analog processor comprises a photonic processor comprising a plurality of programmable photonic devices, and wherein programming the analog processor based on the scaled set of parameters comprises setting respective characteristics for the plurality of programmable photonic devices based on the scaled set of parameters.

### Claim 14 (depends on 13)

The method of claim 13, wherein the programmable photonic devices comprise Mach-Zehnder interferometers, and wherein setting respective characteristics for the plurality of programmable photonic devices based on the scaled set of parameters comprises:
setting respective optical characteristics for the plurality of Mach-Zehnder interferometers based on the scaled set of parameters.

### Claim 15 (depends on 13)

The method of claim 13, wherein the programmable photonic devices comprise optical resonators, and wherein setting respective characteristics for the plurality of programmable photonic devices based on the scaled set of parameters comprises:
setting respective optical characteristics for the plurality of optical resonators based on the scaled set of parameters.

### Claim 16 (depends on 10)

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

### Claim 17 (depends on 16)

The method of claim 16, wherein programming the analog processor with a plurality of matrices comprises:
programming, based on the scaled 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 18 (depends on 10)

The method of claim 10, wherein determining the one or more scaling factors comprises determining the one or more scaling factors based on a tile of the matrix that is associated with the pass.

### Claim 19

A hybrid analog-digital processor comprising:
circuitry comprising a photonic processor, wherein the circuitry is configured to perform a mathematical operation using a plurality of passes, wherein for each of the plurality of passes, the circuitry is configured to:
determine one or more scaling factors for the pass based on a set of parameters representing a portion of a matrix;
scale at least some parameters of the set of parameters based on the one or more scaling factors to produce a scaled set of parameters;
program the photonic processor based on the scaled set of parameters;
generate a plurality of input optical signals based on an input data set;
generate a plurality of output optical signals based on the plurality of input optical signals and the scaled set of parameters;
generate a partial output data set based on the plurality of output optical signals; and
scale the partial output data set based on the one or more scaling factors to produce a scaled partial output data set,
wherein the circuitry is further configured to generate an accumulated output data set by accumulating the scaled partial output data sets generated by at least two of the plurality of passes, wherein the accumulated output data set represents a result of the mathematical operation.

### Claim 20 (depends on 19)

The hybrid analog-digital processor of claim 19, wherein the photonic processor comprises a plurality of programmable photonic devices, and wherein programming the photonic processor based on the scaled set of parameters comprises setting respective characteristics for the plurality of programmable photonic devices based on the scaled set of parameters.

### Claim 21 (depends on 20)

The hybrid analog-digital processor of claim 20, wherein the programmable photonic devices comprise optical resonators, and wherein setting respective characteristics for the plurality of programmable photonic devices based on the scaled set of parameters comprises:
setting respective optical characteristics for the plurality of optical resonators based on the scaled set of parameters.

### Claim 22 (depends on 19)

The hybrid analog-digital processor of claim 19, 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 23 (depends on 22)

The hybrid analog-digital processor of claim 22, wherein each of the VBSs of the first and second array comprises a Mach-Zehnder interferometer comprising:
a first beam splitter;
a second beam splitter; and
at least one phase modulator configured to modulate a phase of light of an optical mode that couples the first beam splitter and the second beam splitter.

### Claim 24 (depends on 19)

The hybrid analog-digital processor of claim 19, wherein the photonic processor comprises a plurality of variable optical attenuators, and wherein programming the photonic processor based on the scaled set of parameters comprises setting respective characteristics for the plurality of variable optical attenuators based on the scaled set of parameters.

### Claim 25 (depends on 19)

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

### Claim 26 (depends on 19)

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