Transformer network in memory

By implementing a transformer neural network in the memory device and using a resistive memory array to perform computations in parallel, the problems of insufficient speed and parallelism in traditional schemes are solved, and more efficient training and inference are achieved.

CN116235186BActive Publication Date: 2026-11-24MICRON TECHNOLOGY INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202180050122.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-08-14
Filing Date
2021-07-01
Publication Date
2026-11-24
Estimated Expiration
2041-07-01

AI Technical Summary

Technical Problem

Traditional transformer neural network implementations process inputs serially on the host machine, which limits their implementation speed and lacks parallelism, affecting the efficiency of training and inference.

Method used

A transformer neural network is implemented in a memory device, and parallel computation is performed by accessing and using a resistive memory array. The weight values ​​are represented by programming the resistance of the memory cells, thereby realizing local access and parallel computation of the weights.

Benefits of technology

This improves the parallelism of training and inference in transformer neural networks, enhances computational efficiency, and reduces dependence on host resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116235186B_ABST
    Figure CN116235186B_ABST
Patent Text Reader

Abstract

The apparatus and method may relate to implementing a transformer neural network in a memory. The transformer neural network may be implemented using a resistive memory array. The memory array may include programmable memory cells that can be programmed to store the weights of the transformer neural network and perform operations consistent with the transformer neural network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure generally relates to memory, and more specifically to apparatus and methods associated with implementing a transformer neural network in memory. Background Technology

[0002] Memory devices are typically provided as internal semiconductor integrated circuits in computers or other electronic devices. Many different types of memory exist, including volatile and non-volatile memory. Volatile memory may require power to maintain its data and includes random access memory (RAM), dynamic random access memory (DRAM), and synchronous dynamic random access memory (SDRAM), among others. Non-volatile memory provides permanent data by retaining the stored data when no power is supplied and includes NAND flash memory, NOR flash memory, read-only memory (ROM), electrically erasable programmable ROM (EEPROM), erasable programmable ROM (EPROM), and resistive variable memory, such as phase-change random access memory (PCRAM), resistive random access memory (RRAM), and magnetoresistive random access memory (MRAM), etc.

[0003] Memory is also used as a volatile and non-volatile data storage device in a wide range of electronic applications, including (but not limited to) personal computers, portable memory sticks, digital cameras, cellular phones, portable music players (e.g., MP3 players, movie players), and other electronic devices. Memory cells can be arranged in arrays, wherein the arrays are used in memory devices. Attached Figure Description

[0004] Figure 1 This is a block diagram of a device in the form of a computing system including a memory device, according to several embodiments of the present disclosure.

[0005] Figure 2 Example memory arrays according to several embodiments of the present disclosure are described.

[0006] Figure 3 Example memory arrays according to several embodiments of the present disclosure are described.

[0007] Figure 4 Example memory arrays according to several embodiments of the present disclosure are described.

[0008] Figure 5 This is a block diagram of a converter neural network according to several embodiments of the present disclosure.

[0009] Figure 6 This is a block diagram of a converter neural network according to several embodiments of the present disclosure.

[0010] Figure 7 This is a block diagram of a memory device for implementing layers of a converter neural network according to several embodiments of the present disclosure.

[0011] Figure 8 Example flowcharts illustrating methods for performing operations in a memory according to several embodiments of the present disclosure.

[0012] Figure 9 An example machine is described, within which a set of instructions can be executed to cause the machine to perform the various methods discussed herein. Detailed Implementation

[0013] This disclosure includes apparatus and methods related to implementing a transformer neural network in memory. The transformer neural network can be implemented in memory using a resistive memory array. The resistive memory array may include resistive memory cells. The resistive memory cells can be used to perform calculations for implementing the transformer neural network.

[0014] As used herein, a transformer neural network is a neural network architecture that uses an encoder and decoder, along with an attention mechanism, to transform a sequence into different sequences. The attention mechanism identifies relevant context from several inputs. This attention mechanism is implemented using the attention layer of the transformer neural network. Transformer neural networks can be used in various fields, such as natural language processing. Natural language processing can include tasks such as spell checking, keyword search, website information extraction, text classification, machine translation, and spoken dialogue systems, as well as other tasks. However, compared to sequence modeling, traditional implementations of transformer neural networks can tend to slow down inference. Traditional implementations of transformer neural networks may include a host-based transformer neural network. The host can request weight values ​​(e.g., weights) from a memory device. The host can process the input using the weight values. However, the host may be limited to processing input serially, which may limit the implementation speed of the transformer neural network.

[0015] The present disclosure addresses the aforementioned and other deficiencies. For example, the transformer neural network can be implemented in a memory device. Implementing the transformer neural network in memory can limit the transmission of weight values ​​utilized by the transformer neural network. For example, instead of transmitting weight values ​​across a host interface, the weight values ​​can be accessed and utilized locally in the memory device via the transformer neural network.

[0016] Implementing transformer neural networks in memory can also improve the parallelism of training and inference using transformer neural networks. For example, computations used to train transformer neural networks and / or to provide inference using transformer neural networks can be performed using memory cells of the memory device. Using memory cells to perform computations allows multiple memory cells to be used simultaneously to perform computations. Simultaneous use of memory cells to perform computations increases the parallelism of providing inference and / or training transformer neural networks.

[0017] The diagrams in this document follow a numbering convention, where the first one or a few digits correspond to the diagram number, and the remaining digits identify the elements or components within the diagram. Similar elements or components between different diagrams can be identified using similar digits. For example, 110 can be referenced... Figure 1 The component "10" in the text, and similar components can be referenced as follows: Figure 2 210 in the diagram. Similar elements within the diagram may be referenced using hyphens and additional numbers or letters. For example, see 210. Figure 6 Elements 661-1, 661-2, 661-3, and 661-4 are shown in the figures. It will be understood that elements shown in the various embodiments herein may be added, interchanged, and / or eliminated to provide several additional embodiments of this disclosure. Furthermore, it should be understood that the scale and relative dimensions of the elements provided in the figures are intended to illustrate certain embodiments of the invention and should not be considered as intended to be limiting.

[0018] Figure 1 This is a block diagram of a device in the form of a computing system 100 including a memory device 103, according to several embodiments of the present disclosure. As used herein, for example, the memory device 103, the memory array 110, and / or the host 102 may also be individually considered as a “device”.

