# US 2021/0342678 A1 · Compute-in-memory architecture for 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/0342678 A1
- Document ID: US20210342678A1
- Status: Published application
- Kind: A1
- Application number: 17/261,462
- Filed: 2019-07-19
- Published: 2021-11-04
- Earliest claimed: 2018-07-19
- Assignees: The Regents of the University of California
- Applicants: The Regents of the University of California
- Inventors: Hesham Mostafa; Rajkumar Chinnakonda Kubendran; Gert Cauwenberghs
- Web page: https://patentgrep.com/patent/US20210342678A1

## CPC

- G06N 3/063: using electronic means
- G06N 3/065: Analogue means
- G06N 3/084: Backpropagation, e.g. using gradient descent
- H10B 63/80: {Arrangements comprising multiple bistable or multi-stable switching components of the same type on a plane parallel to the substrate, e.g. cross-point arrays}
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H10B: ELECTRONIC MEMORY DEVICES

## Abstract

A compute-in-memory neural network architecture combines neural circuits implemented in CMOS technology and synaptic conductance crossbar arrays. The crossbar memory structures store the weight parameters of the neural network in the conductances of the synapse elements, which define interconnects between lines of neurons of consecutive layers in the network at the crossbar intersection points.

## Claims

### Claim 1

A neural network architecture for inference and learning comprising:
a plurality of network modules, each network module comprising a combination of CMOS neural circuits and RRAM synaptic crossbar memory structures interconnected by bit lines and source lines, each network module having an input port and an output port, wherein weights are stored in the crossbar memory structures, and wherein learning is effected using approximate backpropagation with ternary errors.

### Claim 2 (depends on 1)

The architecture of claim 1, wherein the CMOS neural circuits include a source line block having dynamic comparators, and wherein inference is effected by clamping pairs of bit lines in a differential manner and comparing within the dynamic comparator voltages on each differential bit line pair to obtain a binary output activation for output neurons.

### Claim 3 (depends on 2)

The architecture of claim 2, wherein the comparison is performed in parallel across all source line pairs.

### Claim 4 (depends on 1)

The architecture of claim 1, wherein pairs of bit lines are clamped in a differential manner so that a binary output activation is generated at the output port.

### Claim 5 (depends on 1)

The architecture of claim 1, further comprising a plurality of switches disposed within the bit lines and source lines between adjacent network modules, wherein closing a switch in bit lines between adjacent network modules creates a layer with additional input neurons and closing a switch in source lines between adjacent network modules creates a layer with additional output neurons.

### Claim 6 (depends on 1)

The architecture of claim 1, further comprising a plurality of routing switches configured to connect input ports and output ports of the network modules to flow binary activations forward and binary errors backward.

### Claim 7

A neural network architecture configured for inference and learning, the architecture comprising:
a plurality of network modules arranged in an array, each network module configured to implement lines and one or more layers of binary neurons via a combination of CMOS neural circuits and a conductance crossbar array configured to store synapse elements weights, wherein crossbar intersections within the crossbar array define interconnects between lines of neurons of consecutive layers in the network structure, and wherein the synapse element weights are trained using backpropagation with trinary truncated updates.

### Claim 8 (depends on 7)

The architecture of claim 7, wherein the crossbar intersections comprise intersections between bit lines and source lines, and wherein the CMOS neural circuits include a source line block having dynamic comparators, and wherein inference is effected by clamping pairs of bit lines in a differential manner and comparing within the dynamic comparator voltages on each differential bit line pair to obtain a binary output activation for output neurons.

### Claim 9 (depends on 8)

The architecture of claim 8, wherein the comparison is performed in parallel across all source line pairs.

### Claim 10 (depends on 7)

The architecture of claim 7, wherein the crossbar intersections comprise intersections between bit lines and source lines, and wherein pairs of bit lines are clamped in a differential manner so that a binary output activation is generated at an output port.

### Claim 11 (depends on 7)

The architecture of claim 7, further comprising a plurality of switches disposed within the bit lines and source lines between adjacent network modules, wherein closing a switch in bit lines between adjacent network modules creates a layer with additional input neurons and closing a switch in source lines between adjacent network modules creates a layer with additional output neurons.

### Claim 12 (depends on 7)

The architecture of claim 7, further comprising a plurality of routing switches configured to connect input ports and output ports of the network modules to flow binary activations forward and binary errors backward.

### Claim 13

A compute-in-memory CMOS architecture comprising a combination of neural circuits implemented in complementary metal-oxide semiconductor (CMOS) technology and synaptic conductance crossbar memory structures implemented in resistive nonvolatile random-access memory (RRAM) technology, wherein the crossbar memory structures store weight parameters of a neural network in the conductances of synapse elements at crossbar intersection points, wherein the crossbar intersection points correspond to interconnects between lines of neurons of consecutive layers in the network.

### Claim 14 (depends on 13)

The architecture of claim 13, wherein the crossbar intersection points correspond to intersections between bit lines and source lines, and wherein the CMOS neural circuits include a source line block having dynamic comparators, and wherein inference is effected by clamping pairs of bit lines in a differential manner and comparing within the dynamic comparator voltages on each differential bit line pair to obtain a binary output activation for output neurons.

### Claim 15 (depends on 14)

The architecture of claim 14, wherein the comparison is performed in parallel across all source line pairs.

### Claim 16 (depends on 13)

The architecture of claim 13, wherein the crossbar intersection points correspond to intersections between bit lines and source lines, and wherein pairs of bit lines are clamped in a differential manner so that a binary output activation is generated at an output port.

### Claim 17 (depends on 13)

The architecture of claim 13, further comprising an array of network modules, each module comprising the combination of neural circuits implemented in CMOS technology and synaptic conductance crossbar memory structure implemented in RRAM technology, and wherein a plurality of switches is disposed within the bit lines and source lines between adjacent network modules, wherein closing a switch in bit lines between adjacent network modules creates a layer with additional input neurons and closing a switch in source lines between adjacent network modules creates a layer with additional output neurons.

### Claim 18 (depends on 17)

The architecture of claim 17, further comprising a plurality of routing switches configured to connect input ports and output ports of the network modules to flow binary activations forward and binary errors backward.
