プリンキピア

第4章分類のための線形ニューラルネットワーク

4.6.3. Statistical Learning Theory4.6.3 統計的学習理論

Put simply, test sets are all that we really have, and yet this fact seems strangely unsatisfying. First, we seldom possess a true test set—unless we are the ones creating the dataset, someone else has probably already evaluated their own classifier on our ostensible “test set”. And even when we have first dibs, we soon find ourselves frustrated, wishing we could evaluate our subsequent modeling attempts without the gnawing feeling that we cannot trust our numbers. Moreover, even a true test set can only tell us post hoc whether a classifier has in fact generalized to the population, not whether we have any reason to expect a priori that it should generalize.
英語のヒント
簡単に言えば、実際に手元にあるのはテスト集合だけなのだが、この事実は妙に物足りなく感じられる。第一に、真のテスト集合をもっていることはめったにない。自分たちがデータセットを作る側でないかぎり、ほかの誰かが、表向きは「テスト集合」であるものの上で、自分の分類器をおそらくすでに評価している。そして、最初に使う権利があるときでさえ、すぐに不満を覚えることになる。自分の数字を信用できないという、むしばむような感覚なしに、その後のモデリングの試みを評価できたらいいのにと願うのである。さらに、真のテスト集合でさえ、分類器が実際に母集団へ汎化したかどうかを事後に教えてくれるだけで、それが汎化するはずだと事前に期待する理由があるかどうかは教えてくれない。
With these misgivings in mind, you might now be sufficiently primed to see the appeal of statistical learning theory, the mathematical subfield of machine learning whose practitioners aim to elucidate the fundamental principles that explain why/when models trained on empirical data can/will generalize to unseen data. One of the primary aims of statistical learning researchers has been to bound the generalization gap, relating the properties of the model class to the number of samples in the dataset.
英語のヒント
こうした不安を念頭に置けば、統計的学習理論の魅力がわかる下地が十分に整ったかもしれない。統計的学習理論とは機械学習の数学的な下位分野で、その担い手は、経験的なデータで訓練されたモデルが、なぜ・いつ、見たことのないデータへ汎化できるのか・汎化するのかを説明する基本原理を明らかにしようとしている。統計的学習の研究者の主な目的の一つは、モデルのクラスの性質をデータセットの標本数と結びつけて、汎化ギャップに界を与えることだった。
Learning theorists aim to bound the difference between the empirical error ϵ𝒮(f𝒮) of a learned classifier f𝒮, both trained and evaluated on the training set 𝒮, and the true error ϵ(f𝒮) of that same classifier on the underlying population. This might look similar to the evaluation problem that we just addressed but there is a major difference. Earlier, the classifier f was fixed and we only needed a dataset for evaluative purposes. And indeed, any fixed classifier does generalize: its error on a (previously unseen) dataset is an unbiased estimate of the population error. But what can we say when a classifier is trained and evaluated on the same dataset? Can we ever be confident that the training error will be close to the testing error?
英語のヒント
学習理論家は、訓練集合𝒮で訓練も評価もされた、学習済みの分類器f𝒮の経験誤差ϵ𝒮(f𝒮)と、背後にある母集団でのその同じ分類器の真の誤差ϵ(f𝒮)との差に、界を与えようとする。これは、さっき扱った評価の問題に似て見えるかもしれないが、大きな違いがある。先ほどは分類器fが固定されていて、評価のためにデータセットが必要なだけだった。そして実際、固定した分類器はどれも確かに汎化する。(それまで見たことのない)データセットでのその誤差は、母集団誤差の不偏推定値である。しかし、分類器が同じデータセットで訓練され評価されるとき、何が言えるだろうか。訓練誤差がテスト誤差に近くなると確信できることなど、そもそもあるのだろうか。
Suppose that our learned classifier f𝒮 must be chosen from some pre-specified set of functions ℱ. Recall from our discussion of test sets that while it is easy to estimate the error of a single classifier, things get hairy when we begin to consider collections of classifiers. Even if the empirical error of any one (fixed) classifier will be close to its true error with high probability, once we consider a collection of classifiers, we need to worry about the possibility that just one of them will receive a badly estimated error. The worry is that we might pick such a classifier and thereby grossly underestimate the population error. Moreover, even for linear models, because their parameters are continuously valued, we are typically choosing from an infinite class of functions (|ℱ|=∞).
英語のヒント
学習済みの分類器f𝒮は、あらかじめ指定された関数の集合ℱから選ばなければならないとしよう。テスト集合についての議論から、一つの分類器の誤差を推定するのは簡単だが、分類器の集まりを考え始めると事情がこじれることを思い出してほしい。どの一つの(固定した)分類器の経験誤差も高い確率で真の誤差に近いとしても、分類器の集まりを考えたとたん、そのうちのたった一つがひどく誤って推定された誤差を受け取る可能性を心配しなければならなくなる。心配なのは、そのような分類器を選んでしまい、その結果、母集団誤差をひどく過小評価してしまうかもしれないことである。さらに、線形モデルでさえ、パラメータは連続的な値をとるので、ふつうは関数の無限のクラス(|ℱ|=∞)から選んでいることになる。
One ambitious solution to the problem is to develop analytic tools for proving uniform convergence, i.e., that with high probability, the empirical error rate for every classifier in the class f∈ℱ will simultaneously converge to its true error rate. In other words, we seek a theoretical principle that would allow us to state that with probability at least 1−δ (for some small δ) no classifier’s error rate ϵ(f) (among all classifiers in the class ℱ) will be misestimated by more than some small amount α. Clearly, we cannot make such statements for all model classes ℱ. Recall the class of memorization machines that always achieve empirical error 0 but never outperform random guessing on the underlying population.
英語のヒント
この問題への野心的な解決策の一つは、一様収束を証明するための解析的な道具を開発することである。つまり、高い確率で、クラスf∈ℱのすべての分類器の経験誤り率が、同時にそれぞれの真の誤り率に収束することを証明するのである。言い換えれば、少なくとも1−δの確率で(ある小さなδについて)、(クラスℱのすべての分類器のうち)どの分類器の誤り率ϵ(f)も、ある小さな量αを超えて誤って推定されることはない、と述べられるようにする理論的な原理を求める。明らかに、すべてのモデルのクラスℱについてこうしたことを述べることはできない。いつも経験誤差0を達成するが、背後にある母集団では当てずっぽうに決して勝たない、丸暗記マシンのクラスを思い出してほしい。
In a sense the class of memorizers is too flexible. No such a uniform convergence result could possibly hold. On the other hand, a fixed classifier is useless—it generalizes perfectly, but fits neither the training data nor the test data. The central question of learning has thus historically been framed as a trade-off between more flexible (higher variance) model classes that better fit the training data but risk overfitting, versus more rigid (higher bias) model classes that generalize well but risk underfitting. A central question in learning theory has been to develop the appropriate mathematical analysis to quantify where a model sits along this spectrum, and to provide the associated guarantees.
英語のヒント
ある意味で、丸暗記するもののクラスは柔軟すぎる。そのような一様収束の結果が成り立つことはまずありえない。一方で、固定した分類器は役に立たない。完璧に汎化するが、訓練データにもテストデータにも当てはまらないのである。こうして学習の中心的な問いは、歴史的に、訓練データによりよく当てはまるが過学習の危険を冒す、より柔軟な(分散の大きい)モデルのクラスと、よく汎化するが未学習の危険を冒す、より硬直した(バイアスの大きい)モデルのクラスとのトレードオフとして組み立てられてきた。学習理論の中心的な問いは、モデルがこの連続体のどこに位置するかを数値で表す適切な数学的分析を開発し、それに伴う保証を与えることだった。
In a series of seminal papers, Vapnik and Chervonenkis extended the theory on the convergence of relative frequencies to more general classes of functions (Vapnik and Chervonenkis, 1964, Vapnik and Chervonenkis, 1968, Vapnik and Chervonenkis, 1971, Vapnik and Chervonenkis, 1981, Vapnik and Chervonenkis, 1991, Vapnik and Chervonenkis, 1974). One of the key contributions of this line of work is the Vapnik–Chervonenkis (VC) dimension, which measures (one notion of) the complexity (flexibility) of a model class. Moreover, one of their key results bounds the difference between the empirical error and the population error as a function of the VC dimension and the number of samples:
英語のヒント
一連の画期的な論文で、VapnikとChervonenkisは、相対頻度の収束についての理論を、より一般的な関数のクラスへと拡張した(Vapnik and Chervonenkis, 1964、Vapnik and Chervonenkis, 1968、Vapnik and Chervonenkis, 1971、Vapnik and Chervonenkis, 1981、Vapnik and Chervonenkis, 1991、Vapnik and Chervonenkis, 1974)。この一連の研究の鍵となる貢献の一つは、Vapnik–Chervonenkis(VC)次元である。これは、モデルのクラスの複雑さ(柔軟さ)を(一つの見方で)測るものである。さらに、彼らの鍵となる結果の一つは、経験誤差と母集団誤差の差に、VC次元と標本数の関数として界を与える。
P(R[p,f]−Remp[𝐗,𝐘,f]<α)≥1−δ  for  α≥c(VC−log⁡δ)/n.(4.6.4)
Here δ>0 is the probability that the bound is violated, α is the upper bound on the generalization gap, and n is the dataset size. Lastly, c>0 is a constant that depends only on the scale of the loss that can be incurred. One use of the bound might be to plug in desired values of δ and α to determine how many samples to collect. The VC dimension quantifies the largest number of data points for which we can assign any arbitrary (binary) labeling and for each find some model f in the class that agrees with that labeling. For example, linear models on d-dimensional inputs have VC dimension d+1. It is easy to see that a line can assign any possible labeling to three points in two dimensions, but not to four. Unfortunately, the theory tends to be overly pessimistic for more complex models and obtaining this guarantee typically requires far more examples than are actually needed to achieve the desired error rate. Note also that fixing the model class and δ, our error rate again decays with the usual 𝒪(1/n) rate. It seems unlikely that we could do better in terms of n. However, as we vary the model class, VC dimension can present a pessimistic picture of the generalization gap.
英語のヒント
ここでδ>0は界が破られる確率、αは汎化ギャップの上界、nはデータセットの大きさである。最後に、c>0は、こうむりうる損失の大きさの尺度だけに依存する定数である。この界の使い道の一つは、望むδとαの値を代入して、標本をいくつ集めればよいかを決めることだろう。VC次元は、どんな任意の(二値の)ラベル付けを割り当てても、そのそれぞれについて、そのラベル付けと一致するモデルfをクラスの中に見つけられるような、データ点の最大の数を数値で表す。たとえば、d次元の入力に対する線形モデルのVC次元はd+1である。2次元の三つの点には直線でどんなラベル付けでも割り当てられるが、四つの点ではそうはいかないことは、簡単にわかる。残念ながら、この理論はより複雑なモデルについては悲観的すぎる傾向があり、この保証を得るには、望む誤り率を達成するのに実際に必要な数よりもはるかに多くの事例がふつう必要になる。また、モデルのクラスとδを固定すると、誤り率はやはりおなじみの𝒪(1/n)の速さで減っていくことにも注意してほしい。nについて、これよりうまくやれるとは考えにくい。しかし、モデルのクラスを変えていくと、VC次元は汎化ギャップについて悲観的な姿を示すことがある。