[0019] In this example, computing system 100 includes a host 102 coupled to memory device 103 via interface 104. Computing system 100 may be a personal laptop, desktop computer, digital camera, mobile phone, memory card reader, or Internet of Things (IoT) enabled device, and various other types of systems. Host 102 may include several processing resources (e.g., one or more processors, microprocessors, or other types of control circuitry) capable of accessing memory 102. Computing system 100 may include a separate integrated circuit, or both host 102 and memory device 103 may be on the same integrated circuit. For example, host 102 may be a system controller for a memory system including multiple memory devices 103, wherein the system controller provides access to the respective memory devices 103 through another processing resource, such as a central processing unit (CPU).

[0020] exist Figure 1In the example shown, host 102 is responsible for executing the operating system (OS) and / or various applications that can be loaded onto it (e.g., from memory device 103 via control circuitry 105). The OS and / or various applications can be loaded from memory device 103 by providing access commands from host 102 to memory device 103 to access data including the OS and / or various applications. Host 102 can also access data used by the OS and / or various applications by providing access commands to memory device 103 to retrieve data used in the execution of the OS and / or various applications.

[0021] For clarity, computing system 100 has been simplified to focus on features particularly relevant to this disclosure. For example, memory array 110 may be a DRAM array, SRAM array, STT RAM array, PCRAM array, TRAM array, RRAM array, NAND flash array, and / or NOR flash array. Array 110 may include memory cells arranged in rows coupled by access lines (which may be referred to herein as word lines or select lines) and columns coupled by sense lines (which may be referred to herein as digital lines or data lines). Although memory array 110 is shown as a single memory array, memory array 110 may represent multiple memory arrays configured in the memory bank of memory device 103.

[0022] Memory device 103 includes address circuitry 106 to latch address signals provided via interface 104. For example, the interface may include a physical interface employing a suitable protocol (e.g., a data bus, address bus, and command bus, or a combination of data / address / command buses). This protocol may be custom or proprietary, or interface 104 may employ a standardized protocol, such as Fast Peripheral Component Interconnect (PCIe), Gen-Z Interconnect, Accelerator Cache Coherent Interconnect (CCLX), or the like. Address signals are received and decoded by row decoder 108 and column decoder 112 to access memory array 110. Data can be read from memory array 110 by sensing voltage and / or current changes on a sensing line using sensing circuitry 111. Sensing circuitry 111 may be coupled to memory array 110. Each memory array and its corresponding sensing circuitry may constitute a storage bank of memory device 103. For example, sensing circuitry 111 may include a sensing amplifier capable of reading and latching a page (e.g., a row) of data from memory array 110. I / O circuitry 107 can be used for bidirectional data communication with host 102 via interface 104. Read / write circuitry 113 is used to write data to or read data from memory array 110. As an example, circuitry 113 may include various drivers, latching circuitry, etc.

[0023] Control circuitry system 105 decodes signals provided by host 102. These signals may be commands provided by host 102. These signals may include chip enable signals, write enable signals, and address latch signals for controlling operations performed on memory array 110 (including data read operations, data write operations, and data erase operations). In various embodiments, control circuitry system 105 is responsible for executing instructions from host 102. Control circuitry system 105 may include state machines, sequencers, and / or other types of control circuitry systems, which may be implemented in hardware, firmware, or software, or any combination thereof. In some instances, host 102 may be a controller external to memory device 103. For example, host 102 may be a memory controller coupled to the processing resources of a computing device. Data may be provided to and / or from memory array 110 via data lines that couple memory array 110 to I / O circuitry system 107.

[0024] In various examples, memory array 110 may be a resistive memory array. A resistive memory array may be a resistor-programmable device. That is, memory array 110 can be programmed using the resistors of the memory cells comprising memory array 110. The resistors of the memory cells can be programmed to specific resistors. The resistors of the memory cells can be used to perform operations. For example, the resistors of the memory cells can be used in the execution of multiplication operations by representing values ​​that are being multiplied (and other types of operations).

[0025] In various instances, the resistance of memory cells can be programmed to represent the weight values ​​of a transformer neural network. The ability to program the resistance of memory cells facilitates the performance of forward, backward, and weight updates using a finite number of memory banks in the memory array 110. This ability also aids in regularization, which includes a drop-off scheme implemented using a random number generator (e.g., a random pulse generator). The drop-off scheme may include suppressing the output of layers propagating through the network or suppressing the input of layers processed into the network. Layer normalization can also be applied after attention layers and / or feedforward layers. Layer normalization can be used to normalize the inputs of attention layers and / or feedforward layers. Normalization can be achieved using the mean and variance of the summed inputs for each layer.

[0026] A transformer neural network may include several encoders and decoders. The encoder receives input and provides output to the decoder. The decoder receives input from the encoder and provides output. For example, the encoder may receive phrases in a first language, and the decoder may output phrases in a second language, where the transformer neural network is used to perform language translation and other possible uses of the transformer neural network.

[0027] Each of the encoders may include a self-attention layer and a feedforward network. Each of the decoders may include a self-attention layer, an encoder-decoder attention layer, and a feedforward network. Each attention layer (e.g., a self-attention layer and / or an encoder-decoder attention layer) may be implemented by one or more memory banks of the memory array 110.

[0028] Inference can be generated by traversing a transformer neural network. This process of generating inference by traversing a transformer neural network is described as forward updating. The transformer neural network can be forward updated globally, or its layers can be forward updated. It is also possible to traverse a transformer neural network to train several weights to generate updated weights. For example, a backward loop can be performed on the transformer neural network to train it. The weights of multiple layers in a transformer neural network can also be updated based on the updated weight values.

[0029] Figure 2 An example memory array 210 according to several embodiments of the present disclosure is described. The memory array 210 includes a plurality of memory cells 223. The memory cells 223 are coupled to various signal lines, such as sensing lines 225 and access lines 226.

