{"pub_number":"US12373687B2","doc_number":"12373687","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Machine learning model training using an analog processor","abstract_text":"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.","claims":[{"number":1,"text":"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 ","independent":true},{"number":2,"text":"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.","independent":false,"depends_on":[1]},{"number":3,"text":"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.","independent":false,"depends_on":[1]},{"number":4,"text":"The system of claim 3, wherein the first scaling factor is different from the second scaling factor.","independent":false,"depends_on":[3]},{"number":5,"text":"The system of claim 1, wherein the first portion of the first matrix is a first vector of the first matrix.","independent":false,"depends_on":[1]},{"number":6,"text":"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.","independent":false,"depends_on":[1]},{"number":7,"text":"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.","independent":false,"depends_on":[1]},{"number":8,"text":"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.","independent":false,"depends_on":[1]}],"description":"RELATED APPLICATIONS\nThis application claims priority under 35 U.S.C. 119(e) to U.S. Provisional Pat. App. Ser. No. 63/119,472 entitled\n“\nANALOG LINEAR PHOTONIC PROCESSOR THAT INTERFACES WITH FLOATING-POINT TENSORS,\n”\nfiled on Nov. 30, 2020, and U.S. Provisional Pat. App. Ser. No. 63/160,592 entitled\n“\nROBUST MACHINE LEARNING TRAINING WITH ANALOG LINEAR PROCESSOR,\n”\nfiled on Mar. 12, 2021, each of which is incorporated by reference in its entirety.\nFIELD\nThis 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.\nBACKGROUND\nMatrix 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.\nSUMMARY\nDescribed 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","inventors":[{"name":"Darius Bunandar","slug":"darius-bunandar","city":"Boston","country":"US"},{"name":"Ludmila Levkova","slug":"ludmila-levkova","city":"Chevy Chase","country":"US"},{"name":"Nicholas Dronen","slug":"nicholas-dronen","city":"Newton","country":"US"},{"name":"Lakshmi Nair","slug":"lakshmi-nair","city":"Somerville","country":"US"},{"name":"David Widemann","slug":"david-widemann","city":"Danville","country":"US"},{"name":"David Walter","slug":"david-walter","city":"Boston","country":"US"},{"name":"Martin B. Z. Forsythe","slug":"martin-b-z-forsythe","city":"Jamaica Plain","country":"US"},{"name":"Tomo Lazovich","slug":"tomo-lazovich","city":"Cambridge","country":"US"},{"name":"Ayon Basumallik","slug":"ayon-basumallik","city":"Framingham","country":"US"},{"name":"Nicholas C. Harris","slug":"nicholas-c-harris","city":"Boston","country":"US"}],"assignees":[{"name":"Lightmatter, Inc.","slug":"lightmatter-inc","country":"US"}],"examiners":[],"cpc_codes":["G06F 7/4876","G06N 3/065","G06N 3/08"],"ipc_codes":["G06F 7/487","G06N 3/06","G06N 3/065","G06N 3/08"],"filing_date":"2021-11-29","pub_date":"2025-07-29","grant_date":"2025-07-29","expiration_date":"2041-11-29","family_members":[],"citations_made":[{"pub_number":"US3872293A","category":"applicant"},{"pub_number":"US4567569A","category":"applicant"},{"pub_number":"US4607344A","category":"applicant"},{"pub_number":"US4633428A","category":"applicant"},{"pub_number":"US4686646A","category":"applicant"},{"pub_number":"US4739520A","category":"applicant"},{"pub_number":"US4809204A","category":"applicant"},{"pub_number":"US4849940A","category":"applicant"},{"pub_number":"US4877297A","category":"applicant"},{"pub_number":"US4948212A","category":"applicant"},{"pub_number":"US5004309A","category":"applicant"},{"pub_number":"US5077619A","category":"applicant"},{"pub_number":"US5095459A","category":"applicant"},{"pub_number":"US5333117A","category":"applicant"},{"pub_number":"US5383042A","category":"applicant"},{"pub_number":"US5394257A","category":"applicant"},{"pub_number":"US5428711A","category":"applicant"},{"pub_number":"US5495356A","category":"applicant"},{"pub_number":"US5550993A","category":"applicant"},{"pub_number":"US5576873A","category":"applicant"},{"pub_number":"US5640261A","category":"applicant"},{"pub_number":"US5699449A","category":"applicant"},{"pub_number":"US5784309A","category":"applicant"},{"pub_number":"US5953143A","category":"applicant"},{"pub_number":"US5995748A","category":"applicant"},{"pub_number":"US6005998A","category":"applicant"},{"pub_number":"US6060710A","category":"applicant"},{"pub_number":"US6178020B1","category":"applicant"},{"pub_number":"US6728434B2","category":"applicant"},{"pub_number":"US7136587B1","category":"applicant"},{"pub_number":"US7173272B2","category":"applicant"},{"pub_number":"US7536431B2","category":"applicant"},{"pub_number":"US7660533B1","category":"applicant"},{"pub_number":"US7876248B2","category":"applicant"},{"pub_number":"US7985965B2","category":"applicant"},{"pub_number":"US8018244B2","category":"applicant"},{"pub_number":"US8023828B2","category":"applicant"},{"pub_number":"US8026837B1","category":"applicant"},{"pub_number":"US8027587B1","category":"applicant"},{"pub_number":"US8035540B2","category":"applicant"},{"pub_number":"US8129670B2","category":"applicant"},{"pub_number":"US8190553B2","category":"applicant"},{"pub_number":"US8223414B2","category":"applicant"},{"pub_number":"US8386899B2","category":"applicant"},{"pub_number":"US8560282B2","category":"applicant"},{"pub_number":"US8604944B2","category":"applicant"},{"pub_number":"US8620855B2","category":"applicant"},{"pub_number":"US8700184B2","category":"applicant"},{"pub_number":"US8837544B2","category":"applicant"},{"pub_number":"US9009560B1","category":"applicant"},{"pub_number":"US9250391B2","category":"applicant"},{"pub_number":"US9354039B2","category":"applicant"},{"pub_number":"US9513276B2","category":"applicant"},{"pub_number":"US9791258B2","category":"applicant"},{"pub_number":"US10095262B2","category":"applicant"},{"pub_number":"US10268232B2","category":"applicant"},{"pub_number":"US10359272B2","category":"applicant"},{"pub_number":"US10382139B2","category":"applicant"},{"pub_number":"US10534189B2","category":"applicant"},{"pub_number":"US10803258B2","category":"applicant"},{"pub_number":"US10803259B2","category":"applicant"},{"pub_number":"US11023691B2","category":"applicant"},{"pub_number":"US11775779B2","category":"applicant"},{"pub_number":"US11886942B2","category":"applicant"},{"pub_number":"US20030086138A1","category":"applicant"},{"pub_number":"US20030235363A1","category":"applicant"},{"pub_number":"US20030235413A1","category":"applicant"},{"pub_number":"US20040243657A1","category":"applicant"},{"pub_number":"US20050036786A1","category":"applicant"},{"pub_number":"US20050156775A1","category":"applicant"},{"pub_number":"US20060215949A1","category":"applicant"},{"pub_number":"US20070180586A1","category":"applicant"},{"pub_number":"US20080031566A1","category":"applicant"},{"pub_number":"US20080212186A1","category":"applicant"},{"pub_number":"US20080212980A1","category":"applicant"},{"pub_number":"US20080273835A1","category":"applicant"},{"pub_number":"US20080304600A1","category":"applicant"},{"pub_number":"US20090028554A1","category":"applicant"},{"pub_number":"US20100165432A1","category":"applicant"},{"pub_number":"US20100194956A1","category":"applicant"}],"non_patent_literature":["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)."],"drawings_count":0,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":1,"indexed_forward_citations":1,"backward_citations":80,"npl_citations":10,"citations_per_year":1.0,"pagerank":0.17328679513998632,"citation_rank":2224621,"pagerank_rank":2224621,"velocity_rank":2224621,"family_citations":1}}