# US 2021/0287090 A1 · Synaptic weight transfer between conductance pairs with polarity inversion for reducing fixed device asymmetries

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

- Number: US 2021/0287090 A1
- Document ID: US20210287090A1
- Status: Published application
- Kind: A1
- Application number: 17/329,245
- Filed: 2021-05-25
- Published: 2021-09-16
- Earliest claimed: 2017-11-20
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Geoffrey W. Burr
- Web page: https://patentgrep.com/patent/US20210287090A1

## CPC

- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/0499: Feedforward networks
- G06N 3/065: Analogue means
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Artificial neural networks (ANNs) are a distributed computing model in which computation is accomplished with many simple processing units, called neurons, with data embodied by the connections between neurons, called synapses, and by the strength of these connections, the synaptic weights. An attractive implementation of ANNs uses the conductance of non-volatile memory (NVM) elements to record the synaptic weight, with the important multiply—accumulate step performed in place, at the data. In this application, the non-idealities in the response of the NVM such as nonlinearity, saturation, stochasticity and asymmetry in response to programming pulses lead to reduced network performance compared to an ideal network implementation. A method is shown that improves performance by periodically inverting the polarity of less-significant signed analog conductance-pairs within synaptic weights that are distributed across multiple conductances of varying significance, upon transfer of weight information between less-significant signed analog conductance-pairs to more-significant analog conductance-pairs.

## Claims

### Claim 1

An artificial neural network system (ANN) comprising:
a plurality of neurons arranged in layers with the outputs of one layer connected to the inputs of a plurality of the neurons of a subsequent layer, wherein neurons are connected to each other via a plurality of synapses, each of the synapses having a synaptic weight encoding a connection strength between two connected neurons, the magnitude of the weight of each of the synapses represented by a weighted current flow from multiple conductance pairs, each of the multiple conductance pairs representing a joint contribution and having a higher-significance conductance-pair and a lower-significance conductance-pair, wherein a plurality of training examples are serially input to the ANN while observing its output, wherein a backpropagation algorithm updates the synaptic weight in response to a difference between the output from a given layer and a desired output from the given layer, and wherein the ANN is configured to perform a method comprising:
(a) pausing training and measuring conductances across analog memory elements in the ANN, and computing an original synaptic weight for each synapse by arithmetic contributions from two or more conductance pairs;
(b) identifying at least one measured conductance in a given conductance pair whose absolute value is greater than its paired conductance by a predetermined amount;
(c) reconfiguring the lower-significance conductance pairs to be substantially equal, corresponding to a zero joint contribution towards an overall synaptic weight, and reconfiguring one of the more-significant conductance pairs until said original synaptic weight value is obtained; and
(d) inverting the polarity of the conductance-pair of lower significance for subsequent training operations.

### Claim 2 (depends on 1)

The ANN system of claim 1, wherein the neurons are implemented with CMOS circuitry.

### Claim 3 (depends on 1)

The ANN system of claim 1, wherein the synaptic weights in the ANN are implemented using a non-volatile memory (NVM).

### Claim 4 (depends on 3)

The ANN system of claim 3, wherein the NVM is selected from the group consisting of: phase-change memory, resistive random access memory, and conducting bridge random access memory.

### Claim 5 (depends on 1)

The ANN system of claim 1, wherein a subset of the synaptic weights in ANN is implemented using a capacitor tied to the gate of a read transistor, together with programming transistors for adding charge to, and subtracting charge from, the capacitor according to signals associated with the downstream and upstream neurons.

### Claim 6 (depends on 1)

The ANN system of claim 1, wherein the ANN is used as part of an application that is selected from the group consisting of: pattern recognition application, image recognition application, speech recognition application, and language processing application.

### Claim 7 (depends on 1)

The ANN system of claim 1, wherein the polarity of the conductance-pair of lower significance is inverted by swapping the roles of the two conductances in the conductance-pair of lower significance.

### Claim 8 (depends on 7)

The ANN system of claim 7, wherein one of the two conductances in the conductance-pair of lower significance is reconfigured from a first shared conductance to a second shared conductance.

### Claim 9