[0030] Memory cell 223 may be a resistive memory cell 223. The resistive memory cell 223 may include terminals coupling the memory cell 223 to sensing line 225 and access line 226. The terminals of memory cell 223 may be coupled to each other via resistive element 224. Resistive element 224 may be a variable-resistance material (e.g., a material programmable to multiple different resistance states, which may represent multiple different data states), such as (for example) transition metal oxide materials, or perovskites containing two or more metals (e.g., transition metals, alkaline earth metals, and / or rare earth metals). Other examples of variable-resistance materials that may be included in the memory element of resistive memory cell 223 may include various materials that use trapped charge to modify or change conductivity, chalcogenides formed from various doped or undoped materials, binary metal oxide materials, giant magnetoresistive materials, and / or various polymer-based variable-resistance materials, etc. Embodiments are not limited to (a few) specific variable-resistance materials. Resistive element 224 may control the conductivity of memory cell 223. In various examples, the conductance of memory cell 223 can be programmed by programming resistive element 224. For example, the control circuitry of the memory device can program resistive element 224. As used herein, actions performed by the memory device, memory array 210, memory cell 224, pulse generator 221 (“voltage pulse generator”), and / or analog-to-digital converter 222 can be performed by the control circuitry of the memory device utilizing the memory device, memory array 210, memory cell 224, pulse generator 221, and / or analog-to-digital converter 222. Regarding Figure 4 The programming of memory cell 223 is further described.

[0031] In several instances, the conductance and / or resistance of memory cell 223 represent weight values ​​of a transformer neural network. Regarding programming memory cell 223 and / or representing weight values ​​using memory cell 223, since any change in resistance is accompanied by a proportional change in conductance, the terms resistance and conductance are used interchangeably herein. The conductance of memory cell 223 may represent the weight value of a layer in a transformer neural network. For example, the conductance of memory cell 223 may represent the weight of a self-attention layer in the encoder of a transformer neural network. As used herein, the terms weight and weight value are used interchangeably.

[0032] Memory cell 223 can be used to perform multiple operations. Memory cell 223 can be controlled to perform matrix multiplication in parallel and locally with the memory devices of managed memory array 210. Matrix multiplication can be performed using input 227 and multiple weights. Input 227 can be provided as an input vector. Multiple weight values ​​can be provided as a weight matrix and stored by programming memory cell 223 accordingly before applying input 227. The resistances of memory cell 223 collectively represent the weight matrix. Input 227 in Figure 2 V represents in V in May include vectors Input (e.g., x0...x) n Each of the components can be provided to the memory array 210 via multiple signal lines (e.g., sensing line 225 or access line 226). Figure 2 Input 227 is shown as being provided via sensing lines 225. Each of the sensing lines 225 can provide a portion of the input. For example, the first sensing line can provide the input value x0, ..., and the last sensing line can provide the input value x. n , where n is equal to or less than the number of sensing lines 225. Input 227 is provided by pulse generator 221.

[0033] Input 227 can be multiplied by a weight matrix, which includes weight values ​​stored by memory array 210 and is represented by the conductance of memory cells 223. The weight matrix is ​​represented as follows: Each of the memory cells 223 can store different weight values ​​represented by the conductance of the corresponding memory cell.

[0034] The output of matrix multiplication is 228 (e.g., I). out ) can be used as an output vector Provided. Output 228 (e.g., h0...h) n Each of these can be provided via different of the signal lines (e.g., sensing line 225 or access line 226). Figure 2 The output 228 is shown via access line 226. Matrix multiplication is represented as... Or h = Wx, where h is the subset containing individual I. out The output of the vector of values ​​(in some embodiments, after being converted to voltage by analog-to-digital converter (ADC) 222), W is the weight matrix, and x is the vector containing the individual inputs 227 (e.g., ...). Figure 2 The V described in the text in A vector of values. In various instances, multiple examples of matrix multiplication can be performed using memory array 210. A single example of matrix multiplication can also be performed using memory array 210. Although Figure 2The operation is performed by providing input 227 via sensing line 225, but the operation can also be performed by providing input 227 via access line 226, as in... Figure 3 As shown in the image.

[0035] Input 227 may be provided by pulse generator 221 (e.g., voltage pulse generator). Pulse generator 221 may include hardware for generating pulses (e.g., voltage pulses). In various instances, pulse generator 221 may receive one or more inputs (e.g., voltage inputs) and may generate one or more outputs in response to said inputs. In some instances, pulse generator 221 may be a random pulse generator used as a random number generator. Pulse generator 221 may implement a discard scheme that can be used for sampling in conjunction with the generation of random numbers.

[0036] Output 228 may be a current signal from access line 226. Output 228 may be provided to ADC 222. ADC 222 may accept current as input and output voltage. ADC may measure the current supplied by access line 226. The output of ADC 222 may be a voltage signal indicating a state, which may be stored in a register of the memory device or may be directly provided to a pulse generator coupled to a different memory array or the same memory array awaiting reprogramming of memory array 210.

[0037] For example, memory array 210 can be used to generate an output that can be converted into a voltage signal by ADC 222. The voltage signal can indicate the state in a register that can be stored in the memory device. Memory array 210 can then be reprogrammed by resetting the conductance of memory cell 223. Resetting the conductance of memory cell 223 can reprogram memory array 210 to be used as different layers of a transformer neural network. The output stored in the register can be provided as input to pulse generator 221, which can provide input 227 to memory array 210.

[0038] In various examples, memory array 210 can be used to generate an output that can be converted into a voltage signal by ADC 222. The voltage signal can be directly provided to different layers of the network. Different layers of the network can contain different pulse generators or pulse generators 221 coupled to different memory arrays. For example, different memory arrays can be used to perform additional operations.

[0039] Figure 2 This demonstrates the operation of layers in a transformer neural network implemented on memory array 210. Multiple layers of the transformer neural network can be implemented to forward update the network, leading to inference. The transformer neural network can also be forward-updated in preparation for implementing backward loops, as shown regarding... Figure 3 describe.

[0040] Figure 3 Example memory array 310 according to several embodiments of the present disclosure is described. Figure 3 This demonstrates the backward loop of a layer in a transformer neural network. Figure 3 A memory array 310 is shown, which includes a plurality of memory cells 323 coupled to signal lines such as sensing line 325 and access line 326. The memory cells 323 include resistive elements 324.

[0041] exist Figure 3 In the memory array 310, an input 327 is provided from a pulse generator 321 (e.g., a voltage pulse generator) via access line 326. The pulse generator 321 may receive one or more voltage signals and may generate multiple voltage pulses from one or more voltage signals. The voltage pulses may be provided as input 327 to the memory array 310.

