JP7196803B2 - Artificial Neural Network Circuit and Learning Value Switching Method in Artificial Neural Network Circuit - Google Patents

Artificial Neural Network Circuit and Learning Value Switching Method in Artificial Neural Network Circuit Download PDF

Info

Publication number
JP7196803B2
JP7196803B2 JP2019169724A JP2019169724A JP7196803B2 JP 7196803 B2 JP7196803 B2 JP 7196803B2 JP 2019169724 A JP2019169724 A JP 2019169724A JP 2019169724 A JP2019169724 A JP 2019169724A JP 7196803 B2 JP7196803 B2 JP 7196803B2
Authority
JP
Japan
Prior art keywords
circuit
learning value
crossbar
temperature
neural network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019169724A
Other languages
Japanese (ja)
Other versions
JP2020068048A (en
Inventor
イリナ カタエヴァ
茂樹 大塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to US16/654,394 priority Critical patent/US11928576B2/en
Publication of JP2020068048A publication Critical patent/JP2020068048A/en
Application granted granted Critical
Publication of JP7196803B2 publication Critical patent/JP7196803B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Feedback Control In General (AREA)
  • Logic Circuits (AREA)

Description

本発明は、メモリスタを有するクロスバー回路を備えた人工ニューラルネットワーク回路、及びその人工ニューラルネットワーク回路における学習値切替方法に関する。 The present invention relates to an artificial neural network circuit equipped with a crossbar circuit having a memristor, and a learning value switching method in the artificial neural network circuit.

近年、ディープニューラルネットワークなどの人工ニューラルネットワーク(以下、NN)が、例えば画像認識の分野において、従来の機械学習による認識性能を凌駕する認識性能を発揮することが確認されている。ただし、人工NNは、一般的に演算負荷が高い。このため、人工NNは、高効率な並列計算に適したGPU(graphic processing unit)を用いた所謂GPGPU(general-purpose computing on GPU)によりソフトウェア的に実現されることがある。 In recent years, it has been confirmed that an artificial neural network (hereinafter referred to as NN) such as a deep neural network exhibits recognition performance that surpasses that of conventional machine learning, for example, in the field of image recognition. However, the artificial NN generally has a high computational load. Therefore, an artificial NN may be implemented in software by a so-called GPGPU (general-purpose computing on GPU) using a GPU (graphic processing unit) suitable for highly efficient parallel computation.

しかし、GPGPUは、消費電力が大きい。従って、GPGPUを用いた人工NNは、例えばクラウドコンピューティングベースのアプリケーションでは適用可能であるが、非クラウドコンピューティングベースのアプリケーションでは適用することが困難な場合がある。例えば、非クラウドコンピューティングベースのアプリケーションの一例として、車両において、障害物を認識し、その障害物との衝突を防止/緩和するための衝突防止制御を実行するアプリケーションや、車両を目的地まで自動運転するためのアプリケーションなどがある。これらのアプリケーションの実行に際しては、低電力消費でありながら高速に動作することが求められる。従って、低電力消費、高速、且つ、小型の人工NN専用のハードウェア回路が望まれている。 However, GPGPU consumes a lot of power. Therefore, artificial NNs using GPGPU are applicable, for example, in cloud computing-based applications, but may be difficult to apply in non-cloud computing-based applications. Examples of non-cloud computing-based applications include an application that recognizes obstacles in a vehicle and performs anti-collision control to prevent/mitigate a collision with the obstacle, and an application that automatically drives the vehicle to its destination. There are applications for driving. When executing these applications, it is required to operate at high speed while consuming low power. Therefore, hardware circuits dedicated to artificial NNs that are low power consumption, high speed, and small size are desired.

国際公開第2017/010048号WO2017/010048 国際公開第2017/010049号WO2017/010049

上述した人工NN専用のハードウェア回路の一つとして、本願発明者は、抵抗変化型メモリ(以下、メモリスタ)を有するクロスバー回路を備えた人工NN回路の研究を進めてきた。その研究結果は、例えば、ここに参照により援用する特許文献1及び特許文献2に開示されている。 As one of the hardware circuits dedicated to the above artificial NN, the inventor of the present application has been researching an artificial NN circuit equipped with a crossbar circuit having a resistive memory (hereinafter referred to as a memristor). The results of that research are disclosed, for example, in US Pat.

クロスバー回路は、複数の入力バーと複数の出力バーとが交差するように配列され、各交点において入力バーと出力バーとがメモリスタを介して接続されることによって構成される。クロスバー回路の入力バーに、前段のニューロンの出力値に応じた電圧信号が入力されると、各電圧信号はメモリスタのコンダクタンス値を重みとして乗じられた後、出力バーに接続される処理回路へ出力され、処理回路によって総和となる電圧信号が算出される。そして、処理回路は、後段のニューロンへの入力として、算出した総和電圧信号から活性化関数に応じた出力値を生成して出力する。このようにして、人工NNにおけるシナプスが、クロスバー回路を用いて、ハードウェア的に実現される。 A crossbar circuit is configured by arranging a plurality of input bars and a plurality of output bars to intersect each other, and connecting the input bars and the output bars at each intersection point via a memristor. When a voltage signal corresponding to the output value of the preceding neuron is input to the input bar of the crossbar circuit, each voltage signal is multiplied by the conductance value of the memristor as a weight before being sent to the processing circuit connected to the output bar. A voltage signal is output and summed by a processing circuit. Then, the processing circuit generates and outputs an output value according to the activation function from the calculated total voltage signal as an input to the neuron in the subsequent stage. In this way, synapses in the artificial NN are implemented in hardware using crossbar circuits.

このようなクロスバー回路を備えた人工NN回路では、例えば、コンピュータシミュレーションによって、伝達される各信号に付与する重みが学習され、各メモリスタは、その学習された重みに応じたコンダクタンス値に設定される。メモリスタは、電圧を印加することによって、最小値と最大値との間で、抵抗値を書き換えることが可能である。 In an artificial NN circuit equipped with such a crossbar circuit, for example, by computer simulation, weights to be assigned to each signal to be transmitted are learned, and each memristor is set to a conductance value corresponding to the learned weights. be. A memristor can rewrite the resistance value between a minimum value and a maximum value by applying a voltage.

しかしながら、メモリスタを有するクロスバー回路を備えた人工NN回路には、メモリスタが有する温度特性に起因して、人工NN回路が置かれた環境温度の変化により、性能の劣化が生じることがあるという問題がある。例えば、上述した人工NN回路を用いて画像認識を行った場合、環境温度が上昇するほど、認識エラー率が上昇してしまうことがある。 However, the artificial NN circuit provided with a crossbar circuit having a memristor may experience deterioration in performance due to changes in the environmental temperature in which the artificial NN circuit is placed due to the temperature characteristics of the memristor. There is For example, when image recognition is performed using the artificial NN circuit described above, the recognition error rate may increase as the ambient temperature rises.

本発明は、上述した点に鑑みてなされたものであり、環境温度が変化した場合の性能の劣化を抑制することが可能な人工NN回路、及び人工NN回路における学習値切替方法を提供することを目的とする。 SUMMARY OF THE INVENTION It is an object of the present invention to provide an artificial neural network circuit capable of suppressing deterioration in performance when the environmental temperature changes, and a learning value switching method in the artificial neural network circuit. With the goal.

上記目的を達成するために、本発明による人工NN回路は、
人工NNの階層化されたニューロン間で信号の伝達を行うクロスバー回路(20)と、
クロスバー回路は、複数の入力バー(21)と複数の出力バー(22、23)とが交差するように配列され、かつ、複数の入力バーと複数の出力バーとの各交点に、伝達される信号に対して重みを付与する抵抗変化型メモリであるメモリスタ(24)が設けられたものであり、
ニューロンにおける信号処理として、少なくとも、メモリスタによってそれぞれ重みが付与されて、各々の出力バーに流れ込む信号の総和の算出を実行する処理回路(27a、27b)と、を備え、
クロスバー回路の環境温度を検出する温度センサ(33)と、
クロスバー回路の環境温度の変化に応じて、クロスバー回路および/または処理回路において使用される学習値を、環境温度の変化に対応する学習値に更新する更新部(31、34、35)と、を備える。
In order to achieve the above object, the artificial NN circuit according to the present invention is:
a crossbar circuit (20) for transmitting signals between hierarchized neurons of the artificial NN;
The crossbar circuit is arranged such that a plurality of input bars (21) and a plurality of output bars (22, 23) intersect, and a signal is transmitted to each intersection of the plurality of input bars and the plurality of output bars. is provided with a memristor (24), which is a resistance change memory that gives weight to a signal that
A processing circuit (27a, 27b) that performs at least the calculation of the sum of the signals that are respectively weighted by the memristors and flows into each output bar as signal processing in the neuron,
a temperature sensor (33) for detecting the ambient temperature of the crossbar circuit;
updating units (31, 34, 35) for updating the learning values used in the crossbar circuit and/or the processing circuit to learning values corresponding to the change in the environmental temperature in accordance with the change in the environmental temperature of the crossbar circuit; , provided.

また、本発明による人工NN回路における学習値切替方法は、
人工NNの階層化されたニューロン間で信号の伝達を行うクロスバー回路(20)と、
クロスバー回路は、複数の入力バー(21)と複数の出力バー(22、23)とが交差するように配列され、かつ、複数の入力バーと複数の出力バーとの各交点に、伝達される信号に対して重みを付与する抵抗変化型メモリであるメモリスタ(24)が設けられたものであり、
ニューロンにおける信号処理として、少なくとも、メモリスタによってそれぞれ重みが
付与されて、各々の出力バーに流れ込む信号の総和の算出を実行する処理回路(27a、
27b)と、を備えた人工NN回路に適用され、
温度センサ(33)を用いて、クロスバー回路の環境温度を検出すること、
更新部(31、34、35)により、クロスバー回路の環境温度の変化に応じて、クロスバー回路および/または処理回路において使用される学習値を、環境温度の変化に対応する学習値に更新すること、を含む。
Further, the learning value switching method in the artificial NN circuit according to the present invention includes:
a crossbar circuit (20) for transmitting signals between hierarchized neurons of the artificial NN;
A crossbar circuit is arranged such that a plurality of input bars (21) and a plurality of output bars (22, 23) intersect, and a signal is transmitted to each intersection of the plurality of input bars and the plurality of output bars. is provided with a memristor (24), which is a resistance change type memory that gives a weight to a signal that
As signal processing in the neuron, processing circuits (27a, 27a,
27b) and applied to an artificial NN circuit comprising
detecting the ambient temperature of the crossbar circuit using a temperature sensor (33);
Update units (31, 34, 35) update the learning values used in the crossbar circuit and/or the processing circuit to learning values corresponding to the change in the environmental temperature in accordance with the change in the environmental temperature of the crossbar circuit. including to do.

クロスバー回路に設けられる各メモリスタは、温度特性を有している。このため、環境温度の変化に応じて、各メモリスタに設定されたコンダクタンス値が変化する。このコンダクタンス値の変化の割合が、クロスバー回路に含まれる各メモリスタにおいて一様であれば、各メモリスタ間で、それぞれのコンダクタンス値による重みの相互の関係は保たれる。しかしながら、各メモリスタのコンダクタンス値は、環境温度の変化に応じて、必ずしも一様の割合で変化しないことがある。すなわち、同じ温度変化に対して、コンダクタンス値が大きく変化するメモリスタもあれば、コンダクタンス値の変化が小さいメモリスタもありえる。このように、クロスバー回路に含まれる各メモリスタにおいて、環境温度の変化によるコンダクタンス値の変化の割合にばらつきがあると、環境温度の変化に応じて、各メモリスタ間で重みの相互の関係が崩れてしまう。その結果、人工NN回路の性能の劣化が生じてしまうのである。 Each memristor provided in the crossbar circuit has a temperature characteristic. Therefore, the conductance value set in each memristor changes according to the change in the environmental temperature. If the rate of change in the conductance value is uniform in each memristor included in the crossbar circuit, the mutual relationship of the weights based on the respective conductance values is maintained among the memristors. However, the conductance value of each memristor may not necessarily change at a uniform rate in response to changes in environmental temperature. That is, for the same temperature change, some memristors may have a large change in conductance value, while other memristors may have a small change in conductance value. In this way, if there is a variation in the rate of change in the conductance value due to a change in the environmental temperature in each memristor included in the crossbar circuit, the mutual relationship of weights among the memristors collapses according to the change in the environmental temperature. end up As a result, the performance of the artificial NN circuit is degraded.

そこで、本発明による人工NN回路、及び人工NN回路における学習値切替方法は、上述したように、温度センサ(33)にて、クロスバー回路(20)の環境温度を検出し、その検出した環境温度の変化に応じて、クロスバー回路および/または処理回路において使用される学習値を、環境温度の変化に対応する学習値に更新するように構成される。 Therefore, as described above, the artificial neural network and the learning value switching method in the artificial neural network according to the present invention detect the environmental temperature of the crossbar circuit (20) with the temperature sensor (33), and In response to changes in temperature, the learning values used in the crossbar circuitry and/or processing circuitry are configured to update to learning values corresponding to changes in ambient temperature.

このような構成を採用したことにより、環境温度が変化しても、各メモリスタ(24)のコンダクタンス値の変化のばらつきによる影響を抑えることができ、その結果、人工NN回路の性能の劣化を抑制することが可能となる。 By adopting such a configuration, even if the environmental temperature changes, it is possible to suppress the influence of variation in the conductance value of each memristor (24), and as a result, the deterioration of the performance of the artificial NN circuit is suppressed. It becomes possible to

上記括弧内の参照番号は、本開示の理解を容易にすべく、後述する実施形態における具体的な構成との対応関係の一例を示すものにすぎず、なんら発明の範囲を制限することを意図したものではない。 The reference numbers in parentheses above merely indicate an example of correspondence with specific configurations in the embodiments described later in order to facilitate the understanding of the present disclosure, and are not intended to limit the scope of the invention. It's not what I did.

また、上述した特徴以外の、特許請求の範囲の各請求項に記載した技術的特徴に関しては、後述する実施形態の説明及び添付図面から明らかになる。 In addition, technical features described in each claim of the scope of claims other than the features described above will become apparent from the description of the embodiments and the accompanying drawings, which will be described later.

多層NNの一例を概念的に示す図である。1 is a diagram conceptually showing an example of a multilayer NN; FIG. クロスバー回路について説明するための説明図である。FIG. 4 is an explanatory diagram for explaining a crossbar circuit; クロスバー回路およびCMOS回路について説明するための説明図である。FIG. 3 is an explanatory diagram for explaining a crossbar circuit and a CMOS circuit; クロスバー回路について説明するための別の説明図である。FIG. 11 is another explanatory diagram for explaining the crossbar circuit; メモリスタの温度特性の一例を示す図である。FIG. 4 is a diagram showing an example of temperature characteristics of a memristor; メモリスタの温度特性のばらつきについて説明するための説明図である。FIG. 5 is an explanatory diagram for explaining variations in temperature characteristics of a memristor; 人工NN回路を実装した各チップを用いて、室温状態において、MNISデータの認識エラーの発生率を調べた結果を示すグラフである。FIG. 10 is a graph showing the result of investigating the rate of occurrence of MNIS data recognition errors at room temperature using each chip on which an artificial NN circuit is mounted; FIG. 環境温度を100℃として、各チップに実装された人工NN回路を用いた場合の認識エラーの発生率を調べた結果を示すグラフである。FIG. 10 is a graph showing the result of examining the occurrence rate of recognition errors when an artificial NN circuit mounted on each chip is used at an ambient temperature of 100° C. FIG. クロスバー回路20において使用される学習値を更新するための構成を示す構成図である。3 is a configuration diagram showing a configuration for updating learning values used in the crossbar circuit 20; FIG. 書換制御装置によって実施される学習値更新処理を示すフローチャートである。4 is a flowchart showing learning value update processing performed by the rewrite control device; 第2実施形態の人工NN回路の効果を示すため、室温状態で、図7に示す認識エラーの発生率を持つ、各チップに実装された人工NN回路のクロスバー回路において、環境温度が高温領域に属する温度となったときに、バイアス信号に対する重みだけを、その温度に適応するように再学習された学習値に更新した場合の認識エラーの発生率を調べた結果を示すグラフである。In order to demonstrate the effect of the artificial NN circuit of the second embodiment, in the crossbar circuit of the artificial NN circuit mounted on each chip having the recognition error rate shown in FIG. 10 is a graph showing the results of examination of the rate of occurrence of recognition errors when only the weight for the bias signal is updated to a learning value re-learned so as to adapt to the temperature when the temperature belongs to . 第2実施形態の人工NN回路の効果を示すため、図7で説明した重みセット#1をクロスバー回路の各メモリスタに設定した10個のチップにおいて、バイアス信号に対する重みだけを更新した場合と、なんら重みを変更しない場合とで、室温から100℃までの各温度における認識エラーの発生率を調べた結果を示すグラフである。In order to show the effect of the artificial NN circuit of the second embodiment, in 10 chips in which the weight set #1 described in FIG. FIG. 10 is a graph showing the results of examining the recognition error rate at each temperature from room temperature to 100° C. with and without changing any weights. FIG. 第2実施形態の人工NN回路の効果を示すため、図7で説明した重みセット#1~#5の各々を、クロスバー回路の各メモリスタに設定した10個のチップをそれぞれ用意し、バイアス信号に対する重みだけを更新した場合と、なんら重みを変更しない場合とで、室温から100℃までの各温度における認識エラーの発生率を調べた結果を示すグラフである。In order to demonstrate the effect of the artificial NN circuit of the second embodiment, 10 chips were prepared in which each of the weight sets #1 to #5 described with reference to FIG. FIG. 10 is a graph showing the results of examining the rate of recognition error occurrence at each temperature from room temperature to 100° C. when only the weights for are updated and when no weights are changed. 第3実施形態の人工NN回路の効果を示すため、図7で説明した重みセット#1をクロスバー回路の各メモリスタに設定した10個のチップにおいて、70℃に適応する学習値、85℃に適応する学習値、及び100℃に適応する学習値でバイアス信号に対する重みだけを更新した場合、および、なんら重みを変更しない場合の、高温領域における認識エラーの発生率を示すグラフである。In order to demonstrate the effect of the artificial NN circuit of the third embodiment, 10 chips in which the weight set #1 described in FIG. FIG. 10 is a graph showing the rate of occurrence of recognition errors in a high temperature region when only weights for bias signals are updated with adaptive learning values and learning values adapted to 100° C. and when no weights are changed. 第3実施形態の人工NN回路の効果を示すため、重みセット#1~#5が設定された10個のチップ毎の高温領域における認識エラーの発生率の平均のばらつきと、その平均値を結んだ線分を、70℃に適応する学習値、85℃に適応する学習値、及び100℃に適応する学習値でバイアス信号に対する重みだけを更新した場合、および、なんら重みを変更しない場合のそれぞれについて示すグラフである。In order to show the effect of the artificial NN circuit of the third embodiment, the variation of the average occurrence rate of recognition errors in the high temperature region for every 10 chips for which the weight sets #1 to #5 are set and the average value are connected. When only the weight for the bias signal is updated with the learning value adapted to 70° C., the learning value adapted to 85° C., and the learning value adapted to 100° C., and when the weight is not changed at all. It is a graph showing about. 第4実施形態の人工NN回路のクロスバー回路、およびクロスバー回路の出力信号を処理する処理回路の構成の一例を示す構成図である。FIG. 11 is a configuration diagram showing an example of configurations of a crossbar circuit of an artificial neural network circuit and a processing circuit that processes an output signal of the crossbar circuit according to the fourth embodiment; 第5実施形態の人工NN回路のクロスバー回路の構成の一例を示す構成図である。FIG. 12 is a configuration diagram showing an example of the configuration of the crossbar circuit of the artificial NN circuit of the fifth embodiment; 第6実施形態の人工NN回路のクロスバー回路の構成の一例を示す構成図である。FIG. 20 is a configuration diagram showing an example of the configuration of the crossbar circuit of the artificial NN circuit of the sixth embodiment;

(第1実施形態)
以下、本発明による人工NN回路の実施形態について、図面を参照して詳しく説明する。なお、本実施形態による人工NN回路は、例えば、少なくともニューロンが3層に階層化された多層NN(多層パーセプトロン)や、いわゆる畳み込みNNをハードウェア的に具現化するために用いることができる。以下の説明においては、人工NN回路を用いて、多層NNをハードウェア的に具現化した例について説明する。
(First embodiment)
Embodiments of an artificial NN circuit according to the present invention will be described in detail below with reference to the drawings. The artificial NN circuit according to the present embodiment can be used, for example, to implement a multi-layer NN (multi-layer perceptron) in which at least neurons are hierarchized in three layers, or a so-called convolution NN, in hardware. In the following description, an example in which a multi-layer NN is implemented in hardware using an artificial NN circuit will be described.

図1は、多層NN10の一例を概念的に示す図である。図1に示すように、多層NN10は、入力層11と、中間層12と、出力層13と、を備える。入力層11、中間層12、出力層13の各層は、少なくとも1つのニューロン14を有する。中間層12は、隠れ層とも呼ばれる。 FIG. 1 is a diagram conceptually showing an example of a multilayer NN 10. As shown in FIG. As shown in FIG. 1, the multi-layer NN 10 comprises an input layer 11, an intermediate layer 12 and an output layer 13. As shown in FIG. Each of the input layer 11 , intermediate layer 12 and output layer 13 has at least one neuron 14 . The intermediate layer 12 is also called a hidden layer.

多層NN10に対する入力データが入力層11に入力されると、入力層11の各ニューロン14から、入力データに対応する出力x1、x2、…が出力される。そして、出力x1、x2、…に対して、シナプス15としての重みw1,w2、…が乗じられ、それぞれ、中間層12のニューロン14に入力される。中間層12のニューロン14は、これらの総和Σwixiを算出するとともに、総和Σwixiを、ReLUやtanhなどの活性化関数fにより変換して、出力y(=f(Σwixi))を生成する。そして、生成した出力yを、後段層の各ニューロン14に向けて出力する。後段層は、多層NN回路10が3層の場合、出力層13となる。4層以上の場合、後段中間層(図示なし)となる。このように入力データが各ニューロン14の活性化関数fにより変換されて、最終的に、出力層13に入力される。出力層13のニューロン14は、例えば、ソフトマックス関数によって入力を変換して出力する。 When input data for the multilayer NN 10 is input to the input layer 11, each neuron 14 of the input layer 11 outputs outputs x1, x2, . . . corresponding to the input data. Then, the outputs x1, x2, . . . are multiplied by weights w1, w2, . The neuron 14 of the intermediate layer 12 calculates the total sum Σwixi, converts the total sum Σwixi by an activation function f such as ReLU or tanh, and generates an output y (=f(Σwixi)). Then, the generated output y is output to each neuron 14 in the subsequent layer. The latter layer is the output layer 13 when the multilayer NN circuit 10 has three layers. In the case of four or more layers, it becomes a latter intermediate layer (not shown). In this way, the input data are transformed by the activation function f of each neuron 14 and finally input to the output layer 13 . The neuron 14 of the output layer 13 converts the input using, for example, a softmax function and outputs the result.

このような多層NN10は、入力データとしての画像(例えば、MNISTデータセット)を用いて、画像を複数のカテゴリ(例えば、0~9の数字)に分類する用途に適用できる。この場合、入力層11への入力データは、画像に含まれる複数のピクセル値(例えば、0~255)とすることができる。また、出力層13の各ニューロン14からの出力を、入力データとしての画像が各カテゴリに属する確率とするように構成できる。多層NN10のシナプス15の重みは、このような用途に適するように学習によって決定される。 Such a multi-layer NN 10 can be applied to use an image (eg, MNIST dataset) as input data and classify the image into multiple categories (eg, numbers 0-9). In this case, the input data to the input layer 11 can be multiple pixel values (eg, 0-255) contained in the image. Also, the output from each neuron 14 of the output layer 13 can be configured to be the probability that an image as input data belongs to each category. The weights of the synapses 15 of the multilayer NN 10 are determined by learning to suit such applications.

そして、出力層13の各カテゴリに対応するそれぞれのニューロン14が出力する確率の中で最も高い確率に対応するカテゴリを選択することにより、入力データとしての画像を、複数のカテゴリに分類することができる。もちろん、多層NN回路10は、その他の用途に適用することも可能である。例えば、物体や人の検出、人の顔の認識、あるいは、道路標識の認識などにも適用することが可能である。さらに、情報圧縮、運動制御、雑音除去、時系列予測などの用途に適用することも可能である。 By selecting the category corresponding to the highest probability among the probabilities output by each neuron 14 corresponding to each category of the output layer 13, an image as input data can be classified into a plurality of categories. can. Of course, the multilayer NN circuit 10 can also be applied to other uses. For example, it can be applied to object or person detection, human face recognition, or road sign recognition. Furthermore, it can be applied to applications such as information compression, motion control, noise removal, and time-series prediction.

次に、上述した多層NN10をハードウェア的に具現化する人工NN回路について、図2~図4を参照して説明する。図2に示すように、人工NN回路は、シナプスをハードウェア的に実現するクロスバー回路20と、ニューロン14をハードウェア的に実現するCMOS回路25、26と、を備える。CMOS回路25、26は、CMOS回路基板に形成される。クロスバー回路20は、CMOS回路25、26が形成されたCMOS回路基板上に形成され得る。 Next, an artificial NN circuit that implements the multi-layer NN 10 described above in terms of hardware will be described with reference to FIGS. 2 to 4. FIG. As shown in FIG. 2, the artificial NN circuit includes a crossbar circuit 20 that implements synapses in hardware, and CMOS circuits 25 and 26 that implement neurons 14 in hardware. The CMOS circuits 25 and 26 are formed on a CMOS circuit board. The crossbar circuit 20 can be formed on a CMOS circuit board on which the CMOS circuits 25, 26 are formed.

クロスバー回路20は、上述した多層NN10の隣接する層の間で、シナプスとしての重みを与えつつ信号を伝達する。なお、図2~図4は、図示及び説明の便宜上、クロスバー回路20の一部のみを示している。図2に示すように、クロスバー回路20は、複数の入力バー21と、複数の出力バー22、23とを有する。複数の入力バー21と複数の出力バー22、23とは、それぞれ交差するように配列される。入力バー21には、入力ニューロンとしてのCMOS回路25を介して、例えば、上述したピクセル値に対応する電圧信号が入力されるように構成される。そして、複数の入力バー21と複数の出力バー22、23との各交点に、入力バー21から出力バー22、23へと伝達される入力信号に対して重みを付与する抵抗変化型メモリであるメモリスタ24が設けられている。つまり、複数の入力バー21と、複数の出力バー22、23とは、それぞれ、対応するメモリスタ24を介して接続されている。 The crossbar circuit 20 transmits signals between adjacent layers of the multi-layer NN 10 described above while giving weights as synapses. 2 to 4 show only part of the crossbar circuit 20 for convenience of illustration and explanation. As shown in FIG. 2, the crossbar circuit 20 has a plurality of input bars 21 and a plurality of output bars 22,23. A plurality of input bars 21 and a plurality of output bars 22 and 23 are arranged to cross each other. The input bar 21 is configured to receive, for example, voltage signals corresponding to the pixel values described above via a CMOS circuit 25 as an input neuron. It is a resistance change memory that weights the input signal transmitted from the input bar 21 to the output bars 22 and 23 at each intersection of the plurality of input bars 21 and the plurality of output bars 22 and 23. A memristor 24 is provided. That is, the plurality of input bars 21 and the plurality of output bars 22 and 23 are connected via corresponding memristors 24, respectively.

メモリスタ24は、印加電圧によって、最小値と最大値との間で、異なる抵抗状態に設定することが可能な抵抗変化型メモリである。例えば、メモリスタ24のコンダクタンス値は、後述するコンダクタンス書換装置35を用いて、負の書込電圧を印加することにより増加させることができ、正の書込電圧を印加することにより減少させることができる。そして、メモリスタ24は、正負の書込電圧閾値以上の大きさの電圧が印加されない限り、設定された抵抗状態(コンダクタンス値)を維持する。このようなメモリスタ24として使用可能な素子としては、Pt/TiO2/Pt金属酸化物素子、相変化メモリ、磁気トンネル接合メモリ、などがある。また、メモリスタ24は、制御方式が異なっても不揮発性の抵抗可変型メモリであれば良く、例えばFlashメモリなども用いることができる。 The memristor 24 is a resistance change memory that can be set to different resistance states between a minimum value and a maximum value depending on the applied voltage. For example, the conductance value of the memristor 24 can be increased by applying a negative write voltage and decreased by applying a positive write voltage using a conductance rewriting device 35, which will be described later. . The memristor 24 maintains the set resistance state (conductance value) unless a voltage equal to or higher than the positive and negative write voltage thresholds is applied. Devices that can be used as such memristors 24 include Pt/TiO2/Pt metal oxide devices, phase change memories, magnetic tunnel junction memories, and the like. Further, the memristor 24 may be a non-volatile resistance variable memory, even if the control method is different. For example, a flash memory or the like can be used.

このように、クロスバー回路20と、入力ニューロンおよび出力ニューロンとしての役割を果たすCMOS回路25、26とは、メモリスタ24が組み込まれたハイブリッドCMOS回路として構成することができる。以下に、出力ニューロンとしての役割を果たすCMOS回路26について、図3を参照して説明する。図3は、クロスバー回路20および出力ニューロンとしてのCMOS回路26を電気回路的に示した図である。 Thus, the crossbar circuit 20 and the CMOS circuits 25, 26 serving as input and output neurons can be configured as a hybrid CMOS circuit with the memristor 24 incorporated therein. The CMOS circuit 26 serving as an output neuron will now be described with reference to FIG. FIG. 3 is an electric circuit diagram of the crossbar circuit 20 and the CMOS circuit 26 as an output neuron.

図3に示すように、本実施形態においては、一対の出力バー22と23が差動対出力バーとして用いられることで、各入力バー21との間において、差動対出力バーの正側の出力バー22に接続されるメモリスタ24による重み(コンダクタンス値)G(+)と、負側の出力バー23に接続されるメモリスタ24による重み(コンダクタンス値)G(-)との差分に応じて、各入力バー21に入力される信号に正又は負の重みを付与可能に構成されている。なお、差動対出力バーの正側の出力バー22は、差動演算増幅器28の非反転入力端子に接続された出力バーであり、負側の出力バー23は、差動演算増幅器28の反転入力端子に接続された出力バーである。 As shown in FIG. 3, in this embodiment, a pair of output bars 22 and 23 are used as a differential pair output bar so that between each input bar 21, the positive side of the differential pair output bar According to the difference between the weight (conductance value) G(+) by the memristor 24 connected to the output bar 22 and the weight (conductance value) G(-) by the memristor 24 connected to the negative output bar 23, A positive or negative weight can be given to the signal input to each input bar 21 . The positive output bar 22 of the differential pair output bar is the output bar connected to the non-inverting input terminal of the differential operational amplifier 28, and the negative output bar 23 is the inverting input terminal of the differential operational amplifier 28. An output bar connected to an input terminal.

出力ニューロンとしての役割を果たすCMOS回路26は、図3に示すように、入力信号に正の重み(G(+))を付与するメモリスタ24が接続された正側の出力バー22から出力される信号の総和を算出して出力する加算器27a、入力信号に負の重み(G(-))を付与するメモリスタ24が接続された負側の出力バー23の信号の総和を算出して出力する加算器27b、及び、それぞれの加算器27a、27bから出力される総和の差分を算出して出力する差動演算増幅器28を有する。さらに、出力ニューロンとしての役割を果たすCMOS回路26は、図示していないが、差動演算増幅器28から出力される総和の差分を、所定の活性化関数fによって変換し、その変換した値を出力する活性化関数処理回路も有している。このように、加算器27a、27b、差動演算増幅器28や活性化関数処理回路は、CMOS基板内のCMOS素子を用いて構成され得る。ただし、差分の算出や活性化関数fによる変換は、CMOS回路26内において実行せずに、例えば、加算器27a、27bの出力をデジタル信号に変換した後、別途設けたデジタル処理回路などにおいて実行してもよい。 A CMOS circuit 26 serving as an output neuron is output from a positive output bar 22 connected to a memristor 24 that imparts a positive weight (G(+)) to the input signal, as shown in FIG. An adder 27a that calculates and outputs the sum of signals, and a negative side output bar 23 connected to a memristor 24 that gives a negative weight (G(-)) to an input signal calculates and outputs the sum of signals. It has an adder 27b and a differential operational amplifier 28 that calculates and outputs the difference between the sums output from the adders 27a and 27b. Furthermore, the CMOS circuit 26 serving as an output neuron converts the difference in the sum output from the differential operational amplifier 28 by a predetermined activation function f and outputs the converted value, although not shown. It also has an activation function processing circuit for Thus, the adders 27a, 27b, the differential operational amplifier 28 and the activation function processing circuit can be constructed using CMOS elements in a CMOS substrate. However, the calculation of the difference and the conversion by the activation function f are not executed in the CMOS circuit 26. For example, after converting the outputs of the adders 27a and 27b into digital signals, they are executed in a separately provided digital processing circuit. You may

加算器27a、27bは、演算増幅器の入出力間に抵抗値Rを有する抵抗が接続された構成を有する。このため、図3に示すように、それぞれの入力バー21に電圧信号V、Vが入力されると、電圧信号VにはコンダクタンスG(+) が掛け合わされ、電圧信号VにはコンダクタンスG(+) が掛け合わされた上で、加算器27aにおいて加算され、総和が算出される。さらに、その総和は、加算器27aにてR倍される。同様に、加算器27bにおいても、電圧信号VにコンダクタンスG(-) をかけ合わせた結果と、電圧信号VにコンダクタンスG(-) を掛け合わせた結果とが加算されて総和が算出され、さらに、その総和がR倍される。 Adders 27a and 27b have a configuration in which a resistor having a resistance value R is connected between the input and output of an operational amplifier. Therefore, as shown in FIG. 3, when the voltage signals V 1 and V 2 are input to the respective input bars 21, the voltage signal V 1 is multiplied by the conductance G (+) 1 so that the voltage signal V 2 becomes is multiplied by the conductance G (+) 2 and then added in the adder 27a to calculate the total sum. Further, the sum is multiplied by R by the adder 27a. Similarly, in the adder 27b, the result obtained by multiplying the voltage signal V 1 by the conductance G (−) 1 and the result obtained by multiplying the voltage signal V 2 by the conductance G (−) 2 are added to obtain the total sum. is calculated, and the sum is multiplied by R.

そして、差動演算増幅器28は、加算器27aが出力する総和と、加算器27bが出力する総和との差分を算出して出力する。このため、出力ニューロンとしてのCMOS回路26において、以下の数式1に示す結果が得られる。 Then, the differential operational amplifier 28 calculates and outputs the difference between the sum output from the adder 27a and the sum output from the adder 27b. Therefore, in the CMOS circuit 26 as the output neuron, the result shown in Equation 1 below is obtained.

(数1)
出力電圧=R(G(+) -G(-) +G(+) -G(-)
したがって、差動対出力バー22、23を介して入力信号としての電圧信号Vが伝達されるときにメモリスタ24によって付与される重みは、R(G(+) -G(-) )となる。また、入力信号としての電圧信号Vが伝達されるときにメモリスタ24によって付与される重みは、R(G(+) -G(-) )となる。図2及び図3には図示していないが、他の入力信号に対する重みについても同様である。
(Number 1)
Output voltage = R (G (+) 1 V 1 - G (-) 1 V 1 + G (+) 2 V 2 - G (-) 2 V 2 )
Therefore, the weight imparted by the memristor 24 when the voltage signal V 1 as the input signal is propagated through the differential pair output bars 22, 23 is R(G (+) 1 -G (-) 1 ) becomes. Also, the weight given by the memristor 24 when the voltage signal V 2 as the input signal is transmitted is R(G (+) 2 −G (−) 2 ). Although not shown in FIGS. 2 and 3, weights for other input signals are similar.

このため、ある入力信号に対して正の重みを掛け合わせる場合には、差動演算増幅器28の非反転入力端子に接続された出力バー22と入力バー21との間に設けられたメモリスタ24のコンダクタンス値を、反転入力端子に接続された出力バー23と入力バー21との間に設けられたメモリスタ24のコンダクタンス値よりも、設定しようとしている正の重み分だけ大きく設定すれば良い。逆に、ある入力信号に対して負の重みを掛け合わせる場合には、反転入力端子に接続された出力バー23と入力バー21との間に設けられたメモリスタ24のコンダクタンス値を、非反転入力端子に接続された出力バー22と入力バー21との間に設けられたメモリスタ24のコンダクタンス値よりも、設定しようとしている負の重み分だけ大きく設定すれば良い。このようにして、本実施形態のクロスバー回路20はシナプスの重みとして正負の重みを実現することができ、クロスバー回路20よって興奮性及び抑制性のシナプスを模擬することができる。 Therefore, when a certain input signal is multiplied by a positive weight, the memristor 24 provided between the input bar 21 and the output bar 22 connected to the non-inverting input terminal of the differential operational amplifier 28 is The conductance value should be set larger than the conductance value of the memristor 24 provided between the output bar 23 connected to the inverting input terminal and the input bar 21 by the positive weight to be set. Conversely, when a certain input signal is multiplied by a negative weight, the conductance value of the memristor 24 provided between the output bar 23 connected to the inverting input terminal and the input bar 21 is applied to the non-inverting input. The conductance value of the memristor 24 provided between the output bar 22 and the input bar 21 connected to the terminal may be set larger by the negative weight to be set. In this manner, the crossbar circuit 20 of the present embodiment can implement positive and negative weights as synapse weights, and the crossbar circuit 20 can simulate excitatory and inhibitory synapses.

図4は、図示する範囲を拡大したクロスバー回路20及び出力ニューロンとしてのCMOS回路26を示している。なお、図4では、図3で示した加算器27a、27bは省略されている。実際には、加算器27a、27bが、それぞれの差動演算増幅器28の入力側に設けられる。さらに、図4では、上述した活性化関数処理回路も省略されている。実際には、活性化関数処理回路が、差動演算増幅器28の出力側に設けられる。図4に示すように、クロスバー回路20の入力バー21には、上述したピクセル値に対応する電圧信号または前段層の出力ニューロンからの出力に応じた電圧信号に加えて、バイアス信号が入力される。このバイアス信号の大きさは、通常、所定値(例えば、“1”)に設定される。 FIG. 4 shows the crossbar circuit 20 and the CMOS circuit 26 as output neurons to an enlarged extent. 4, the adders 27a and 27b shown in FIG. 3 are omitted. In practice, adders 27 a , 27 b are provided at the input of each differential operational amplifier 28 . Furthermore, FIG. 4 also omits the above-described activation function processing circuit. In practice, an activation function processing circuit is provided at the output of differential operational amplifier 28 . As shown in FIG. 4, an input bar 21 of the crossbar circuit 20 receives a bias signal in addition to the voltage signal corresponding to the pixel value described above or the voltage signal corresponding to the output from the output neuron in the preceding layer. be. The magnitude of this bias signal is normally set to a predetermined value (for example, "1").

ここで、クロスバー回路20に設けられる各メモリスタ24は、温度特性を有している。このため、環境温度の変化に応じて、各メモリスタ24に設定されたコンダクタンス値が変化する。図5は、このようなメモリスタ24の温度特性の一例を示している。図5に示すように、入力電圧Vが同じであっても、環境温度に応じて、メモリスタ24のコンダクタンス値が変化するので、結果的に出力電流Iも変化することになる。 Here, each memristor 24 provided in the crossbar circuit 20 has a temperature characteristic. Therefore, the conductance value set in each memristor 24 changes according to changes in the environmental temperature. FIG. 5 shows an example of the temperature characteristics of such a memristor 24. As shown in FIG. As shown in FIG. 5, even if the input voltage V is the same, the conductance value of the memristor 24 changes according to the ambient temperature, so the output current I also changes as a result.

クロスバー回路20に含まれるメモリスタ24のコンダクタンス値の変化の割合が、すべてのメモリスタ24において一様であれば、各メモリスタ24間で、それぞれのコンダクタンス値による重みの相互の関係は保たれる。しかしながら、図6に示すように、各メモリスタ24のコンダクタンス値は、環境温度の変化に応じて、必ずしも一様の割合で変化しないことがある。すなわち、同じ温度変化に対して、コンダクタンス値が大きく変化するメモリスタ24もあれば、コンダクタンス値の変化が小さいメモリスタ24もありえる。このように、クロスバー回路20に含まれる各メモリスタ24において、環境温度の変化によるコンダクタンス値の変化の割合にばらつきがあると、各メモリスタ24間における重みの相互の関係が崩れてしまう。その結果、人工NN回路の性能の劣化が生じてしまうのである。 If the rate of change in the conductance values of the memristors 24 included in the crossbar circuit 20 is uniform for all memristors 24, the mutual relationship of the weights based on the respective conductance values is maintained among the memristors 24. FIG. However, as shown in FIG. 6, the conductance value of each memristor 24 may not necessarily change at a uniform rate according to changes in environmental temperature. That is, for the same temperature change, some memristors 24 may have large changes in conductance values, while other memristors 24 may have small changes in conductance values. As described above, if the rate of change in the conductance value due to a change in the environmental temperature varies in each memristor 24 included in the crossbar circuit 20, the mutual relationship of the weights among the memristors 24 will be lost. As a result, the performance of the artificial NN circuit is degraded.

実際に、MNISTデータセットを用いて、クロスバー回路20の各メモリスタ24に、ニューロン間で伝達される信号に対する重み及びバイアス信号に対する重みを学習させた、図1に示した構成を有する多層NN10を具現化した人工NN回路を準備した。より詳細には、入力画像は、28×28ピクセルの大きさを持つため、入力層11のニューロン数は、各ピクセルのピクセル値とバイアスの入力のために785(28×28+1)である。中間層12のニューロン数は、入力層11のニューロンからの入力を受けるニューロン数を300とし、バイアス入力分を加えて、合計で301とした。そして、出力層13のニューロン数は10である。このため、入力層11と中間層12との間のクロスバー回路20の入力バーの数は785であり、出力バーの数は差動対出力バーとするため600である。また、中間層12と出力層13との間のクロスバー回路20の入力バーの本数は、中間層12のニューロン数(300)とバイアス信号に対応する301であり、出力バーの本数は差動対出力バーとするため20である。 Actually, using the MNIST data set, the multi-layer NN 10 having the configuration shown in FIG. An embodied artificial NN circuit was prepared. More specifically, the input image has a size of 28×28 pixels, so the number of neurons in the input layer 11 is 785 (28×28+1) for inputting pixel values and biases for each pixel. The number of neurons in the intermediate layer 12 is 300 for receiving inputs from the neurons in the input layer 11, and 301 in total by adding bias inputs. The number of neurons in the output layer 13 is ten. Thus, the number of input bars of the crossbar circuit 20 between the input layer 11 and the intermediate layer 12 is 785 and the number of output bars is 600 for differential pair output bars. The number of input bars of the crossbar circuit 20 between the intermediate layer 12 and the output layer 13 is 301 corresponding to the number of neurons (300) in the intermediate layer 12 and the bias signal, and the number of output bars is differential. 20 to make it a vs. output bar.

そして、室温状態で学習されたニューロン間で伝達される信号に対する重み及びバイアス信号に対する重みを5セット用意し、それら5セットの重み(重みセット#1~#5)を、それぞれ、上述した人工NN回路を実装した10個のチップのクロスバー回路20の各メモリスタ24に設定した。このようにして準備した人工NN回路を実装した各チップを用いて、室温状態において、MNISデータの認識エラー(誤分類エラー)の発生率を調べた。その結果を、図7に示す。図7に示すように、環境温度が室温状態では、同じ重みセットが設定された各チップでは、認識エラーの発生率に有意な差は生じていない。なお、異なる重みセット間では、認識エラーの発生率に若干の相違が生じている。 Five sets of weights for signals transmitted between neurons learned at room temperature and weights for bias signals are prepared. It was set to each memristor 24 of the crossbar circuit 20 of 10 chips on which the circuit was mounted. Using each chip mounted with an artificial NN circuit prepared in this manner, the occurrence rate of MNIS data recognition errors (misclassification errors) was examined at room temperature. The results are shown in FIG. As shown in FIG. 7, when the ambient temperature is room temperature, there is no significant difference in the rate of occurrence of recognition errors between the chips for which the same weight set is set. Note that there is a slight difference in the rate of occurrence of recognition errors between different weight sets.

次に、環境温度を100℃として、各チップに実装された人工NN回路を用いた場合の認識エラーの発生率を調べた。その結果を示すのが図8である。図8に示すように、室温状態に比較して、各チップに実装された人工NN回路の認識エラーの発生率が大きくなり、かつ、どの重みセットにおいても、各チップ間で、認識エラーの発生率に相違が生じていることが確認された。これにより、各チップのクロスバー回路20に含まれる各メモリスタ24において、環境温度の変化によるコンダクタンス値の変化の割合にばらつきが生じていることが裏付けられる。 Next, the environmental temperature was set to 100° C., and the occurrence rate of recognition errors was investigated when using the artificial NN circuit mounted on each chip. FIG. 8 shows the results. As shown in FIG. 8, compared to the room temperature state, the rate of occurrence of recognition errors in the artificial NN circuits mounted on each chip is high, and in any weight set, recognition errors occur between chips. It was confirmed that there was a difference in the rate. This proves that the memristors 24 included in the crossbar circuit 20 of each chip have variations in the rate of change in conductance value due to changes in environmental temperature.

このような問題に対処するため、本実施形態の人工NN回路では、環境温度の変化に応じて、学習値として、クロスバー回路20に設定される重みを更新することとした。これを実現するために、本実施形態の人工NN回路は、図9に示すように、学習値を更新するための構成として、書換制御装置31、温度センサ33、記憶装置34、及びコンダクタンス書換装置35を備える。温度センサ33は、クロスバー回路20の環境温度を検出し、その検出した環境温度を書換制御装置31に出力する。記憶装置34は、クロスバー回路20の環境温度が変化したとき、その変化した環境温度において、クロスバー回路20において使用されるべき学習値(重みセット)を記憶している。 In order to deal with such a problem, in the artificial NN circuit of this embodiment, the weights set in the crossbar circuit 20 are updated as learning values according to changes in the environmental temperature. In order to realize this, as shown in FIG. 9, the artificial NN circuit of this embodiment includes a rewrite control device 31, a temperature sensor 33, a storage device 34, and a conductance rewrite device as a configuration for updating the learning value. 35. Temperature sensor 33 detects the environmental temperature of crossbar circuit 20 and outputs the detected environmental temperature to rewrite control device 31 . The storage device 34 stores learning values (weight sets) to be used in the crossbar circuit 20 when the environmental temperature of the crossbar circuit 20 changes.

書換制御装置31は、コンダクタンス書換装置35とともに学習値更新部を構成するものである。書換制御装置31は、プロセッサ32、図示しない内部メモリ等を備えたコンピュータによって構成される。プロセッサ32が、内部メモリに記憶された制御プログラムを実行することにより、書換制御装置31は、クロスバー回路20の各メモリスタ24の重みを、環境温度に応じた重みに書き換えて更新するための書換データをコンダクタンス書換装置35に出力する。書換データには、書換対象となるメモリスタ24を特定する情報と、特定された各メモリスタ24に設定するコンダクタンス値に関する情報とが含まれる。書換制御装置31による学習値更新処理の詳細は、後述する。 The rewriting control device 31 constitutes a learning value updating unit together with the conductance rewriting device 35 . The rewriting control device 31 is composed of a computer including a processor 32 and an internal memory (not shown). When the processor 32 executes the control program stored in the internal memory, the rewrite control device 31 rewrites the weight of each memristor 24 of the crossbar circuit 20 to a weight corresponding to the environmental temperature. The data is output to conductance rewrite device 35 . The rewrite data includes information specifying the memristor 24 to be rewritten and information on the conductance value to be set to each specified memristor 24 . The details of the learning value update processing by the rewrite control device 31 will be described later.

コンダクタンス書換装置35は、クロスバー回路20の各入力バー21と各出力バー22、23間に任意の電圧を印加できるように、クロスバー回路20に接続される。図9の例では、コンダクタンス書換装置35は、ニューロンを具現化するCMOS回路25、26をバイパスして、入力バー21と出力バー22、23とに接続されている。このため、図9では、CMOS回路25、26を省略している。コンダクタンス書換装置35は、書換制御装置31から入力された書換データに従い、特定されたメモリスタ24へ、書込電圧閾値以上の大きさであって、指示されたコンダクタンス値へ更新するための電圧を、対応する入力バー21と出力バー22、23との間に印加する。これにより、所望のメモリスタ24のコンダクタンスを書き換えることができる。 A conductance rewriter 35 is connected to the crossbar circuit 20 so that any voltage can be applied between each input bar 21 and each output bar 22, 23 of the crossbar circuit 20. FIG. In the example of FIG. 9, conductance rewriter 35 is connected to input bar 21 and output bars 22, 23, bypassing CMOS circuits 25, 26 embodying neurons. Therefore, the CMOS circuits 25 and 26 are omitted in FIG. The conductance rewriting device 35, in accordance with the rewriting data input from the rewriting control device 31, supplies the specified memristor 24 with a voltage equal to or greater than the write voltage threshold and for updating to the instructed conductance value. It is applied between corresponding input bars 21 and output bars 22,23. Thereby, the conductance of the desired memristor 24 can be rewritten.

次に、書換制御装置31によって実施される学習値更新処理について、図10を参照して説明する。図10は、書換制御装置31が実施する学習値更新処理を示すフローチャートである。図10に示す学習値更新処理は、書換制御装置31によって定期的に実行される。 Next, learning value update processing performed by the rewrite control device 31 will be described with reference to FIG. FIG. 10 is a flow chart showing the learning value update process performed by the rewrite control device 31. As shown in FIG. The learning value update process shown in FIG. 10 is periodically executed by the rewrite control device 31 .

まず、ステップS100において、書換制御装置31は、温度センサ33によって検出された環境温度を取得する。そして、ステップS110において、環境温度が、所定温度以上の高温領域に属するか否かを判定する。高温領域であるか否かを判定するための所定温度は、例えば、55℃~70℃の任意の温度に設定することができる。これらの温度以上の高温領域において、室温のときと比較して、各チップの認識エラーの発生率が高まるためである。ステップS110において、環境温度は高温領域に属すると判定すると、ステップS120の処理に進む。一方、環境温度は高温領域に属さないと判定すると、ステップS150の処理に進む。 First, in step S<b>100 , the rewrite control device 31 acquires the environmental temperature detected by the temperature sensor 33 . Then, in step S110, it is determined whether or not the environmental temperature belongs to a high temperature range equal to or higher than a predetermined temperature. The predetermined temperature for determining whether or not it is in the high temperature range can be set to an arbitrary temperature between 55.degree. C. and 70.degree. This is because the rate of occurrence of recognition errors in each chip increases in the high temperature range above these temperatures compared to room temperature. If it is determined in step S110 that the environmental temperature belongs to the high temperature range, the process proceeds to step S120. On the other hand, if it is determined that the environmental temperature does not belong to the high temperature range, the process proceeds to step S150.

ステップS120では、クロスバー回路20の学習値(すなわち、重みセット)を、測定された環境温度に対応する学習値に更新済みであるか否かを判定する。更新済みであると判定すると、図10のフローチャートに示す学習値更新処理は終了する。一方、更新済みではないと判定すると、ステップS130の処理に進む。ステップS130では、測定された環境温度に対応する学習値を記憶装置34から読み出す。そして、ステップS140において、読み出した学習値に応じた書換データをコンダクタンス書換装置35に出力する。 In step S120, it is determined whether or not the learning values (that is, the weight set) of the crossbar circuit 20 have been updated to the learning values corresponding to the measured environmental temperature. If it is determined to have been updated, the learned value update process shown in the flowchart of FIG. 10 ends. On the other hand, if it is determined that the update has not been completed, the process proceeds to step S130. In step S130, the learning value corresponding to the measured environmental temperature is read from the storage device 34. FIG. Then, in step S140, rewritten data corresponding to the read learning value is output to the conductance rewriting device 35. FIG.

ステップS110の判定処理において、環境温度は高温領域に属さないと判定されたときに実行されるステップS150では、クロスバー回路20の各メモリスタ24の重みのセットが、室温状態に適応する初期値に戻されているか否かが判定される。初期値に戻されていると判定すると、図10のフローチャートに示す学習値更新処理が終了する。一方、初期値に戻されていないと判定すると、ステップS160の処理に進む。ステップS160では、学習値として、室温状態に適応する重みのセットである初期値を記憶装置34から読み出す。このように、記憶装置34には、学習値として、室温状態に適応する重みのセットである初期値も記憶されている。ステップS170では、読み出した初期値に応じた書換データをコンダクタンス書換装置35に出力する。 In step S150, which is executed when it is determined in step S110 that the environmental temperature does not belong to the high temperature range, the set of weights of each memristor 24 of the crossbar circuit 20 is set to an initial value adapted to the room temperature state. It is determined whether it has been returned. If it is determined that the values have been returned to the initial values, the learning value updating process shown in the flowchart of FIG. 10 ends. On the other hand, if it is determined that the value has not been returned to the initial value, the process proceeds to step S160. In step S160, an initial value, which is a set of weights adapted to the room temperature state, is read from the storage device 34 as a learning value. Thus, the storage device 34 also stores initial values, which are a set of weights adapted to room temperature conditions, as learning values. In step S<b>170 , rewrite data corresponding to the read initial value is output to the conductance rewrite device 35 .

ここで、記憶装置34に記憶される学習値について説明する。学習値は、上述したように、ニューロン間で伝達される信号に対する重み及びバイアス信号に対する重みを含む。この学習値は、例えば、以下の手順によって得ることができる。まず、室温状態で学習された重みのセットを、人工NN回路を構成するクロスバー回路20のメモリスタ24に設定する。そして、高温領域に属する種々の温度にて、人工NN回路の認識エラーの発生率を評価する。その際、認識エラーの発生率が悪化した温度における、各メモリスタ24の重み(コンダクタンス値)をクロスバー回路20から読み出す。この読み出された各メモリスタ24の重みが、コンピュータ上に構築された人工NNにおいて、一般的な勾配降下法、誤差逆伝播法などの手法を用いて、再学習される。この再学習は1回のみ行われても良いし、複数回繰り返されても良い。このようにして再学習された重みのセットが、学習値として記憶装置34に記憶される。 Here, the learning values stored in the storage device 34 will be described. The learning values include weights for signals transmitted between neurons and weights for bias signals, as described above. This learning value can be obtained, for example, by the following procedure. First, a set of weights learned at room temperature is set in the memristor 24 of the crossbar circuit 20 that constitutes the artificial NN circuit. Then, the occurrence rate of recognition errors in the artificial NN circuit is evaluated at various temperatures belonging to the high temperature range. At that time, the weight (conductance value) of each memristor 24 is read from the crossbar circuit 20 at the temperature at which the rate of occurrence of recognition errors has deteriorated. The read weights of each memristor 24 are re-learned in an artificial NN constructed on a computer using a general technique such as gradient descent or error backpropagation. This relearning may be performed only once, or may be repeated multiple times. A set of weights re-learned in this manner is stored in the storage device 34 as a learned value.

また、学習値は、以下に説明する別の手順によって得ることもできる。まず、室温状態で学習された重みのセットを、人工NN回路を構成するクロスバー回路20のメモリスタ24に設定する。そして、高温領域に属する種々の温度にて、人工NN回路の認識エラーの発生率を評価する。その際、認識エラーの発生率が悪化した温度において、認識エラーの発生率が改善するように、クロスバー回路20の各メモリスタ24のコンダクタンス値を書き換える。すなわち、実際の人工NN回路を用いて、クロスバー回路20の各メモリスタ24の重みの再学習を行う。そして、認識エラーの発生率が改善したときの、クロスバー回路20の各メモリスタ24のコンダクタンス値を読み出し、学習値として記憶装置34に記憶する。 The learned value can also be obtained by another procedure described below. First, a set of weights learned at room temperature is set in the memristor 24 of the crossbar circuit 20 that constitutes the artificial NN circuit. Then, the occurrence rate of recognition errors in the artificial NN circuit is evaluated at various temperatures belonging to the high temperature range. At that time, the conductance value of each memristor 24 of the crossbar circuit 20 is rewritten so that the recognition error rate is improved at the temperature at which the recognition error rate is worsened. That is, the weight of each memristor 24 of the crossbar circuit 20 is re-learned using an actual artificial NN circuit. Then, the conductance value of each memristor 24 of the crossbar circuit 20 when the recognition error rate is improved is read out and stored in the storage device 34 as a learned value.

上述した手順により学習値を求めた場合、記憶装置34には、高温領域の種々の温度に適応するように再学習された複数の学習値が記憶されることになる。しかし、学習値の数が増えると、記憶装置34のメモリ容量が増えてしまったり、環境温度の変化に応じて、頻繁に学習値の更新を行わなければならなかったりといった不具合も発生する。そのため、高温領域を複数の温度範囲に分け、記憶装置34には、各温度範囲において使用される学習値が記憶されることが好ましい。例えば、70℃に適応するように再学習された学習値、85℃に適応するように再学習された学習値、及び100℃に適応するように再学習された学習値を、記憶装置34に記憶させる。そして、書換制御装置31は、例えば、60℃以上75℃未満の温度範囲では70℃に適応するように再学習された学習値を使用し、75℃以上90℃未満の温度範囲では、85℃に適応するように再学習された学習値を使用し、90℃以上の温度範囲では、100℃に適応するように再学習された学習値を使用することができる。これにより、上述した不具合の発生を抑制することが可能となる。 When the learning values are obtained according to the procedure described above, the storage device 34 stores a plurality of learning values that have been re-learned so as to adapt to various temperatures in the high-temperature region. However, as the number of learned values increases, problems such as an increase in the memory capacity of the storage device 34 and frequent updating of the learned values due to changes in environmental temperature occur. Therefore, it is preferable to divide the high-temperature region into a plurality of temperature ranges and store the learning values used in each temperature range in the storage device 34 . For example, the learning value re-learned to adapt to 70° C., the learning value re-learned to adapt to 85° C., and the learning value re-learned to adapt to 100° C. are stored in the storage device 34. Memorize. Then, for example, the rewrite control device 31 uses a re-learned learning value adapted to 70° C. in the temperature range of 60° C. or more and less than 75° C., and uses 85° C. in the temperature range of 75° C. or more and less than 90° C. , and in the temperature range of 90°C or higher, a relearned learning value adapted to 100°C can be used. This makes it possible to suppress the occurrence of the above-described problems.

(第2実施形態)
これまで説明した第1実施形態は、高温領域の環境温度にて、ニューロン間で伝達される信号に対する重み及びバイアス信号に対する重みを再学習し、その再学習した重みのセットを、高温領域の環境温度に対応する学習値として記憶装置34に記憶するものであった。このように、ニューロン間で伝達される信号に対する重み及びバイアス信号に対する重みを再学習した学習値を用いることにより、高温領域の環境温度における認識エラーの発生率を十分に低減することができる。
(Second embodiment)
In the first embodiment described so far, the weights for signals transmitted between neurons and the weights for bias signals are re-learned at the environmental temperature of the high-temperature region, and the set of re-learned weights are used in the environment of the high-temperature region. It was to be stored in the storage device 34 as a learned value corresponding to the temperature. In this way, by using learned values obtained by re-learning the weights for signals transmitted between neurons and the weights for bias signals, it is possible to sufficiently reduce the occurrence rate of recognition errors at the environmental temperature in the high-temperature region.

その一方で、記憶装置34に記憶する学習値に含まれる重みの数が増加するほど、コンダクタンス値を書き換えるべきメモリスタ24の数も増加することになる。すると、重みの更新に長時間を要したり、コンダクタンス書換装置35として規模の大きなものが必要になったりといった問題が生じうる。このような問題に対処するため、クロスバー回路20におけるすべての重みを更新対象とするのではなく、一部の重みだけを更新対象とすることが考えられる。更新対象とする一部の重みとしては、バイアス信号に対する重み、あるいは、一部の入力信号に対する重みが挙げられる。 On the other hand, as the number of weights included in the learning values stored in the storage device 34 increases, the number of memristors 24 whose conductance values should be rewritten also increases. Then, problems may occur such as it takes a long time to update the weights and a large-scale conductance rewriting device 35 is required. In order to deal with such a problem, it is conceivable to update not all the weights in the crossbar circuit 20 but only some of the weights. Some weights to be updated include weights for bias signals or weights for some input signals.

例えば、室温状態で、図7に示す認識エラーの発生率を持つ、各チップに実装された人工NN回路のクロスバー回路20において、環境温度が高温領域に属する温度(例えば、100℃)となったときに、バイアス信号に対する重みだけを、その温度に適応するように再学習された学習値に書き換えた(更新した)場合の認識エラーの発生率を調べたところ、図11に示す結果が得られた。図11に示す結果から、バイアス信号に対する重みだけを再学習した学習値によって書き換えるだけで、図8に示される、なんら重みを変更しない場合に比較して、認識エラーの発生率を低減できることが分かる。 For example, in the crossbar circuit 20 of the artificial NN circuit mounted on each chip having the recognition error occurrence rate shown in FIG. 11, the rate of occurrence of recognition errors when only the weight for the bias signal was rewritten (updated) with a learning value that was re-learned to adapt to the temperature was examined, and the results shown in FIG. 11 were obtained. was taken. From the results shown in FIG. 11, it can be seen that the occurrence rate of recognition errors can be reduced by simply rewriting only the weights for the bias signal with the re-learned learning values compared to the case shown in FIG. 8 where the weights are not changed. .

環境温度の変化に対して、バイアス信号に対する重みだけを更新した場合と、なんら重みを変更しない場合とで、認識エラーの発生率にどの程度の相違が生じるかを、別のグラフを用いてさらに詳しく説明する。図12は、図7で説明した重みセット#1をクロスバー回路20の各メモリスタ24に設定した10個のチップにおいて、バイアス信号に対する重みだけを更新した場合と、なんら重みを変更しない場合とで、室温から100℃までの各温度における認識エラーの発生率を調べた結果を示すものである。なお、図12のグラフには、温度変化に応じて各メモリスタ24の重みが変化しない理想重みの場合の認識エラーの発生率のばらつきとその平均値を結んだ線分、70℃、85℃、100℃の各温
度に適応するように再学習された学習値によりバイアス信号に対する重みだけを更新した場合の認識エラーの発生率のばらつきとその平均値を結んだ線分、及び、なんら重みを変更しない場合の認識エラーの発生率のばらつきとその平均値を結んだ線分が示されている。
Another graph is used to show the degree of difference in the recognition error rate between when only the weights for the bias signal are updated and when the weights are not changed with respect to changes in the environmental temperature. explain in detail. FIG. 12 shows a case where only the weights for the bias signals are updated and a case where the weights are not changed in ten chips in which the weight set #1 described in FIG. 7 is set in each memristor 24 of the crossbar circuit 20. , and the results of examining the rate of occurrence of recognition errors at each temperature from room temperature to 100°C. In the graph of FIG. 12, there are line segments connecting the variation of the occurrence rate of recognition errors in the case of ideal weighting, in which the weighting of each memristor 24 does not change according to the temperature change, and the average value thereof. Change the line segment connecting the variation of the recognition error rate and the average value when only the weight for the bias signal is updated by the learning value re-learned so as to adapt to each temperature of 100° C., and the weight. A line segment connecting the variation of the occurrence rate of recognition errors and the average value thereof is shown.

なんら重みを変更しない場合には、温度変化に伴う各メモリスタ24のコンダクタンス値の変化の大きさのばらつきが、認識エラーの発生率に直接的に影響することになる。このため、環境温度が室温(約27℃)から上昇するにつれて、認識エラーの発生率も高くなり、100℃の時点では、10チップの平均値が2%を超えてしまう。 If the weights are not changed at all, variations in the magnitude of change in the conductance value of each memristor 24 with temperature change will directly affect the rate of occurrence of recognition errors. Therefore, as the ambient temperature rises from room temperature (approximately 27° C.), the rate of occurrence of recognition errors also increases, and at 100° C., the average value of 10 chips exceeds 2%.

それに対して、本実施形態のように、バイアス信号に対する重みだけを各温度に適応するように再学習された学習値により更新した場合には、10チップの平均の認識エラーの発生率が、70°~100℃の環境温度において、なんら重みを変更しない場合に比較して低減されており、改善されていることが分かる。 On the other hand, when only the weight for the bias signal is updated by the learning value that is re-learned so as to adapt to each temperature, as in the present embodiment, the average recognition error occurrence rate for 10 chips is 70. ° C. to 100° C., it is reduced compared to the case where the weight is not changed at all, and it can be seen that there is an improvement.

さらに、図13は、図7で説明した重みセット#1~#5の各々を、それぞれ、クロスバー回路20の各メモリスタ24に設定した10個(したがって、合計50個)のチップにおいて、バイアス信号に対する重みだけを更新した場合と、なんら重みを変更しない場合とで、室温から100℃までの各温度における認識エラーの発生率を調べた結果を示すものである。より詳細には、図13には、重みセット#1~#5が設定された10個のチップ毎の認識エラーの発生率の平均のばらつきと、その平均値を結んだ線分が、温度変化に応じて重みが変化しない理想重みの場合、バイアス信号に対する重みだけを各温度に適応するように再学習された学習値により更新した場合、および、なんら重みを変更しない場合のそれぞれについて示されている。 Furthermore, FIG. 13 shows the bias signal in 10 chips (therefore, a total of 50 chips) in which each of the weight sets #1 to #5 described in FIG. FIG. 10 shows the result of investigation of the rate of occurrence of recognition errors at each temperature from room temperature to 100° C., when only the weights for are updated and when no weights are changed. More specifically, FIG. 13 shows the variation in the average recognition error rate for each of the 10 chips to which the weight sets #1 to #5 are set, and the line segment connecting the average values. For the ideal weights in which the weights do not change depending on the temperature, for the case where only the weights for the bias signal are updated with re-learned learning values adapted to each temperature, and for the case where the weights are not changed at all. there is

この図13のグラフからも、バイアス信号に対する重みだけを各温度に適応するように再学習された学習値によって更新することで、なんら重みを変更しない場合に比較して、認識エラーの発生率が低減されていることが分かる。 From the graph of FIG. 13, it can be seen that by updating only the weights for the bias signal with the learned values that are re-learned so as to adapt to each temperature, the rate of occurrence of recognition errors is reduced compared to the case where the weights are not changed. It turns out that it is reduced.

(第3実施形態)
第1および第2実施形態にて説明した例は、高温領域を複数の温度範囲に分け、それぞれの温度範囲に対応する学習値(重みのセット)を記憶装置34に記憶しておき、検出される環境温度がいずれの温度範囲に属するかに応じて、クロスバー回路20の各メモリスタ24に設定される重みのセットを更新するものであった。しかしながら、このような学習値の更新の頻度はできる限り少ない方が好ましい。
(Third embodiment)
In the examples described in the first and second embodiments, the high temperature region is divided into a plurality of temperature ranges, the learning values (set of weights) corresponding to each temperature range are stored in the storage device 34, and the detected The set of weights set in each memristor 24 of the crossbar circuit 20 is updated according to the temperature range to which the ambient temperature that is applied belongs. However, it is preferable that the frequency of updating the learned values is as low as possible.

そのため、70℃、85℃、100℃の各温度に適応するように再学習された学習値によってバイアス信号に対する重みだけを更新した各人工NN回路が、高温領域全体に渡って、どのような認識エラーの発生率を示すか調べてみた。その結果を、図14及び図15に示す。図14は、図12のケースと同様に、図7で説明した重みセット#1をクロスバー回路20の各メモリスタ24に設定した10個のチップにおいて、70℃に適応する学習値、85℃に適応する学習値、及び100℃に適応する学習値でバイアス信号に対する重みだけを更新した場合、および、なんら重みを変更しない場合の、高温領域における認識エラーの発生率を示すグラフである。また、図15は、図13のケースと同様に、重みセット#1~#5が設定された10個のチップ毎の高温領域における認識エラーの発生率の平均のばらつきと、その平均値を結んだ線分が、70℃に適応する学習値、85℃に適応する学習値、及び100℃に適応する学習値でバイアス信号に対する重みだけを更新した場合、および、なんら重みを変更しない場合のそれぞれについて示されている。 Therefore, each artificial NN circuit, in which only the weight for the bias signal is updated by the learning values re-learned so as to adapt to each temperature of 70° C., 85° C., and 100° C., can be recognized over the entire high temperature region. I checked to see if it shows the error rate. The results are shown in FIGS. 14 and 15. FIG. As in the case of FIG. 12, FIG. 14 shows the learning values adapted to 70° C. and FIG. 10 is a graph showing the rate of occurrence of recognition errors in a high temperature region when only weights for bias signals are updated with adaptive learning values and learning values adapted to 100° C. and when no weights are changed. Also, as in the case of FIG. 13, FIG. 15 shows the variation of the average occurrence rate of recognition errors in the high-temperature region for every 10 chips for which the weight sets #1 to #5 are set, and the average value thereof. When only the weight for the bias signal is updated with the learning value adapted to 70° C., the learning value adapted to 85° C., and the learning value adapted to 100° C., and when the weight is not changed at all. is shown for

図14および図15のグラフから、70℃、85℃、100℃の各温度に適応するように再学習された学習値によってバイアス信号に対する重みだけを更新した各人工NN回路のいずれであっても、高温領域のほぼ全域に渡って、なんら重みを変更しない人工NN回路に比較して、認識エラーの発生率を低減できることが分かる。この結果から、高温領域に属するいずれかの温度に適応するように再学習された学習値で、クロスバー回路20における各メモリスタ24の重みを更新すれば、その重みを更新された人工NN回路は、高温領域全体に渡って使用可能であり、重みを変更しない場合に比較して十分に認識エラーの発生率を改善することができるといえる。 From the graphs of FIGS. 14 and 15, any of the artificial NN circuits in which only the weights for the bias signal are updated by the learning values re-learned to adapt to each temperature of 70° C., 85° C., and 100° C. , the occurrence rate of recognition errors can be reduced over almost the entire high-temperature region, compared to the artificial NN circuit that does not change the weights. From this result, if the weight of each memristor 24 in the crossbar circuit 20 is updated with a learning value that has been re-learned so as to adapt to any temperature belonging to the high temperature region, the artificial NN circuit whose weight has been updated is , can be used over the entire high-temperature region, and can be said to be able to sufficiently improve the occurrence rate of recognition errors compared to the case where the weights are not changed.

さらに、図14および図15のグラフを見ると、高温領域の多くの範囲において、70℃に適応する学習値で重みが更新された人工NN回路よりも、85℃に適応する学習値で重みが更新された人工NN回路の方が認識エラーの発生率は低くなっている。また、85℃に適応する学習値で重みが更新された人工NN回路よりも、100℃に適応する学習値で重みが更新された人工NN回路の方が認識エラーの発生率は低くなっている。このような結果から、高温領域の全域で使用される学習値は、高温領域内で相対的に高い温度の環境下で学習された学習値であることが好ましいといえる。 Furthermore, looking at the graphs of FIGS. 14 and 15, it can be seen that in many ranges in the high temperature region, the weights with the learning values adapted to 85° C. The updated artificial NN circuit has a lower recognition error rate. In addition, the artificial NN circuit whose weights are updated with learning values adapted to 100°C has a lower recognition error rate than the artificial NN circuit whose weights are updated with learning values adapted to 85°C. . From these results, it can be said that the learned value used throughout the high temperature range is preferably a learned value learned under a relatively high temperature environment within the high temperature range.

なお、高温領域の全域で1つの学習値を使用する場合には、その学習値に含まれる重みの中で、室温状態で学習された重みと実質的に同一の重みがある場合、その重みに関しては、対応するメモリスタ24のコンダクタンス値を更新する必要がないので、記憶装置34に記憶する学習値(重みのセット)から除外してもよい。 In addition, when one learning value is used in the entire high temperature region, if there is a weight that is substantially the same as the weight learned in the room temperature state among the weights included in the learning value, the weight may be excluded from the learning values (set of weights) stored in the storage device 34, since there is no need to update the conductance value of the corresponding memristor 24.

(第4実施形態)
上述した第2実施形態は、環境温度の変化に応じて、クロスバー回路20におけるすべての重みを学習値として更新対象とするのではなく、バイアス信号に対する重みなど、一部の重みだけを更新対象とするものであった。
(Fourth embodiment)
In the above-described second embodiment, not all the weights in the crossbar circuit 20 are updated as learning values in response to changes in the environmental temperature, but only some weights, such as the weights for the bias signal, are subject to update. It was intended to be.

ここで、バイアス信号は、通常、図4に示されるように、クロスバー回路20の入力バー21の1つに入力される。そして、バイアス信号は、バイアス信号が入力される入力バー21と、その入力バー21と交差する出力バー22、23との交点に設けられたメモリスタ24による重みが付与されて、出力バー22、23に流れ込む。その後、重みが付与されたバイアス信号は、それぞれの出力バー22、23に流れ込む他の重み付き入力信号と積算された上で、差動演算増幅器28にて出力バー22の積算信号と出力バー23の積算信号との差分が算出されて出力される。これを数式に表すと、以下の数式2のようになる。 Here, the bias signal is typically input to one of the input bars 21 of the crossbar circuit 20, as shown in FIG. The bias signal is weighted by a memristor 24 provided at the intersection of the input bar 21 to which the bias signal is input and the output bars 22 and 23 that intersect the input bar 21, and the output bars 22 and 23 are weighted. flow into. After that, the weighted bias signal is integrated with other weighted input signals flowing into the respective output bars 22 and 23, and then the integrated signal of the output bar 22 and the output bar 23 are obtained by the differential operational amplifier 28. is calculated and output. Expressing this in a formula results in Formula 2 below.

(数2)
差動演算増幅器出力=Σ(wij-wij+1)*x+(wbj-wbj+1)*x
なお、数式2において、xは、クロスバー回路20に入力される数の、画像のピクセル値に対応する入力電圧信号または前段層の出力ニューロンからの出力に応じた入力電圧信号を示し、(wij-wij+1)は入力電圧信号xに対する重みの差分を示し、xはクロスバー回路20に入力されるバイアス信号を示し、(wbj-wbj+1)はバイアス信号xに対する重みの差分を示す。
(Number 2)
Differential operational amplifier output = Σ(w ij −w ij+1 )*x i +(w bj −w bj+1 )*x b
In Equation 2, x i represents the input voltage signal corresponding to the pixel value of the image or the input voltage signal corresponding to the output from the output neuron in the preceding layer of the number input to the crossbar circuit 20, and ( w ij −w ij+1 ) represents the weight difference for the input voltage signal x i , x b represents the bias signal input to the crossbar circuit 20, and (w bj −w bj+1 ) represents the weight difference for the bias signal x b . Show the difference.

数式2に示されるように、重み付きバイアス信号(wbj-wbj+1)*xは、各出力バー22、23の積算信号の差分を取った結果に加算されるだけである。このため、バイアス信号は、クロスバー回路20に入力せずに、活性化関数処理回路に入力される前の、差動演算増幅器28の出力に加算しても、数式2と同様の結果が得られる。 As shown in Equation 2, the weighted bias signal (w bj −w bj+1 )*x b is simply added to the differenced result of the integrated signal of each output bar 22,23. Therefore, even if the bias signal is not input to the crossbar circuit 20 but is added to the output of the differential operational amplifier 28 before being input to the activation function processing circuit, a result similar to Equation 2 can be obtained. be done.

このような観点から、第4実施形態の人工NN回路では、図16に示すように、クロスバー回路20には、バイアス信号を含まない入力電圧信号xだけを入力する。その一方で、重み付きバイアス信号(wbj-wbj+1)*xが、差動演算増幅器28の出力に加算されるように構成される。具体的には、本実施形態の人工NN回路は、クロスバー回路20の各環境温度範囲に適した重み付きバイアス信号を記憶している記憶装置34、温度センサ33によって検出される環境温度に応じた重み付きバイアス信号を記憶装置34から読み出して出力するバイアス制御装置36、及びバイアス制御装置36から出力された重み付きバイアス信号と差動演算増幅器28からの出力とを加算する加算器37を備えている。なお、記憶装置34は、例えば、室温において使用される初期値としての重み付きバイアス信号に加えて、第2実施形態で説明したように、高温領域を複数の温度範囲に分け、それぞれの温度範囲に適応する学習値としての重み付きバイアス信号を記憶してもよい。あるいは、記憶装置34は、室温において使用される初期値としての重み付きバイアス信号に加えて、第3実施形態で説明したように、高温領域の全域で使用される1つの学習値としての重み付きバイアス信号を記憶してもよい。 From this point of view, in the artificial NN circuit of the fourth embodiment, as shown in FIG. 16, the crossbar circuit 20 receives only the input voltage signal xi that does not include the bias signal. On the other hand, a weighted bias signal (w bj −w bj+1 )*x b is configured to be added to the output of differential operational amplifier 28 . Specifically, the artificial NN circuit of the present embodiment includes a storage device 34 storing weighted bias signals suitable for each environmental temperature range of the crossbar circuit 20, and an environmental temperature detected by the temperature sensor 33. a bias control device 36 for reading out the weighted bias signal from the storage device 34 and outputting it; and an adder 37 for adding the weighted bias signal output from the bias control device 36 and the output from the differential operational amplifier 28. ing. Note that the storage device 34 divides the high-temperature region into a plurality of temperature ranges, for example, in addition to the weighted bias signal as the initial value used at room temperature, as described in the second embodiment, and A weighted bias signal may be stored as a learning value adapted to . Alternatively, in addition to the weighted bias signal as the initial value used at room temperature, the storage device 34 stores the weighted bias signal as one learning value used throughout the high temperature region as described in the third embodiment. A bias signal may be stored.

上述したように、第4実施形態に係る人工NN回路では、クロスバー回路20の出力信号を処理する処理回路において使用される重み付きバイアス信号を学習値として、環境温度の変化に対応した値に更新する。このような構成においては、学習値としての重み付きバイアス信号は、クロスバー回路20の環境温度に適した値を記憶装置34から読み出して、加算器37に出力するだけで済む。換言すれば、クロスバー回路20におけるメモリスタ24のコンダクタンス値を書き換えなくてもよいので、学習値の更新を簡単かつ迅速に行うことが可能となる。 As described above, in the artificial NN circuit according to the fourth embodiment, the weighted bias signal used in the processing circuit that processes the output signal of the crossbar circuit 20 is used as the learning value, and the value corresponding to the change in the environmental temperature is changed. Update. In such a configuration, the weighted bias signal as the learning value is obtained by simply reading a value suitable for the environmental temperature of the crossbar circuit 20 from the storage device 34 and outputting it to the adder 37 . In other words, since it is not necessary to rewrite the conductance value of the memristor 24 in the crossbar circuit 20, it is possible to easily and quickly update the learning value.

(第5実施形態)
上述した第1~第4実施形態による人工NN回路は、いずれも、クロスバー回路20の環境温度が変化したときに、クロスバー回路20および/または処理回路において使用される学習値(重みセット、重み付きバイアス信号など)を記憶装置34に記憶しておき、環境温度の変化に応じて、記憶装置34から学習値を読み出して、クロスバー回路20の重みセットを更新したり、処理回路において使用される重み付きバイアス信号を更新したりするものであった。それに対して、第5実施形態による人工NN回路は、メモリスタ24のコンダクタンス値(学習値)が異なる環境温度に適応するように事前に設定された複数のクロスバー回路20を備え、温度センサ33によって検出されるクロスバー回路20の環境温度に応じて、使用するクロスバー回路20を選択することにより、環境温度の変化に対応する学習値に更新するものである。
(Fifth embodiment)
All of the artificial NN circuits according to the first to fourth embodiments described above have learning values (weight sets, A weighted bias signal, etc.) is stored in the storage device 34, and the learning value is read out from the storage device 34 in accordance with changes in the environmental temperature to update the weight set of the crossbar circuit 20 or to be used in the processing circuit. It was used to update the weighted bias signal that is used. On the other hand, the artificial NN circuit according to the fifth embodiment includes a plurality of crossbar circuits 20 preset so that the conductance values (learned values) of the memristors 24 are adapted to different environmental temperatures, and the temperature sensor 33 By selecting the crossbar circuit 20 to be used according to the detected environmental temperature of the crossbar circuit 20, the learning value corresponding to the change in the environmental temperature is updated.

図17は、第5実施形態に係る人工NN回路の構成の一例を示す図である。図17に示すように、本実施形態に係る人工NN回路は、それぞれのメモリスタ24のコンダクタンス値により、異なる環境温度に適応した重みを有する複数のクロスバー回路20a、20bを備えている。クロスバー回路20aは、切替スイッチ29aを介して差動演算増幅器28に接続され、クロスバー回路20bは、切替スイッチ29bを介して差動演算増幅器28に接続されている。図示しない制御装置が、温度センサによって検出される環境温度に応じて、環境温度に適応した重みを有するクロスバー回路(20a、20bの一方)の切替スイッチ(29a、29bの一方)をオンし、その他のクロスバー回路(20a、20bの他方)の切替スイッチ(29a、29bの他方)をオフするように、切替スイッチ29a、29bを制御する。このような構成によっても、クロスバー回路20のメモリスタ24のコンダクタンス値を書き換えることなく、クロスバー回路20、20bにおいて使用される学習値としての重みセットを、環境温度の変化に対応する値に更新することができる。 FIG. 17 is a diagram showing an example of the configuration of an artificial NN circuit according to the fifth embodiment. As shown in FIG. 17, the artificial NN circuit according to this embodiment comprises a plurality of crossbar circuits 20a and 20b having weights adapted to different environmental temperatures according to the conductance values of the memristors 24, respectively. The crossbar circuit 20a is connected to the differential operational amplifier 28 via the changeover switch 29a, and the crossbar circuit 20b is connected to the differential operational amplifier 28 via the changeover switch 29b. A control device (not shown) turns on a changeover switch (one of 29a and 29b) of a crossbar circuit (one of 20a and 20b) having a weight adapted to the environmental temperature according to the environmental temperature detected by the temperature sensor, The changeover switches 29a and 29b are controlled to turn off the changeover switches (the other of 29a and 29b) of the other crossbar circuits (the other of 20a and 20b). With such a configuration, the weight set as the learning value used in the crossbar circuits 20 and 20b is updated to a value corresponding to the change in the environmental temperature without rewriting the conductance value of the memristor 24 of the crossbar circuit 20. can do.

なお、図17には、人工NN回路が2個のクロスバー回路20a、20bを備える例を示したが、クロスバー回路20a、20bを3個以上設けて、温度変化に応じて、よりきめ細かくクロスバー回路を切り替えてもよい。 FIG. 17 shows an example in which the artificial NN circuit includes two crossbar circuits 20a and 20b. You may switch the bar circuit.

(第6実施形態)
上述した第5実施形態では、異なる環境温度に適応する重みを有する複数のクロスバー回路20a、20bを設け、検出される環境温度に応じて複数のクロスバー回路20a、20bを切り替えて使用するものであった。それに対して、第6実施形態の人工NN回路では、図18に示すように、クロスバー回路20に、バイアス信号を入力するための入力バーとして複数本の入力バー21を設ける。それら複数本の入力バー21は、バイアス信号に対して異なる環境温度に適応した重みを付与できるように、それぞれの入力バー21に接続されるメモリスタ24のコンダクタンス値が事前に設定されたものである。
(Sixth embodiment)
In the fifth embodiment described above, a plurality of crossbar circuits 20a and 20b having weights adapted to different environmental temperatures are provided, and the plurality of crossbar circuits 20a and 20b are switched according to the detected environmental temperature. Met. On the other hand, in the artificial NN circuit of the sixth embodiment, as shown in FIG. 18, a crossbar circuit 20 is provided with a plurality of input bars 21 as input bars for inputting bias signals. The conductance values of the memristors 24 connected to the respective input bars 21 are set in advance so that weights adapted to different environmental temperatures can be applied to the bias signals. .

そして、本実施形態の人工NN回路は、図示しない制御装置が、温度センサによって検出される環境温度に応じて、環境温度に適応した重みが設定された入力バーを選択し、その選択した入力バーのみにバイアス信号を入力するように構成されている。換言すると、バイアス信号を入力するための複数本の入力バー21の内、選択した入力バー以外の入力バーには、なんら信号を入力しない。これにより、本実施形態の人工NN回路は、第5実施形態のような切替スイッチを用いずに、バイアス信号に付与する重みを環境温度に応じて切り替えることができる。さらに、第4および第5実施形態の人工NN回路と同様に、本実施形態の人工NN回路も、クロスバー回路20のメモリスタ24のコンダクタンス値を書き換えることなく、クロスバー回路において使用される学習値を、環境温度の変化に対応する学習値に更新することができる。 In the artificial NN circuit of the present embodiment, a control device (not shown) selects an input bar having a weight adapted to the environmental temperature according to the environmental temperature detected by the temperature sensor, and the selected input bar It is configured to input a bias signal only to the In other words, among the plurality of input bars 21 for inputting the bias signal, no signal is input to the input bars other than the selected input bar. As a result, the artificial NN circuit of this embodiment can switch the weight given to the bias signal in accordance with the environmental temperature without using a changeover switch as in the fifth embodiment. Furthermore, like the artificial NN circuits of the fourth and fifth embodiments, the artificial NN circuit of this embodiment does not rewrite the conductance value of the memristor 24 of the crossbar circuit 20, and the learning value used in the crossbar circuit is can be updated to a learned value corresponding to changes in environmental temperature.

以上、本発明の好ましい実施形態について説明したが、本発明は上述した実施形態になんら制限されることなく、本発明の主旨を逸脱しない範囲において、種々変形して実施することができる。 Although the preferred embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the gist of the present invention.

例えば、上述した実施形態では、伝達される信号に正又は負の重みを付与可能とするために、クロスバー回路20の出力バーを差動対出力バーとして用いる例について説明した。しかしながら、必ずしもクロスバー回路20において差動対出力バーを設定しなくともよい。この場合、出力バーに接続される各メモリスタ24の重みはすべて正の符号を持つことになるが、その正の重みの大小によって、影響度の相違を表せばよい。 For example, in each of the above-described embodiments, an example has been described in which the output bars of the crossbar circuit 20 are used as a differential pair of output bars in order to give positive or negative weight to the transmitted signal. However, the crossbar circuit 20 does not necessarily have to set a differential pair output bar. In this case, all the weights of the memristors 24 connected to the output bar have positive signs, and the magnitude of the positive weights may represent the difference in the degree of influence.

また、上述した第2実施形態では、学習値として、バイアス信号に対する重みを更新する例について説明した。しかしながら、学習値は、バイアス信号に対する重みに加え、もしくは代替として、バイアス信号そのものであってもよい。学習値が、バイアス信号の大きさのみである場合には、上述した第4~第6実施形態と同様に、メモリスタ24のコンダクタンス値を変更する必要がないので、クロスバー回路20における学習値の更新を簡単かつ迅速に行うことが可能になる。このように、クロスバー回路20において使用される学習値は、ニューロン間で伝達される信号に付与される重み、バイアス信号に付与される重み、及び、バイアス信号の大きさの少なくとも1つを含むものである。 Also, in the above-described second embodiment, an example of updating the weight for the bias signal as the learning value has been described. However, the learning value may be the bias signal itself in addition to or alternatively the weights for the bias signal. If the learned value is only the magnitude of the bias signal, it is not necessary to change the conductance value of the memristor 24, as in the fourth to sixth embodiments described above. Updates can be made easily and quickly. In this way, the learning value used in the crossbar circuit 20 includes at least one of the weight given to the signal transmitted between neurons, the weight given to the bias signal, and the magnitude of the bias signal. It is a thing.

さらに、人工NN回路に含まれるすべてのクロスバー回路20において、検出された環境温度に応じて学習値を更新するのではなく、例えば、入力層と中間層との間のクロスバー回路、および/または、中間層と出力層の間のクロスバー回路など、一部のクロスバー回路20においてのみ、学習値の更新を行ってもよい。 Furthermore, in all crossbar circuits 20 included in the artificial NN circuit, instead of updating the learning value according to the detected environmental temperature, for example, the crossbar circuits between the input layer and the intermediate layer, and/or Alternatively, the learning value may be updated only in some crossbar circuits 20 such as the crossbar circuit between the intermediate layer and the output layer.

また、例えば上述した第1実施形態では、室温状態で学習された重みをクロスバー回路20の各メモリスタ24によって設定し、クロスバー回路20の環境温度が、所定温度以上の高温領域に属する温度に変化した場合に、クロスバー回路20に設定される重み(学習値)を、その変化した温度に適応するように更新するものであった。 Further, for example, in the above-described first embodiment, the weights learned in the room temperature state are set by each memristor 24 of the crossbar circuit 20, and the environmental temperature of the crossbar circuit 20 is set to a temperature belonging to a high temperature range equal to or higher than a predetermined temperature. When the temperature changes, the weights (learned values) set in the crossbar circuit 20 are updated so as to adapt to the changed temperature.

しかしながら、第1実施形態および第2~第6実施形態において、クロスバー回路および/または処理回路において初期的に使用される学習値は、室温状態以外の他の温度(室温より高い温度、または室温より低い温度)で学習してもよい。そして、初期的に使用される学習値を学習した温度以外の、メモリスタ24の温度特性に起因して人工NN回路の性能が劣化する温度範囲(初期的に使用される学習値を学習した温度よりも低い温度範囲および高い温度範囲を含む)に適応する学習値も学習して、クロスバー回路20の環境温度の変化に応じて、学習値を更新するように構成してもよい。 However, in the first and second to sixth embodiments, the learning values initially used in the crossbar circuit and/or the processing circuit are at temperatures other than room temperature (higher than room temperature, or at room temperature). lower temperature). Then, the temperature range in which the performance of the artificial NN circuit deteriorates due to the temperature characteristics of the memristor 24, other than the temperature at which the initially used learning value is learned (the temperature at which the initially used learning value is learned) (including a low temperature range and a high temperature range) may also be learned, and the learned value may be updated according to changes in the environmental temperature of the crossbar circuit 20 .

上述した各実施形態は、組み合わせて実施することになんらかの支障が生じない限り、その組み合わせについて説明されていなくても、任意に組み合わせて実施することが可能である。 Each of the above-described embodiments can be arbitrarily combined and implemented, even if the combination is not described, as long as the combination does not cause any trouble.

10:多層NN回路、11:入力層、12:中間層、13:出力層、14:ニューロン、20,20a,20b:クロスバー回路、21:入力バー、22:出力バー、23:出力バー、24:メモリスタ、25:入力ニューロンとしてのCMOS回路、26:出力ニューロンとしてのCMOS回路、27a:加算器、27b:加算器、28:差動演算増幅器、29a,29b:切替スイッチ、31:書換制御装置、32:プロセッサ、33:温度センサ、34:記憶装置、35:コンダクタンス書換装置、36:バイアス制御装置、37:加算器 10: multilayer NN circuit, 11: input layer, 12: intermediate layer, 13: output layer, 14: neuron, 20, 20a, 20b: crossbar circuit, 21: input bar, 22: output bar, 23: output bar, 24: memristor, 25: CMOS circuit as input neuron, 26: CMOS circuit as output neuron, 27a: adder, 27b: adder, 28: differential operational amplifier, 29a, 29b: switch, 31: rewrite control Device, 32: Processor, 33: Temperature sensor, 34: Storage device, 35: Conductance rewriting device, 36: Bias control device, 37: Adder

Claims (18)

人工ニューラルネットワークの階層化されたニューロン間で信号の伝達を行うクロスバー回路(20)と、
前記クロスバー回路は、複数の入力バー(21)と複数の出力バー(22、23)とが交差するように配列され、かつ、前記複数の入力バーと前記複数の出力バーとの各交点に、伝達される信号に対して重みを付与する抵抗変化型メモリであるメモリスタ(24)が設けられたものであり、
前記ニューロンにおける信号処理として、少なくとも、前記メモリスタによってそれぞれ重みが付与されて、各々の前記出力バーに流れ込む信号の総和の算出を実行する処理回路(27a、27b)と、を備えた人工ニューラルネットワーク回路であって、
前記クロスバー回路の環境温度を検出する温度センサ(33)と、
前記クロスバー回路の環境温度の変化に応じて、前記クロスバー回路および/または前記処理回路において使用される学習値を、環境温度の変化に対応する学習値に更新する更新部(31、34、35)と、を備える人工ニューラルネットワーク回路。
a crossbar circuit (20) for transmitting signals between hierarchized neurons of an artificial neural network;
The crossbar circuit is arranged so that a plurality of input bars (21) and a plurality of output bars (22, 23) intersect, and at each intersection of the plurality of input bars and the plurality of output bars, , a memristor (24), which is a resistance change type memory that gives weight to the transmitted signal, is provided,
an artificial neural network circuit comprising: processing circuits (27a, 27b) for performing, as signal processing in the neuron, at least calculation of the sum of signals respectively weighted by the memristors and flowing into the respective output bars; and
a temperature sensor (33) for detecting the ambient temperature of the crossbar circuit;
update units (31, 34, 35) and an artificial neural network circuit comprising:
前記クロスバー回路の複数の入力バーには、前記ニューロン間で伝達される信号に加えて、バイアス信号も入力され、
前記クロスバー回路および/または前記処理回路において使用される学習値には、伝達される信号に付与される重み、前記バイアス信号に付与される重み、及び、前記バイアス信号の大きさの少なくとも1つが含まれる請求項1に記載の人工ニューラルネットワーク回路。
Bias signals are input to the plurality of input bars of the crossbar circuit in addition to the signals transmitted between the neurons,
The learning value used in the crossbar circuit and/or the processing circuit includes at least one of a weight given to a transmitted signal, a weight given to the bias signal, and a magnitude of the bias signal. The artificial neural network circuit of claim 1 comprising.
前記処理回路は、各々の前記出力バーに流れ込む信号の総和が算出された後の信号に対して、重み付きバイアス信号を加えるように構成され、
前記クロスバー回路および/または前記処理回路において使用される学習値には、前記重み付きバイアス信号が含まれる請求項1に記載の人工ニューラルネットワーク回路。
the processing circuitry is configured to add a weighted bias signal to the summed signals flowing into each of the output bars;
2. The artificial neural network circuit of claim 1, wherein learning values used in said crossbar circuit and/or said processing circuit include said weighted bias signal.
前記更新部は、前記クロスバー回路の環境温度の変化に応じて、前記クロスバー回路の前記メモリスタによる重みを書き換えることにより、前記クロスバー回路および/または前記処理回路において使用される学習値を、環境温度の変化に対応する学習値に更新する請求項1に記載の人工ニューラルネットワーク回路。 The updating unit rewrites the weights of the memristor of the crossbar circuit according to a change in the environmental temperature of the crossbar circuit, thereby updating the learning value used in the crossbar circuit and/or the processing circuit to: 2. The artificial neural network circuit according to claim 1, wherein the learning value is updated to correspond to changes in environmental temperature. 前記クロスバー回路は、異なる環境温度に適応した重みを付与できるように複数設けられ、
前記更新部は、複数の前記クロスバー回路から、前記温度センサによって検出される環境温度に適応した重みのクロスバー回路を選択することにより、前記クロスバー回路および/または前記処理回路において使用される学習値を、環境温度の変化に対応する学習値に更新する請求項1に記載の人工ニューラルネットワーク回路。
A plurality of the crossbar circuits are provided so as to apply weights adapted to different environmental temperatures,
The update unit is used in the crossbar circuit and/or the processing circuit by selecting from the plurality of crossbar circuits weighted crossbar circuits adapted to the environmental temperature detected by the temperature sensor. 2. The artificial neural network circuit according to claim 1, wherein the learning value is updated to a learning value corresponding to changes in environmental temperature.
前記クロスバー回路は、バイアス信号を入力するための入力バーが、異なる環境温度に適応した重みを付与できるように複数設けられ、
前記更新部は、バイアス信号を入力するための複数の入力バーから、前記温度センサによって検出される環境温度に適応した重みの入力バーを選択し、その選択した入力バーのみにバイアス信号を与えることにより、前記クロスバー回路および/または前記処理回路において使用される学習値を、環境温度の変化に対応する学習値に更新する請求項1に記載の人工ニューラルネットワーク回路。
The crossbar circuit is provided with a plurality of input bars for inputting a bias signal so that weights adapted to different environmental temperatures can be applied,
The update unit selects an input bar with a weight adapted to the environmental temperature detected by the temperature sensor from a plurality of input bars for inputting the bias signal, and applies the bias signal only to the selected input bar. 2. The artificial neural network circuit according to claim 1, wherein the learning value used in said crossbar circuit and/or said processing circuit is updated to a learning value corresponding to a change in ambient temperature.
前記クロスバー回路および/または前記処理回路において初期的に使用される学習値を学習した温度以外の温度領域が複数の温度範囲に分けられ、前記学習値は、前記複数の温度範囲でそれぞれ使用される複数の学習値を含む請求項1乃至6のいずれか1項に記載の人工ニューラルネットワーク回路。 A temperature range other than the temperature at which the learned value initially used in the crossbar circuit and/or the processing circuit is divided into a plurality of temperature ranges, and the learned value is used in each of the plurality of temperature ranges. 7. An artificial neural network circuit as claimed in any one of claims 1 to 6, comprising a plurality of training values for each. 前記学習値は、前記クロスバー回路および/または前記処理回路において初期的に使用される学習値を学習した温度以外の温度領域で使用される1つの学習値を含む請求項1乃至6のいずれか1項に記載の人工ニューラルネットワーク回路。 7. The learned value includes one learned value used in a temperature range other than the temperature at which the learned value initially used in the crossbar circuit and/or the processing circuit is learned. 2. The artificial neural network circuit according to item 1. 前記クロスバー回路および/または前記処理回路において初期的に使用される学習値を学習した温度以外の温度領域で使用される1つの学習値は、当該温度領域内で相対的に高い温度の環境下で学習された学習値である請求項8に記載の人工ニューラルネットワーク回路。 One learning value used in a temperature range other than the temperature at which the learning value initially used in the crossbar circuit and/or the processing circuit is learned under a relatively high temperature environment within the temperature range. 9. The artificial neural network circuit according to claim 8, wherein the learning value is learned by. 人工ニューラルネットワークの階層化されたニューロン間で信号の伝達を行うクロスバー回路(20)と、
前記クロスバー回路は、複数の入力バー(21)と複数の出力バー(22、23)とが交差するように配列され、かつ、前記複数の入力バーと前記複数の出力バーとの各交点に、伝達される信号に対して重みを付与する抵抗変化型メモリであるメモリスタ(24)が設けられたものであり、
前記ニューロンにおける信号処理として、少なくとも、前記メモリスタによってそれぞれ重みが付与されて、各々の前記出力バーに流れ込む信号の総和の算出を実行する処理回路(27a、27b)と、を備えた人工ニューラルネットワーク回路に適用される学習値切替方法であって、
温度センサ(33)を用いて、前記クロスバー回路の環境温度を検出すること、
更新部(31、34、35)により、前記クロスバー回路の環境温度の変化に応じて、前記クロスバー回路および/または前記処理回路において使用される学習値を、環境温度の変化に対応する学習値に更新すること、を含む人工ニューラルネットワーク回路における学習値切替方法。
a crossbar circuit (20) for transmitting signals between hierarchized neurons of an artificial neural network;
The crossbar circuit is arranged so that a plurality of input bars (21) and a plurality of output bars (22, 23) intersect, and at each intersection of the plurality of input bars and the plurality of output bars, , a memristor (24), which is a resistance change type memory that gives weight to the transmitted signal, is provided,
an artificial neural network circuit comprising: processing circuits (27a, 27b) for performing, as signal processing in the neuron, at least calculation of the sum of signals respectively weighted by the memristors and flowing into the respective output bars; A learning value switching method applied to
detecting the ambient temperature of the crossbar circuit using a temperature sensor (33);
An update unit (31, 34, 35) updates the learning value used in the crossbar circuit and/or the processing circuit according to the change in the environmental temperature of the crossbar circuit. A learning value switching method in an artificial neural network circuit, including updating to a value.
前記クロスバー回路の複数の入力バーには、前記ニューロン間で伝達される信号に加えて、バイアス信号も入力され、
前記クロスバー回路および/または前記処理回路において使用される学習値には、伝達される信号に付与される重み、バイアス信号に付与される重み、及び、バイアス信号の大きさの少なくとも1つが含まれる請求項10に記載の人工ニューラルネットワーク回路における学習値切替方法。
Bias signals are input to the plurality of input bars of the crossbar circuit in addition to the signals transmitted between the neurons,
The learning values used in the crossbar circuit and/or the processing circuit include at least one of a weight given to a signal to be transmitted, a weight given to a bias signal, and a magnitude of the bias signal. 11. The learning value switching method in the artificial neural network circuit according to claim 10.
前記処理回路は、各々の前記出力バーに流れ込む信号の総和が算出された後の信号に対して、重み付きバイアス信号を加えるように構成され、
前記クロスバー回路および/または前記処理回路において使用される学習値には、前記重み付きバイアス信号が含まれる請求項10に記載の人工ニューラルネットワーク回路における学習値切替方法。
the processing circuitry is configured to add a weighted bias signal to the summed signals flowing into each of the output bars;
11. The learning value switching method in an artificial neural network circuit according to claim 10, wherein learning values used in said crossbar circuit and/or said processing circuit include said weighted bias signal.
前記更新部により、前記クロスバー回路の環境温度の変化に応じて、前記クロスバー回路の前記メモリスタによる重みが書き換えられることによって、前記クロスバー回路および/または前記処理回路において使用される学習値が、環境温度の変化に対応する学習値に更新される請求項10に記載の人工ニューラルネットワーク回路における学習値切替方法。 The updating unit rewrites the weights of the memristor of the crossbar circuit in accordance with a change in the environmental temperature of the crossbar circuit, thereby changing the learning value used in the crossbar circuit and/or the processing circuit. 11. The learning value switching method in an artificial neural network circuit according to claim 10, wherein the learning value is updated to a learning value corresponding to a change in environmental temperature. 前記クロスバー回路は、同じ入力信号に対して、異なる環境温度に適応した重みを付与できるように複数設けられ、
前記更新部により、複数の前記クロスバー回路から、前記温度センサによって検出される環境温度に適応した重みのクロスバー回路が選択されることにより、前記クロスバー回路および/または前記処理回路において使用される学習値が、環境温度の変化に対応する学習値に更新される請求項10に記載の人工ニューラルネットワーク回路における学習値切替方法。
A plurality of the crossbar circuits are provided so as to apply weights adapted to different environmental temperatures to the same input signal,
The updating unit selects from the plurality of crossbar circuits a crossbar circuit having a weight adapted to the environmental temperature detected by the temperature sensor, and thereby used in the crossbar circuit and/or the processing circuit. 11. The learning value switching method in an artificial neural network circuit according to claim 10, wherein the learning value is updated to a learning value corresponding to a change in environmental temperature.
前記クロスバー回路は、バイアス信号を入力するための入力バーが、異なる環境温度に適応した重みを付与できるように複数設けられ、
前記更新部により、バイアス信号を入力するための複数の入力バーから、前記温度センサによって検出される環境温度に適応した重みの入力バーを選択し、その選択した入力バーのみにバイアス信号が与えられることにより、前記クロスバー回路および/または前記処理回路において使用される学習値を、環境温度の変化に対応する学習値に更新する請求項10に記載の人工ニューラルネットワーク回路における学習値切替方法。
The crossbar circuit is provided with a plurality of input bars for inputting a bias signal so that weights adapted to different environmental temperatures can be applied,
The update unit selects an input bar with a weight adapted to the environmental temperature detected by the temperature sensor from a plurality of input bars for inputting the bias signal, and applies the bias signal only to the selected input bar. 11. The learning value switching method in an artificial neural network circuit according to claim 10, wherein the learning value used in said crossbar circuit and/or said processing circuit is updated to a learning value corresponding to a change in environmental temperature.
前記クロスバー回路および/または前記処理回路において初期的に使用される学習値を学習した温度以外の温度領域が複数の温度範囲に分けられ、前記学習値は、前記複数の温度範囲でそれぞれ使用される複数の学習値を含む請求項10乃至15のいずれか1項に記載の人工ニューラルネットワーク回路における学習値切替方法。 A temperature range other than the temperature at which the learned value initially used in the crossbar circuit and/or the processing circuit is divided into a plurality of temperature ranges, and the learned value is used in each of the plurality of temperature ranges. 16. The learning value switching method in an artificial neural network circuit according to any one of claims 10 to 15, wherein the learning value switching method includes a plurality of learning values. 前記学習値は、前記クロスバー回路および/または前記処理回路において初期的に使用される学習値を学習した温度以外の温度領域で使用される1つの学習値を含む請求項10乃至15のいずれか1項に記載の人工ニューラルネットワーク回路における学習値切替方法。 16. The learning value according to any one of claims 10 to 15, wherein the learning value includes one learning value used in a temperature range other than the temperature at which the learning value initially used in the crossbar circuit and/or the processing circuit is learned. A learning value switching method in the artificial neural network circuit according to item 1. 前記クロスバー回路および/または前記処理回路において初期的に使用される学習値を学習した温度以外の温度領域で使用される1つの学習値は、当該温度領域内で相対的に高い温度の環境下で学習された学習値である請求項17に記載の人工ニューラルネットワーク回路における学習値切替方法。 One learning value used in a temperature range other than the temperature at which the learning value initially used in the crossbar circuit and/or the processing circuit is learned under a relatively high temperature environment within the temperature range. 18. The learning value switching method in an artificial neural network circuit according to claim 17, wherein the learning value is a learning value learned in .
JP2019169724A 2018-10-18 2019-09-18 Artificial Neural Network Circuit and Learning Value Switching Method in Artificial Neural Network Circuit Active JP7196803B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/654,394 US11928576B2 (en) 2018-10-18 2019-10-16 Artificial neural network circuit and method for switching trained weight in artificial neural network circuit

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018196711 2018-10-18
JP2018196711 2018-10-18

Publications (2)

Publication Number Publication Date
JP2020068048A JP2020068048A (en) 2020-04-30
JP7196803B2 true JP7196803B2 (en) 2022-12-27

Family

ID=70390506

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019169724A Active JP7196803B2 (en) 2018-10-18 2019-09-18 Artificial Neural Network Circuit and Learning Value Switching Method in Artificial Neural Network Circuit

Country Status (1)

Country Link
JP (1) JP7196803B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022013677A1 (en) * 2020-07-17 2022-01-20 株式会社半導体エネルギー研究所 Semiconductor device
JP2022125660A (en) 2021-02-17 2022-08-29 キオクシア株式会社 Memory device and memory method
CN114279491A (en) * 2021-11-23 2022-04-05 电子科技大学 Sensor signal attention weight distribution method based on memristor cross array
WO2024048704A1 (en) * 2022-09-02 2024-03-07 ヌヴォトンテクノロジージャパン株式会社 Artificial intelligence processing device, and method for writing weighting coefficient of artificial intelligence processing device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021536623A (en) 2018-08-27 2021-12-27 シリコン ストーリッジ テクノロージー インコーポレイテッドSilicon Storage Technology, Inc. Temperature compensation and leakage compensation for memory cells of analog neural memory systems used in deep learning neural networks

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5075869A (en) * 1990-06-24 1991-12-24 Intel Corporation Neural network exhibiting improved tolerance to temperature and power supply variations

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021536623A (en) 2018-08-27 2021-12-27 シリコン ストーリッジ テクノロージー インコーポレイテッドSilicon Storage Technology, Inc. Temperature compensation and leakage compensation for memory cells of analog neural memory systems used in deep learning neural networks

Also Published As

Publication number Publication date
JP2020068048A (en) 2020-04-30

Similar Documents

Publication Publication Date Title
JP7196803B2 (en) Artificial Neural Network Circuit and Learning Value Switching Method in Artificial Neural Network Circuit
JP6724869B2 (en) Method for adjusting output level of neurons in multilayer neural network
US11928576B2 (en) Artificial neural network circuit and method for switching trained weight in artificial neural network circuit
US11055608B2 (en) Convolutional neural network
JP6477924B2 (en) Memristor neuromorphological circuit and method for training memristor neuromorphological circuit
US9646243B1 (en) Convolutional neural networks using resistive processing unit array
US20200012924A1 (en) Pipelining to improve neural network inference accuracy
US20200117986A1 (en) Efficient processing of convolutional neural network layers using analog-memory-based hardware
JP6724870B2 (en) Artificial neural network circuit training method, training program, and training device
US11087204B2 (en) Resistive processing unit with multiple weight readers
WO2018228424A1 (en) Method and device for training neural network
Krestinskaya et al. Binary weighted memristive analog deep neural network for near-sensor edge processing
JP2018521397A (en) Memristor neuromorphological circuit and method for training memristor neuromorphological circuit
US12050997B2 (en) Row-by-row convolutional neural network mapping for analog artificial intelligence network training
Amiri et al. Feedback associative memory based on a new hybrid model of generalized regression and self-feedback neural networks
CN107223260B (en) Method for dynamically updating classifier complexity
US11868893B2 (en) Efficient tile mapping for row-by-row convolutional neural network mapping for analog artificial intelligence network inference
JP7365999B2 (en) Neural network computing device and method
JP7259253B2 (en) artificial neural network circuit
Dorband A boltzmann machine implementation for the d-wave
Kareem et al. MCA: A developed associative memory using multi-connect architecture
US11694065B2 (en) Spiking neural unit
WO2024083180A9 (en) Dnn training algorithm with dynamically computed zero-reference.
JP6741159B1 (en) Inference apparatus and inference method
Lo et al. Training deep neural networks with gradual deconvexification

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20211217

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20221115

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221128

R151 Written notification of patent or utility model registration

Ref document number: 7196803

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151