プリンキピア

第7章畳み込みニューラルネットワーク

7.2.5. Cross-Correlation and Convolution7.2.5 相互相関と畳み込み

Recall our observation from Section 7.1 of the correspondence between the cross-correlation and convolution operations. Here let’s continue to consider two-dimensional convolutional layers. What if such layers perform strict convolution operations as defined in (7.1.6) instead of cross-correlations? In order to obtain the output of the strict convolution operation, we only need to flip the two-dimensional kernel tensor both horizontally and vertically, and then perform the cross-correlation operation with the input tensor.
英語のヒント
7.1節で見た、相互相関と畳み込みの演算のあいだの対応を思い出してほしい。ここでは引き続き2次元の畳み込み層を考えよう。そうした層が、相互相関ではなく、式(7.1.6)で定義した厳密な畳み込みの演算を行うとしたらどうなるか。厳密な畳み込みの演算の出力を得るには、2次元のカーネルテンソルを横にも縦にも反転させてから、入力テンソルと相互相関の演算を行えばよいだけである。
It is noteworthy that since kernels are learned from data in deep learning, the outputs of convolutional layers remain unaffected no matter such layers perform either the strict convolution operations or the cross-correlation operations.
英語のヒント
深層学習ではカーネルはデータから学習されるので、層が厳密な畳み込みの演算と相互相関の演算のどちらを行っても、畳み込み層の出力は影響を受けないことは注目に値する。
To illustrate this, suppose that a convolutional layer performs cross-correlation and learns the kernel in Fig. 7.2.1, which is here denoted as the matrix 𝐊. Assuming that other conditions remain unchanged, when this layer instead performs strict convolution, the learned kernel 𝐊′ will be the same as 𝐊 after 𝐊′ is flipped both horizontally and vertically. That is to say, when the convolutional layer performs strict convolution for the input in Fig. 7.2.1 and 𝐊′, the same output in Fig. 7.2.1 (cross-correlation of the input and 𝐊) will be obtained.
英語のヒント
これを示すため、ある畳み込み層が相互相関を行い、図7.2.1のカーネルを学習するとしよう。ここではそれを行列𝐊で表す。ほかの条件が変わらないとすると、この層が代わりに厳密な畳み込みを行うとき、学習されるカーネル𝐊′は、𝐊′を横にも縦にも反転させると𝐊と同じになる。つまり、畳み込み層が図7.2.1の入力と𝐊′に対して厳密な畳み込みを行うと、図7.2.1と同じ出力(入力と𝐊の相互相関)が得られる。
In keeping with standard terminology in deep learning literature, we will continue to refer to the cross-correlation operation as a convolution even though, strictly-speaking, it is slightly different. Furthermore, we use the term element to refer to an entry (or component) of any tensor representing a layer representation or a convolution kernel.
英語のヒント
深層学習の文献での標準的な用語に合わせて、厳密に言えば少し違うものの、相互相関の演算を引き続き畳み込みと呼ぶ。さらに、層の表現や畳み込みカーネルを表すテンソルの成分(あるいは要素)を指すのに、要素という言葉を使う。