[0042] Voltage input 327 can be applied to resistive element 324 of memory cell 323. Based on the conductance of resistive element 324 (e.g., a weight value programmed to it) and voltage input 327 via access line 326, memory cell 323 can provide current as output 328 of memory array 310 via sensing line 325. ADC 322 can receive output 328 as current and can generate voltage from current.

[0043] Backward looping differs from forward update because in forward update, input is provided via a first signal line and output via a second signal line, while in backward looping, input is provided via a second signal line and output via a first signal line. For example, in forward update, input is provided via a sensing line, while in backward looping, input 327 is provided via access line 326. In forward update, output is provided via access line, while in backward looping, output 328 is provided via sensing line 325. The signal line used to receive input in forward update can be used to provide output in backward looping. Different signal lines used to provide output in forward update can also be used to receive input in backward looping. A specific type of signal line used to receive input in forward update can be a sensing line or an access line. The type of signal line used to receive input in backward looping can be a different type of signal line than the signal line used to receive input in forward updateing (e.g., an access line).

[0044] For the backward loop, input 327 is designated as δ, and the weight values ​​of memory array 310 are designated as W. Output 328 is designated as Δ, which represents a difference, for example, the difference between h calculated from the previous feedforward layer and the idealized h. The memory device thereby performs the calculation Δ = W. T δ. The output 328 of the backward loop of a specific layer can be used as input to different layers that also perform backward loops. Generally, the feedforward layer and the backward loop do not update the weights stored in the memory cells.

[0045] Figure 4 An example memory array 410 according to several embodiments of the present disclosure is described. The memory array 410 includes a plurality of memory cells 423 coupled to a plurality of signal lines (e.g., a sense line 425 and a plurality of access lines 426).

[0046] Figure 4 An example of updating the weights of memory cell 423 is provided. The weights are updated by programming the resistive element 424 of memory cell 423. The resistive element 424 can be programmed by providing inputs 427-1 and 427-2 via sensing line 425 and access line 426, respectively. For example, input 427-1 is provided via access line 426 and input 427-2 is provided via sensing line 425.

[0047] Input 427-1 is a voltage pulse represented as δ. Input 427-2 is a voltage pulse represented as x. Providing inputs 427-1 and 427-2 causes the memory array 410 to operate according to W. * Update resistive element 424 to further program memory cell 423, where W * =W+η(δx) T W represents the weight stored in memory cell 423 via its corresponding conductance before updating resistive element 424. η represents a constant. T represents the transpose of a vector (e.g., x). Transpose involves creating a row vector if the transposed vector is a column vector. Transpose can also involve creating a column vector if the transposed vector is a row vector. Transposed vector x can involve applying vector x to a column or row. Multiplication and addition are efficiently performed by the memory device. Memory array 410 has already stored W via the conductance of memory cell 423. Additional programming will use η(δx) T Add the item "Add" to W. δ and x T By simultaneously applying 427-1 and 427-2 as inputs to memory cell 423, the components are effectively multiplied, and the weights are updated as part of the programming operation. T The transpose of the x-vector is indicated. Before applying input 427-2, the transpose is efficiently performed by the control circuitry, such that input 427-2 is applied to the desired memory cell 423 after transposition. The resulting conductance of the resistive element 424 after applying inputs 427-1 and 427-2 represents W. * Input 427-1 is provided by pulse generator 421-1, and input 427-2 is provided by pulse generator 421-2.

[0048] Figure 5This is a block diagram of a transformer neural network 550 according to several embodiments of the present disclosure. The transformer neural network 550 includes a plurality of encoders 551 and a plurality of decoders 552. Each of the encoders 551 includes a self-attention layer 553 and a feedforward network layer 554. Each of the decoders 552 includes a self-attention layer 555, an encoder-decoder attention layer 556, and a feedforward network layer 557.

[0049] The transformer neural network 550 receives input 558 and produces output 559. Input 558 is embedded by a first sequential encoder. The output of the first sequential encoder is passed as input to subsequent encoders, and this input / output process continues serially. The inputs between encoders 551 do not necessarily correspond to meaningful information as the original input 558. For example, in the case where the original input 558 is the French phrase "je suis etudiant (I am a student)," the inputs between encoders 551 (after the first encoder) do not necessarily correspond to French or English words. The inputs are vectors, as described in more detail below.

[0050] Figure 5 The encoder 551 shown comprises a stack of six layers, each of which is a layer including additional layers (e.g., a self-attention layer 553 and a feedforward network 554). Although six encoders 551 and six decoders 552 are shown, different embodiments may be implemented. Figure 5 The six encoders 551 and decoders 552 shown may be more or less.

[0051] Self-attention layer 553 may include a multi-head self-attention layer. Feedforward network layer 554 may include a fully connected feedforward network. Each of the sub-layers (e.g., self-attention layer 553 and feedforward network 554) may implement residual connections and layer normalization.

[0052] Each of the decoders 552 comprises three sub-layers: two sub-layers of a multi-head attention layer (e.g., encoder-decoder attention layer 556 and self-attention layer 555) and a fully connected feedforward network 557. Each of the sub-layers (e.g., self-attention layer 555, encoder-decoder attention layer 556, and feedforward network layer 557) may implement residual connections and layer normalization. The self-attention layer 555 may be modified to prevent positional attention to subsequent positions. The self-attention layer 555 helps the encoder 551 to look at other words in the input sentence when encoding a particular word. Preventing positional attention to subsequent positions prevents “looking” at the future of the target sequence when predicting the current position. The result of the last encoder in the sequence of encoders 551 may provide outputs to each of the decoders 552. The outputs and the outputs between the decoders 552 may not necessarily correspond directly to meaningful information as the final output 559. For example, in the case where the final output 559 is the English phrase “I am a student,” the outputs between the decoders 552 (except the last decoder) may not necessarily correspond to French or English words.

[0053] Figure 6 This is a block diagram of a transformer neural network 660 according to several embodiments of the present disclosure. The transformer neural network 660 shows an encoder 651 and a decoder 652. Although Figure 6 The image shows a single encoder 651 and a single decoder 652. Encoder 651 and decoder 652 represent, for example, Figure 5 The multiple encoders 551 and decoders 552 shown in the figure.

