# US 2024/0005140 A1 · Quantization Algorithms for Analog Hardware Realization of Neural Networks

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0005140 A1
- Document ID: US20240005140A1
- Status: Published application
- Kind: A1
- Application number: 18/467,660
- Filed: 2023-09-14
- Published: 2024-01-04
- Earliest claimed: 2021-12-30
- Assignees: PolyN Technology Limited
- Applicants: PolyN Technology Limited
- Inventors: Nikolai Vladimirovich KOVSHOV; Dmitry Yulievich GODOVSKIY; Aleksandrs TIMOFEJEVS; Boris MASLOV
- Web page: https://patentgrep.com/patent/US20240005140A1

## CPC

- G06N 3/065: Analogue means
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Systems and methods are provided for analog hardware realization of neural networks. The method incudes obtaining a neural network topology and weights of a trained neural network. The method also includes transforming the neural network topology into an equivalent analog network of analog components. The method also includes computing a weight matrix for the equivalent analog network based on the weights of the trained neural network. Each element of the weight matrix represents a respective connection between analog components of the equivalent analog network. The method also includes generating a schematic model for implementing the equivalent analog network based on the weight matrix, including selecting component parameter values for the analog components.

## Claims

### Claim 1

A method for hardware realization of neural networks, comprising:
obtaining a neural network topology and weights of a trained neural network;
transforming the neural network topology into an equivalent analog network of analog components including a plurality of operational amplifiers and a plurality of resistors, wherein each operational amplifier represents an analog neuron of the equivalent analog network, and each resistor represents a connection between two analog neurons;
performing resistor quantization and operational amplifier quantization to obtain a quantized network for the equivalent analog network whereby each resistor is assigned a resistance value and each operational amplifier is assigned a value; and
generating, based on the quantized network, a functional behavioral model that includes the plurality of operational amplifiers placed in front-end of line layers (FEOL layers) and the plurality of resistances placed in back-end of line layers (BEOL layers).

### Claim 2 (depends on 1)

The method of claim 1, wherein the quantized network is further obtained by performing resistor randomization and operational amplifier randomization.

### Claim 3 (depends on 1)

The method of claim 1, wherein performing resistor quantization comprises converting a vector of weights of the trained neural network to particular resistor values of a single analog neuron.

### Claim 4 (depends on 3)

The method of claim 3, wherein the resistor values are discrete values from a pre-determined resistor set, each resistor in the resistor set characterized by a respective resistance value and a respective tolerance value.

### Claim 5 (depends on 3)

The method of claim 3, wherein the resistor values are limited to a continuous range.

### Claim 6 (depends on 1)

The method of claim 1, wherein the resistor quantization includes solving a system of equations and/or inequalities connecting weights of the trained neural network and resistor values, wherein a number of resistors is more than twice a number of weights, and the system of equations has a plurality solutions.

### Claim 7 (depends on 6)

The method of claim 6, wherein solving the system of equations includes selecting a solution based on one or more optimization criteria selected from the group consisting of: energy consumption, die area, and minimization of one or more error metrics.

### Claim 8 (depends on 7)

The method of claim 7, wherein the one or more optimization criteria include R-quantization error (EQR), which is a mean error of the equivalent analog network with quantized resistors and perfect operational amplifiers versus a math network on a set of input data.

### Claim 9 (depends on 7)

The method of claim 7, wherein the one or more optimization criteria include RO-quantization error (EQRO), which is a mean error of the equivalent analog network with quantized resistors and imperfect operational amplifiers with particular pre-defined output model versus a math network on a set of input data.

### Claim 10 (depends on 7)

The method of claim 7, wherein the one or more optimization criteria include RO-quantization R-randomization error (EQRO-RR), which is a mean error of the equivalent analog network with quantized resistors with random tolerance error and imperfect operational amplifiers with a predefined output model versus a math network on a set of input data.

### Claim 11 (depends on 7)

The method of claim 7, wherein the one or more optimization criteria include RO-quantization RO-randomization error (EQRO-RRO), which is a mean error of T-network with quantized resistors with random tolerance error and imperfect operational amplifiers with a predetermined output model and random tolerance error which affects operational amplifier shift value versus a math network on a set of input data.

### Claim 12 (depends on 1)

The method of claim 1, wherein performing operational amplifier quantization includes selecting an appropriate operational amplifier model from a set of predetermined operational amplifier models according to a set of predetermined limitations and/or optimality criteria.

### Claim 13 (depends on 12)

The method of claim 12, wherein the set of predetermined limitations and/or optimality criteria includes limitations of operational amplifiers for output currents.

### Claim 14 (depends on 12)

The method of claim 12, wherein the set of predetermined limitations and/or optimality criteria includes neuron or operational amplifier die area limitations or minimization.

### Claim 15 (depends on 12)

The method of claim 12, wherein the set of predetermined limitations and/or optimality criteria includes neuron or operational amplifier energy consumption limitations or minimization.

### Claim 16 (depends on 12)

The method of claim 12, wherein the set of predetermined limitations and/or optimality criteria includes operational amplifier input voltage range limitations.

### Claim 17 (depends on 12)

The method of claim 12, wherein the set of predetermined limitations and/or optimality criteria includes minimization of error metrics for resistor quantization.

### Claim 18

A system for hardware realization of neural networks, comprising:
one or more processors; and
memory;
wherein the memory stores one or more programs configured for execution by the one or more processors, and the one or more programs comprising instructions for:
obtaining a neural network topology and weights of a trained neural network;
transforming the neural network topology into an equivalent analog network of analog components including a plurality of operational amplifiers and a plurality of resistors, wherein each operational amplifier represents an analog neuron of the equivalent analog network, and each resistor represents a connection between two analog neurons;
performing resistor quantization and operational amplifier quantization to obtain a quantized network for the equivalent analog network whereby each resistor is assigned a resistance value and each operational amplifier is assigned a value; and
generating, based on the quantized network, a functional behavioral model that includes the plurality of operational amplifiers placed in front-end of line layers (FEOL layers) and the plurality of resistances placed in back-end of line layers (BEOL layers).

### Claim 19 (depends on 18)

The system of claim 18, wherein the quantized network is further obtained by performing resistor randomization and operational amplifier randomization.

### Claim 20

A non-transitory computer readable storage medium storing one or more programs configured for execution by a computer system having one or more processors, the one or more programs comprising instructions for:
obtaining a neural network topology and weights of a trained neural network;
transforming the neural network topology into an equivalent analog network of analog components including a plurality of operational amplifiers and a plurality of resistors, wherein each operational amplifier represents an analog neuron of the equivalent analog network, and each resistor represents a connection between two analog neurons;
performing resistor quantization and operational amplifier quantization to obtain a quantized network for the equivalent analog network whereby each resistor is assigned a resistance value and each operational amplifier is assigned a value; and
generating, based on the quantized network, a functional behavioral model that includes the plurality of operational amplifiers placed in front-end of line layers (FEOL layers) and the plurality of resistances placed in back-end of line layers (BEOL layers).
