第5章多層パーセプトロン
5.5.2. Inspiration from Nonparametrics5.5.2 ノンパラメトリックからの着想
Approaching deep learning for the first time, it is tempting to think of them as parametric models. After all, the models do have millions of parameters. When we update the models, we update their parameters. When we save the models, we write their parameters to disk. However, mathematics and computer science are riddled with counterintuitive changes of perspective, and surprising isomorphisms between seemingly different problems. While neural networks clearly have parameters, in some ways it can be more fruitful to think of them as behaving like nonparametric models. So what precisely makes a model nonparametric? While the name covers a diverse set of approaches, one common theme is that nonparametric methods tend to have a level of complexity that grows as the amount of available data grows.
英語のヒント
深層学習に初めて取り組むときは、それをパラメトリックなモデルとして考えたくなる。何しろ、モデルには実際に何百万ものパラメータがある。モデルを更新するときにはパラメータを更新し、モデルを保存するときにはパラメータをディスクに書き込む。しかし、数学と計算機科学には、直観に反する見方の転換や、一見異なる問題のあいだの驚くべき同型が満ちている。ニューラルネットワークには明らかにパラメータがあるが、ある意味では、ノンパラメトリックなモデルのようにふるまうものとして考えるほうが実り多いことがある。では、正確には何がモデルをノンパラメトリックにするのか。この名前は多様な手法を含むが、共通する主題の一つは、ノンパラメトリックな手法は、使えるデータの量が増えるにつれて複雑さの水準も増えていく傾向があることである。
Perhaps the simplest example of a nonparametric model is the -nearest neighbor algorithm (we will cover more nonparametric models later, for example in Section 11.2). Here, at training time, the learner simply memorizes the dataset. Then, at prediction time, when confronted with a new point , the learner looks up the nearest neighbors (the points that minimize some distance ). When , this algorithm is called -nearest neighbors, and the algorithm will always achieve a training error of zero. That however, does not mean that the algorithm will not generalize. In fact, it turns out that under some mild conditions, the 1-nearest neighbor algorithm is consistent (eventually converging to the optimal predictor).
英語のヒント
ノンパラメトリックなモデルのおそらく最も単純な例は、近傍法のアルゴリズムである(ノンパラメトリックなモデルについては、後で、たとえば11.2節でもっと扱う)。ここでは、訓練時に、学習器は単にデータセットを丸暗記する。そして予測時に、新しい点に出会うと、学習器は個の最近傍(ある距離を最小にする個の点)を探す。のとき、このアルゴリズムは近傍法と呼ばれ、いつも訓練誤差0を達成する。しかし、それはこのアルゴリズムが汎化しないという意味ではない。実際、いくつかの穏やかな条件のもとで、1近傍法のアルゴリズムは一致性をもつ(最終的には最適な予測器に収束する)ことがわかっている。
Note that -nearest neighbor requires that we specify some distance function , or equivalently, that we specify some vector-valued basis function for featurizing our data. For any choice of the distance metric, we will achieve zero training error and eventually reach an optimal predictor, but different distance metrics encode different inductive biases and with a finite amount of available data will yield different predictors. Different choices of the distance metric represent different assumptions about the underlying patterns and the performance of the different predictors will depend on how compatible the assumptions are with the observed data.
英語のヒント
近傍法では、ある距離関数を指定すること、あるいは同じことだが、データを特徴量にするためのあるベクトル値の基底関数を指定することが必要である。どんな距離の尺度を選んでも、訓練誤差0を達成し、最終的には最適な予測器に到達するが、異なる距離の尺度は異なる帰納バイアスを内に含み、使えるデータの量が有限なら異なる予測器を生む。距離の尺度の選び方の違いは、背後にあるパターンについての仮定の違いを表し、さまざまな予測器の性能は、その仮定が観測データとどれだけ合っているかによって決まる。
In a sense, because neural networks are over-parametrized, possessing many more parameters than are needed to fit the training data, they tend to interpolate the training data (fitting it perfectly) and thus behave, in some ways, more like nonparametric models. More recent theoretical research has established deep connection between large neural networks and nonparametric methods, notably kernel methods. In particular, Jacot et al. (2018) demonstrated that in the limit, as multilayer perceptrons with randomly initialized weights grow infinitely wide, they become equivalent to (nonparametric) kernel methods for a specific choice of the kernel function (essentially, a distance function), which they call the neural tangent kernel. While current neural tangent kernel models may not fully explain the behavior of modern deep networks, their success as an analytical tool underscores the usefulness of nonparametric modeling for understanding the behavior of over-parametrized deep networks.
英語のヒント
ある意味で、ニューラルネットワークは過剰にパラメータ化されていて、訓練データに当てはめるのに必要な数よりはるかに多くのパラメータをもつので、訓練データを補間し(完璧に当てはまり)、したがって、いくつかの点でノンパラメトリックなモデルのようにふるまう傾向がある。もっと最近の理論研究は、大きなニューラルネットワークとノンパラメトリックな手法、特にカーネル法とのあいだの深いつながりを確立した。とりわけ、Jacot et al. (2018)は、重みを無作為に初期化した多層パーセプトロンの幅を無限に広げていく極限で、それがカーネル関数(本質的には距離関数)の特定の選び方についての(ノンパラメトリックな)カーネル法と同等になることを示した。彼らはこのカーネルをニューラルタンジェントカーネルと呼ぶ。今のニューラルタンジェントカーネルのモデルは、現代の深いネットワークのふるまいを完全には説明しないかもしれないが、解析の道具としての成功は、過剰にパラメータ化された深いネットワークのふるまいを理解するうえで、ノンパラメトリックなモデリングが役に立つことを際立たせている。