[0054] Encoder 651 is shown to have a self-attention layer 653. Decoder 652 is shown to have a self-attention layer 655 and an encoder-decoder attention layer 656. The computational flow of self-attention layer 653 is shown to be executed using multiple memory banks 661-1, 661-2, 661-3. Although the computational flow of self-attention layer 655 and encoder-decoder attention layer 656 is not shown, self-attention layer 655 and encoder-decoder attention layer 656 can be implemented similarly to the embodiment of self-attention layer 653. For example, multiple memory banks can be used to execute the computational flow for each of self-attention layer 655 and / or encoder-decoder attention layer 656.

[0055] Input 658 can be provided to word embedder 665. Input 658 can be a vector (e.g., an input vector) and / or multiple vectors. Word embedder 665 maps discrete categorical variables to vectors of continuous values. Embedder 665 can create three vectors from each of the encoder's input vectors. For example, word embedder 665 can produce a query vector, a key vector, and a value vector. These vectors are created by multiplying the embeddings by three matrices trained during the training process.

[0056] Each of the query vector, key vector, and value vector can be stored in a memory device (e.g., Figure 7 The memory device 703 uses different banks of the memory array for processing. For example, the query vector can be processed by the memory device using bank 661-1, the key vector can be processed by the memory device using bank 661-2, and the value vector can be processed by the memory device using bank 661-3. The memory device can process the query vector simultaneously with processing the key vector and value vector using bank 661. As used herein, if the query vector, key vector, and value vector are received from a single source, then the attention layer can be designated as a self-attention layer. The encoder-decoder attention layer 656 is designated as "encoder-decoder" assuming that the key vector and value vector are received from encoder 651, while the query vector is received from a single source, such as normalization layer 666-3.

[0057] The result of the self-attention layer 653 can be normalized by the normalization layer 666-1. The normalized result is provided to the feedforward network 654. The feedforward network 654 can be a fully connected feedforward network. The result of the feedforward network 654 is provided to the normalization layer 666-2. The normalization layer 666-2 can output the value vector 668 and the key vector 669 to the decoder 652. However, the encoder 651 can provide intermediate values ​​(e.g., vectors) to different encoders until the last encoder has produced the value vector 668 and the key vector 669. The last encoder can provide the value vector 668 and the key vector 669 to each of the multiple encoders.

[0058] Decoder 652 can receive value vector 668 and key vector 669. For example, value vector 668 and key vector 669 can be made available to decoder 652 via registers of a memory device. For example, the output of encoder 651 can be stored in a register. Decoder 652 can receive value vector 668 and key vector 669 by accessing them from the register. Decoder 652 can also receive the outputs of different decoders. Decoder 652 can use self-attention layer 655 and normalization layer 666-3 to process the outputs of different decoders to generate query vector 670. Normalization layer 666-3 normalizes the output of self-attention layer 655 and provides query vector 670 to encoder-decoder attention layer 656. Decoder 652 can receive value vector 668, key vector 669, and query vector 670 from different sources. For example, value vector 668 and key vector 669 can be received from encoder 651, while query vector 670 is provided by normalization layer 666-3.

[0059] The result of encoder-decoder attention layer 656 can be processed by normalization layer 666-4. Normalization layer 666-4 can provide an output to feedforward network 657. Feedforward network 657 can also be a fully connected network. Feedforward network 657 can provide input to normalization layer 666-5. The output of normalization layer 666-5 can be the output of decoder 652. Decoder 652 outputs a vector of floating points (e.g., floating-point variables).

[0060] The result of decoder 652 is provided to a linear layer, and the result of the linear layer is provided to a softmax layer, which produces the output of the transformer neural network. The linear layer can be a fully connected neural network that projects the vectors generated by the stack of decoders into logit vectors. The logit vectors represent the scores of unique words. The softmax layer generates probabilities from the scores provided by the linear layer. The word with the highest probability is selected and provided as output 659. Thus, probabilities can be assigned to each of multiple words, and the word with the highest probability can be selected as the output.

[0061] Figure 7 This is a block diagram of a memory device 703 implementing a layer of a transformer neural network according to several embodiments of the present disclosure. The memory device 703 includes an interface 704, a memory array 710-1, an additional memory 710-2, a weight memory 763, and a register 764.

[0062] Interface 704 can be used to obtain configuration and / or parameters from the host. The configuration and / or parameters may include, for example, weight values ​​of resistive elements used to set the memory cells of memory array 710-1. The configuration and / or parameters can be used to configure memory array 710-1 into a transformer neural network. For example, the configuration and / or parameters can be used to divide memory array 710-1 into layers of a transformer neural network. The configuration and / or parameters can be used to configure the "size of the h-block". Configuring the size of the h-block may include configuring the size of the data stored in the registers of the hidden layer (e.g., the hidden layer of the encoder including the encoder-to-encoder layer), the number of encoders / decoders, and other possible configurations of the configuration and / or parameters.

[0063] Memory array 710-1 includes several memory banks, such as memory banks 761-1, 761-2, 761-3, and 761-4. Memory banks 761-1, 761-2, 761-3, and 761-4 may be referred to as memory bank 761. Each of memory banks 761 can be used to perform one or more operations simultaneously. For example, the control circuitry system 705 of memory device 703 can use memory bank 761-1 to process query vectors. The control circuitry system 705 can use memory bank 761-3 to process value vectors. The control circuitry system 705 can use memory bank 761-4 to process key vectors. Query vectors, value vectors, and key vectors can be processed simultaneously. The processing of query vectors, value vectors, and key vectors can be part of an implementation scheme of a self-concern layer or an encoder-decoder concern layer.

[0064] The memory array 710-1 can currently implement a limited number of layers of a transformer neural network. For example, the memory array 710-1 can implement a self-attention layer of an encoder. To implement different layers, the control circuit system 705 can store the results of the self-attention layer in register 764. The control circuit system 705 can store the weight values ​​corresponding to the self-attention layer in weight memory 763. Then, the control circuit system 705 can retrieve a different set of weight values ​​corresponding to different layers of the transformer neural network. The control circuit system 705 can program the memory array 710-1 using the different sets of weight values. For example, the control circuit system 705 can program the conductance of the memory cells of memory bank 761-1 to represent the retrieved weight values. Then, the control circuit system 705 can retrieve the inputs of different layers from register 764. The control circuit system 705 can continue to process the inputs using the memory cells of memory bank 761-1, which have memory cells representing the conductance of the retrieved weight values. The control circuit system 705 can process the inputs using the memory cells by applying the inputs to the memory cells that produce the outputs.

[0065] In some instances, the results of layers in a transformer neural network can be used as input to different layers of the network without updating the weights of a specific layer. For example, memory array 710-1 can simultaneously utilize memory bank 761 to implement both the first and second layers. The results of the first layer can be used as input to the second layer without updating the weights of the memory bank implementing the second layer. In various examples, the output of the transformer neural network can be stored in additional memory 710-2, or via, for example... Figure 1 The I / O circuit system 107 provides the I / O circuit system to the host.

[0066] Figure 8This illustration provides example flowcharts of a method 880 for performing operations in memory according to several embodiments of the present disclosure. Method 880 may be executed by processing logic, which may include hardware (e.g., processing device, circuit system, dedicated logic, programmable logic, microcode, device hardware, integrated circuit, etc.), software (e.g., instructions that run or execute on the processing device), or a combination thereof. In some embodiments, method 880 is performed by… Figure 1 The control circuitry system (e.g., controller) 105 executes the process. Although shown in a specific sequence or order, the order of the processes may be modified unless otherwise specified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be executed in different orders, and some processes may be executed in parallel. Furthermore, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.

[0067] At box 881, an input vector is provided to the self-attention layer of the encoder in the transformer neural network. At box 882, multiple updated key vectors and multiple updated value vectors can be generated using the results of the self-attention layer. At box 883, multiple key vectors and multiple value vectors can be provided to the encoder-decoder attention layer of the decoder in the transformer neural network. At box 884, an output can be generated based on the results of the encoder-decoder attention layer.

[0068] It can access multiple query vectors, multiple key vectors, and multiple value vectors. Multiple query vectors, multiple key vectors, and multiple value vectors can be obtained from registers of the memory device, from the host, and / or from different layers of the transformer neural network.

[0069] Multiple query vectors, multiple key vectors, and multiple value vectors can be processed in the self-attention layer of the encoder of a transformer neural network implemented in multiple banks of the memory device to produce multiple updated key vectors and multiple updated value vectors. Each of the multiple query vectors, multiple key vectors, and multiple value vectors can be processed via multiple banks of the memory device by performing operations in multiple banks using the resistance of the memory cells of the multiple banks. The resistance of the memory cells can represent the weights used to process the key vectors, query vectors, and value vectors.

[0070] Multiple updated key vectors and multiple updated value vectors can be processed via a decoder of a transformer neural network to generate output probabilities. In various instances, multiple updated key vectors and multiple updated value vectors can be processed to generate outputs that can be provided to different layers implemented using the same multiple memory banks.

[0071] It can process multiple query vectors, multiple key vectors, and multiple value vectors simultaneously. This is because the processing is performed by memory units from multiple memory banks. Each of the multiple query vectors, multiple key vectors, and multiple value vectors can be executed using different memory banks from the multiple memory banks.

[0072] Multiple updated key vectors and multiple updated value vectors can be processed using multiple banks of memory in the encoder-to-decoder attention layer and memory device. For example, multiple banks of memory can be configured to implement the encoder-to-decoder attention layer.

[0073] Multiple updated key vectors and multiple updated value vectors can be stored in registers of a memory device so that the multiple updated key vectors and multiple updated value vectors are available to multiple memory banks. Making the updated key vectors and updated value vectors available to multiple memory banks may include making the updated key vectors and updated value vectors available to different layers of a transformer neural network.

[0074] In various examples, the application may include a memory array and a controller, which may be configured to implement multiple encoders using a first portion of the multiple memory banks of the memory array. The controller may also be configured to implement multiple decoders using a second portion of the multiple memory banks of the memory array, wherein the multiple encoders and multiple decoders are parts of a transformer neural network.

[0075] The memory array can be a programmable resistive memory array. The controller can be configured to program the programmable resistive memory array by providing multiple voltage pulses to implement multiple encoders and multiple decoders. For example, multiple voltage pulses can be provided to program the resistive elements of a memory device with one or more memory banks.

[0076] The controller can be further configured to forward update multiple encoders by providing inputs via multiple first signal lines of the memory array. The first signal lines can be as follows: Figure 2 The sensing lines shown in the image may be access lines.

[0077] The inputs of the multiple encoders implemented in the first part of the multiple storage cells can be implemented as voltage pulses. The voltage pulses can be generated by a pulse generator.

[0078] Multiple encoders can be forward-updated by providing outputs via multiple second signal lines of a memory array. The second signal lines can be, for example: Figure 2 The access lines are shown in the diagram. The current of multiple second signal lines is measured via an analog-to-digital converter (ADC). The ADC can be used to convert the measured current into an output voltage for a layer of one of the multiple encoders. This output voltage can be provided as an input voltage to different layers of one of the multiple encoders.

[0079] The transformer neural network can be trained using a backward loop by providing input via multiple second signal lines of the memory array. The output of the backward loop can be provided via multiple first signal lines of the memory array.

[0080] Multiple encoders and multiple decoders can be implemented by setting corresponding resistors in the memory cells of the first and second portions of multiple memory banks. Setting the corresponding resistors in the memory cells represents updating the weights of the transformer network. The corresponding resistors can be set by providing inputs via multiple first signal lines and multiple second signal lines of the memory array.

[0081] Multiple encoders can be implemented using a first portion of multiple memory banks, and multiple decoders can be implemented using a second portion of multiple memory banks, wherein the first portion and the second portion are different portions of the multiple memory banks. Alternatively, multiple encoders can be implemented using the first portion of multiple memory banks, and multiple decoders can be implemented using the second portion of multiple memory banks, wherein the first portion and the second portion are common portions of the multiple memory banks.

[0082] In different instances, the self-attention layer of the encoder of the transformer neural network can be processed using multiple memory banks of the memory device and a first plurality of weights, and the first plurality of weights can be updated using multiple registers.

[0083] Different self-attention layers of different encoders in a transformer neural network can be processed using multiple memory banks and a second set of weights. The second set of weights can be updated using multiple registers.

[0084] The first plurality of weights are further configured to be stored in a first portion of a plurality of registers. The controller may be further configured to retrieve the first plurality of weights from the first portion of the plurality of registers before processing a self-attention layer. A second plurality of weights may be retrieved from a second portion of the plurality of registers before processing a different attention layer. The second plurality of weights may be updated in the second portion of the plurality of registers to update the second plurality of weights.

[0085] Figure 9 An example machine illustrating computer system 990 is described, within which a set of instructions is executable to cause said machine to perform the various methods discussed herein. In various embodiments, computer system 990 may correspond to a system (e.g., Figure 1 A computing system 100), which includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1 The memory device 103), or a controller that can be used to execute (e.g., Figure 1The operation of the controller circuitry system 105). In an alternative embodiment, the machine may be connected (e.g., networked) to other machines in a LAN, intranet, extranet, and / or the Internet. The computer may operate as a server or client machine in a client-server network environment, as a peer-to-peer machine in a peer-to-peer (or distributed) network environment, or as a server or client machine in a cloud computing infrastructure or environment.

