REALIZATION OF BINARY NEURAL NETWORKS IN NAND MEMORY ARRAYS
Use of a NAND array architecture to realize a binary neural network (BNN) allows for matrix multiplication and accumulation to be performed within the memory array. A unit synapse for storing a weight of a BNN is stored in a pair of series connected memory cells. A binary input is applied as a pattern of voltage values on a pair of word lines connected to the unit synapse to perform the multiplication of the input with the weight by determining whether or not the unit synapse conducts. The results of such multiplications are determined by a sense amplifier, with the results accumulated by a counter.
Latest SanDisk Technologies LLC Patents:
- Three-dimensional memory device including an isolation-trench etch stop layer and methods for forming the same
- CONTROL GATE SIGNAL FOR DATA RETENTION IN NONVOLATILE MEMORY
- Non-volatile memory with tuning of erase process
- Non-volatile memory with optimized operation sequence
- Early detection of programming failure for non-volatile memory
This application is a continuation application of U.S. patent application Ser. No. 16/368,347, filed Mar. 28, 2019, which claims priority from U.S. Provisional Application No. 62/702,713, filed Jul. 24, 2018, and is related to an application entitled “Realization of Neural Networks with Ternary Inputs and Binary Weights in NAND Memory Arrays” by Hoang et al., all of which are incorporated herein by reference.
BACKGROUNDArtificial neural networks are finding increasing usage in artificial intelligence and machine learning applications. In an artificial neural network, a set of inputs is propagated through one or more intermediate, or hidden, layers to generate an output. The layers connecting the input to the output are connected by sets of weights that are generated in a training or learning phase by determining a set of a mathematical manipulations to turn the input into the output, moving through the layers calculating the probability of each output. Once the weights are established, they can be used in the inference phase to determine the output from a set of inputs. Although such neural networks can provide highly accurate results, they are extremely computationally intensive, and the data transfers involved in reading the weights connecting the different layers out of memory and transferring them into the processing units of a processing unit can be quite intensive.
Like-numbered elements refer to common components in the different figures.
To reduce the computational complexity and relax the memory requirements of neural networks, Binary Neural Networks (BNNs) have been introduced. In BNNs, the weights and inputs of the neural network are truncated into binary values (−1, +1) and the binary arithmetic simplifies multiplication and addition to XNOR and bit-count operations. The following disclosure presents techniques for exploiting the structure of NAND memory for the storage of the weights of binary neural networks and for the execution of the multiply-and-accumulation operations within the NAND memory.
Each binary weight is stored in a unit synapse formed of a pair of series connected binary memory cells, such as a pair of adjacent memory cells on a NAND string, where one of the memory cells is in a programmed state and the other in an erased state. Depending on which memory cell of the unit synapse is in the programmed and which memory cell is in the erased state, the unit synapse will either be in the −1 or +1 weight. The binary input is then applied as a voltage pattern on the corresponding word lines, in which one of the word line pair is at a read voltage (for which only the erased state memory cell will conduct) and the other one of the word line pair is at a pass voltage (for which a memory cell in either state will conduct). Depending on which word line of the word line pair is at which value, the input will either be a −1 or +1 input. By applying the input to the word line pair, the unit synapse (and corresponding NAND string) will either conduct or not, depending whether or not the input and the weight match. The result can be determined by a sense amplifier connected to a corresponding bit line. By sequentially working through the input/unit synapse pairs along a NAND string and accumulating the results of the sense amplifier, the multiply- and accumulate operations of propagating an input through a layer of a neural network can be performed. As the word lines of the array span multiple NAND strings, the operation can be performed concurrently for the binary weights of multiple unit synapse.
The degree of parallelism can be increased by the introduction of multi-bit sense amplifiers, so that the unit synapse from different memory blocks of the array can be sensed concurrently. Further increases in parallelism can be obtained by concurrent sensing on multiple planes and pipelining the output of one plane, corresponding to one layer of a neural network, to be the input of another plane, corresponding to the subsequent layer of a neural network.
Memory system 100 of
In one embodiment, non-volatile memory 104 comprises a plurality of memory packages. Each memory package includes one or more memory die. Therefore, Controller 102 is connected to one or more non-volatile memory die. In one embodiment, each memory die in the memory packages 104 utilize NAND flash memory (including two dimensional NAND flash memory and/or three dimensional NAND flash memory). In other embodiments, the memory package can include other types of memory.
Controller 102 communicates with host 120 via an interface 130 that implements NVM Express (NVMe) over PCI Express (PCIe). For working with memory system 100, host 120 includes a host processor 122, host memory 124, and a PCIe interface 126 connected along bus 128. Host memory 124 is the host's physical memory, and can be DRAM, SRAM, non-volatile memory or another type of storage. Host 120 is external to and separate from memory system 100. In one embodiment, memory system 100 is embedded in host 120.
FEP circuit 110 can also include a Flash Translation Layer (FTL) or, more generally, a Media Management Layer (MML) 158 that performs memory management (e.g., garbage collection, wear leveling, load balancing, etc.), logical to physical address translation, communication with the host, management of DRAM (local volatile memory) and management of the overall operation of the SSD or other non-volatile storage system. The media management layer MML 158 may be integrated as part of the memory management that may handle memory errors and interfacing with the host. In particular, MML may be a module in the FEP circuit 110 and may be responsible for the internals of memory management. In particular, the MML 158 may include an algorithm in the memory device firmware which translates writes from the host into writes to the memory structure (e.g., 326 of
Control circuitry 310 cooperates with the read/write circuits 328 to perform memory operations (e.g., write, read, and others) on memory structure 326, and includes a state machine 312, an on-chip address decoder 314, and a power control circuit 316. State machine 312 provides die-level control of memory operations. In one embodiment, state machine 312 is programmable by software. In other embodiments, state machine 312 does not use software and is completely implemented in hardware (e.g., electrical circuits). In another embodiment, state machine 312 is replaced by a micro-controller. In one embodiment, control circuitry 310 includes buffers such as registers, ROM fuses and other storage devices for storing default values such as base voltages and other parameters.
The on-chip address decoder 314 provides an address interface between addresses used by Controller 102 to the hardware address used by the decoders 324 and 332. Power control module 316 controls the power and voltages supplied to the word lines and bit lines during memory operations. Power control module 316 may include charge pumps for creating voltages. The sense blocks include bit line drivers.
For purposes of this document, the phrase “one or more control circuits” refers to a controller, a state machine, a micro-controller and/or control circuitry 310, or other analogous circuits that are used to control non-volatile memory.
In one embodiment, memory structure 326 comprises a three dimensional memory array of non-volatile memory cells in which multiple memory levels are formed above a single substrate, such as a wafer. The memory structure may comprise any type of non-volatile memory that are monolithically formed in one or more physical levels of memory cells having an active area disposed above a silicon (or other type of) substrate. In one example, the non-volatile memory cells comprise vertical NAND strings with charge-trapping material such as described, for example, in U.S. Pat. No. 9,721,662, incorporated herein by reference in its entirety.
In another embodiment, memory structure 326 comprises a two dimensional memory array of non-volatile memory cells. In one example, the non-volatile memory cells are NAND flash memory cells utilizing floating gates such as described, for example, in U.S. Pat. No. 9,082,502, incorporated herein by reference in its entirety. Other types of memory cells (e.g., NOR-type flash memory) can also be used.
The exact type of memory array architecture or memory cell included in memory structure 326 is not limited to the examples above. Many different types of memory array architectures or memory technologies can be used to form memory structure 326. No particular non-volatile memory technology is required for purposes of the new claimed embodiments proposed herein. Other examples of suitable technologies for memory cells of the memory structure 326 include ReRAM memories, magnetoresistive memory (e.g., MRAM, Spin Transfer Torque MRAM, Spin Orbit Torque MRAM), phase change memory (e.g., PCM), and the like. Examples of suitable technologies for memory cell architectures of the memory structure 126 include two dimensional arrays, three dimensional arrays, cross-point arrays, stacked two dimensional arrays, vertical bit line arrays, and the like.
One example of a ReRAM, or PCMRAM, cross point memory includes reversible resistance-switching elements arranged in cross point arrays accessed by X lines and Y lines (e.g., word lines and bit lines). In another embodiment, the memory cells may include conductive bridge memory elements. A conductive bridge memory element may also be referred to as a programmable metallization cell. A conductive bridge memory element may be used as a state change element based on the physical relocation of ions within a solid electrolyte. In some cases, a conductive bridge memory element may include two solid metal electrodes, one relatively inert (e.g., tungsten) and the other electrochemically active (e.g., silver or copper), with a thin film of the solid electrolyte between the two electrodes. As temperature increases, the mobility of the ions also increases causing the programming threshold for the conductive bridge memory cell to decrease. Thus, the conductive bridge memory element may have a wide range of programming thresholds over temperature.
Magnetoresistive memory (MRAM) stores data by magnetic storage elements. The elements are formed from two ferromagnetic plates, each of which can hold a magnetization, separated by a thin insulating layer. One of the two plates is a permanent magnet set to a particular polarity; the other plate's magnetization can be changed to match that of an external field to store memory. A memory device is built from a grid of such memory cells. In one embodiment for programming, each memory cell lies between a pair of write lines arranged at right angles to each other, parallel to the cell, one above and one below the cell. When current is passed through them, an induced magnetic field is created.
Phase change memory (PCM) exploits the unique behavior of chalcogenide glass. One embodiment uses a GeTe-Sb2Te3 super lattice to achieve non-thermal phase changes by simply changing the co-ordination state of the Germanium atoms with a laser pulse (or light pulse from another source). Therefore, the doses of programming are laser pulses. The memory cells can be inhibited by blocking the memory cells from receiving the light. In other PCM embodiments, the memory cells are programmed by current pulses. Note that the use of “pulse” in this document does not require a square pulse but includes a (continuous or non-continuous) vibration or burst of sound, current, voltage light, or other wave.
A person of ordinary skill in the art will recognize that the technology described herein is not limited to a single specific memory structure, but covers many relevant memory structures within the spirit and scope of the technology as described herein and as understood by one of ordinary skill in the art.
Turning now to types of data that can be stored on non-volatile memory devices, a particular example of the type of data of interest in the following discussion is the weights used is in deep neural networks. An artificial neural network is formed of one or more intermediate layers between an input layer and an output layer. The neural network finds a mathematical manipulation to turn the input into the output, moving through the layers calculating the probability of each output.
In
In common artificial neural network implementations, the signal at a connection between nodes (artificial neurons/synapses) is a real number, and the output of each artificial neuron is computed by some non-linear function of the sum of its inputs. Nodes and their connections typically have a weight that adjusts as a learning process proceeds. The weight increases or decreases the strength of the signal at a connection. Nodes may have a threshold such that the signal is only sent if the aggregate signal crosses that threshold. Typically, the nodes are aggregated into layers. Different layers may perform different kinds of transformations on their inputs. Signals travel from the first layer (the input layer), to the last layer (the output layer), possibly after traversing the layers multiple times. Although
An artificial neural network is “trained” by supplying inputs and then checking and correcting the outputs. For example, a neural network that is trained to recognize dog breeds will process a set of images and calculate the probability that the dog in an image is a certain breed. A user can review the results and select which probabilities the network should display (above a certain threshold, etc.) and return the proposed label. Each mathematical manipulation as such is considered a layer, and complex neural networks have many layers. Due to the depth provided by a large number of intermediate or hidden layers, neural networks can model complex non-linear relationships as they are trained.
Neural networks are typically feedforward networks in which data flows from the input layer, through the intermediate layers, and to the output layer without looping back. At first, in the training phase of supervised learning as illustrated by
A common technique for executing the matrix multiplications is by use of a multiplier-accumulator (MAC, or MAC unit). However, this has a number of issues. Referring back to
To help avoid these limitations, the use of a multiplier-accumulator array can be replaced with other memory technologies. For example, the matrix multiplication can be computed within a memory array by leveraging the characteristics of Storage Class Memory (SCM), such as those based on ReRAM, PCM, or MRAM based memory cells. This allows for the neural network inputs to be provided via read commands and the neural weights to be preloaded for inferencing. By use of in-memory computing, this can remove the need for logic to perform the matrix multiplication in the MAC array and the need to move data between the memory and the MAC array.
The following considers embodiments based on memory arrays using NAND type of architectures, such as flash NAND memory using memory cells with a charge storage region. Flash NAND memory can be implemented using both multi-level cell (MLC) structures and single-level cell (SLC) structures, where the following mainly considers embodiments based on SLC Flash memory. In contrast to MAC array logic, use of SLC Flash memory shows several advantages, including a much higher area/bit value, a much higher throughput rate, and a significant reduction in energy dissipation due to minimizing data movement by performing in-array multiplication. Additionally, the NAND flash structure is highly scalable, supporting deep and wide neural networks.
A technique that can be used to reduce the computational complexity of the inference process is by use of a Binarized Neural Network (BNN), in which a neural network works with binary weights and activations. A BNN (also called an XNOR-Net) computes the matrix-vector multiplication with “binary” inputs {−1, 1} and “binary” weights {−1, 1}.
For sensing the memory cells with the threshold distribution illustrated in
In implementations of NAND flash memory, a number of different voltage levels are often used for sensing operations, both in program verify and read operations, for both SLC and MLC memory. For example, a program verify level for a given data state may be offset from the read voltage level for the same data state. Also, various levels may be used for pass voltages in different operations and conditions to place a memory cell in a conducting state independently of its stored data state. To simply the following discussion, only the single Vread voltage will be used to differentiate between the data states and only the single Vpass voltage will be used when a memory cell or select gate is to be put into a conducting state for all stored data state values.
In
For cases 3 and 4 on the bottom of
As represented in the embodiment of
The use of NAND flash memory to store weight and compute the dot products of inputs and weights in-array can be used in both the training and inference phases. The training phase can proceed as in the flow of
The memory cells along each NAND string are paired into unit synapses of a pair of memory cells storing a weight Wi,j, as illustrated by the unit synapse of
The determination of the output of a unit synapse 1401i,j storing weight Wi,j, can be determined by applying an input logic voltage pattern to the corresponding input to Input<j>, while the other memory cells and select gates of the selected NAND string are biased to be ON. Based on the input logic and weight logic, the unit synapse storing 1401i,j weight Wi,j will either conduct or not, as represented in the table of
Referring back to
The table of
On the top two rows of the table of
To correct for this and determine Pbnn_dec in the binary system, a substitution of the output of popcount operand CNTbnn_out into Eq. 1 can be used to obtain a derived Pbnn_dec:
Pbnn_dec=2*CNTbnn_out−S, (Eq. 1)
where S is the size of vector. In this example S=8, so that Pbnn_dec=2*5−8=2, which is the exact Pbnn_dec=2 for the dot-product of
Step 1907 determines the conductivity of set of memory cells of the selected unit synapse. As illustrated in the table of
Step 1911 determines if there are more input, weight pairs to add to the dot-product and, if so, the flow loops back to step 1901. Once the contributions of all of the input, weight pairs to the dot products have been determined, the dot product can be provided at step 1913. The set of dot-products determined at step 1913 can then serve as the input to a subsequent neural network layer or be the output of inference process.
I1+l,i,n=Il,i,n*Wl,n,n.
The inputs of one layer are applied as voltage patterns on the word line pairs to the unit synapses to generate dot product values that are the inputs of the next layer.
Relative to the representation of
To compute the different dot-products of the matrix multiplication, the data inputs are provided in a sequence of read commands. To compute the output of single layer, the pages of weights are then read sequentially by the sense amplifiers over, in this example, four cycles:
-
- cycle 1: achieve I0,0,0*W0,0,0
- cycle 2: achieve I0,0,1*W0,0,1
- cycle 3: achieve I0,0,2*W0,0,2
- cycle 4: achieve I0,0,3*W0,0,3,
where each of the cycles corresponds to a loop in the flow ofFIG. 19 and different sensing orders can be used in different embodiments. The results of the cycles are sensed by the sense amplifier SA on each of the bit lines and accumulated in the CSCs, where the latency of the accumulation process is hidden under the concurrent multiply operations for the following cycles read. The output Pn from each bit line will then be the inputs Il+l,i,n of the next layer.
In a standard read operation where the object is to determine the data state stored in a memory cell, the determination is made by a sense amplifier based on a current or voltage level along on a bit line based on whether or not the selected memory cell conducts. If multiple cells along a common bit line were sensed at the same time, where some conduct and some do not conduct, it would not be possible to determine which of the individual memory were the conducting cells memory cells and establish their corresponding data states. For the counter's output Pn from the matrix multiplication, however, it is only the sum of the number of unit synapses that conduct in response to the inputs that is of concern, not which of the individual synapses contribute. Consequently, the response of multiple unit synapses on different blocks in response to a corresponding set of inputs can be determined concurrently, thereby increasing parallelism, if the sense amplifier is able to determine the number of conducting synapses. By incorporating multi-sense amplifiers, the embodiment of
To perform a matrix multiplication, data inputs are provided in a sequence of read commands, but to compute the output of single layer, multiple blocks are now read in parallel (one page of unit synapses per block). In the example of
-
- cycle 1: achieve I0,0,0*W0,0,0+I0,0,2*W0,0,2
- cycle 2: achieve I0,0,1*W0,0,1+I0,0,3*W0,0,3
where cycle 2 is accumulated while the output is calculated for cycle 1, so that the accumulation latency is hidden under concurrent multiply operations.
To further increase parallelism, the number of blocks sensed concurrently can be increased beyond the two shown in the example of
In block-level parallelism, the memory can use multiple blocks of single plane to compute one output of a single layer, where the read commands can be issued in parallel to access multiple blocks as described with respect to the
Parallelism can also be increased through use of plane pipelining, where the output of one plane (corresponding to the matrix multiplication between one set of nodes) can be used as the input of another plane (corresponding to the matrix multiplication between the next set of nodes). Plane pipelining can further be combined block level parallelism, plane level parallelism, or both to achieve even greater levels of parallelism.
At the top of
It should be noted that the weights of different layers can be stored in the same block, same plane, or both, although this reduces the degree of parallelism as the matrix multiplication of the different layers would not be performed concurrently. This is illustrated by the embodiment of
The embodiments above present methods and architecture to realize the inference phase of a binary neural network with binary inputs and binary weights in a NAND memory structure. By use of two serial connected memory cells as a unit synapse, binary weights of neural networks can be encoded and stored in a NAND memory array. These techniques allow for in-array implementations of matrix multiplication with improved inference accuracy when binary neural networks for large datasets and complicated deep neural network (DNN) structures.
Relative to a standard NAND-based architecture, the described embodiments preset a few small feature changes for the existing NAND memory architecture to support various levels of computing parallelism. For the program and erase operations, no circuit changes are needed. A modification is introduced on row, block, and/or plane decoders for controlling read operations to sense weights stored on the two-cell unit synapses, as these use double word line selection with different voltage control and, for multi-block embodiments, multiple blocks selection. To detect 0 inputs, a modified counter-based summation digital circuit is introduced along with a zero input detection circuit. By introducing a multi-bit sense amplifier, parallel computation across blocks and planes can also be used.
According to a first set of aspects, an apparatus includes an array of non-volatile memory cells and one or more control circuits connected to the array of non-volatile memory cells. The array of non-volatile memory cells are arranged as NAND strings and configured to store a plurality of weights of a neural network, each weight stored in a plurality of non-volatile memory cells on a common NAND string. The one or more control circuits are configured to receive a plurality of inputs for a layer of a neural network, convert the plurality of inputs into a corresponding plurality of voltage patterns, apply the plurality of voltage patterns to the array of non-volatile memory cells to thereby perform an in-array multiplication of the plurality of inputs with the weights, and accumulate results of the in-array multiplication.
In additional aspects, an apparatus includes an array of memory cells, a word line decoder, and a multi-bit sense amplifier. The array of memory cells includes: a bit line; a source line; and a plurality of NAND string, each including a plurality of memory cells and each connected between the bit line and the source line. The word line decoder is connected to the memory cells and configured to bias a first plurality of the NAND strings to perform a concurrent sensing operation on the first plurality of NAND strings. The multi-bit sense amplifier is connected to the bit line and configured to determine the number of the first plurality of NAND strings conducting in the concurrent sensing operation.
Further aspects include a method that includes receiving a plurality of input values and translating each of the plurality of input values input into a corresponding voltage pattern. Each voltage pattern is one of a plurality of voltage patterns comprising a set of N voltage values. The plurality of voltage patterns is applied to one or more NAND strings connected to a shared bit line. No more than one of the voltage patterns is applied to any single one of the NAND strings at a time and the set of N voltage values of each of the voltage patterns are applied to a corresponding N memory cells of the NAND string to which the voltage pattern is applied. The number of times that the one of the one or more NAND strings conduct is determined in response to the to the plurality of voltage patterns being applied to the to one or more NAND strings connected to the shared bit line.
For purposes of this document, reference in the specification to “an embodiment,” “one embodiment,” “some embodiments,” or “another embodiment” may be used to describe different embodiments or the same embodiment.
For purposes of this document, a connection may be a direct connection or an indirect connection (e.g., via one or more other parts). In some cases, when an element is referred to as being connected or coupled to another element, the element may be directly connected to the other element or indirectly connected to the other element via intervening elements. When an element is referred to as being directly connected to another element, then there are no intervening elements between the element and the other element. Two devices are “in communication” if they are directly or indirectly connected so that they can communicate electronic signals between them.
For purposes of this document, the term “based on” may be read as “based at least in part on.”
For purposes of this document, without additional context, use of numerical terms such as a “first” object, a “second” object, and a “third” object may not imply an ordering of objects, but may instead be used for identification purposes to identify different objects.
For purposes of this document, the term “set” of objects may refer to a “set” of one or more of the objects.
The foregoing detailed description has been presented for purposes of illustration and description. h It is not intended to be exhaustive or to limit to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. The described embodiments were chosen in order to best explain the principles of the proposed technology and its practical application, to thereby enable others skilled in the art to best utilize it in various embodiments and with various modifications as are suited to the particular use contemplated. It is intended that the scope be defined by the claims appended hereto.
Claims
1. An apparatus, comprising:
- one or more control circuits configured to connect to an array of non-volatile memory cells, the memory cells of the array arranged as NAND strings configured to store a plurality of weights of a neural network in a binary format with each of the weights stored in a pair of memory cells on a shared NAND string, the one or more control circuits configured to: receive a plurality of binary valued inputs for a layer of a neural network; and perform an in-array inference operation between the plurality of inputs for the layer of the neural network and the weights of the neural network.
2. The apparatus of claim 1, wherein, in performing the in-array inference operation, the one or more control circuits are configured to:
- convert each of the plurality of inputs into a corresponding one of a plurality of voltage patterns, each of the voltage patterns including a pair of voltage values;
- apply the plurality of voltage patterns to the array of non-volatile memory cells to thereby perform an in-array multiplication of the plurality of inputs with the weights; and
- accumulate results of the in-array multiplication.
3. The apparatus of claim 2, further comprising:
- a memory die comprising the memory array, wherein each of the plurality of weights is stored in a pair of non-volatile memory cells, one of which is in a programmed state and the other of which is in an erased state.
4. The apparatus of claim 3, wherein the array includes:
- a bit line; and
- a source line,
- wherein the NAND strings each include a plurality of memory cells and are each connected between the bit line and the source line, and
- wherein the one or more control circuits include:
- a word line decoder connected to the memory cells and configured to bias a first plurality of the NAND strings to perform a concurrent sensing operation on the first plurality of the NAND strings; and
- a multi-bit sense amplifier connected to the bit line and configured to determine a number of the first plurality of the NAND strings conducting in the concurrent sensing operation.
5. The apparatus of claim 4, the one or more control circuits further including:
- a counter connected to the multi-bit sense amplifier and configured to increment a count value by corresponding to the number of the first plurality of the NAND strings conducting in the concurrent sensing operation.
6. The apparatus of claim 5, wherein each of the concurrent sensing operations includes simultaneously sensing a plurality of memory cells on each of the first plurality of the NAND strings.
7. The apparatus of claim 3, wherein:
- the array of non-volatile memory cells includes a plurality of NAND strings connected to a shared bit line; and
- the one or more control circuits are further configured to concurrently apply the plurality of voltage patterns to the plurality of NAND strings connected to the shared bit line and accumulate the results of the in-array multiplication in a multi-bit sensing operation for the shared bit line.
8. The apparatus of claim 3, wherein:
- the array of non-volatile memory cells includes a plurality of NAND strings connected to a shared bit line; and
- the one or more control circuits are further configured to sequentially apply the plurality of voltage patterns to the plurality of NAND strings connected to the shared bit line and accumulate the results of the in-array multiplication in sequential sensing operations.
9. The apparatus of claim 3, wherein the array of non-volatile memory cells includes:
- a first plurality of NAND strings each connected to a corresponding bit line; and
- the one or more control circuits are further configured to concurrently apply a first of the plurality of voltage patterns to the first plurality of NAND strings and independently accumulate a result of the in-array multiplication for each of the first plurality of NAND strings concurrently.
10. The apparatus of claim 2, wherein the one or more control circuits are further configured to provide accumulated results of the in-array multiplication as inputs for a subsequent layer of the neural network.
11. A method, comprising:
- receiving one or more input values;
- translating each of the one or more input values input values into one or more voltage values;
- applying the one or more voltage values to a plurality of word lines of a non-volatile memory array, the array including a plurality of NAND strings, each including a plurality of memory cells connected to one of the word;
- while applying the one or more voltage values to the plurality of word lines of the array, performing a concurrent sensing operation on the plurality of NAND strings; and
- determining a number of the plurality of NAND strings that are conducting in the concurrent sensing operation.
12. The method of claim 11, further comprising:
- incrementing a count value by corresponding to the number of the plurality of NAND strings conducting in the concurrent sensing operation.
13. The method of claim 11, wherein performing the concurrent sensing operation includes:
- simultaneously sensing a plurality of memory cells on each of the plurality of NAND strings.
14. The method of claim 13, wherein each of the plurality of memory cells on each of the plurality of NAND strings stores a weight of a neural network.
15. The method of claim 14, wherein the weights are binary weights.
16. An apparatus, comprising:
- an array of non-volatile memory cells including a bit line, a plurality of word lines, and a first plurality of NAND strings each connected to the bit line and each including a plurality of memory cells each connected to a corresponding one of the word lines; and
- one or more control circuits connected to the word lines and the NAND strings, the one or more control circuits configured to: concurrently apply, for each of a first plurality of the NAND strings, one of a plurality of sensing voltages to one or more first word lines connected to a corresponding one or more memory cells; and determining a number of the first plurality of the NAND strings that conduct in response to concurrently applying, for each of a first plurality of the NAND strings, the one of the plurality of sensing voltages to the one or more first word lines connected to a corresponding one or more memory cells.
17. The apparatus of claim 16, wherein the one or more control circuits are further configured to:
- increment a count value by a number corresponding to the number of the first plurality of NAND strings conducting in response concurrently applying the one of the plurality of sensing voltages to the one or more first word lines connected to a corresponding one or more memory cells.
18. The apparatus of claim 17, wherein the one or more control circuits are further configured to:
- subsequent to incrementing the count value, concurrently apply, for each of one or more of the first plurality of the NAND strings, one of a plurality of sensing voltages to one or more second word lines connected to a corresponding one or more memory cells;
- determining a number of the first plurality of the NAND strings that conduct in response to concurrently applying, for each of a first plurality of the NAND strings, the one of the plurality of sensing voltages to the one or more second word lines connected to a corresponding one or more memory cells; and
- further increment the count value by a number corresponding to the number of the first plurality of NAND strings conducting in response concurrently applying the one of the plurality of sensing voltages to the one or more second word lines connected to a corresponding one or more memory cells.
19. The apparatus of claim 16, wherein each of the plurality of memory cells on each of the first plurality of NAND strings corresponds to a weight of a neural network.
20. The apparatus of claim 19, wherein the weights are binary weights.
Type: Application
Filed: Jun 15, 2020
Publication Date: Oct 1, 2020
Applicant: SanDisk Technologies LLC (Addison, TX)
Inventors: Won Ho Choi (San Jose, CA), Pi-Feng Chiu (Milpitas, CA), Wen Ma (Sunnyvale, CA), Minghai Qin (Milpitas, CA), Gerrit Jan Hemink (San Ramon, CA), Martin Lueker-Boden (Fremont, CA)
Application Number: 16/901,302