# US 12,153,975 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 12,153,975 B2
- Document ID: US12153975B2
- Status: Granted
- Kind: B2
- Application number: 18/538,172
- Filed: 2023-12-13
- Published: 2024-06-13
- Granted: 2024-11-26
- 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/US12153975B2

## 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 multi-layer neural network, the performing comprising:
obtaining a first scaling factor for a first matrix associated with a first layer of the multi-layer neural network;
scaling at least a portion of the first matrix using the first scaling factor to obtain a first scaled matrix;
performing the first layer of the multi-layer neural network by controlling the analog processor to perform matrix multiplication using the first scaled matrix;
obtaining a second scaling factor for a second matrix associated with a second layer of the multi-layer neural network, wherein the first scaling factor is different from the second scaling factor;
scaling at least a portion of the second matrix using the second scaling factor to obtain a second scaled matrix; and
performing the second layer of the multi-layer neural network by controlling the analog processor to perform matrix multiplication using the second scaled matrix.

### Claim 2 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein the first matrix represents a first data set to be provided as input to the first layer of the multi-layer neural network and the second matrix represents a second data set to be provided as input to the second layer of the multi-layer neural network.

### Claim 3 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein the first matrix represents a first plurality of weights associated with the first layer of the multi-layer neural network and the second matrix represents a second plurality of weights associated with the second layer of the multi-layer neural network.

### Claim 4 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein obtaining the first scaling factor comprises learning the first scaling factor using a training procedure.

### Claim 5 (depends on 4)

The hybrid analog-digital processor of claim 4, wherein obtaining the second scaling factor comprises learning the second scaling factor using the training procedure.

### Claim 6 (depends on 4)

The hybrid analog-digital processor of claim 4, wherein learning the second scaling factor using the training procedure comprises identifying an optimum scaling factor that maximizes an accuracy of the multi-layer neural network.

### Claim 7 (depends on 1)

The hybrid analog-digital processor of claim 1, wherein the first and second scaling factors are greater than 1.

### Claim 8 (depends on 1)

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

### Claim 9 (depends on 8)

The hybrid analog-digital processor of claim 8, wherein scaling at least a portion of the first matrix is performed using optical amplifiers.

### Claim 10

A method of performing a multi-layer neural network, comprising:
obtaining a first scaling factor for a first matrix associated with a first layer of the multi-layer neural network;
scaling at least a portion of the first matrix using the first scaling factor to obtain a first scaled matrix;
performing the first layer of the multi-layer neural network by controlling an analog processor to perform matrix multiplication using the first scaled matrix;
obtaining a second scaling factor for a second matrix associated with a second layer of the multi-layer neural network, wherein the first scaling factor is different from the second scaling factor;
scaling at least a portion of the second matrix using the second scaling factor to obtain a second scaled matrix; and
performing the second layer of the multi-layer neural network by controlling the analog processor to perform matrix multiplication using the second scaled matrix.

### Claim 11 (depends on 10)

The method of claim 10, wherein the first matrix represents a first data set to be provided as input to the first layer of the multi-layer neural network and the second matrix represents a second data set to be provided as input to the second layer of the multi-layer neural network.

### Claim 12 (depends on 10)

The method of claim 10, wherein the first matrix represents a first plurality of weights associated with the first layer of the multi-layer neural network and the second matrix represents a second plurality of weights associated with the second layer of the multi-layer neural network.

### Claim 13 (depends on 10)

The method of claim 10, wherein obtaining the first scaling factor comprises learning the first scaling factor using a training procedure.

### Claim 14 (depends on 13)

The method of claim 13, wherein obtaining the second scaling factor comprises learning the second scaling factor using the training procedure.

### Claim 15 (depends on 13)

The method of claim 13, wherein learning the second scaling factor using the training procedure comprises identifying an optimum scaling factor that maximizes an accuracy of the multi-layer neural network.

### Claim 16 (depends on 10)

The method of claim 10, wherein the first and second scaling factors are greater than 1.

### Claim 17 (depends on 10)

The method of claim 10, wherein the analog processor is a photonic processor configured to receive light and to perform the matrix multiplication using the light.

### Claim 18 (depends on 17)

The method of claim 17, wherein scaling at least a portion of the first matrix is performed using optical amplifiers.
