Machine learning model training using an analog processor
Abstract
Described herein are techniques of training a machine learning model and performing inference using an analog processor. Some embodiments mitigate the loss in performance of a machine learning model resulting from a lower precision of an analog processor by using an adaptive block floating-point representation of numbers for the analog processor. Some embodiments mitigate the loss in performance of a machine learning model due to noise that is present when using an analog processor. The techniques involve training the machine learning model such that it is robust to noise.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 80 · Forward citations: 1.
Claims (8)
- Claim 1Independent Claim
A system comprising: circuitry comprising an analog processor; wherein the circuitry is configured to train a machine learning model, the training comprising performing one or more matrix operations to learn parameters of the machine learning model using the analog processor, wherein performing a matrix operation of the one or more matrix operations to learn the parameters of the machine learning model using the analog processor comprises: determining a scaling factor for a first portion of a first matrix involved in the matrix operation; scaling the first portion of the first matrix using the scaling factor for the first portion of the first matrix to obtain a scaled first portion of the first matrix; programming the analog processor using the scaled first portion of the first matrix; performing, by the analog processor programmed using the scaled first portion of the first matrix, the matrix operation to generate a first output; and determining a result of the matrix operation using
- Claim 2Depends on #1
The system of claim 1, wherein performing the matrix operation further comprises: determining a scaling factor for a first portion of a second matrix involved in the matrix operation; scaling the first portion of the second matrix using the scaling factor for the first portion of the second matrix to obtain a scaled first portion of the second matrix; programming the analog processor using the scaled first portion of the second matrix; and performing, by the analog processor programmed using the scaled first portion of the second matrix, the matrix operation to generate the first output.
- Claim 3Depends on #1
The system of claim 1, wherein performing the one or more matrix operations to learn the parameters of the machine learning model using the analog processor comprises: determining a scaling factor for a second portion of the first matrix; scaling the second portion of the first matrix using the scaling factor for the second portion of the first matrix to obtain a scaled second portion of the first matrix; programming the analog processor using the scaled second portion of the first matrix; performing, by the analog processor programmed using the scaled second portion of the first matrix, the matrix operation to generate a second output; and determining the result of the matrix operation using the second output generated by the analog processor.
- Claim 4Depends on #3
The system of claim 3, wherein the first scaling factor is different from the second scaling factor.
- Claim 5Depends on #1
The system of claim 1, wherein the first portion of the first matrix is a first vector of the first matrix.
- Claim 6Depends on #1
The system of claim 1, wherein determining the result of the matrix operation using the first output generated by the analog processor comprises: determining an output scaling factor for the first output generated by the analog processor using the first scaling factor; scaling the first output using the output scaling factor to obtain a scaled first output; and determining the result of the matrix operation using the scaled first output.
- Claim 7Depends on #1
The system of claim 1, wherein: determining the first scaling factor for the first portion of the first matrix comprises determining a maximum absolute value of the first portion of the first matrix; and scaling the first portion of the first matrix using the first scaling factor comprises scaling values of the first portion of the first matrix using the maximum absolute value of the first portion of the first matrix.
- Claim 8Depends on #1
The system of claim 1, wherein: the analog processor is configured to operate using a fixed-point representation of values; and programming the analog processor using the scaling of the first portion of the first matrix comprises converting values of the scaled first portion of the first matrix into the fixed-point representation.
Technical Overview & Description
RELATED APPLICATIONS This application claims priority under 35 U.S.C. 119(e) to U.S. Provisional Pat. App. Ser. No. 63/119,472 entitled “ ANALOG LINEAR PHOTONIC PROCESSOR THAT INTERFACES WITH FLOATING-POINT TENSORS, ” filed on Nov. 30, 2020, and U.S. Provisional Pat. App. Ser. No. 63/160,592 entitled “ ROBUST MACHINE LEARNING TRAINING WITH ANALOG LINEAR PROCESSOR, ” filed on Mar. 12, 2021, each of which is incorporated by reference in its entirety. FIELD This application relates to techniques of using an analog processor for training a machine learning model, and for using an analog processor for performing inference with a machine learning model. In particular, the techniques utilize an analog processor to perform matrix operations involved in the training and inference. BACKGROUND Matrix operations may be used in training a machine learning model to learn parameters of the machine learning model. For example, a system may perform stochastic gradient descent to learn weights of a neural network. Performing stochastic gradient descent may involve a forward pass in which the system determines outputs of the neural network for a set of inputs. Each input may be a matrix of input values, and the weights of each layer of the neural network may be stored in a respective matrix. The system may perform a forward pass to determine an output of the neural network for an input by performing a series of matrix multiplications to obtain an output. The system may perform matrix operations to update weights of the neural network using outputs of the neural network for the set of inputs. SUMMARY Described herein are techniques of training a machine learning model and performing inference using an analog processor. Some embodiments mitigate the loss in performance of a machine learning model resulting from a lower precision of an analog processor by using an adaptive block floating-point representation of numbers for the analog processor. Some embodiments mitigate the loss in perfo
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,769,959 B2 | Techniques of performing operations using a hybrid analog-digital processor | 2026 | 0 |
References Cited — Backward Prior Art (80)
Non-Patent Literature (10)
- Verhoef, Bram-Ernst, et al.
- “
- Fq-conv: Fully quantized convolution for efficient and accurate inference.
- ”
- arXiv preprint arXiv:1912.09356 (2019). (Year: 2019).
- Fan, Hongxiang, et al.
- “
- Static block floating-point quantization for convolutional neural networks on FPGA.
- ”
- 2019 International Conference on Field-Programmable Technology (ICFPT). IEEE, 2019. (Year: 2019).