[0086] The machine may be a personal computer (PC), tablet PC, set-top box (STB), personal digital assistant (PDA), cellular phone, network device, server, network router, switch, or bridge, or any machine capable of executing a set of instructions (sequentially or otherwise) specifying actions to be taken by said machine. Furthermore, while describing a single machine, the term "machine" should also be considered to include any collection of machines that individually or collectively execute a set (or more) of instructions to perform any or more of the methods discussed herein.

[0087] The example computer system 990 includes a processing device 991, a main memory 993 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM), such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), etc.), a static memory 997 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage device 999, which communicate with each other via a bus 997.

[0088] Processing device 991 represents one or more general-purpose processing devices, such as microprocessors, central processing units, or the like. More specifically, the processing device may be a Complex Instruction Set Computing (CISC) microprocessor, a Reduced Instruction Set Computing (RISC) microprocessor, a Very Long Instruction Word (VLIW) microprocessor, or a processor implementing other instruction sets, or a processor implementing a combination of instruction sets. Processing device 991 may also be one or more special-purpose processing devices, such as application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), network processors, or the like. Processing device 991 is configured to execute instructions 992 for performing the operations and steps discussed herein. Computer system 990 may further include a network interface device 995 for communication via network 996.

[0089] The data storage system 999 may include a machine-readable storage medium 989 (also called a computer-readable medium) on which one or more sets of instructions 992 or software embodying any or more of the methods or functions described herein are stored. During the execution of the instructions 992 by the computer system 990, the instructions 992 may also reside wholly or at least partially in main memory 993 and / or processing device 991, which also constitute machine-readable storage media.