A method to train an artificial neural network (ANN), the ANN comprising a plurality of neurons arranged in layers with the outputs of one layer connected to the inputs of a plurality of the neurons of a subsequent layer, where neurons are connected to each other via a plurality of synapses, each of the synapses having a synaptic weight encoding a connection strength between two connected neurons, the magnitude of the weight of each of the synapses represented by a weighted current flow from multiple conductance pairs, each of the multiple conductance pairs representing a joint contribution and having a higher-significance conductance-pair and a lower-significance conductance-pair, where a plurality of training examples are serially input to the ANN while observing its output, where a backpropagation algorithm updates the synaptic weight in response to a difference between the output from a given layer and a desired output from the given layer, the method comprising:
(a) pausing training and measuring conductances across analog memory elements in the ANN;
(b) identifying at least one measured conductance in a given conductance pair whose absolute value is greater than its paired conductance by a predetermined amount;
(c) reconfiguring the lower-significance conductance pairs to be substantially equal, corresponding to a zero joint contribution towards an overall synaptic weight, and reconfiguring one of the more-significant conductance pairs until a similar synaptic weight value is obtained;
(d) inverting the polarity of the conductance-pair of lower significance for subsequent training operations, and
wherein a subset of the synaptic weights in the ANN is implemented using a capacitor tied to the gate of a read transistor, together with programming transistors for adding charge to, and subtracting charge from, the capacitor according to signals associated with the downstream and upstream neurons.

### Claim 10 (depends on 9)

The method of claim 9, wherein the neurons are implemented with CMOS circuitry.

### Claim 11 (depends on 9)

The method of claim 9, wherein the synaptic weights in the ANN are implemented using a non-volatile memory (NVM).

### Claim 12 (depends on 11)

The method of claim 11, wherein the NVM is selected from the group consisting of: phase-change memory, resistive random access memory, and conducting bridge random access memory.

### Claim 13 (depends on 9)

The method of claim 9, wherein the polarity of the conductance-pair of lower significance is inverted by swapping the roles of the two conductances in the conductance-pair of lower significance.

### Claim 14 (depends on 13)

The method of claim 13, wherein one of the two conductances in the conductance-pair of lower significance is reconfigured from a first shared conductance to a second shared conductance.

### Claim 15

A computer program product comprising one or more computer media having computer executable instructions, which when executed by one or more processors cause the one or more processors to perform a method to train an artificial neural network (ANN), the ANN comprising a plurality of neurons arranged in layers with the outputs of one layer connected to the inputs of a plurality of the neurons of a subsequent layer, where neurons are connected to each other via a plurality of synapses, each of the synapses having a synaptic weight encoding a connection strength between two connected neurons, the magnitude of the synaptic weight of each synapse being represented by a weighted current flow from multiple conductance-pairs, where a plurality of training examples are serially input to the ANN while observing its output, where a backpropagation algorithm updates the synaptic weight in response to the difference between the output from a given layer and a desired output from the given layer, the method to train the ANN comprising:
periodically transferring a portion of the synaptic weight from a conductance-pair of lower significance to a conductance-pair of higher significance, such that the total synaptic weight remains substantially unchanged;
upon one or more of these periodic transfers of synaptic weight, inverting the polarity of the conductance-pair of lower significance; and
repeating the serial input of the training examples until the network output approaches the desired output within a predetermined accuracy.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the neurons are implemented with CMOS circuitry.

### Claim 17 (depends on 15)

The computer program product of claim 15, wherein the synaptic weights in the ANN are implemented using an analog memory element.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the analog memory element is a non-volatile memory (NVM).

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the NVM is selected from the group consisting of: phase-change memory, resistive random access memory, and conducting bridge random access memory.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein a subset of the synaptic weights in the ANN is implemented using a capacitor tied to the gate of a read transistor, together with programming transistors for adding charge to and subtracting charge from the capacitor according to signals associated with the downstream and upstream neurons.

### Claim 21 (depends on 15)

The computer program product of claim 15, wherein the ANN is used as part of an application that is selected from the group consisting of: pattern recognition application, image recognition application, speech recognition application, and language processing application.

### Claim 22 (depends on 15)

The computer program product of claim 15, wherein the polarity of the conductance-pair of lower significance is inverted by swapping the roles of the two conductances in the conductance-pair of lower significance.

### Claim 23 (depends on 22)

The computer program product of claim 22, wherein one of the two conductances in the conductance-pair of lower significance is reconfigured from a first shared conductance to a second shared conductance.
