第7章畳み込みニューラルネットワーク
7.1. From Fully Connected Layers to Convolutions7.1 全結合層から畳み込みへ
To this day, the models that we have discussed so far remain appropriate options when we are dealing with tabular data. By tabular, we mean that the data consist of rows corresponding to examples and columns corresponding to features. With tabular data, we might anticipate that the patterns we seek could involve interactions among the features, but we do not assume any structure a priori concerning how the features interact.
英語のヒント
今日でも、ここまで論じてきたモデルは、表形式のデータを扱うときには適切な選択肢であり続けている。表形式とは、データが、事例に対応する行と特徴量に対応する列からなることを意味する。表形式のデータでは、探しているパターンが特徴量のあいだの相互作用にかかわるかもしれないと予想することはあっても、特徴量がどう相互作用するかについて、事前に何の構造も仮定しない。
Sometimes, we truly lack the knowledge to be able to guide the construction of fancier architectures. In these cases, an MLP may be the best that we can do. However, for high-dimensional perceptual data, such structureless networks can grow unwieldy.
英語のヒント
ときには、もっと凝った構造の構築を導けるだけの知識が本当に欠けていることもある。そうした場合には、MLPがおそらく最善の手である。しかし、高次元の知覚データでは、そうした構造のないネットワークは手に負えなくなりうる。
For instance, let’s return to our running example of distinguishing cats from dogs. Say that we do a thorough job in data collection, collecting an annotated dataset of one-megapixel photographs. This means that each input to the network has one million dimensions. Even an aggressive reduction to one thousand hidden dimensions would require a fully connected layer characterized by parameters. Unless we have lots of GPUs, a talent for distributed optimization, and an extraordinary amount of patience, learning the parameters of this network may turn out to be infeasible.
英語のヒント
たとえば、おなじみの、猫と犬を見分ける例に戻ろう。データ収集を徹底的に行い、100万画素の写真に注釈を付けたデータセットを集めたとしよう。つまり、ネットワークへの各入力は100万次元をもつ。思い切って隠れ次元を1000まで減らしたとしても、個のパラメータで特徴づけられる全結合層が必要になる。たくさんのGPU、分散最適化の才能、並外れた忍耐力がなければ、このネットワークのパラメータを学習するのは実行不可能だとわかるかもしれない。
A careful reader might object to this argument on the basis that one megapixel resolution may not be necessary. However, while we might be able to get away with one hundred thousand pixels, our hidden layer of size 1000 grossly underestimates the number of hidden units that it takes to learn good representations of images, so a practical system will still require billions of parameters. Moreover, learning a classifier by fitting so many parameters might require collecting an enormous dataset. And yet today both humans and computers are able to distinguish cats from dogs quite well, seemingly contradicting these intuitions. That is because images exhibit rich structure that can be exploited by humans and machine learning models alike. Convolutional neural networks (CNNs) are one creative way that machine learning has embraced for exploiting some of the known structure in natural images.
英語のヒント
注意深い読者は、100万画素の解像度は必要ないかもしれないという理由で、この議論に異を唱えるかもしれない。しかし、10万画素で済ませられるかもしれないとしても、大きさ1000の隠れ層は、画像のよい表現を学習するのに必要な隠れユニットの数をひどく過小に見積もっているので、実用的なシステムではやはり何十億ものパラメータが必要になる。さらに、それほど多くのパラメータを当てはめて分類器を学習するには、膨大なデータセットを集める必要があるかもしれない。それでも今日、人間もコンピュータも猫と犬をかなりうまく見分けられ、こうした直観と矛盾しているように見える。それは、画像には、人間にも機械学習のモデルにも同じように活用できる豊かな構造があるからである。畳み込みニューラルネットワーク(CNN)は、自然な画像の既知の構造の一部を活用するために機械学習が取り入れた、創造的なやり方の一つである。