第6章構築者のための手引き
6. Builders’ Guide6 構築者のための手引き
Alongside giant datasets and powerful hardware, great software tools have played an indispensable role in the rapid progress of deep learning. Starting with the pathbreaking Theano library released in 2007, flexible open-source tools have enabled researchers to rapidly prototype models, avoiding repetitive work when recycling standard components while still maintaining the ability to make low-level modifications. Over time, deep learning’s libraries have evolved to offer increasingly coarse abstractions. Just as semiconductor designers went from specifying transistors to logical circuits to writing code, neural networks researchers have moved from thinking about the behavior of individual artificial neurons to conceiving of networks in terms of whole layers, and now often design architectures with far coarser blocks in mind.
英語のヒント
巨大なデータセットと強力なハードウェアとともに、すぐれたソフトウェアの道具は、深層学習の急速な進歩に欠かせない役割を果たしてきた。2007年に公開された画期的なTheanoライブラリに始まり、柔軟なオープンソースの道具のおかげで、研究者はモデルの試作を素早く行えるようになった。標準的な部品を使い回すときの繰り返しの作業を避けつつ、低水準の修正を加える能力も保てるのである。時がたつにつれて、深層学習のライブラリは、ますます粗い(大きな単位の)抽象化を提供するように発展してきた。半導体の設計者が、トランジスタを指定することから論理回路へ、さらにコードを書くことへと移っていったのとちょうど同じように、ニューラルネットワークの研究者は、個々の人工ニューロンのふるまいを考えることから、層全体という単位でネットワークを構想することへと移り、今では、はるかに粗いブロックを念頭に置いて構造を設計することが多い。
So far, we have introduced some basic machine learning concepts, ramping up to fully-functional deep learning models. In the last chapter, we implemented each component of an MLP from scratch and even showed how to leverage high-level APIs to roll out the same models effortlessly. To get you that far that fast, we called upon the libraries, but skipped over more advanced details about how they work. In this chapter, we will peel back the curtain, digging deeper into the key components of deep learning computation, namely model construction, parameter access and initialization, designing custom layers and blocks, reading and writing models to disk, and leveraging GPUs to achieve dramatic speedups. These insights will move you from end user to power user, giving you the tools needed to reap the benefits of a mature deep learning library while retaining the flexibility to implement more complex models, including those you invent yourself! While this chapter does not introduce any new models or datasets, the advanced modeling chapters that follow rely heavily on these techniques.
英語のヒント
ここまで、機械学習の基本的な概念をいくつか紹介し、十分に機能する深層学習のモデルまで段階的に進んできた。前の章では、MLPの各部品をゼロから実装し、さらに高水準のAPIを活用して同じモデルを苦もなく作り出す方法まで示した。そこまで速く進むために、ライブラリに頼ったが、それがどう働くかについてのもっと高度な細部は飛ばした。この章では、幕を引き上げて、深層学習の計算の鍵となる部品、すなわちモデルの構築、パラメータへのアクセスと初期化、独自の層とブロックの設計、モデルのディスクへの読み書き、そして劇的な高速化を達成するためのGPUの活用に、さらに深く踏み込む。こうした見通しによって、あなたは単なる利用者から上級の利用者へと進み、成熟した深層学習ライブラリの恩恵を受けながら、自分で考案したものを含め、もっと複雑なモデルを実装する柔軟性も保つのに必要な道具を手に入れる!この章では新しいモデルやデータセットは紹介しないが、続く高度なモデリングの章は、これらの手法に大きく頼っている。