第2章準備
2.6.7. Discussion2.6.7 考察
In machine learning, there are many things to be uncertain about! We can be uncertain about the value of a label given an input. We can be uncertain about the estimated value of a parameter. We can even be uncertain about whether data arriving at deployment is even from the same distribution as the training data.
英語のヒント
機械学習では、不確かなことがたくさんある。入力が与えられたときのラベルの値が不確かなこともある。パラメータの推定値が不確かなこともある。運用時に届くデータが、訓練データと同じ分布から来ているのかどうかさえ不確かなこともある。
By aleatoric uncertainty, we mean uncertainty that is intrinsic to the problem, and due to genuine randomness unaccounted for by the observed variables. By epistemic uncertainty, we mean uncertainty over a model’s parameters, the sort of uncertainty that we can hope to reduce by collecting more data. We might have epistemic uncertainty concerning the probability that a coin turns up heads, but even once we know this probability, we are left with aleatoric uncertainty about the outcome of any future toss. No matter how long we watch someone tossing a fair coin, we will never be more or less than 50% certain that the next toss will come up heads. These terms come from mechanical modeling, (see e.g., Der Kiureghian and Ditlevsen (2009) for a review on this aspect of uncertainty quantification). It is worth noting, however, that these terms constitute a slight abuse of language. The term epistemic refers to anything concerning knowledge and thus, in the philosophical sense, all uncertainty is epistemic.
英語のヒント
偶然的不確かさとは、問題に本来備わった不確かさ、観測された変数では説明されない本当の無作為性による不確かさのことである。認識的不確かさとは、モデルのパラメータについての不確かさ、つまり、データをもっと集めれば減らせると期待できる種類の不確かさのことである。硬貨が表を出す確率については認識的不確かさがあるかもしれないが、その確率がわかったとしても、将来のどの一回の投げの結果についても偶然的不確かさが残る。誰かが公正な硬貨を投げるのをどれほど長く見ていても、次の投げで表が出ることを50%より確かにも不確かにも思えるようにはならない。これらの用語は機械のモデル化から来ている(不確かさの定量化のこの側面についての総説として、たとえばDer Kiureghian and Ditlevsen (2009)を見てほしい)。ただし、これらの用語は言葉のちょっとした乱用であることは注意しておく価値がある。認識的という言葉は知識にかかわるものすべてを指すので、哲学的な意味では、不確かさはすべて認識的である。
We saw that sampling data from some unknown probability distribution can provide us with information that can be used to estimate the parameters of the data generating distribution. That said, the rate at which this is possible can be quite slow. In our coin tossing example (and many others) we can do no better than to design estimators that converge at a rate of , where is the sample size (e.g., the number of tosses). This means that by going from 10 to 1000 observations (usually a very achievable task) we see a tenfold reduction of uncertainty, whereas the next 1000 observations help comparatively little, offering only a 1.41 times reduction. This is a persistent feature of machine learning: while there are often easy gains, it takes a very large amount of data, and often with it an enormous amount of computation, to make further gains. For an empirical review of this fact for large scale language models see Revels et al. (2016).
英語のヒント
未知の確率分布からデータをサンプリングすると、データを生み出す分布のパラメータを推定するのに使える情報が得られることを見た。とはいえ、それができる速さはかなり遅いことがある。硬貨投げの例(やほかの多くの例)では、の割合で収束する推定量を設計する以上のことはできない。ここではサンプルの大きさ(たとえば投げた回数)である。これは、観測を10個から1000個に増やすと(普通はとても達成しやすい作業である)不確かさが10分の1になるのに対して、次の1000個の観測は比較的わずかしか役に立たず、1.41分の1にしか減らないことを意味する。これは機械学習の根強い特徴である。たやすい改善はよくあるが、さらに改善するには非常に大量のデータと、しばしばそれに伴う膨大な計算が必要になる。大規模な言語モデルについてのこの事実の経験的な総説は、Revels et al. (2016)を見てほしい。
We also sharpened our language and tools for statistical modeling. In the process of that we learned about conditional probabilities and about one of the most important equations in statistics—Bayes’ theorem. It is an effective tool for decoupling information conveyed by data through a likelihood term that addresses how well observations match a choice of parameters , and a prior probability which governs how plausible a particular choice of was in the first place. In particular, we saw how this rule can be applied to assign probabilities to diagnoses, based on the efficacy of the test and the prevalence of the disease itself (i.e., our prior).
英語のヒント
統計モデリングのための言葉と道具にも磨きをかけた。その過程で、条件付き確率と、統計学で最も重要な式の一つであるベイズの定理について学んだ。これは、データが伝える情報を、観測がパラメータの選択にどれほどよく合うかを扱う尤度の項と、の特定の選択がそもそもどれほどもっともらしかったかを支配する事前確率とに切り分ける効果的な道具である。特に、検査の有効性と病気そのものの出現率(つまり事前分布)にもとづいて、診断に確率を割り当てるのにこの規則をどう当てはめるかを見た。
Lastly, we introduced a first set of nontrivial questions about the effect of a specific probability distribution, namely expectations and variances. While there are many more than just linear and quadratic expectations for a probability distribution, these two already provide a good deal of knowledge about the possible behavior of the distribution. For instance, Chebyshev’s inequality states that , where is the expectation, is the variance of the distribution, and is a confidence parameter of our choosing. It tells us that draws from a distribution lie with at least 50% probability within a interval centered on the expectation.
英語のヒント
最後に、特定の確率分布の効果についての、最初の自明でない問いの組、つまり期待値と分散を紹介した。確率分布には、線形や2次の期待値だけでなく、もっと多くのものがあるが、この二つだけでも、分布のありうる振る舞いについてかなり多くの知識が得られる。たとえばチェビシェフの不等式は、が成り立つことを述べる。ここでは期待値、は分布の分散、は自分で選ぶ信頼度のパラメータである。これは、分布からの取り出しが、少なくとも50%の確率で、期待値を中心とする区間に入ることを教えてくれる。