プリンキピア

第3章回帰のための線形ニューラルネットワーク

3.6. Generalization3.6 汎化

Consider two college students diligently preparing for their final exam. Commonly, this preparation will consist of practicing and testing their abilities by taking exams administered in previous years. Nonetheless, doing well on past exams is no guarantee that they will excel when it matters. For instance, imagine a student, Extraordinary Ellie, whose preparation consisted entirely of memorizing the answers to previous years’ exam questions. Even if Ellie were endowed with an extraordinary memory, and thus could perfectly recall the answer to any previously seen question, she might nevertheless freeze when faced with a new (previously unseen) question. By comparison, imagine another student, Inductive Irene, with comparably poor memorization skills, but a knack for picking up patterns. Note that if the exam truly consisted of recycled questions from a previous year, Ellie would handily outperform Irene. Even if Irene’s inferred patterns yielded 90% accurate predictions, they could never compete with Ellie’s 100% recall. However, even if the exam consisted entirely of fresh questions, Irene might maintain her 90% average.
英語のヒント
期末試験に向けて熱心に準備している二人の大学生を考えよう。普通、この準備は、過去の年度に出された試験を解いて練習し、自分の力を試すことからなる。それでも、過去の試験でうまくいっても、肝心なときに優れた成績を出せる保証はない。たとえば、過去の年度の試験問題の答えを暗記することだけで準備した学生、「並外れたエリー」を想像してほしい。エリーが並外れた記憶力に恵まれ、以前に見た問題の答えなら何でも完璧に思い出せたとしても、新しい(以前に見たことのない)問題に直面すると固まってしまうかもしれない。これと比べて、暗記の力はそれに比べるとお粗末だが、パターンを見抜くこつをもつ別の学生、「帰納的なアイリーン」を想像してほしい。試験が本当に前年度の問題の使い回しだけでできていたら、エリーは楽々とアイリーンを上回るだろう。アイリーンが推し量ったパターンが90%正確な予測を出したとしても、エリーの100%の想起にはかなわない。しかし、試験がすべて新しい問題でできていても、アイリーンは平均90%を保つかもしれない。
As machine learning scientists, our goal is to discover patterns. But how can we be sure that we have truly discovered a general pattern and not simply memorized our data? Most of the time, our predictions are only useful if our model discovers such a pattern. We do not want to predict yesterday’s stock prices, but tomorrow’s. We do not need to recognize already diagnosed diseases for previously seen patients, but rather previously undiagnosed ailments in previously unseen patients. This problem—how to discover patterns that generalize—is the fundamental problem of machine learning, and arguably of all of statistics. We might cast this problem as just one slice of a far grander question that engulfs all of science: when are we ever justified in making the leap from particular observations to more general statements?
英語のヒント
機械学習の科学者としての目標は、パターンを見つけることである。しかし、本当に一般的なパターンを見つけたのであって、データを暗記しただけではないと、どうすれば確信できるだろうか。ほとんどの場合、予測が役に立つのは、モデルがそうしたパターンを見つけたときだけである。予測したいのは昨日の株価ではなく、明日の株価である。以前に見た患者のすでに診断された病気を認識する必要はなく、以前に見たことのない患者のまだ診断されていない病気を認識したいのである。この問題、つまり汎化するパターンをどう見つけるかは、機械学習の、そしておそらく統計学全体の根本的な問題である。この問題は、科学全体を飲み込む、はるかに壮大な問いの一断面にすぎないと捉えることもできる。特定の観測からより一般的な言明へと飛躍することが正当化されるのは、いったいどんなときか。
In real life, we must fit our models using a finite collection of data. The typical scales of that data vary wildly across domains. For many important medical problems, we can only access a few thousand data points. When studying rare diseases, we might be lucky to access hundreds. By contrast, the largest public datasets consisting of labeled photographs, e.g., ImageNet (Deng et al., 2009), contain millions of images. And some unlabeled image collections such as the Flickr YFC100M dataset can be even larger, containing over 100 million images (Thomee et al., 2016). However, even at this extreme scale, the number of available data points remains infinitesimally small compared to the space of all possible images at a megapixel resolution. Whenever we work with finite samples, we must keep in mind the risk that we might fit our training data, only to discover that we failed to discover a generalizable pattern.
英語のヒント
現実には、有限のデータの集まりを使ってモデルを当てはめなければならない。そのデータの典型的な規模は、分野によって大きく異なる。多くの重要な医療の問題では、数千のデータ点しか手に入らない。まれな病気を研究するときは、数百でも手に入れば幸運かもしれない。これに対して、ラベル付きの写真からなる最大級の公開データセット、たとえばImageNet(Deng et al., 2009)は、何百万枚もの画像を含む。そして、Flickr YFC100Mデータセットのようなラベルのない画像の集まりは、さらに大きく、1億枚以上の画像を含むことがある(Thomee et al., 2016)。しかし、この極端な規模でさえ、利用できるデータ点の数は、メガピクセルの解像度で考えうるすべての画像の空間に比べれば、無限に小さいままである。有限のサンプルを扱うときはいつでも、訓練データには当てはまったのに、汎化できるパターンを見つけられていなかったと後で気づくおそれがあることを心にとめておかなければならない。
The phenomenon of fitting closer to our training data than to the underlying distribution is called overfitting, and techniques for combatting overfitting are often called regularization methods. While it is no substitute for a proper introduction to statistical learning theory (see Boucheron et al. (2005), Vapnik (1998)), we will give you just enough intuition to get going. We will revisit generalization in many chapters throughout the book, exploring both what is known about the principles underlying generalization in various models, and also heuristic techniques that have been found (empirically) to yield improved generalization on tasks of practical interest.
英語のヒント
根底にある分布よりも訓練データにより近く当てはまってしまう現象を過学習といい、過学習と戦うための技術をしばしば正則化の手法という。これは統計的学習理論のきちんとした入門(Boucheron et al. (2005)、Vapnik (1998)を見よ)の代わりにはならないが、先に進むのにちょうど足りるだけの直観を与える。本を通じて多くの章で汎化に立ち戻り、さまざまなモデルの汎化の根底にある原理についてわかっていることと、実用上関心のある課題で汎化を改善することが(経験的に)わかってきた経験則的な技術の両方を探る。