[0090] In one embodiment, instruction 992 includes instructions to implement the corresponding Figure 1 The functionality of the host 102 and / or memory device 103. Although the machine-readable storage medium 989 is shown as a single medium in the exemplary embodiment, the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions for machine execution and causing the machine to perform any or more of the methods of this disclosure. Therefore, the term "machine-readable storage medium" should be considered to include (but is not limited to) solid-state memory, optical media, and magnetic media.

[0091] As used herein, "several things" can refer to one or more of such things. For example, "several memory devices" can refer to one or more memory devices. "A plurality of things" means two or more. Additionally, the indicator "N" used herein (especially with respect to reference numerals in the figures) indicates that several specific features so indicated may be included in several embodiments of the invention.

[0092] The figures in this document follow a numbering convention, where the first one or the first few digits correspond to the figure number, and the remaining digits identify elements or components in the figure. Similar elements or components between different figures can be identified by using similar digits. It will be understood that elements shown in the various embodiments herein may be added, interchanged, and / or eliminated to provide several additional embodiments of this disclosure. Furthermore, the scale and relative dimensions of the elements provided in the figures are intended to illustrate various embodiments of this disclosure and are not intended to be limiting.

[0093] Although specific embodiments have been described and illustrated herein, those skilled in the art will understand that arrangements calculated to achieve the same results may be substituted for the specific embodiments shown. This disclosure is intended to cover adaptations or variations of various embodiments of this disclosure. It should be understood that the foregoing description has been carried out in an illustrative rather than restrictive manner. Those skilled in the art will understand, upon reviewing the foregoing description, combinations of the foregoing embodiments and other embodiments not explicitly described herein. The scope of the various embodiments of this disclosure includes other applications using the above structures and methods. Therefore, the scope of the various embodiments of this disclosure should be determined with reference to the appended claims, together with the full scope of the equivalents granted thereto.

[0094] In the foregoing detailed description, various features are grouped in a single embodiment for the purpose of simplifying this disclosure. This approach of the disclosure should not be construed as reflecting an intention that the disclosed embodiments of the disclosure must use more features than expressly stated in each claim. Rather, as reflected in the appended claims, the inventive subject matter exists in fewer than all the features of a single disclosed embodiment. Therefore, the appended claims are hereby incorporated into the detailed description, wherein each claim is an independent, separate embodiment.

Claims

1. An apparatus for implementing a transformer neural network in a memory, comprising: A memory array (110, 210, 310, 410, 710-1, 710-2) comprising multiple memory cells arranged in multiple memory banks; and Controllers (105, 705), coupled to the memory array and configured to: The memory cells of the first portion of the plurality of memory banks (661-1, 661-2, 661-3, 761-1, 761-2, 761-3, 761-4) of the memory array are used to implement the plurality of encoders (551, 651). The memory cells of the second portion of the plurality of memory banks of the memory array are used to implement the plurality of decoders (108, 112, 552, 652), wherein the plurality of encoders and the plurality of decoders are part of a transformer neural network (550, 660), and wherein the memory cells of the first portion of the plurality of memory banks are different from the memory cells of the second portion of the plurality of memory banks. and The results of the plurality of encoders in the first portion of the plurality of memory banks are provided as input to the plurality of decoders in the second portion of the plurality of memory banks without updating the resistance of the memory cells in the second portion of the plurality of memory banks. The result is generated in the memory cells of the first portion of the plurality of memory banks in the memory array, and The result is provided as input to the plurality of decoders via a plurality of signal lines, such that each of the plurality of signal lines provides a portion of the input.

2. The device of claim 1, wherein the memory array is a programmable resistive memory array, and wherein the controller is further configured to program the programmable resistive memory array by providing a plurality of voltage pulses to implement the plurality of encoders and the plurality of decoders.

3. The device of claim 1, wherein the controller is further configured to positively update the plurality of encoders by providing inputs (227, 327, 427-1, 427-2) via a plurality of first signal lines of the memory array.

