# US 2021/0342672 A1 · Crossbar arrays for computations in memory-augmented neural networks

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

- Number: US 2021/0342672 A1
- Document ID: US20210342672A1
- Status: Published application
- Kind: A1
- Application number: 16/862,441
- Filed: 2020-04-29
- Published: 2021-11-04
- Earliest claimed: 2020-04-29
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Thomas Bohnstingl; Angeliki Pantazi; Stanislaw Andrzej Wozniak; Evangelos Stavros Eleftheriou
- Web page: https://patentgrep.com/patent/US20210342672A1

## CPC

- G06N 3/063: using electronic means
- G06N 3/065: Analogue means
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0499: Feedforward networks
- G06N 3/09: Supervised learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In a hardware-implemented approach for operating a neural network system, a neural network system is provided comprising a controller, a memory, and an interface connecting the controller to the memory, where the controller comprises a processing unit configured to execute a neural network and the memory comprises a neuromorphic memory device with a crossbar array structure that includes input lines and output lines interconnected at junctions via electronic devices. The electronic devices of the neuromorphic memory device are programmed to incrementally change states by coupling write signals into the input lines based on: write instructions received from the controller and write vectors generated by the interface. Data is retrieved from the neuromorphic memory device, according to a multiply-accumulate operation, by coupling read signals into one or more of the input lines of the neuromorphic memory device based on: read instructions from the controller and read vectors generated by the interface.

## Claims

### Claim 1

A hardware-implemented method for operating a neural network system, the method comprising:
providing a neural network system comprising a controller, a memory, and an interface connecting the controller to the memory, wherein the controller comprises a processing unit configured to execute a neural network and the memory comprises a neuromorphic memory device with a crossbar array structure that includes input lines and output lines interconnected at junctions via electronic devices;
programming the electronic devices of the neuromorphic memory device to incrementally change states thereof by coupling write signals into one or more of the input lines based on: (i) write instructions received from the controller and (ii) write vectors generated by the interface, according to the write instructions; and
retrieving data from the neuromorphic memory device, according to a multiply-accumulate operation, by coupling read signals into one or more of the input lines of the neuromorphic memory device based on: (i) read instructions from the controller and (ii) read vectors generated by the interface, according to the read instructions.

### Claim 2 (depends on 1)

The method according to claim 1, wherein:
programming the electronic devices further comprises performing an erase operation prior to incrementally changing the states of one or more of the electronic devices, and
the erase operation is determined by the write vectors, whereby the erase operation fully erases the one or more of the electronic devices, so as to reset respective states thereof.

### Claim 3 (depends on 1)

The method according to claim 1, wherein:
the write vectors are generated by the interface without the interface retrieving any data from the neuromorphic memory device.

### Claim 4 (depends on 2)

The method according to claim 2, wherein:
the crossbar array structure of the neural network system provided comprises N of the input lines and W of the output lines, where N>1 and W>1; and
a memory capacity of the neuromorphic memory device is determined by a memory matrix M of dimension N×W.

### Claim 5 (depends on 4)

The method according to claim 4, wherein:
the write signals are generated according to two operations based on two types of write vectors, the two operations including a first operation to determine the erase operation and a second operation to incrementally change states of the electronic devices.

### Claim 6 (depends on 5)

The method according to claim 5, wherein:
the second operation involves additive terms and is performed by:
accumulating additive values for the additive terms, the additive values determined by a second type of the two types of write vectors; and;
responsive to the accumulated additive values exceeding a given threshold, incrementally changing states of the electronic devices according to such accumulated additive values.

### Claim 7 (depends on 5)

The method according to claim 5, wherein:
programming the electronic devices further comprises binarizing values of components of a vector of one of the two types of vectors.

### Claim 8 (depends on 7)

The method according to claim 7, wherein:
binarizing the values comprises computing the values as a Heaviside function of shifted values of the vector components.

### Claim 9 (depends on 4)

The method according to claim 4, wherein:
a second set of data is retrieved from the neuromorphic memory device according to the multiply-accumulate operation, whereby a read vector generated by the interface is multiplied by the memory matrix M.

### Claim 10 (depends on 1)

The method according to claim 1, further comprising:
running an algorithm by the processing unit of the controller, the algorithm causing the system to interleave steps of: (i) programming the electronic devices and (ii) retrieving data from the neuromorphic memory device.

### Claim 11

A neural network system comprising:
a controller including a processing unit configured to execute a neural network,
a memory comprising a neuromorphic memory device with a crossbar array structure that includes input lines and output lines interconnected at junctions via electronic devices, and
an interface connecting the controller to the memory,
wherein the system is configured to:
program the electronic devices of the neuromorphic memory device to incrementally change states thereof by coupling write signals into one or more of the input lines based on: (i) write instructions received from the controller and (ii) write vectors generated by the interface, according to the write instructions; and
retrieve data from the neuromorphic memory device, according to a multiply-accumulate operation, by coupling read signals into one or more of the input lines of the neuromorphic memory device based on: (i) read instructions from the controller and (ii) read vectors generated by the interface, according to the read instructions.

### Claim 12 (depends on 11)

The neural network system according to claim 11, wherein:
the system is further configured to perform erase operations, prior to incrementally changing the states of the electronic devices, and
the erase operations are determined by the write vectors, whereby each of such erase operations can only perform an action selected from the group consisting of: (i) fully erasing one of the electronic device and (ii) not erasing at all of the one of the electronic device, in operation.

### Claim 13 (depends on 12)

The neural network system according to claim 12, wherein:
the crossbar array structure comprises N of the input lines and W of the output lines, where N>1 and W>1; and
a memory capacity of the neuromorphic memory device is determined by a memory matrix M of dimension N×W.

### Claim 14 (depends on 13)

The neural network system according to claim 13, wherein:
the crossbar array structure comprises a single electronic device per junction, wherein the electronic device is a memristive device.

### Claim 15 (depends on 13)

The neural network system according to claim 13, wherein:
the interface comprises read heads connected to the input lines and the output lines, and write heads connected to the input lines.

### Claim 16 (depends on 15)

The neural network system according to claim 15, wherein:
the crossbar array structure further comprises pulse width modulation circuits, whereby both the read heads and the write heads are connected to the input lines via a respective one of the pulse width modulation circuits.

### Claim 17 (depends on 15)

The neural network system according to claim 15, wherein:
the read heads are embodied as a module implementing a two-layer neural network, the two-layer neural network including:
an input layer, whose input nodes are mapped onto outputs from the controller; and
an output layer, whose output nodes are mapped onto input lines of the crossbar array structure.

### Claim 18 (depends on 16)

The neural network system according to claim 16, wherein
the write heads are embodied as a module implementing two neural networks, each neural network comprising:
an input layer, input nodes of which are mapped onto outputs from the controller; and
an output layer, output nodes of which are mapped onto input lines of the crossbar array structure, for respectively outputting two types of write vectors, based on which the system is adapted to perform two operations, including a first operation determining the erase operation and a second operation to incrementally change states of the electronic devices.
