プリンキピア

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

7.1.3. Convolutions7.1.3 畳み込み

Let’s briefly review why (7.1.3) is called a convolution. In mathematics, the convolution between two functions (Rudin, 1973), say f,g:ℝd→ℝ is defined as
英語のヒント
式(7.1.3)がなぜ畳み込みと呼ばれるのかを、手短に見直そう。数学では、二つの関数(Rudin, 1973)、たとえばf,g:ℝd→ℝのあいだの畳み込みは、次のように定義される。
(f∗g)(𝐱)=∫f(𝐳)g(𝐱−𝐳)d𝐳.(7.1.4)
That is, we measure the overlap between f and g when one function is “flipped” and shifted by 𝐱. Whenever we have discrete objects, the integral turns into a sum. For instance, for vectors from the set of square-summable infinite-dimensional vectors with index running over ℤ we obtain the following definition:
英語のヒント
つまり、一方の関数を「反転」して𝐱だけずらしたときの、fとgの重なりを測る。離散的な対象を扱うときには、積分は和になる。たとえば、添え字がℤを動く、2乗総和可能な無限次元ベクトルの集合のベクトルについては、次の定義が得られる。
(f∗g)(i)=∑af(a)g(i−a).(7.1.5)
For two-dimensional tensors, we have a corresponding sum with indices (a,b) for f and (i−a,j−b) for g, respectively:
英語のヒント
2次元のテンソルについては、fには添え字(a,b)、gには添え字(i−a,j−b)をそれぞれ使った、対応する和が得られる。
(f∗g)(i,j)=∑a∑bf(a,b)g(i−a,j−b).(7.1.6)
This looks similar to (7.1.3), with one major difference. Rather than using (i+a,j+b), we are using the difference instead. Note, though, that this distinction is mostly cosmetic since we can always match the notation between (7.1.3) and (7.1.6). Our original definition in (7.1.3) more properly describes a cross-correlation. We will come back to this in the following section.
英語のヒント
これは式(7.1.3)に似ているが、大きな違いが一つある。(i+a,j+b)を使う代わりに、差を使っているのである。ただし、式(7.1.3)と式(7.1.6)のあいだでは記法をいつでも合わせられるので、この区別はほとんど見た目だけのものであることに注意してほしい。式(7.1.3)での元の定義は、もっと正確には相互相関を表している。これについては次の節で立ち戻る。