4. The device of claim 3, wherein the controller is further configured to provide the input as a voltage pulse to the plurality of encoders implemented in the memory cells of the first portion of the plurality of memory banks.

5. The device of claim 3, wherein the controller is further configured to positively update the plurality of encoders by providing outputs (228, 328) via a plurality of second signal lines of the memory array.

6. The device of claim 5, wherein the controller is further configured to: The current of the plurality of second signal lines is measured via analog-to-digital converters (222, 322); The measured current is converted into the output voltage of one of the plurality of encoders using the analog-to-digital converter; and The output voltage is provided as an input voltage to different layers (553, 554, 555, 556, 558, 653, 655, 656, 666-1, 666-2, 666-3, 666-4, 666-5) of one of the plurality of encoders.

7. The device of claim 1, wherein the controller is further configured to train the transformer neural network using a backward loop by providing input via a plurality of second signal lines of the memory array.

8. The device of claim 7, wherein the controller is further configured to provide the backward loop output via the plurality of first signal lines of the memory array.

9. The device of claim 1, wherein the controller is further configured to: The plurality of encoders and the plurality of decoders are implemented by setting the corresponding resistors of the memory cells in the first and second portions of the plurality of memory banks. The corresponding resistor set in the memory cell represents the weight of the updated transformer neural network.

10. The device of claim 9, wherein the controller is further configured to set the respective resistor by providing input via a plurality of first signal lines and a plurality of second signal lines of the memory array.

11. A method for implementing a transformer neural network in memory, comprising: The input vector is provided to the self-attention layer (553, 653) of the encoder (551, 651) of the transformer neural network (550, 660) implemented in the first plurality of memory cells of the plurality of memory banks of the memory device; Using the results of the self-attention layers (553, 653), multiple updated key vectors and multiple updated value vectors are generated in the first multiple memory cells of the multiple memory banks of the memory device; The plurality of updated key vectors and the plurality of updated value vectors are provided to the encoder-decoder attention layer (556, 656) of the decoder (108, 112, 552, 652) of the transformer neural network implemented in the second plurality of memory cells of the plurality of memory banks of the memory device. The multiple updated key vectors and multiple updated value vectors are provided to the encoder-decoder attention layer of the decoder through direct transfer from the first plurality of memory units to the second plurality of memory units. The multiple updated key vectors and multiple updated value vectors are provided as input to the encoder-decoder attention layer of the decoder via multiple signal lines, such that each of the multiple signal lines provides a portion of the input. The first plurality of memory units are different from the second plurality of memory units. The multiple updated key vectors and multiple updated value vectors are provided to the encoder-decoder attention layer without updating the resistance of the second plurality of memory cells, and The first plurality of memory units and the second plurality of memory units are implemented on different storage banks of the memory device; and The output (228, 328) is generated based on the results of the encoder-decoder attention layer.

12. The method of claim 11, further comprising: Processing multiple query vectors (670), multiple key vectors (669), and multiple value vectors (668) in the self-attention layers (553, 653) of the encoders (551, 651) of the transformer neural networks (550, 660) implemented in the memory cells of the plurality of memory banks (661-1, 661-2, 661-3, 761-1, 761-2, 761-3, 761-4) of the memory devices (103, 703) to generate the plurality of updated key vectors and the plurality of updated value vectors. This process simultaneously handles the multiple query vectors, the multiple key vectors, and the multiple value vectors. The plurality of query vectors, the plurality of key vectors, and the plurality of value vectors are processed using the resistors of the memory cells (223, 323, 423) of the plurality of memory banks, and The processing of each of the plurality of query vectors, the plurality of key vectors, and the plurality of value vectors is performed using different storage banks (661-1, 661-2, 661-3, 761-1, 761-2, 761-3, 761-4) from the plurality of storage banks.

13. The method of claim 12, further comprising using the encoder-decoder attention layer (556, 656) of the decoder and the plurality of storage banks of the memory device to process the plurality of updated key vectors and the plurality of updated value vectors.

14. The method of claim 12, further comprising storing the plurality of updated key vectors and the plurality of updated value vectors in a register (764) of the memory device so that the plurality of updated key vectors and the plurality of updated value vectors are available to the plurality of memory banks.

15. A system for implementing a transformer neural network in memory, comprising: Memory devices (103, 703); Multiple registers (764); and Controllers (105, 705), coupled to the memory device and the plurality of registers and configured to: The self-attention layer (553, 653) of the encoder (551, 651) of the transformer neural network (550, 660) is processed using a first plurality of memory cells and a first plurality of weights of a plurality of memory banks (661-1, 661-2, 661-3, 761-1, 761-2, 761-3, 761-4) of the memory device. The second plurality of memory cells and the second plurality of weights of the plurality of memory banks of the memory device are used to process the different self-attention layers (553, 653) of the different encoders (551, 651) of the transformer neural network. The first plurality of memory units are different from the second plurality of memory units. The results of the self-attention layer are used as input to the different self-attention layers, without updating the resistance of the second plurality of memory cells. The results of the self-attention layer are provided as input to the different self-attention layers through direct transfer from the first plurality of memory units to the second plurality of memory units. The results of the self-attention layer are provided as input to the different self-attention layers via multiple signal lines, such that each of the multiple signal lines provides a portion of the input. The result of generating the self-attention layer in the first plurality of memory cells of the plurality of memory banks of the memory device, and The first plurality of memory units and the second plurality of memory units are implemented on different storage banks of the memory device; and The first plurality of weights and the second plurality of weights are updated using the plurality of registers.

16. The system of claim 15, wherein the controller configured to update the first plurality of weights is further configured to store the first plurality of weights in a first portion of the plurality of registers.

17. The system of claim 16, wherein the controller is further configured to retrieve the first plurality of weights from the first portion of the plurality of registers prior to processing the self-attention layer.

18. The system of claim 15, wherein the controller is further configured to: Before processing different self-attention layers, the second plurality of weights are retrieved from the second portion of the plurality of registers; and The second plurality of weights are stored in the second portion of the plurality of registers to update the second plurality of weights.

Citation Information

Patent Citations

  • Attention-based sequence transduction neural networks

    US20180341860A1

  • Encoder-decoder memory-augmented neural network architectures

    US20200090035A1