第7章畳み込みニューラルネットワーク
7.4.5. Exercises7.4.5 練習問題
- Assume that we have two convolution kernels of size and , respectively (with no nonlinearity in between).
英語のヒント
それぞれ大きさがとの二つの畳み込みカーネルがあるとする(あいだに非線形性はない)。- Prove that the result of the operation can be expressed by a single convolution.
英語のヒント
その演算の結果は、一つの畳み込みで表せることを証明せよ。 - What is the dimensionality of the equivalent single convolution?
英語のヒント
同等な一つの畳み込みの次元はいくつか。 - Is the converse true, i.e., can you always decompose a convolution into two smaller ones?
英語のヒント
逆は成り立つか。つまり、畳み込みをいつでも二つのもっと小さな畳み込みに分解できるか。
- Assume an input of shape and a convolution kernel of shape , padding of , and stride of .
英語のヒント
形状の入力と、形状の畳み込みカーネル、パディング、ストライドがあるとする。- What is the computational cost (multiplications and additions) for the forward propagation?
英語のヒント
順伝播の計算の費用(掛け算と足し算)はどれだけか。 - What is the memory footprint?
英語のヒント
使用メモリ量はどれだけか。 - What is the memory footprint for the backward computation?
英語のヒント
逆向きの計算の使用メモリ量はどれだけか。 - What is the computational cost for the backpropagation?
英語のヒント
逆伝播の計算の費用はどれだけか。
- By what factor does the number of calculations increase if we double both the number of input channels and the number of output channels ? What happens if we double the padding?
英語のヒント
入力チャネルの数と出力チャネルの数の両方を2倍にすると、計算の回数は何倍になるか。パディングを2倍にすると何が起きるか。 - Are the variables
Y1andY2in the final example of this section exactly the same? Why?英語のヒント
この節の最後の例の変数Y1とY2は、まったく同じか。それはなぜか。 - Express convolutions as a matrix multiplication, even when the convolution window is not .
英語のヒント
畳み込みの窓がでないときでも、畳み込みを行列の掛け算として表せ。 - Your task is to implement fast convolutions with a kernel. One of the algorithm candidates is to scan horizontally across the source, reading a -wide strip and computing the -wide output strip one value at a time. The alternative is to read a wide strip and compute a -wide output strip. Why is the latter preferable? Is there a limit to how large you should choose ?
英語のヒント
課題は、のカーネルで速い畳み込みを実装することである。アルゴリズムの候補の一つは、元のデータを横に走査し、幅の帯を読んで、幅の出力の帯を一度に一つの値ずつ計算することである。もう一つの方法は、幅の帯を読んで、幅の出力の帯を計算することである。なぜ後者のほうが望ましいのか。をどれだけ大きく選ぶべきかに限界はあるか。 - Assume that we have a matrix.
英語のヒント
の行列があるとする。- How much faster is it to multiply with a block-diagonal matrix if the matrix is broken up into blocks?
英語のヒント
行列を個のブロックに分けると、ブロック対角行列との掛け算はどれだけ速くなるか。 - What is the downside of having blocks? How could you fix it, at least partly?
英語のヒント
個のブロックをもつことの欠点は何か。少なくとも部分的にでも、それをどう直せるか。