Memristive neuromorphic circuit and method for training the memristive neuromorphic circuit
10332004 ยท 2019-06-25
Assignee
- Denso Corporation (Kariya, Aichi-pref., JP)
- The Regents Of The University Of California (Oakland, unknown)
Inventors
Cpc classification
International classification
Abstract
A neural network is implemented as a memristive neuromorphic circuit that includes a neuron circuit and a memristive device connected to the neuron circuit. An input voltage is sensed at a first terminal of a memristive device during a feedforward operation of the neural network. An error voltage is sensed at a second terminal of the memristive device during an error backpropagation operation of the neural network. In accordance with a training rule, a desired conductance change for the memristive device is computed based on the sensed input voltage and the sensed error voltage. Then a training voltage is applied to the memristive device. Here, the training voltage is proportional to a logarithmic value of the desired conductance change.
Claims
1. A method for training a memristive neuromorphic circuit, comprising: sensing an input voltage at a first terminal of a memristive device during a feedforward operation of a neural network, the neural network including the memristive device and a neuron circuit connected to the memristive device; sensing an error voltage at a second terminal of the memristive device during an error backpropagation operation of the neural network; computing, in accordance with a training rule, a desired conductance change for the memristive device based on the sensed input voltage and the sensed error voltage; and applying a training voltage to the memristive device, the training voltage being proportional to a logarithmic value of the desired conductance change.
2. The method of claim 1, wherein the desired conductance change is computed as the sensed input voltage and the sensed error voltage, and the training voltage is applied as a first complimentary voltage at the first terminal of the memristive device and a second complimentary voltage at the second terminal of the memristive device.
3. The method of claim 2, wherein the first complimentary voltage is proportional to a logarithmic value of the sensed input voltage, and the second complimentary voltage is proportional to a logarithmic value of the sensed error voltage.
4. The method of claim 2, further comprising: at least one of clipping and normalizing the first complimentary voltage and the second complimentary voltage such that the first complimentary voltage is below a threshold voltage of the memristive device, the second complimentary voltage is below the threshold voltage of the memristive device, and a sum of the first complimentary voltage and the second complimentary voltage is above the threshold voltage of the memristive device.
5. The method of claim 1, wherein the input voltage sensing step and the error voltage sensing step are iterated for a plurality of input patterns, and the desired conductance change is computed as:
G.sub.BATCH=x*e where G.sub.BATCH is a batch conductance change, x and e are the sensed input voltage and sensed error voltage, respectively, of each of the plurality of input patterns, and indicates summing over the plurality of input patterns.
6. The method of claim 5, further comprising: at least one of clipping and normalizing the training voltage to be above a threshold voltage of the memristive device and below twice the threshold voltage of the memristive device.
7. The method of claim 1, wherein the neuron circuit includes a plurality of input neurons and a plurality of output neurons, and the memristive device is included in a plurality of differential pairs of memristive devices cross-connecting the plurality of input neurons with the plurality of output neurons as a crossbar circuit.
8. The method of claim 7, further comprising: at a first time step, training first memristive devices of the plurality of differential pairs of memristive devices, each of the first memristive devices having positive input voltage during the feedforward operation and positive error voltage during the error backpropagation operation; at a second time step, training second memristive devices of the plurality of differential pairs of memristive devices, each of the second memristive devices having negative input voltage during the feedforward operation and negative error voltage during the error backpropagation operation; at a third time step, training third memristive devices of the plurality of differential pairs of memristive devices, each of the third memristive devices having positive input voltage during the feedforward operation and negative error voltage during the error backpropagation operation; and at a fourth time step, training fourth memristive devices of the plurality of differential pairs of memristive devices, each of the fourth memristive devices having negative input voltage during the feedforward operation and positive error voltage during the error backpropagation operation.
9. The method of claim 7, wherein the input voltage sensing step includes sensing a plurality of input voltages at the plurality of input neurons during the feedforward operation, the error voltage sensing step includes sensing a plurality of error voltages at the plurality of output neurons during the error backpropagation operation.
10. The method of claim 9, further comprising: matrix multiplying the sensed plurality of input voltages with the sensed plurality of error voltages to compute a desired conductance change for each memristive device of the plurality of differential pairs of memristive devices.
11. The method of claim 10, further comprising: at a first time step, training first memristive devices of the plurality of differential pairs of memristive devices, each of the first memristive devices having a positive desired conductance change; and at a second time step, training second memristive devices of the plurality of differential pairs of memristive devices, each of the second memristive devices having a negative desired conductance change, wherein the first memristive devices and the second memristive devices share a same terminal.
12. The method of claim 11, wherein during the first time step, a negative fixed voltage is applied to the shared same terminal, and during the second time step, a positive fixed voltage is applied to the shared same terminal.
13. A memristive neuromorphic circuit for implementing a neural network, comprising: a memristive device; a neuron circuit connected to the memristive device; and a controller including a processor and a memory, wherein the controller is programmed to sense an input voltage at a first terminal of the memristive device during a feedforward operation, sense an error voltage at a second terminal of the memristive device during an error backpropagation operation, compute a desired conductance change for the memristive device based on the sensed input voltage and the sensed error voltage; and apply a training voltage to the memristive device, the training voltage being proportional to a logarithmic value of the desired conductance change.
14. The memristive neuromorphic circuit of claim 13, wherein the memristive device is a first memristive device of a differential pair of memristive devices connected to the neuron circuit, the differential pair of memristive devices including the first memristive device and a second memristive device.
15. The memristive neuromorphic circuit of claim 14, further comprising: a differential amplifier connected to the differential pair of memristive devices, the differential amplifier configured to calculate a difference between an output of the first memristive device and an output of the second memristive device.
16. The memristive neuromorphic circuit of claim 14, wherein the differential pair of memristive devices is a first differential pair of a plurality of differential pairs of memristive devices, and the plurality of differential pairs of memristive devices are connected to the neuron circuit.
17. The memristive neuromorphic circuit of claim 13, further including: a plurality of crossbar nanowires, wherein the neuron circuit, the memristive device, and the plurality of crossbar nanowires are connected together as a crossbar circuit.
18. The memristive neuromorphic circuit of claim 13, wherein the neuron circuit includes at least one of an input neuron and an output neuron.
19. The memristive neuromorphic circuit of claim 18, wherein the memristive device is connected between the input neuron and the output neuron.
20. The memristive neuromorphic circuit of claim 18, wherein the input neuron, the output neuron, and the memristive device are integrally formed as a single integrated circuit.
21. The method of claim 1, wherein the training voltage may vary according the desired conductance change.
22. The memristive neuromorphic circuit of claim 13, wherein the training voltage may vary according the desired conductance change.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The disclosure, together with additional objectives, features and advantages thereof, will be best understood from the following description, the appended claims and the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
DETAILED DESCRIPTION
(15) A first embodiment of the present description will be explained with reference to
(16)
(17) The inputs 11 include individual inputs x.sub.1, x.sub.2, and so on, up to x.sub.n, and are input to respective ones of the input neurons 12. The input neurons 12 are in turn connected to the output neurons 14 via weights 13. which are sometimes referred to as synapses. Then, the outputs 15 are output from the output neurons 14. Specifically, each of the output neurons 14 is configured to output respective individual outputs y.sub.1, y.sub.2, and so on, up to y.sub.n. The input neurons 12 and the output neurons 14 are sometimes referred to as nodes, and the weights 13 are sometimes referred to as synapses.
(18) In
(19) In the present embodiment, the neural network 10 is physically implemented as a memristive neuromorphic circuit 100, which is a hybrid CMOS-memristive type circuit.
(20) The input neuron 112 outputs the transformed voltage signal to the memristive device 113. In addition, the input neuron 112 may include a summing function, in advance of the activation function , that sums all signals input thereto. Alternatively, the summing function may be implemented as a separate circuit (e.g., a summing op-amp circuit). In this present embodiment, the output neuron 114 is also implemented as a neuron circuit, and has the same configuration as the input neuron 112. However, this is not limiting, and the configuration of the output neuron 114 may differ, e.g., by including or not including a summing function. Sensing circuitry (not illustrated) is preferably provided to read the inputs and outputs of the input neuron 112 and the output neuron 114.
(21) Still referring to
(22) The conductance G of the memristive device 113 acts as a weight w.sub.i in the neural network 10. Specifically, when the neural network 10 classifies a pattern, an input voltage signal from the input neuron 112 is linearly scaled by the conductance G of the memristive device 113, in accordance with Ohm's law, and sent to the output neuron 114. Similarly, if the neural network 10 is trained by, e.g., backpropagation, when an error is backpropagated through the neural network 10, an error signal from the output neuron 114 is linearly scaled by the conductance G of the memristive device 113 and sent to the input neuron 112. During training of the neural network 10, the conductance G of the memristive device 113 may be modified in accordance with a training rule. In the present embodiment, the training rule is preferably backpropagation, but may be any training rule as known in the field of artificial neural networks.
(23) Generally, the conductance G of the memristive device 113 is increased (or SET) when a negative training voltage V.sub.SET is applied, and is decreased (or RESET) when a positive training voltage V.sub.RESET is applied. Hereinafter, for simplicity, V.sub.SET and V.sub.RESET will be explained with reference to their amplitudes where signage is not explicitly mentioned. In
(24) In general, a conductance change G in the memristive device 113 is dependent on the integral of a training voltage V applied thereto. However, the internal kinetics of the memristive device 113 are highly non-linear, and as a result, the conductance change G in the memristive device 113 is also dependent on the instantaneous conductance G of the memristive device 113 itself. Specifically, G may be given as:
G=f(G,V,t)(1)
where G is the instantaneous conductance of the memristive device 113 itself, V is the training voltage signal applied (encompassing both the amplitude and the sign of the training voltage signal), and t is the duration of the training voltage signal applied. Hereinafter, for simplicity, G will be explained with reference to its magnitude where signage is not explicitly mentioned.
(25)
(26) In
(27) As shown in
(28)
(29) More specifically, when reading the conductance G of the memristive device 113, a read voltage V.sub.READ with an amplitude equal to or less than a read threshold voltage V.sub.READ.sup.TH is applied to the memristive device 113. Here, because conductance is a non-directional property and may be measured in either direction using Ohm's law, the directionality of V.sub.READ may be configured as either positive or negative. When V.sub.READ is configured as a positive signal, the amplitude of V.sub.READ.sup.TH is set to be equal to or less than that of V.sub.RESET.sup.TH. Conversely, when V.sub.READ is configured as a negative signal, the amplitude of V.sub.READ.sup.TH is set to be equal to or less than that of V.sub.SET.sup.TH. Since the directionality of V.sub.READ may be arbitrarily set, V.sub.READ as used hereinafter may refer to either a positive or negative read signal.
(30) In practice, V.sub.READ.sup.TH is generally set to be lower than V.sub.SET.sup.TH or V.sub.RESET.sup.TH by a safety margin, so that when reading the conductance G of the memristive device 113, the conductance G of the memristive device 113 is not inadvertently changed. This is because the values of V.sub.SET.sup.TH and V.sub.RESET.sup.TH may vary across multiple memristive devices, and may also vary over different durations t of the applied voltage signal. In one exemplary configuration, a particular Pt/TiO.sub.2-x/Pt metal oxide device is found to have V.sub.SET.sup.TH and V.sub.RESET.sup.TH values of 0.8V and 1.35V, respectively. To ensure a safety margin when reading the conductance G of this particular Pt/TiO.sub.2-x/Pt metal oxide device, the magnitude of the read threshold voltage V.sub.READ.sup.TH is set to be 0.5V, i.e., substantially lower than the nominal values for V.sub.SET.sup.TH and V.sub.RESET.sup.TH. Here, a variety of safety margins may be used, and other configurations using larger or smaller safety margins, or using no safety margin at all, are also contemplated.
(31) In order to simplify the following explanations, a generic term V.sup.TH will be used below to generally refer to V.sub.READ.sup.TH, V.sub.SET.sup.TH, and V.sub.RESET.sup.TH. Specifically, for both SET and RESET processes, G=0 when applying a voltage below V.sup.TH, and |G|>0 when applying a voltage above V.sup.TH.
(32) Returning to
(33) In order to account for the above-discussed non-linearities, the neural network 10 of the present embodiment is preferably trained by using a conductance map that maps V with G for both V.sub.SET and V.sub.RESET, such that given a desired G, a corresponding V.sub.SET or V.sub.RESET may be obtained. It should be noted that in typical memristive devices, V is proportional to a logarithmic value of G. For this reason, the present embodiment preferably uses a conductance map that maps V with G in the form of:
V=a*log.sub.c(G)+b(2)
where a, b, and c are predetermined parameters that are memristive device-specific, and G is G normalized over the range of [0,1]. This normalization process is a formality to accommodate the logarithmic function and is typical for logarithmic mapping. For brevity, the logarithmic function in Equation (2) will be referred to as log( ) in the following explanations and drawings.
(34) In the present embodiment, the conductance map may be obtained in any manner. For example, the conductance map may be obtained by manual characterization of a specific memristive device. In any case, the specifics of the manner in which the conductance map is obtained are unimportant here. An exemplary conductance map is shown in graph form in
(35) The neural network 10 of the present embodiment is preferably trained by backpropagation training, sometimes referred to as backpropagation or simply backprop.
(36) As known to those skilled in the art, backpropagation training typically includes three steps. First, during feedforward (sometimes referring to as a forward pass), the neural network 10 is used to classify an input pattern where the input signals propagate in a direction from the input neurons 212 to the output neuron 214. Then, during backpropagation, error signals are backpropagated in a direction from the output neuron 214 to the input neurons 212. Finally, during training, the weights 13 of the neural network 10 are trained according to:
G=*x*e(3)
wherein G is a desired change in conductance, is a learning rate that may be arbitrarily set, x is the input from the previous layer, and e is the error backpropagated from the next layer.
(37) If the output neuron 214 is in the last layer, its error e.sub.last is given by:
e.sub.last=(y.sub.desiredy)(4)
where is the derivative of the activation function of the output neuron 214, y.sub.desired is the desired output of the output neuron 214, and y is the actual output of the output neuron 214.
(38) Conversely, if the input neurons 212 or the output neuron 214 form hidden layers, the error e.sub.hidden of an arbitrary hidden layer is given by:
e.sub.hidden=(w.sub.hidden-to-next*e.sub.next)(5)
where w.sub.hidden-to-next are the weights from the arbitrary hidden layer and the next layer, and e.sub.next is the error signals from the next layer. is, again, the derivative of the activation function of the neurons in the arbitrary hidden layer. From Equation (5), it is understood that each error signal is calculated from the error signal of the subsequent layer. Therefore, the error signals of the neural network 10 are calculated backwards from the last layer, or in other words, by error backpropagation.
(39) In Equation (3), G may be a positive or negative value depending on the signs of , x, and e. For this reason, the weights 13 of the neural network 10 preferably range between a negative minimum and a positive maximum so that the weights 13 may be positive or negative following the demands of the training algorithm. In the memristive neuromorphic circuit 200 of
(40) In order to sum up the outputs of each input neuron 212 during a feedforward operation of the neural network 10, the differential pairs of memristive devices 213 are connected to summing op-amp circuits 220. The summing op-amp circuits 220 may be configured as typical negative feedback summing amplifiers. In the present embodiment, preferably two summing op-amp circuits 220 are provided for each output neuron 214, with one summing op-amp circuit 221 for summing all voltage signals passing through G.sup.+ conductances, and another summing op-amp circuit 222 for summing all voltage signals passing through G.sup. conductances, as shown in
(41) Here, by individually adjusting the instantaneous conductances G.sup.+ and G.sup. for each input voltage signal, the overall instantaneous conductance G of each differential pair of memristive devices 213 may be a positive value (i.e., the differential amplifier 230 outputs a positive voltage) or a negative value (i.e., the differential amplifier 230 outputs a negative voltage). In other words, a given differential pair of memristive devices 213 may represent an overall conductance ranging from (G.sub.MAXG.sub.MIN) to (G.sub.MAXG.sub.MIN), where G.sub.MIN and G.sub.MAX are the minimum and maximum instantaneous conductance values of either memristive device in each differential pair 213.
(42)
(43) Still referring to
(44) Further, as shown in
(45) Further, while not illustrated, sensing circuitry is provided to sense the input signals (voltage) and the error signals (voltages) throughout the memristive neuromorphic circuit 200 of
(46) The circuit layout shown in
(47) It should be noted that both the feedforward operation and the error backpropagation operation are read operations, in that read signals are propagated through the neural network 10 without disturbing the weights 13. As such, the magnitudes of the input and error signals are preferably clipped to just below V.sup.TH. Here, the input and error signals may be clipped in a variety of manners. For example, a hardware solution may be implemented by simply setting the rail voltage of the various read operation electrical components in the memristive neuromorphic circuit 200 of
(48) Alternatively, voltage buffer circuits (not illustrated) having a saturation voltage of just below V.sup.TH may be provided in advance of each differential pair 213 terminal to ensure that the differential pairs 213 are not inadvertently disturbed during feedforward or error backpropagation. Further alternatively, more sophisticated methods of voltage control may be implemented. For example, at each layer, all input or error signals may be normalized together such that the highest input or error signal is scaled to just below V.sup.TH. This normalization process would require additional processing circuitry (e.g., a microprocessor) but would allow for more accurate propagation of signals.
(49) In order to train the memristive neuromorphic circuit 200, training circuitry (not illustrated) is also provided for applying training voltages directly across each memristor of the differential pairs 213. During training, a desired conductance change G for a particular differential pair 213 is simply applied in opposite directions for the G+ and G memristive devices, since the G+ and G memristive devices of each differential pair 213 see the same input voltage but opposite error voltages.
(50) It should be noted that, as shown in
(51) To do so, the training voltages may be clipped (i.e., voltages that exceed their respective limits are set to just within those limits on an individual basis), normalized (i.e., for one layer, the highest training voltage is set to just below 2V.sup.TH, and all other training voltages are scaled by the same factor), or a combination of clipping and normalizing. The clipping and normalizing of training voltages is preferably performed layer by layer, but may be performed globally as well, i.e., for all training voltages in the neural network 10 per iteration of training. By using this voltage biasing scheme, any specific memristive device may be trained without disturbing half-selected devices.
(52) A process 300 for training a memristive neuromorphic circuit implementing the neural network 10 of the present embodiment will be explained with reference to
(53) The process 300 begins at step 310, where an input voltage is sensed at a first terminal of a particular memristive device during a feedforward operation of the neural network 10. This sensed input voltage corresponds to x as defined with respect to Equation (3). Further, a particular memristive device here corresponds to an arbitrary weight 13 in the neural network 10.
(54) The process 300 then continues to step 320, where an error voltage is sensed at a second terminal of the particular memristive device during an error backpropagation operation of the neural network 10. This sensed error voltage corresponds to e as defined with respect to Equation (3). Once the error voltage is sensed, the process 300 continues to step 330.
(55) At step 330, a desired conductance change for the particular memristive device is computed in accordance with a training rule (e.g., backpropagation) and based on the sensed input voltage and the sensed error voltage. The desired conductance change may correspond to G as defined with respect to Equation (3). However, the desired conductance change is not limited to the form of a singular value such as G. Instead, the desired conductance change may be computed in a variety of forms that are related to G as will be explained later.
(56) Then, the process 300 continues to step 340, where a training voltage is applied to the particular memristive device, the training voltage being proportional to a logarithmic value of the desired conductance change. For example, if the desired conductance change is computed as G, then the training voltage may be directly obtained from a conductance map that maps V with log(G), such as that of
(57) It should be noted that in step 340, since the training voltage is proportional to the log of G, the instantaneous conductance G of the particular memristive device is not a factor. In other words, step 340 applies open-loop control to the neural network 10. As such, the process 300 does not require complex feedback tuning circuitry, scales well with the size of the neural network 10, and may iterate relatively quickly.
(58) In the present embodiment, the training voltage may be applied in a variety of manners. In one aspect of the present embodiment, the neural network 10 is trained with stochastic backpropagation training, which is sometimes referred to as online training. In stochastic training, the weights 13 of the neural network 10 are updated after every round of feedforward and error backpropagation operations. In the present aspect, step 330 of the process 300 computes the desired conductance change as the two sensed values x and e directly. In other words, the G value of Equation (3) is not specifically computed. Then, at step 340, the training voltage V is correspondingly split into V.sub.x and V.sub.e, in the form of:
V.sub.xlog(x),V.sub.elog(e)(6)
where defines a proportional relationship. Here, the values of V.sub.x and V.sub.e may also be directly obtained from a conductance map such as that of
Vlog(x)+log(e)(7)
which, using the Product Property of logarithmic functions, simplifies into:
Vlog(x*e)(8)
then, substituting in Equation (3) into Equation (8), the resulting relationship is:
Vlog(G)(9)
where the learning rate term may be disregarded since Equations (7) to (9) already define proportional relationships. In other words, while the training voltage V is physically applied as complimentary voltages V.sub.x and V.sub.e across the two terminals of the particular memristive device, the training voltage V is also, in effect, proportional to a logarithmic value of the desired conductance change G.
(59) V.sub.x and V.sub.e are preferably below V.sup.TH in order to not disturb half-selected devices, while the training voltage V is preferably above V.sup.TH to ensure that a conductance change is effected. Accordingly, the present aspect also implements a voltage biasing scheme suitable for neural network configurations having half-selected devices (e.g., when differential pairs are used). In the present aspect of the first embodiment, the training voltage V is applied after each iteration of feedforward and error backpropagation operations by directly using the sensed input voltage x and error voltage e. As a result, the training process is greatly simplified as complex circuitry for, e.g., storing and processing intermediate sensed values, or calculating G values specifically, may be omitted.
(60) In another aspect of the present embodiment, the neural network 10 is trained with batch backpropagation training. In batch training, the weights 13 of the neural network 10 are updated after a plurality of rounds (or a batch) of feedforward and error backpropagation operations. Specifically, in the present aspect, steps 310 and 320 of the process 300 are repeated for a plurality of input patterns in order to sense a plurality of input voltages x and error voltages e. Then, in step 330, a batch conductance change value G.sub.BATCH is calculated for the particular memristive device as:
G.sub.BATCH=x*e(10)
where x and e correspond to the sensed input and error voltages for each of the input patterns, and indicates summing over the plurality of input patterns. In other words, G.sub.BATCH is calculated over the entire batch of input patterns.
(61) Then, in step 340, the training voltage V is obtained as a proportional logarithmic value of G.sub.BATCH by, for example, using a conductance map as that of
(62) Next, the neural network 10 of a second embodiment of the present disclosure will be explained.
(63) In
(64)
(65) It should be noted that
(66) In one aspect of the present embodiment, the crossbar circuit 500 is trained with the stochastic training method of the first embodiment.
(67) However, since V.sub.x and V.sub.e may have different signs and magnitudes for each memristive device, it is of course generally not possible to train all of the memristive devices of the crossbar circuit 500 concurrently. Conversely, it is not preferable to train each memristive device one-by-one, as doing so may consume an impractical amount of time and thus prevent the neural network 10 from scaling well into large number of layers or neurons.
(68) The present aspect of the second embodiment provides a method for training the crossbar circuit 500 in four steps. In the crossbar circuit 500, there are only four possible states for the polarities of the input data (i.e., x and e) for each memristive device: positive x and negative e (RESET), negative x and positive e (RESET), positive x and positive e (SET), and negative x and negative e (SET). Moreover, there must be an equal number of memristive devices to be SET and RESET due to the use of the differential pairs 513. Specifically, for each differential pair 513, the memristive device on the G+ crossbar nanowire will be trained in the opposite direction as its counterpart on the G crossbar nanowire. This is because, as shown in
(69) Taking the above into account,
(70)
(71) The present aspect of the second embodiment effectively eliminates the need for performing matrix multiplication on the sensed input voltages x and the sensed error voltages e. Specifically, typically the input and error voltages are matrix multiplied to generate a desired conductance change G for each memristive device. In contrast, the process 300 of the present aspect directly applies complimentary voltages V.sub.x and V.sub.e to the crossbar circuit 500 in four steps, which according to Equations (7) to (9) results in effecting the desired conductance change G in every memristive device, without the need to specifically calculate G by, e.g., matrix multiplication. As such, the present aspect of the second embodiment provides for a fast and robust method of training the crossbar circuit 500.
(72) In another aspect of the present embodiment, the crossbar circuit 500 is trained with the batch training method of the first embodiment. Here, as in the first embodiment, a training voltage V for each memristive device is obtained from the batch conductance change G.sub.BATCH computed for each memristive device. In this case, matrix multiplication circuitry (not illustrated) is provided to matrix multiply the input voltages x with the error voltages e to computer intermediary G values after each iteration of feedforward and error backpropagation.
(73) In the present aspect of the second embodiment as well, the training voltage V may have different signs and magnitudes for each memristive device. Thus, it is of course generally not possible to train all of the memristive devices of the crossbar circuit 500 concurrently. Conversely, it is not preferable to train each memristive device one-by-one, as doing so may consume an impractical amount of time and thus prevent the neural network 10 from scaling well into large number of layers or neurons.
(74) The present aspect provides a method for batch training the crossbar circuit 500 by updating one crossbar nanowire at a time, shown in
(75) Next, shown in
(76) In the present aspect, the fixed voltage V.sub.FIX applied to the horizontal crossbar nanowires may be set in a variety of manners in accordance with a voltage biasing scheme. Preferably, the fixed voltage V.sub.FIX is set to just below V.sup.TH, so that half-selected devices are undisturbed. Then, on the vertical crossbar nanowires, V.sub.ijV.sup.TH is applied. Since the training voltages V.sub.ij are preferably clipped and/or normalized to, at most, just below 2V.sup.TH in accordance with the voltage biasing scheme of the present disclosure, the half-selected devices on the vertical crossbar nanowires will also see just below V.sup.TH in the worst case, and are undisturbed. In alternative implementations, the fixed voltage V.sub.FIX may be set to well below V.sup.TH for safety. For example, the fixed voltage V.sub.FIX may be set to V.sup.TH/2. In this case, the training voltages V.sub.ij are clipped and/or normalized to a lower limit as well to ensure that half-selected devices are not disturbed even in the worst case.
(77) It should be noted that the depictions in
(78) The above embodiments of the present disclosure may be implemented as a control system 600.
(79) The controller 610 preferably includes drive circuitry and sensing circuitry (not illustrated) to read and write the neural network 10. Specifically, the controller 610 is configured to read the neural network 10 by applying input signals thereto during feedforward of input patterns and by applying an error signal thereto during error backpropagation. The controller 610 uses the CPU 611 to compute desired conductance change values based on sensed input voltages and sensed error voltages during the feedforward and error backpropagation operations of the neural network 10. Additionally, based on a training rule, such as backpropagation, the controller 610 is configured to write to the memristive devices of the neural network 10 by preferably using a conductance map stored in the memory 612 (i.e., by using a conductance map as shown in
(80) In addition, the layout of the control system 600 shown in
(81) The present disclosure is not limited to the above embodiments, and a variety of modifications which do not depart from the gist of the present disclosure are contemplated.
(82) In a modified aspect of the above embodiments, the stochastic and batch training methods may be implemented with fixed-amplitude training. In fixed-amplitude training, only the sign information of the desired conductance change G is used, and depending on a sign, either a predetermined SET voltage or a predetermined RESET voltage is applied to each memristive device.
(83) In yet another modified aspect of the above embodiments, the various components of the neural network 10, including the input neurons 12, the output neurons 14, any crossbar nanowires, and the weights (memristive devices) 13, may be integrally formed in a single IC. As a result, the physical package size of the neural network 10 may be reduced, and the neural network 10 may be less susceptible to environmental effects such as changes in temperature. Alternatively, the input neurons 12 and the output neurons 14 of the neural network 10 may be integrally formed as a neuron circuit.
(84) In yet another modified aspect of the above embodiments, the activation functions , and the derivatives thereof, of the input neurons 12 and the output neurons 14 may be implemented as separate CMOS devices. For example, a dedicated activation function IC may be provided at appropriate locations to transform voltage signals in the neural network 10.
(85) In yet another modified aspect of the above embodiments, the learning rate in Equation (3) is adjusted by adjusting the duration t of the training voltage. As explained previously, the duration t may be approximated as a linear scaling of G, and thus is suitable for approximating the learning rate .
(86) In one modified aspect of the second embodiment, the weights 13 of the neural network 10 are trained one-by-one. In this case, the amount of time needed to complete the training may be increased, but a suitable complimentary pairs of voltages may be applied for each memristive device. For example, given a training voltage V that is between V.sup.TH and 2V.sup.TH, a suitable complementary pair of voltages V/2 and V/2 may be applied across the memristive device to be trained. In this case, the complementary pair of voltages are as far from V.sup.TH as possible, and thus reduces the likelihood of half-selected devices being disturbed.
(87) The above described embodiments and modifications may also be combined in various manners even if such a combination is not specifically mentioned, given that such a combination does not depart from the gist of the present disclosure. Accordingly, the scope of the embodiments should not be limited to the discussion above, but should rather include a wide range of equivalents, modifications, and combinations.