# US 2024/0202512 A1 · Non-volatile memory-based activation function

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

- Number: US 2024/0202512 A1
- Document ID: US20240202512A1
- Status: Published application
- Kind: A1
- Application number: 18/083,673
- Filed: 2022-12-19
- Published: 2024-06-20
- Earliest claimed: 2022-12-19
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Nanbo Gong; Takashi Ando; Guy M. Cohen; Malte Johannes Rasch
- Web page: https://patentgrep.com/patent/US20240202512A1

## CPC

- G06N 3/065: Analogue means
- G06N 3/048: Activation functions
- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06F 12/0207: {with multidimensional access, e.g. row/column, matrix}
- G06F 12/0238: {Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory}
- G06F 2212/202: Non-volatile memory
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Analog memory-based activation function for an artificial neural network can be provided. An apparatus can include at least two non-volatile memory devices connected in parallel such that the current can flow through one of the two non-volatile memory devices depending on the voltage level driving the current. To control which branch an input current flows through, each of the two non-volatile memory devices can be connected to a circuit element that can function as a switch, for example, a diode such as a semiconductor diode, a transistor, or another circuit element. Such apparatus can implement an analog memory-based activation function, for example, for an analog memory-based artificial neural network.

## Claims

### Claim 1

An apparatus comprising:
a first non-volatile memory connected to a positive terminal of a first diode, the first non-volatile memory programmed to store a first parameter of an activation function associated with an artificial neural network; and
a second non-volatile memory connected to a negative terminal of a second diode, the second non-volatile memory programmed to store a second parameter of the activation function associated with the artificial neural network,
the first non-volatile memory and the second non-volatile memory being connected in parallel to an input line, and a negative terminal of the first diode and a positive terminal of the second diode being connected in parallel to an output line.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the activation function includes a leaky rectified linear unit (ReLU), wherein a first slope of the leaky ReLU is defined by the first parameter stored on the first non-volatile memory, and a second slope of the leaky ReLU is defined by the second parameter stored on the second non-volatile memory, the first parameter being proportional to conductance of the first non-volatile memory and the second parameter being proportional to conductance of the second non-volatile memory.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the activation function includes a rectified linear unit (ReLU), wherein a first slope of the ReLU is defined by the first parameter stored on the first non-volatile memory, and a second slope of the ReLU is defined by the second parameter stored on the second non-volatile memory, the first parameter being proportional to conductance of the first non-volatile memory and the second parameter being proportional to conductance of the second non-volatile memory.

### Claim 4 (depends on 1)

The apparatus of claim 1, further including a crossbar array of memristive elements configured to perform multiply and accumulate operations, wherein at least one column output line of the crossbar array is connected to the input line.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein the first parameter and the second parameter remain fixed as hyperparameters of the artificial neural network during training of the artificial neural network, while values stored on the memristive elements of the crossbar array are updated as part of the training.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the apparatus implements an analog memory-based activation function of an analog memory-based artificial neural network.

### Claim 7

An apparatus comprising:
a first non-volatile memory connected to a first field effect transistor (FET), the first non-volatile memory programmed to store a first parameter of an activation function associated with an artificial neural network; and
a second non-volatile memory connected to a second field effect transistor (FET), the second non-volatile memory programmed to store a second parameter of the activation function associated with the artificial neural network,
the first non-volatile memory and the second non-volatile memory being connected in parallel to an input line, and the first field effect transistor and the second field effect transistor being connected in parallel to an output line, wherein a source terminal of the first field effect transistor is connected to the first non-volatile memory and a source terminal of the second field effect transistor is connected to the second non-volatile memory, and wherein a drain terminal of the first field effect transistor and the drain terminal of the second field effect transistor are connected to the output line.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the activation function includes a leaky rectified linear unit (ReLU), wherein a first slope of the leaky ReLU is defined by the first parameter stored on the first non-volatile memory, and a second slope of the leaky ReLU is defined by the second parameter stored on the second non-volatile memory, the first parameter being proportional to conductance of the first non-volatile memory and the second parameter being proportional to conductance of the second non-volatile memory.

### Claim 9 (depends on 7)

The apparatus of claim 7, wherein the activation function includes a rectified linear unit (ReLU), wherein a first slope of the ReLU is defined by the first parameter stored on the first non-volatile memory, and a second slope of the ReLU is defined by the second parameter stored on the second non-volatile memory, the first parameter being proportional to conductance of the first non-volatile memory and the second parameter being proportional to conductance of the second non-volatile memory.

### Claim 10 (depends on 7)

The apparatus of claim 7, further including a crossbar array of memristive elements configured to perform multiply and accumulate operations, wherein at least one column output line of the crossbar array is connected to a gate voltage of the first FET and the second FET.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the first FET includes an n-channel field effect transistor (nFET), and the second FET includes a p-channel field effect transistor (pFET).

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein the first parameter and the second parameter remain fixed as hyperparameters of the artificial neural network during training of the artificial neural network, while values stored on the memristive elements of the crossbar array are updated as part of the training.

### Claim 13 (depends on 7)

The apparatus of claim 7, wherein the apparatus implements an analog memory-based activation function of an analog memory-based artificial neural network.

### Claim 14

A method comprising:
tuning a first non-volatile memory connected to a column output of a crossbar array of memristive elements, for the first non-volatile memory to store a first parameter of an activation function of an artificial neural network;
tuning a second non-volatile memory connected to the column output of the crossbar array of memristive elements, for the second non-volatile memory to store a second parameter of the activation function of the artificial neural network;
keeping the first parameter and the second parameter fixed as hyperparameters of the artificial neural network, while synaptic weights stored in the memristive elements of the crossbar array are updated during training of the artificial neural network.

### Claim 15 (depends on 14)

The method of claim 14, wherein the activation function includes a leaky rectified linear unit (ReLU), wherein a first slope of the leaky ReLU is defined by the first parameter stored on the first non-volatile memory, and a second slope of the leaky ReLU is defined by the second parameter stored on the second non-volatile memory.

### Claim 16 (depends on 14)

The method of claim 14, wherein the activation function includes a rectified linear unit (ReLU), wherein a first slope of the ReLU is defined by the first parameter stored on the first non-volatile memory, and a second slope of the ReLU is defined by the second parameter stored on the second non-volatile memory.

### Claim 17 (depends on 14)

The method of claim 14, wherein the first non-volatile memory is connected to a positive terminal of a first diode, and the second non-volatile memory is connected to a negative terminal of a second diode.

### Claim 18 (depends on 14)

The method of claim 14, wherein the first non-volatile memory is connected to an n-channel field effect transistor (nFET) and the second non-volatile memory is connected to a p-channel field effect transistor (pFET), wherein at least one column output line of the crossbar array is connected to a gate voltage of the nFET and the pFET.

### Claim 19 (depends on 14)

The method of claim 14, wherein the first non-volatile memory and the second non-volatile memory implement an analog memory-based activation function of an analog memory-based artificial neural network.

### Claim 20 (depends on 1)

The apparatus of claim 1, wherein the first non-volatile memory and the second non-volatile memory include at least one selected from a group consisting of resistive random access memory (RRAM), Electrochemical Random-Access Memory (ECRAM), ferroelectric random access memory (FeRAM), phase-change memory (PCM), conductive-bridging RAM (CBRAM), NOR flash, and magnetic RAM (MRAM).
