# US 2022/0100973 A1 · 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 2022/0100973 A1
- Document ID: US20220100973A1
- Status: Published application
- Kind: A1
- Application number: 17/545,137
- Filed: 2021-12-08
- Published: 2022-03-31
- 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/US20220100973A1

## 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 scaling factor for at least a portion of the matrix;
scaling the at least the portion of the matrix using the scaling factor to obtain a scaled at least portion of the matrix;
programming the analog processor using the scaled at least portion of the matrix;
performing, by the analog processor programmed using the scaled at least portion 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 an output scaling factor for the output generated by the analog processor;
scaling the output using the output scaling factor 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 at least the portion of the matrix has values stored using a dynamic range, and determining the output scaling factor for the output comprises determining the output scaling factor to restore the output to the dynamic range.

### Claim 4 (depends on 1)

The hybrid analog digital processor of claim 1, wherein the at least the portion 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 the at least the portion 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 scaling factor for the at least the portion of the matrix comprises determining the scaling factor based on a dynamic range of the ADC.

### Claim 7 (depends on 1)

The hybrid-analog digital processor of claim 1, wherein:
values of the at least the portion 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 at least portion of the matrix comprises programming the analog processor based on the fixed-point representation.

### Claim 8 (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 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 (depends on 1)

The hybrid-analog digital processor of claim 1, wherein the at least the portion of the matrix is a first portion of the matrix, the performing the operation involving the matrix further comprises:
determining a scaling factor for a second portion of the matrix;
scaling the second vector of the matrix using the scaling factor to obtain a scaled second portion of the matrix;
programming the analog processor using the scaled second portion of the matrix;
performing, by the analog processor programmed using the scaled second portion of the matrix, the operation to generate a second output; and
determining a result of the operation involving the matrix using the second output generated by the analog processor.

### Claim 11

A method comprising:
performing an operation involving a matrix using an analog processor of a hybrid analog-digital processor, the performing comprising:
determining a scaling factor for at least a portion of the matrix;
scaling the at least the portion of the matrix using the scaling factor to obtain a scaled at least portion of the matrix;
programming the analog processor using the scaled at least portion of the matrix;
performing, by the analog processor programmed using the scaled at least portion 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 12 (depends on 11)

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

### Claim 13 (depends on 12)

The method of claim 12, wherein the at least the portion of the matrix has values stored using a dynamic range, and determining the output scaling factor for the output comprises determining the output scaling factor to restore the output to the dynamic range.

### Claim 14 (depends on 11)

The method of claim 11, wherein the at least the portion of the matrix is a vector of the matrix.

### Claim 15 (depends on 11)

The method of claim 11, wherein determining the scaling factor for the at least the portion of the matrix comprises determining the scaling factor based on a dynamic range of an ADC of the hybrid analog-digital processor.

### Claim 16 (depends on 11)

The method of claim 11, wherein:
values of the at least the portion 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 scaling of the at least the portion of the matrix comprises programming the analog processor based on the fixed-point representation.

### Claim 17 (depends on 11)

The method of claim 11, 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 18 (depends on 11)

The method of claim 11, wherein the at least the portion of the matrix is a first portion of the matrix, and performing the operation involving the matrix further comprises:
determining a scaling factor for a second portion of the matrix;
scaling the second vector of the matrix using the scaling factor to obtain a scaled second portion of the matrix;
programming the analog processor using the scaled second portion of the matrix;
performing, by the analog processor programmed using the scaled second portion of the matrix, the operation to generate a second output; and
determining a result of the operation involving the matrix using the second output generated by the analog processor.

### Claim 19

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 scaling factor for at least a portion of the matrix;
scaling the at least the portion of the matrix using the scaling factor to obtain a scaled at least portion of the matrix;
programming the analog processor using the scaled at least portion of the matrix;
performing, by the analog processor programmed using the scaled at least portion 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 20 (depends on 19)

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