プリンキピア

第13章計算の性能

13.4. Hardware13.4 ハードウェア

Building systems with great performance requires a good understanding of the algorithms and models to capture the statistical aspects of the problem. At the same time it is also indispensable to have at least a modicum of knowledge of the underlying hardware. The current section is no substitute for a proper course on hardware and system design. Instead, it might serve as a starting point for understanding why some algorithms are more efficient than others and how to achieve good throughput. A good design can easily make a difference of an order of magnitude and, in turn, this can make the difference between being able to train a network (e.g., in a week) and not at all (in 3 months, thus missing the deadline). We will start by looking at computers. Then we will zoom in to look more carefully at CPUs and GPUs. Lastly we zoom out to review how multiple computers are connected in a server center or in the cloud.
英語のヒント
高い性能のシステムを作るには、問題の統計的な面をとらえるためのアルゴリズムとモデルをよく理解している必要がある。同時に、土台にあるハードウェアについて少なくとも最低限の知識をもつことも欠かせない。この節は、ハードウェアとシステム設計のきちんとした講義の代わりにはならない。むしろ、なぜあるアルゴリズムがほかより効率的なのか、どうすればよいスループットを達成できるのかを理解するための出発点になるかもしれない。よい設計は簡単に1桁の差を生み、ひいては、ネットワークを訓練できる(たとえば1週間で)か、まったくできない(3か月かかり、締め切りに間に合わない)かの差を生みうる。まずコンピュータを見ることから始める。次に、拡大してCPUとGPUをもっと注意深く見る。最後に、縮小して、サーバーセンターやクラウドで複数のコンピュータがどうつながっているかを振り返る。
Image omitted because its reuse rights could not be verified.権利の確認ができないため画像を割愛。
Fig. 13.4.1図13.4.1
Latency Numbers that every programmer should know.
英語のヒント
すべてのプログラマが知っておくべき遅延の数字。
Impatient readers may be able to get by with Fig. 13.4.1. It is taken from Colin Scott’s interactive post that gives a good overview of the progress over the past decade. The original numbers are due to Jeff Dean’s Stanford talk from 2010. The discussion below explains some of the rationale for these numbers and how they can guide us in designing algorithms. The discussion below is very high level and cursory. It is clearly no substitute for a proper course but rather just meant to provide enough information for a statistical modeler to make suitable design decisions. For an in-depth overview of computer architecture we refer the reader to (Hennessy and Patterson, 2011) or a recent course on the subject, such as the one by Arste Asanovic.
英語のヒント
せっかちな読者は図13.4.1で間に合うかもしれない。これは、過去10年の進歩をよく概観できるColin Scottの対話的な記事から取ったものである。元の数字は、Jeff Deanの2010年のスタンフォードでの講演による。以下の議論では、これらの数字の根拠のいくつかと、それらがアルゴリズムの設計の指針になる仕方を説明する。以下の議論はとても大まかで、ざっとしたものである。明らかに、きちんとした講義の代わりにはならず、統計的なモデルを作る人が適切な設計の判断を下すのに十分な情報を与えることだけを意図している。コンピュータのアーキテクチャの掘り下げた概観については、(Hennessy and Patterson, 2011)や、このテーマについての最近の講義、たとえばArste Asanovicによるものを参照。