Analog computing element and neuromorphic device
The analog computing unit addresses the high computational load and power consumption in digital arithmetic units by converting activation function computations into analog processing, enhancing the efficiency and power efficiency of neural network operations in edge computing.
Patent Information
- Application Number
- PCT/JP2024/011143
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-27
- Filing Date
- 2024-03-21
- Publication Date
- 2024-10-03
AI Technical Summary
High computational load and power consumption in digital arithmetic units during neural network calculations, particularly due to the processing of activation functions, hinder efficient edge computing in neuromorphic devices.
An analog computing unit that converts activation function computation into analog processing using a physical device, incorporating voltage-current conversion, current addition/subtraction, and current-voltage conversion circuits to perform operations such as softmax, sigmoid, and hyperbolic tangent functions in parallel, reducing the computational load and power consumption.
The analog computing unit significantly reduces the calculation load and processing time for activation functions, enabling more efficient and power-efficient neural network computations, particularly in edge computing scenarios.
Smart Images

Figure JP2024011143_03102024_PF_FP_ABST
Abstract
Description
Analog computing units and neuromorphic devices
[0001] This disclosure relates to analog computing units and neuromorphic devices. This application claims priority to US 18 / 190,264, filed March 27, 2023, the contents of which are incorporated herein by reference.
[0002] In recent years, attention has been focused on edge computing, which processes data in a distributed manner. Edge computing is the opposite concept to cloud computing, which processes data centrally in the cloud. Edge computing does not require large-scale servers like cloud computing, and is characterized by its ability to reduce network load and make it easier to strengthen security.
[0003] On the other hand, it is difficult to implement large-scale computing units in edge devices used for edge computing, and there is a demand for reducing the computing load on edge devices.
[0004] Neural network calculations using software impose a high computational load. Software calculations are generally performed by digital processors in general-purpose devices such as CPUs and GPUs. When the computational load on the digital processor is high, the calculations take a long time to process and the power consumption of the device increases. Therefore, devices specialized for neural networks have been proposed. For example, Patent Document 1 discloses a reservoir element that converts the calculations of reservoir computing, a type of neural network, into analog processing in a physical device.
[0005] International Publication No. 2021 / 192069
[0006] In a neural network, when an input is output to the next neuron, the result of a product-sum operation is substituted into an activation function to perform a nonlinear transformation. Processing the activation function using a digital processor requires many processing steps, which takes time. Furthermore, a high computational load increases the device's power consumption.
[0007] The present disclosure has been made in view of the above circumstances, and provides an analog computing unit that converts the calculation of an activation function into analog processing in a physical device.
[0008] The analog computing unit according to this embodiment includes a first input terminal, a voltage-current conversion circuit, a current addition / subtraction circuit, a current-voltage conversion circuit, and a division circuit. The voltage-current conversion circuit exponentially converts an input voltage applied to the first input terminal and outputs it as a first current. The current addition circuit obtains at least one of the sum and the difference of the first current and one or more converted currents obtained by exponentially converting a reference current or an input voltage applied to at least one input terminal other than the first input terminal. The current-voltage conversion circuit converts at least two or more of the first current, the sum, and the difference into voltages. The division circuit obtains a ratio between the first voltage converted by the current-voltage conversion circuit and a second voltage.
[0009] The analog computing unit according to the above aspect can perform analog processing of the activation function calculation using a physical circuit or the like.
[0010] FIG. 1 is a conceptual diagram of a first example of a neural network simulated by a neuromorphic device according to the first embodiment. FIG. 2 is a conceptual diagram of a second example of a neural network simulated by a neuromorphic device according to the first embodiment. FIG. 3 is a schematic diagram of an analog computing unit according to the first embodiment. FIG. 4 is a schematic diagram of a voltage amplifier circuit according to the first embodiment. FIG. 5 is an image diagram of arithmetic processing when all softmax function calculations are performed by digital computing units. FIG. 6 is a schematic diagram of another example of an analog computing unit according to the first embodiment. FIG. 7 is a schematic diagram of an analog computing unit according to the second embodiment. FIG. 8 is an image diagram of arithmetic processing when softmax function calculations are performed by analog computing units. FIG. 9 is a schematic diagram of another example of an analog computing unit according to the second embodiment. FIG. 10 is a schematic diagram of an analog computing unit according to a third embodiment. FIG. 11 is a schematic diagram of another example of an analog computing unit according to the third embodiment. FIG. 12 is a schematic diagram of an analog computing unit according to a fourth embodiment.
[0011] The present embodiment will be described in detail below with reference to the drawings as appropriate. The drawings used in the following description may show characteristic portions enlarged for the sake of clarity, and the dimensional ratios of each component may differ from the actual ones. The materials, dimensions, etc. exemplified in the following description are merely examples, and the present disclosure is not limited thereto. Appropriate modifications can be made within the scope of the effects of the present disclosure.
[0012] [First embodiment] Fig. 1 is a conceptual diagram of a neural network simulated by a neuromorphic device according to a first embodiment. The neural network N1 shown in Fig. 1 is a conceptual schematic diagram of reservoir computing. The neural network N1 shown in Fig. 1 has an input layer L in and the reservoir layer R and the output layer L out The input layer L in and the output layer L out is connected to the reservoir layer R.
[0013] Input layer L in is the input signal S in is input to the reservoir layer R. The input layer L in That is, the input signal S in may be directly input to the reservoir layer R. Also, the input signal S in may be weighted and then input to the reservoir layer R.
[0014] The reservoir layer R is the input layer L in The input signal S in The reservoir layer R has a plurality of nodes n. In the reservoir layer R, the connection weights between the nodes n are set, for example, by random numbers. The connection coefficients indicating the connection weights between the nodes n may be set, for example, so as to maximize the amount of information between the output signal and the expected signal. The output of each node n is propagated to another node n via an activation function, and in the reservoir layer R, the input signal S in varies nonlinearly.
[0015] Input signal S inchanges over time due to interactions with each other within the reservoir layer R. Node n corresponds to a neuron in a neural circuit, and the connection between nodes n corresponds to a synapse. Multiple nodes n are connected randomly. For example, a signal output from one node n at time t may return to the node n that output the signal at time t+1. Node n performs processing based on the signals at time t and time t+1, and information is processed recursively.
[0016] Output layer L out is a signal input from the reservoir layer R, and an output signal S based on the signal out Output.
[0017] Output layer L out For example, the activation function F has an activation function F and a comparator C. The activation function F performs a nonlinear transformation on the signal from the reservoir layer R. For example, a softmax function, a sigmoid function, and a hyperbolic tangent function are examples of the activation function F.
[0018] The softmax function is a function that converts multiple input values, normalizes the multiple output values so that the sum of the multiple output values is "1.0", and outputs an activation rate corresponding to each input.
[0019] The softmax function performs the calculation of the following equation (1): i is the input to the softmax function, and y i is the output from the softmax function.
[0020]
[0021] The sigmoid function is a function that models the properties of biological nerve cells.
[0022] The sigmoid function performs the calculation of the following equation (2): In equation (2), x is the input to the sigmoid function, and f(x) is the output from the sigmoid function.
[0023]
[0024] The hyperbolic tangent function is a function that converts an input value into a numerical value in the range of -1.0 to 1.0 and outputs the converted value.
[0025] The hyperbolic tangent function performs the calculation of the following equation (3): In equation (3), x is the input to the hyperbolic tangent function, and f(x) is the output from the hyperbolic tangent function.
[0026]
[0027] The comparator C compares the output from the activation function F with the training data Dt. The training data Dt is, for example, a training label in a multi-class classification problem. The comparator C includes, for example, a processor.
[0028] Output layer L out performs the learning process and the inference process. out During the learning process, the cross-entropy error between the output from the activation function F and the training data Dt is calculated, and the node n of the reservoir layer R and the output layer L out The connection weight w between the two is adjusted. The learning may be batch learning or online learning.
[0029] Output layer L out is the input signal S in The inference result based on the connection weight w is output as an output signal S out Output as
[0030] Although reservoir computing is shown here as an example of the neural network N1, the present invention is not limited to this example.
[0031] For example, Fig. 2 is a second example of a conceptual diagram of a neural network N2 emulated by the neuromorphic device according to the first embodiment. The neural network N2 shown in Fig. 2 is a forward propagation type neural network in which nodes are formed in a hierarchical structure.
[0032] The neural network N2 shown in FIG. 2 includes, for example, an input layer L in and the middle layer L m and the output layer L out The input layer L in and the middle layer L m and the output layer L out Each of the layers L has a plurality of nodes n. m may be two or more layers.
[0033] Input layer L in Node n and hidden layer L m Between node n and the intermediate layer L m Node n and output layer L out A connection weight w is set between the node n of the output layer L. The connection weight w is adjusted based on the result of comparing the output from the activation function F with the training data Dt by the comparator C. The activation function F is out The output from is nonlinearly transformed. The connection weights w are determined during the training process.
[0034] 3 is a schematic diagram of an analog computing unit 100 according to the first embodiment. The analog computing unit 100 realizes activation function processing using a circuit that uses physical devices. The analog computing unit 100, for example, imitates processing of a softmax function among activation functions, and can be substituted for the arithmetic processing unit that calculates the softmax function shown in FIGS. 1 and 2.
[0035] The analog computing unit 100 includes a plurality of input terminals 10, a voltage-current conversion circuit 20, a current adding circuit 30, current-voltage conversion circuits 41 and 42, and a division circuit 50. Any of the plurality of input terminals 10 is a first input terminal 10A. Any of the plurality of input terminals 10 may be the first input terminal 10A. The current adding circuit 30 is an example of a current addition / subtraction circuit.
[0036] An input voltage is applied to the input terminal 10. Here, the input voltage is the difference between the input potential and the ground potential. In the case of the neural network N1 in FIG. 1, the input voltage corresponds to each signal obtained by multiplying the output from the reservoir layer R by the connection weight w. In the case of the neural network N2 in FIG. 2, the input voltage corresponds to each signal obtained by multiplying the output from the reservoir layer R by the connection weight w. out 3 shows an example in which there are four input terminals 10, but the number of input terminals 10 is not limited.
[0037] The input terminal 10 is connected to, for example, a voltage amplifier circuit 11. Fig. 4 is an example of a circuit diagram of the voltage amplifier circuit 11. The voltage amplifier circuit 11 shown in Fig. 4 receives an input voltage V in is doubled, and the output voltage V out The input voltage Vin and output voltage V out That is, V out = 2V in Satisfy the relationship.
[0038] The voltage-current conversion circuit 20 receives the output voltage V out A part of the input voltage V is divided and applied to the voltage amplifier circuit 11. in By doubling the input voltage V in A voltage of the same magnitude can be applied.
[0039] The voltage-current conversion circuit 20 includes, for example, an exponential conversion element. The exponential conversion element outputs a current that changes exponentially with respect to the input voltage. There may be one or more voltage-current conversion circuits 20. For example, there are as many voltage-current conversion circuits 20 as there are input terminals 10. For example, each of the multiple voltage-current conversion circuits 20 is connected to a respective input terminal 10. The voltage-current conversion circuit 20 performs exponential conversion on the input voltage applied to each of the multiple input terminals and outputs it as a current. For example, the input voltage applied to the first input terminal 10A is exponentially converted to generate a first current I 1 is output from the voltage-current conversion circuit 20.
[0040] The exponential conversion element is, for example, a diode, which uses a pn junction of a diffusion layer, and is formed on a semiconductor substrate such as Si.
[0041] The following equation (4) shows the current-voltage characteristics of a diode. s is the leakage current, V is the voltage applied to the diode, I is the current output from the diode, and V T is expressed as kT / e, where T is temperature, k is Boltzmann's constant, e is the amount of electron charge, and m is the emission coefficient. The emission coefficient is 1 or 2, and in the case of diodes formed on Si semiconductors, m=1 in many cases. At room temperature (T=300K), V T = 26 mV. The V applied to the diode is V T is much larger than I = I S(exp(V / mV T ) can be approximated as
[0042]
[0043] As shown in equation (4), a diode is a nonlinear conversion element that outputs a current that changes exponentially with respect to the input voltage. The nonlinear conversion in this diode is i wo e xi It corresponds to the process of converting to.
[0044] The current duplication circuit 21 is connected to the voltage-current conversion circuit 20. The current duplication circuit 21 duplicates the current output from the voltage-current conversion circuit 20. The current duplication circuit 21 outputs a current of the same magnitude as the current output from the voltage-current conversion circuit 20 to a line parallel to the line to which the voltage-current conversion circuit 20 is connected. The current duplication circuit 21 includes, for example, a bipolar transistor or a field-effect transistor.
[0045] The current summing circuit 30 obtains the sum of the currents converted by the voltage-current converting circuit 20. For example, when the input voltage V1 applied to the first input terminal 10A is in The first current I 1 and the input voltage (V2 in , V3 in , V4 in ) is converted into one or more exponential currents (I 2 , I 3 , I 4 ) and obtain the sum of the current I. The current adder circuit 30 is connected to, for example, each of the multiple current replicating circuits 21. The currents replicated by each of the multiple current replicating circuits 21 are bundled (joined) by the current adder circuit 30 and then added. For example, the first current I 1 a first wiring through which a converted current I 2 , I 3 , I 4 The first current I 1 and the conversion current I 2 , I 3 , I 4The current adding circuit 30 has a function of adding a plurality of currents together by combining the currents.
[0046] The current-voltage conversion circuits 41 convert the currents converted by the voltage-current conversion circuits 20 into voltages. For example, one of the current-voltage conversion circuits 41 converts the first current I 1 The other current-voltage conversion circuit 41 converts the converted current I 2 , I 3 , I 4 The current-voltage conversion circuit 42 converts the sum of the currents converted by the voltage-current conversion circuit 20 into a voltage. This voltage is generated between the terminals of each current-voltage conversion circuit 41 and each voltage-current conversion circuit 20.
[0047] There are, for example, a plurality of current-voltage conversion circuits 41. The number of current-voltage conversion circuits 41 is, for example, the same as the number of input terminals 10. Each current-voltage conversion circuit 41 is connected to, for example, one of the current replicating circuits 21. The current-voltage conversion circuit 42 is connected to, for example, the current adding circuit 30.
[0048] The current-voltage conversion circuit 41 and the current-voltage conversion circuit 42 include, for example, impedance elements. The impedance elements are preferably, for example, variable impedance elements. The current-voltage conversion circuit 41 and the current-voltage conversion circuit 42 are, for example, shunt resistors. A shunt resistor is a resistor incorporated into an electric circuit for the purpose of detecting current, and linearly converts the current into a voltage. Here, an example is shown in which variable resistors having control terminals are used as the current-voltage conversion circuit 41 and the current-voltage conversion circuit 42.
[0049] The division circuit 50 obtains the ratio between the first voltage converted by the current-voltage conversion circuit and the second voltage. The first voltage is, for example, the first current I 1 or conversion current I 2 , I 3 , I 4 The second voltage is a voltage obtained by converting the first current I 1 and the conversion current I 2 , I 3 , I 4The voltage converted by the current-voltage conversion circuit 41 corresponds to the voltage converted from the sum of the currents. The voltage converted by the current-voltage conversion circuit 42 corresponds to the voltage converted from the sum of the currents.
[0050] 3, the division circuit 50 normalizes each of the voltages converted by the current-voltage conversion circuit 41 with the voltage converted by the current-voltage conversion circuit 42. sum For example, V sum = R2 / (R1+R2) x Vcc. This adjustment is performed by changing the resistance value (impedance) of the variable resistors in the current-voltage conversion circuits 41 and 42. The resistance value (impedance) of each variable resistor is the same. Vcc is the power supply voltage. R1 and R2 are the resistance values of the resistors included in the division circuit 50. The division circuit 50 has a reference voltage setting circuit including, for example, resistors R1 and R2. The reference voltage "1" is set by setting the resistance values of the resistors R1 and R2. The reference voltage of the division circuit 50 can be set arbitrarily. Voltage V sum are normalized by "1", so that the sum of the voltages converted by the current-voltage conversion circuit 41 becomes "1".
[0051] By normalizing each voltage converted by the current-voltage conversion circuit 41 by the total voltage converted by the current-voltage conversion circuit 42, the analog computing unit 100 can directly output the division result obtained by dividing the voltage of each current-voltage conversion circuit 41 by the total voltage. Furthermore, normalizing the total voltage can reduce the influence of temperature changes. As shown in equation (4), the current-voltage characteristics of a diode are affected by temperature. By normalizing each voltage by the total voltage, the influence of temperature on each diode can be reduced.
[0052] The division circuit 50 is not limited to the one shown in Fig. 3. For example, it may be a circuit including a memory that stores the voltage converted by the current-voltage conversion circuit 41 and the total voltage converted by the current-voltage conversion circuit 42, and an arithmetic unit that divides each voltage by the total voltage.
[0053] Next, the operation of the analog computing unit 100 according to the first embodiment will be described.
[0054] First, input voltage V1 in , V2 in , V3 in , V4 in An input voltage V1 is applied. in , V2 in , V3 in , V4 in Each of the s corresponds to an input to the activation function F.
[0055] The voltage input from the input terminal 10 is amplified by each of the voltage amplifier circuits 11. in , V2 in , V3 in , V4 in Each of the input voltages V1 and V2 is doubled by a voltage amplifier circuit 11. in , V2 in , V3 in , V4 in The amplification factor is not limited to 2, and can be set according to the voltage division ratio between the voltage-current conversion circuit 20 and the current replication circuit 21. An example in which the amplification factor of the voltage amplification circuit 11 is 2 will be described below.
[0056] Next, the voltage 2V1 amplified by the voltage amplifier circuit 11 in , 2V2 in , 2v3 in , 2V4 in are applied to the voltage-current conversion circuit 20. The bipolar transistors of the voltage-current conversion circuit 20 and the current duplication circuit 21 are connected in series. The base and collector electrodes of this bipolar transistor are short-circuited, and the bipolar transistor exhibits the same voltage-current characteristics as the voltage-current conversion circuit 20. Therefore, a voltage based on the voltage division ratio of the voltage-current conversion circuit 20 and the current duplication circuit 21 is applied to the voltage-current conversion circuit 20 and the current duplication circuit 21. For example, if the amplification factor of the voltage amplifier circuit 11 is 2 and the voltage division ratio of the voltage-current conversion circuit 20 is 50%, the voltage-current conversion circuit 20 receives an input voltage V1 in , V2 in , V3 in , V4 inA voltage of the same magnitude as
[0057] Each of the voltage-current conversion circuits 20 receives an input voltage V1 in , V2 in , V3 in , V4 in are converted into exponential functions to obtain the current I 1 , I 2 , I 3 , I 4 The input voltage V1 is output as in , V2 in , V3 in , V4 in is the difference between the input potential and the ground potential.
[0058] For example, the voltage-current conversion circuit 20 converts the input voltage V1 in , V2 in , V3 in , V4 in is converted into an exponential value, and the current I 1 , I 2 , I 3 , I 4 This exponential transformation is the input signal x in the softmax function. i wo e xi It corresponds to the process of converting to.
[0059] The current replicating circuit 21 also replicates the current I output from the voltage-current converting circuit 20. 1 , I 2 , I 3 , I 4 The current I is the same magnitude as 1 , I 2 , I 3 , I 4 is output to the current-voltage conversion circuit 41.
[0060] The current adding circuit 30 receives the current I output from the voltage-current conversion circuit 20. 1 , I 2 , I 3 , I 4 The current I is the same magnitude as 1 , I 2 , I 3 , I 4 In the current adder circuit 30, the current I 1 , I2 , I 3 , I 4 The currents merge, and the combined current I sum This becomes:
[0061] The current-voltage conversion circuit 41 converts the current I 1 , I 2 , I 3 , I 4 Voltage V1 out , V2 out , V3 out , V4 out The current-voltage conversion circuit 42 converts the combined current I sum voltage V sum Here, a voltage is generated between both terminals of each current-voltage conversion circuit. Voltage V sum For example, V sum = R2 / (R1+R2) x Vcc.
[0062] The division circuit 50 divides the voltage V sum and voltage V1 out , V2 out , V3 out , V4 out Calculate the ratio of voltage V sum Each voltage V1 is normalized by out , V2 out , V3 out , V4 out These voltages V1 are output from the analog calculator. out , V2 out , V3 out , V4 out is the output signal y in the softmax function i The output signal is input to the comparator C in FIGS.
[0063] The analog computing unit 100 according to the first embodiment can reduce the computational load imposed by the computation process. The analog computing unit 100 performs signal conversion by converting analog physical quantities, such as current and voltage. When the activation function F is executed by a digital computing unit, a computation process is required in which an input signal is substituted into the activation function for computation. The analog computing unit 100 according to the first embodiment does not require this computation, and the computational load of the computing unit can be reduced.
[0064] Furthermore, the analog computing unit 100 according to the first embodiment can reduce the time required for the computation process.
[0065] FIG. 5 is a conceptual diagram of the calculation process when the calculation of the activation function F is performed entirely by a digital calculator (software). The processing of the activation function F shown in FIG. 5 is a softmax function. The software calculates the input signal x i a first operation C1 for exponentially transforming the exponentially transformed signal e xi and a second operation C2 for calculating the sum of the exponentially transformed signals e xi The digital calculator then performs a third operation C3, which divides the sum of the first and third operations C1 and C3 by the sum obtained in the second operation. Each of the first operation C1 and the third operation C3 has n different operations. In other words, the digital calculator needs to perform 2n+1 different operations in sequence.
[0066] In contrast, the analog computing unit 100 performs processing corresponding to the first calculation C1 in the voltage-current conversion circuit 20. The analog computing unit 100 also performs processing corresponding to the second calculation C2 in the current addition circuit 30. The analog computing unit 100 also performs processing corresponding to the third calculation C3 in the current-voltage conversion circuit 41, the current-voltage conversion circuit 42, and the division circuit 50. The analog computing unit 100 performs these processes in parallel.
[0067] In the case of a digital computing unit, the third computation cannot be performed until the first computation C1 and the second computation C2 have been performed, and these computations must be performed in order. In contrast, the analog computing unit 100 can perform these processes simultaneously in parallel by replacing them with conversion of physical quantities. In other words, the analog computing unit 100 can reduce the time required for computation. Furthermore, since each computation step and sequence is incorporated into the circuit, the analog computing unit 100 has a small computation load and can be driven with low power consumption.
[0068] Up to this point, the first embodiment has been described in detail based on one example, but the analog computing unit according to the first embodiment is not limited to this example.
[0069] 6 is a schematic diagram of another example of the analog computing unit according to the first embodiment. The analog computing unit 100A shown in FIG. 6 differs from the analog computing unit 100 shown in FIG. 3 in that the current duplication circuit 21 also functions as the voltage-current conversion circuit 20, and the voltage-current conversion circuit 20 does not have a separate exponential function element (e.g., a diode). Because the exponential function elements are not connected in series, the analog computing unit 100A is assigned the same reference numerals as the analog computing unit 100, and description thereof will be omitted.
[0070] The current duplication circuit 21 includes, for example, a bipolar transistor or a field-effect transistor. Like a diode, these transistors perform exponential conversion of the input voltage and output it as a current. In this case, the voltage amplifier circuit 11 multiplies the input voltage by 1 and outputs it. That is, the voltage amplifier circuit 11 functions as a voltage follower circuit. In the analog computing unit 100, the voltage amplifier circuit 11 amplifies the input voltage by 2 to divide voltages equal in magnitude to the input voltage into the voltage-current conversion circuit 20 and the current duplication circuit 21, respectively. However, in the analog computing unit 100A, the input voltage is input directly to the current duplication circuit 21.
[0071] The analog computing unit 100A can perform signal conversion by converting analog physical quantities such as current and voltage, similar to the analog computing unit 100. The analog computing unit 100A has the same effects as the analog computing unit 100, and also has the advantage of having a smaller number of components and being able to operate at a low voltage.
[0072] 7 is a schematic diagram of an analog computing unit 101 according to a second embodiment. The analog computing unit 101 realizes activation function processing by a circuit using physical devices. The analog computing unit 101 imitates, for example, processing of a softmax function among activation functions.
[0073] The analog computing unit 101 includes a plurality of input terminals 10, a voltage-current conversion circuit 20, a current adding circuit 31, a current-voltage conversion circuit 43, a division circuit 50, a switch 60, and an analog-to-digital converter 70. Any of the plurality of input terminals 10 is a first input terminal 10A. Any of the plurality of input terminals 10 may be the first input terminal 10A. The current adding circuit 30 is an example of a current addition / subtraction circuit. In the analog computing unit 101, components similar to those in the analog computing unit 100 are denoted by the same reference numerals, and descriptions thereof will be omitted.
[0074] The current summing circuit 31 calculates the sum of the currents converted by the voltage-current converting circuit 20. The current summing circuit 31 is connected to each of the current replicating circuits 21, for example. For example, the first current I 1 a first wiring through which a converted current I 2 , I 3 , I 4 The first current I 1 and the conversion current I 2 , I 3 , I 4 The currents output from the current duplication circuits 21 are joined together in the current addition circuit 31.
[0075] The current-voltage conversion circuit 43 is connected to the current summing circuit 31. The current-voltage conversion circuit 43 converts each of the currents converted by the voltage-current conversion circuit 20 into a voltage. The current-voltage conversion circuit 43 also converts the sum of the currents converted by the voltage-current conversion circuit 20 into a voltage. The current applied to the current-voltage conversion circuit 43 changes by switching the switch 60 ON and OFF. The current-voltage conversion circuit 43 includes, for example, an impedance element. The impedance element is preferably, for example, a variable impedance element. A field-effect transistor may be used as the impedance element, but is not limited to this.
[0076] A known switch can be used as the switch 60. The switch 60 is, for example, an element utilizing a phase change of a crystal layer such as a transistor or an Ovonic Threshold Switch (OTS), an element utilizing a change in band structure such as a metal-insulator transition (MIT) switch, an element utilizing a breakdown voltage such as a Zener diode or an avalanche diode, or an element whose conductivity changes with a change in atomic position.
[0077] The switch 60 is, for example, located between the input terminal 10 and the voltage-current conversion circuit 20. The switch 60 may also be located between the current replicating circuit 21 and the current adding circuit 31.
[0078] The analog-to-digital converter 70 converts the voltage output from the current-to-voltage conversion circuit 43 into a digital signal. The analog-to-digital converter 70 may be omitted.
[0079] The division circuit 50 obtains the ratio between the first voltage converted by the current-voltage conversion circuit and the second voltage. The first voltage is, for example, the first current I 1 or conversion current I 2 , I 3 , I 4 The second voltage is a voltage obtained by converting the first current I 1 and the conversion current I 2 , I 3 , I 4 The voltage obtained by converting the sum of the currents is the voltage obtained by converting the sum of the currents. The division circuit 50, for example, calculates the ratio between the voltage obtained by converting each of the currents and the voltage obtained by converting the sum of the currents. The division circuit 50 includes, for example, a memory and a calculator. The memory stores, for example, each of the voltages converted by the current-voltage conversion circuit 43. The calculator divides the voltage obtained by converting each of the currents by the voltage obtained by converting the sum of the currents.
[0080] Next, the operation of the analog computing unit 101 according to the second embodiment will be described.
[0081] First, all the switches 60 are turned on. Then, an input voltage V1 is applied to each of the input terminals 10. in , V2 in , V3 in , V4in Each of the voltage-current conversion circuits 20 applies an input voltage V1 in , V2 in , V3 in , V4 in are converted into exponential functions to obtain the current I 1 , I 2 , I 3 , I 4 This processing is the same as that of the analog computing unit 100 according to the first embodiment.
[0082] Next, the current adding circuit 31 receives the current I output from the voltage-current conversion circuit 20. 1 , I 2 , I 3 , I 4 The current I is the same magnitude as 1 , I 2 , I 3 , I 4 In the current adding circuit 31, the current I 1 , I 2 , I 3 , I 4 The currents merge, and the combined current I sum This becomes:
[0083] The current-voltage conversion circuit 43 converts the combined current I sum voltage V sum Convert to voltage V sum is the voltage generated between both terminals of the current-voltage conversion circuit 43. sum is converted into a digital signal by the analog-to-digital converter 70 and stored in the division circuit 50. sum is the e in the softmax function xi (i=1, 2, . . . , n). In other words, the voltage V stored in the division circuit 50 corresponds to the sum of sum corresponds to the denominator of the softmax function.
[0084] Next, one of the switches 60 is turned ON, and the other switches are turned OFF. In this case, the current adding circuit 31 and the current-voltage conversion circuit 43 receive the current (for example, the first current I 1The current-voltage conversion circuit 43 converts the applied first current I 1 voltage V 1 Convert to voltage V 1 is the voltage generated between both terminals of the current-voltage conversion circuit 43. 1 is converted into a digital value by the analog-to-digital converter 70 and stored in the division circuit 50.
[0085] Then, the switches 60 to be turned on are switched. By switching the switches 60 to be turned on, the voltage V i The voltage V i (i=1, 2, ..., n) are stored in the division circuit 50. The voltage V i corresponds to the numerator of the softmax function. i are the voltages generated between the two terminals of the current-voltage conversion circuit 43.
[0086] The division circuit 50 divides the voltage V i (i=1, 2, ..., n) to the voltage V sum The result of this division is the output signal y i The output signal is input to the comparator C in FIGS.
[0087] The analog computing unit 101 according to the second embodiment can obtain the same effects as the analog computing unit 100 according to the first embodiment.
[0088] Furthermore, the analog computing unit 101 according to the second embodiment can reduce the time required for the computation process.
[0089] FIG. 8 is a conceptual diagram of the processing of the analog computing unit 101. The analog computing unit 101 performs processing corresponding to the first calculation C1 and the second calculation C2 using the voltage-current conversion circuit 20, the current addition circuit 31, and the current-voltage conversion circuit 43. The first calculation C1 and the second calculation C2 are switched between by turning the switch 60 ON and OFF. The analog computing unit 101 performs the third calculation C3 using the division circuit 50. The third calculation C3 can be performed after at least one of the second calculation C2 and the first calculation C1 has been performed. Therefore, the analog computing unit 101 can perform the first calculation C1 and the third calculation C3 in parallel, which reduces the time required for the calculation compared to when the calculation is performed by a device computing unit (software).
[0090] Furthermore, the analog computing unit 101 according to the second embodiment can perform all of the first arithmetic operations and the second arithmetic operation by using the switch 60 to time-share the current input to the current-voltage conversion circuit 43. Therefore, the analog computing unit 101 requires only one current-voltage conversion circuit 43. As a result, the element area of the analog computing unit 101 according to the second embodiment can be reduced.
[0091] 9 is a schematic diagram of an analog computing unit 101A according to the first modification. The analog computing unit 101A has a plurality of units, each of which includes a plurality of input terminals 10, a voltage-current conversion circuit 20, a current summing circuit 31, a current-voltage conversion circuit 43, a switch 60, and an analog-digital converter 70. The number of units is not limited to two, and may be three or more.
[0092] The analog computing unit 101A according to the first modification can perform each process of the first calculation C1 in parallel using a plurality of units, thereby reducing the time required for the calculation.
[0093] 6, the current duplication circuit 21 may also function as the voltage-current conversion circuit 20, and an exponential function element (e.g., a diode) may not be separately provided as the voltage-current conversion circuit 20.
[0094] 10 is a schematic diagram of an analog computing unit 102 according to a third embodiment. The analog computing unit 102 implements activation function processing using a circuit that uses physical devices. The analog computing unit 102 imitates, for example, processing of a sigmoid function, which is one of activation functions.
[0095] The analog computing unit 102 includes a first input terminal 10A, a second input terminal 10B, a voltage-current conversion circuit 20, a current addition circuit 30, current-voltage conversion circuits 41 and 42, and a division circuit 50. In the analog computing unit 102, components similar to those in the analog computing unit 100 are denoted by the same reference numerals and will not be described again.
[0096] Next, the operation of the analog computing unit 102 according to the third embodiment will be described.
[0097] The first input terminal 10A receives an input voltage V1 in is applied to the first input terminal 10B, and a reference voltage VC is applied to the second input terminal 10B. The reference voltage VC is a voltage when the current flowing through the exponential conversion element is negligible, and is, for example, the built-in potential of a diode.
[0098] Input voltage V1 in is converted by the voltage amplifier circuit 11, the voltage-current converter circuit 20, and the current-voltage converter circuit 41 to produce a voltage V1 out Voltage V1 out corresponds to exp(x) of the sigmoid function. The reference voltage VC is converted by the voltage amplifier circuit 11, the voltage-current converter circuit 20, and the current-voltage converter circuit 41, and the voltage VC out Voltage VC out corresponds to exp(0) of the sigmoid function.
[0099] That is, voltage V1 out and voltage VC out By using the above equations, the calculation of the sigmoid function expressed in equation (2) can be replaced with processing in a physical device.
[0100] The analog computing unit 102 according to the third embodiment can reduce the computational load required for computational processing. The analog computing unit 102 performs signal conversion by converting analog physical quantities, such as current and voltage, without performing the computation of a digital computing unit. When the activation function F is executed by a digital computing unit, it is necessary to perform each computation step and sequence in order to perform computational processing in which an input signal is substituted into the activation function. In the analog computing unit 102 according to the third embodiment, this computation is incorporated into the analog signal conversion in the circuit, thereby reducing the computational load of the analog computing unit.
[0101] Although the third embodiment has been described in detail above based on one example, the analog computing unit according to the third embodiment is not limited to this example.
[0102] 6, in the analog computing unit 102 according to the third embodiment, the current duplication circuit 21 also functions as the voltage-current conversion circuit 20, and it is not necessary to provide a separate exponential function element (e.g., a diode) as the voltage-current conversion circuit 20. In this case, the gain of the voltage amplification circuit may be 1x instead of 2x.
[0103] 11 is a schematic diagram of another example of an analog computing unit according to the third embodiment. An analog computing unit 102A shown in FIG. 11 includes a first input terminal 10A, a voltage-current conversion circuit 20, a current adding circuit 32, current-voltage conversion circuits 41 and 42, a division circuit 51, and DC sources 81 and 82. By setting the impedance of resistor R2 so that the voltage across resistor R2 becomes the reference voltage, the current output from DC source 82 becomes the corresponding reference current I c The reference current I of the DC source 82 c is replicated in the DC source 81 by a current mirror circuit or the like. In the analog computing unit 102A, the same components as those in the analog computing unit 102 are denoted by the same reference numerals, and the description thereof will be omitted.
[0104] The current replicating circuit 21 also functions as the voltage-current converting circuit 20. The current adding circuit 32 is an example of a current adding / subtracting circuit. The current adding circuit 32 adds the first current I converted by the voltage-current converting circuit 20 to the 1 and the reference current I cThe current adder circuit 32 is connected to, for example, the current replicating circuit 21 and the current-voltage converting circuit 42. The first current I 1 and the reference current I c The flow direction of the first current I 1 and the reference current I c are added by being bundled (joined) in the current adding circuit 32. For example, the first current I 1 a first wiring through which a reference current I c The first current I 1 and the reference current I c and merge.
[0105] Reference current I c is output from the DC source 81. In the analog computing unit 102 shown in FIG. 10, the reference voltage VC is converted to a reference current (current I in FIG. 10). 2 ), but in the example shown in FIG. c The voltage between the terminals of resistor R2 is determined to be the reference potential, thereby directly generating the DC source 81. In this case, there is no need to input the reference voltage from outside, and therefore the number of circuit elements can be reduced.
[0106] The current-voltage conversion circuit 41 converts the first current I 1 The current-voltage conversion circuit 42 converts the first current I 1 and the reference current I c and the sum of (total current I sum These voltages are generated between the terminals of the current-voltage conversion circuits 41 and 42, respectively.
[0107] The division circuit 51 obtains the ratio between the first voltage and the second voltage converted by the current-voltage conversion circuits 41 and 42. The first voltage is, for example, the ratio of the first current I 1 Voltage converted from out The second voltage is, for example, the first current I 1 and the reference current I c and the sum of (total current I sum ) is converted into a voltage V1 sumThe divider circuit 51 includes a DC source 82, which is a replica of the DC source 81 and has the same reference current I c The division circuit 50 outputs, for example, the first current I 1 The converted voltage V1 out and the first current I 1 and the reference current I c and the sum of (total current I sum ) converted from the voltage V1 sum Calculate the ratio of and .
[0108] Next, the operation of the analog computing unit 102 will be described.
[0109] The first input terminal 10A receives an input voltage V1 in The DC source 81 applies a reference current I c Output.
[0110] Input voltage V1 in is converted by the voltage-current conversion circuit 20 and the current-voltage conversion circuit 41 to produce a voltage V1 out Voltage V1 out corresponds to exp(x) of the sigmoid function. The first current I 1 is calculated as the reference current I c The first current I 1 and the reference current I c and the sum of (total current I sum ) is converted by the current-voltage conversion circuit 42 into a voltage V1 sum Voltage V1 sum corresponds to exp(x)+exp(0)=exp(x)+1 of the sigmoid function.
[0111] That is, voltage V1 out and voltage V1 sum By using the above equations, the calculation of the sigmoid function expressed in equation (2) can be replaced with processing in a physical device.
[0112] 12 is a schematic diagram of an analog computing unit 103 according to a fourth embodiment. The analog computing unit 103 realizes activation function processing by a circuit using a physical device. The analog computing unit 103 can process, for example, a hyperbolic tangent function among activation functions.
[0113] Analog computing unit 103 includes first input terminal 10A, voltage-current conversion circuit 20, current adding circuit 32, current subtraction circuit 33, current-voltage conversion circuits 41, 42, division circuit 51, DC sources 81, 82, 83, sign removal circuit 91, and sign restoration circuit 92. In analog computing unit 103, components similar to those in analog computing unit 102A are designated by similar reference numerals and will not be described again. Current adding circuit 32 and current subtraction circuit 33 are each an example of a current adding / subtracting circuit.
[0114] Reference current I of DC source 82 c is uniquely determined by determining that the voltage between the terminals of resistor R2 is equal to the reference potential. The currents of DC sources 81 and 83 are generated by a current replica circuit or the like to replicate the reference current I c The DC source 83 is connected to the wiring connecting the current-voltage conversion circuit 41 and the voltage-current conversion circuit 20 in a direction that causes a current to flow.
[0115] The current subtraction circuit 33 subtracts the first current I converted by the voltage-current conversion circuit 20. 1 and the reference current I c The current subtraction circuit 33 is connected to, for example, the DC source 83, the current replicating circuit 21, and the current-to-voltage conversion circuit 41. 1 and the reference current I c and the current I flowing through the current-voltage conversion circuit 41 dif are combined in the current subtraction circuit 33.
[0116] The sign removal circuit 91 is connected to the first input terminal 10A and receives the input voltage V1 in Calculate the absolute value of the input voltage V1 in By calculating the absolute value of the input voltage V1 applied to the first input terminal 10A, in The sign information is removed from
[0117] The sign restoration circuit 92 adds a sign to the division result of the division circuit 50, and restores the sign removed by the sign removal circuit 91. The sign restoration circuit 92 is connected, for example, to both ends of the current-voltage conversion circuit 42. The sign restoration circuit 92 adds the same sign as the sign removed by the sign removal circuit 91 to the output from the analog computing unit 103. By adding sign information to the output from the analog computing unit 103 in the sign restoration circuit 92, the analog computing unit 103 can output values in the range from -1 to +1.
[0118] Next, the operation of the analog computing unit 13A will be described.
[0119] The first input terminal 10A receives an input voltage V1 in Apply the input voltage V1 in The sign removal circuit 91 removes the positive and negative information from the reference current I c Outputs input voltage V1 in is amplified by a factor of 2 in the voltage amplifier circuit 11 to become 2V1 in This becomes:
[0120] Amplified input voltage V1 in is converted into a first current I 1 The first current I 1 is duplicated by the current duplication circuit 21 and flows through the current-voltage conversion circuit 41 and the current-voltage conversion circuit 42, respectively.
[0121] In the current adder circuit 32, the first current I 1 and the reference current I c The first current I 1 and the reference current I c The flow direction of the first current I is the same as that of the second current I. In other words, both currents flow out of the current adding circuit 32. In the current adding circuit 32, the first current I 1 and the reference current I c and the sum of (total current I sum ) is obtained. The total current I sum is converted by the current-voltage conversion circuit 42 into a voltage V1 sum Voltage V1 sum corresponds to the denominator term exp(2x)+1 of the hyperbolic tangent function.
[0122] In the current subtraction circuit 33, the first current I 1 and the reference current I c The first current I 1 and the reference current I c In other words, the first current I1 flows out of the current subtraction circuit 33, whereas the reference current Ic flows into the current subtraction circuit. Here, according to Kirchhoff's law, I c +I dif =I 1 Therefore, I dif =I 1 -I c and the current flowing through the current-voltage conversion circuit 41 (the difference current I dif ) is the first current I 1 from the reference current I c The current subtraction circuit 33 subtracts the first current I 1 and the reference current I c The difference between the dif ) is obtained. dif corresponds to the numerator term exp(2x)-1 of the hyperbolic tangent function.
[0123] The division circuit 51 calculates the first current I 1 and the reference current I c Voltage V1 based on the sum of sum , first current I 1 and the reference current I c Voltage V1 based on the difference dif and obtain the ratio.
[0124] That is, voltage V1 dif and voltage V1 sum By using the above equations, the calculation of the hyperbolic tangent function expressed in equation (3) can be replaced with processing in a physical device.
[0125] Although the fourth embodiment has been described in detail above based on one example, the analog computing unit according to the fourth embodiment is not limited to this example.
[0126] For example, in the analog computing unit 103 according to the fourth embodiment, the functions may be divided into the current replicating circuit 21 and the voltage-current converting circuit 20, similar to the example shown in FIG.
[0127] For example, in the analog computing unit 103 according to the fourth embodiment, a reference current may be generated by converting the reference voltage VC, similar to the example shown in FIG.
[0128] Although the analog computing unit has been described in detail above using several embodiments as examples, the configuration of the analog computing unit is not limited to these embodiments and various modifications and changes are possible. For example, the characteristic configurations of the first to fourth embodiments may be applied to other embodiments.
[0129] N1, N2 Neural Network L in Input layer R Reservoir layer L m Middle class L out Output layer F Activation function C Comparator n Node 10 Input terminal 11 Voltage amplifier circuit 20 Voltage-current conversion circuit 21 Current duplication circuit 30, 31, 32 Current addition circuit 33 Current subtraction circuit 41, 42, 43 Current-voltage conversion circuit 50 Division circuit 60 Switch 70 Analog-digital converter 81, 82, 83 DC source 91 Sign removal circuit 92 Sign restoration circuit
Claims
1. An analog computing unit comprising: a first input terminal; a voltage-to-current conversion circuit that exponentially converts an input voltage applied to the first input terminal and outputs it as a first current; a current addition / subtraction circuit that obtains at least one of the sum and the difference of the first current and a reference current, or one or more converted currents obtained by exponentially converting an input voltage applied to at least one input terminal other than the first input terminal; a current-to-voltage conversion circuit that converts at least two of the first current, the sum, and the difference into voltages; and a division circuit that obtains a ratio between the first voltage converted by the current-to-voltage conversion circuit and a second voltage.
2. The analog computing unit according to claim 1, wherein the current addition / subtraction circuit calculates the sum of the first current and the converted current, the first voltage is a voltage obtained by voltage-converting the first current, and the second voltage is a voltage obtained by voltage-converting the sum of the first current and the converted current.
3. The analog computing unit according to claim 1, wherein the current addition / subtraction circuit calculates the sum of the first current and the reference current, the first voltage is a voltage obtained by voltage-converting the first current, and the second voltage is a voltage obtained by voltage-converting the sum of the first current and the reference current.
4. The analog computing unit according to claim 1, wherein the current addition / subtraction circuit calculates a difference between the first current and the reference current and a sum of the first current and the reference current, the first voltage is a voltage obtained by voltage-converting the difference between the first current and the reference current, and the second voltage is a voltage obtained by voltage-converting the sum of the first current and the reference current.
5. The analog computing unit according to claim 1, wherein the voltage-to-current conversion circuit includes a diode.
6. The analog computing unit according to claim 1, further comprising a switch for controlling a current flowing through said current-voltage conversion circuit.
7. The analog computing unit according to claim 1, further comprising a second input terminal, a reference voltage of said voltage-current conversion circuit being applied to said second input terminal, and said reference current being a current converted from said reference voltage.
8. The analog computing unit according to claim 1, further comprising a DC source, said DC source outputting said reference current.
9. The analog computing unit according to claim 1, wherein the division circuit has a reference voltage setting circuit.
10. The analog computing unit of claim 1, wherein the current addition / subtraction circuit has at least one first wiring through which the first current flows and a second wiring through which the reference current or the converted current flows, the first wiring and the second wiring are connected, and the first current and the reference current or the converted current are joined to obtain the sum or difference.
11. The analog computing unit according to claim 1, wherein the current-voltage conversion circuit includes an impedance element.
12. The analog computing unit according to claim 1, wherein the current-voltage conversion circuit includes a variable impedance element.
13. An analog computing unit as claimed in claim 1, further comprising a sign removal circuit and a sign restoration circuit, said sign removal circuit being connected to said first input terminal, determining an absolute value of an input voltage applied to said first input terminal and removing the sign of said input voltage, and said sign restoration circuit adding said sign to a result of division in said division circuit and restoring the sign removed by said sign removal circuit.
14. A neuromorphic device comprising the analog computing unit according to claim 1.
Citation Information
Patent Citations
Correlation arithmetic circuit
JP1995093445A
Bipolar multiplier
JP1997282403A
Exponential converting circuit and varaible gain circuit using it
JP2002092541A
