プリンキピア

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

4.7.4. A Taxonomy of Learning Problems4.7.4 学習問題の分類

Armed with knowledge about how to deal with changes in distributions, we can now consider some other aspects of machine learning problem formulation.
英語のヒント
分布の変化にどう対処するかについての知識を身につけたので、これで、機械学習の問題の定式化のほかの面をいくつか考えられる。

4.7.4.1. Batch Learning4.7.4.1 バッチ学習

In batch learning, we have access to training features and labels {(𝐱1,y1),…,(𝐱n,yn)}, which we use to train a model f(𝐱). Later on, we deploy this model to score new data (𝐱,y) drawn from the same distribution. This is the default assumption for any of the problems that we discuss here. For instance, we might train a cat detector based on lots of pictures of cats and dogs. Once we have trained it, we ship it as part of a smart catdoor computer vision system that lets only cats in. This is then installed in a customer’s home and is never updated again (barring extreme circumstances).
英語のヒント
バッチ学習では、訓練用の特徴量とラベル{(𝐱1,y1),…,(𝐱n,yn)}に手が届き、それを使ってモデルf(𝐱)を訓練する。その後、同じ分布から取り出された新しいデータ(𝐱,y)に得点を付けるために、このモデルを展開する。これは、ここで論じるどの問題についても既定の仮定である。たとえば、猫と犬のたくさんの写真にもとづいて、猫の検出器を訓練するかもしれない。訓練が済んだら、猫だけを入れる賢い猫用ドアのコンピュータビジョンシステムの一部として出荷する。そしてそれは客の家に取り付けられ、二度と更新されることはない(極端な事情がないかぎり)。

4.7.4.2. Online Learning4.7.4.2 オンライン学習

Now imagine that the data (𝐱i,yi) arrives one sample at a time. More specifically, assume that we first observe 𝐱i, then we need to come up with an estimate f(𝐱i). Only once we have done this do we observe yi and so receive a reward or incur a loss, given our decision. Many real problems fall into this category. For example, we need to predict tomorrow’s stock price, which allows us to trade based on that estimate and at the end of the day we find out whether our estimate made us a profit. In other words, in online learning, we have the following cycle where we are continuously improving our model given new observations:
英語のヒント
今度は、データ(𝐱i,yi)が一度に一つの標本ずつ届くと想像しよう。もっと具体的に言えば、まず𝐱iを観測し、それから推定値f(𝐱i)を出さなければならないとする。それをして初めてyiを観測し、その判断に応じて報酬を受けるか損失をこうむる。現実の問題の多くは、この種類に入る。たとえば、明日の株価を予測する必要があり、その推定値にもとづいて取引でき、一日の終わりに、推定値が利益をもたらしたかどうかがわかる。言い換えれば、オンライン学習では、新しい観測を受けてモデルを絶えず改善していく、次のような循環がある。
model ft⟶data 𝐱t⟶estimate ft(𝐱t)⟶observation yt⟶loss l(yt,ft(𝐱t))⟶model ft+1(4.7.11)

4.7.4.3. Bandits4.7.4.3 バンディット

Bandits are a special case of the problem above. While in most learning problems we have a continuously parametrized function f where we want to learn its parameters (e.g., a deep network), in a bandit problem we only have a finite number of arms that we can pull, i.e., a finite number of actions that we can take. It is not very surprising that for this simpler problem stronger theoretical guarantees in terms of optimality can be obtained. We list it mainly since this problem is often (confusingly) treated as if it were a distinct learning setting.
英語のヒント
バンディットは、上の問題の特別な場合である。ほとんどの学習問題では、パラメータを学習したい、連続的にパラメータ化された関数f(たとえば深いネットワーク)があるのに対して、バンディット問題では、引ける腕の数、つまりとれる行動の数が有限であるだけである。この単純な問題では、最適性の点でより強い理論的な保証が得られるのも、それほど驚くことではない。ここで挙げるのは主に、この問題が(紛らわしいことに)まるで別個の学習の設定であるかのように扱われることが多いからである。

4.7.4.4. Control4.7.4.4 制御

In many cases the environment remembers what we did. Not necessarily in an adversarial manner but it will just remember and the response will depend on what happened before. For instance, a coffee boiler controller will observe different temperatures depending on whether it was heating the boiler previously. PID (proportional-integral-derivative) controller algorithms are a popular choice there. Likewise, a user’s behavior on a news site will depend on what we showed them previously (e.g., they will read most news only once). Many such algorithms form a model of the environment in which they act so as to make their decisions appear less random. Recently, control theory (e.g., PID variants) has also been used to automatically tune hyperparameters to achieve better disentangling and reconstruction quality, and improve the diversity of generated text and the reconstruction quality of generated images (Shao et al., 2020).
英語のヒント
多くの場合、環境はこちらのしたことを覚えている。必ずしも敵対的なやり方でではないが、ただ覚えていて、その応答は以前に起きたことに依存する。たとえば、コーヒーボイラーの制御器は、以前にボイラーを加熱していたかどうかによって、異なる温度を観測する。そこでは、PID(比例・積分・微分)制御器のアルゴリズムがよく選ばれる。同様に、ニュースサイトでの利用者のふるまいは、以前に何を見せたかに依存する(たとえば、ほとんどのニュースは一度しか読まない)。こうしたアルゴリズムの多くは、自分の判断がそれほど無作為に見えないように、自分が働きかける環境のモデルを作る。最近では、制御理論(たとえばPIDの変種)は、ハイパーパラメータを自動で調整して、よりよいもつれの解消と再構成の品質を達成し、生成されたテキストの多様性と生成された画像の再構成の品質を高めるためにも使われている(Shao et al., 2020)。

4.7.4.5. Reinforcement Learning4.7.4.5 強化学習

In the more general case of an environment with memory, we may encounter situations where the environment is trying to cooperate with us (cooperative games, in particular for non-zero-sum games), or others where the environment will try to win. Chess, Go, Backgammon, or StarCraft are some of the cases in reinforcement learning. Likewise, we might want to build a good controller for autonomous cars. Other cars are likely to respond to the autonomous car’s driving style in nontrivial ways, e.g., trying to avoid it, trying to cause an accident, or trying to cooperate with it.
英語のヒント
記憶をもつ環境という、もっと一般的な場合には、環境がこちらと協力しようとする状況(協力ゲーム、特に非ゼロ和ゲーム)に出会うこともあれば、環境が勝とうとする状況に出会うこともある。チェス、囲碁、バックギャモン、StarCraftは、強化学習のなかの場合のいくつかである。同様に、自動運転車のためのよい制御器を作りたいこともあるだろう。ほかの車は、自動運転車の運転のしかたに、自明でないやり方で反応しそうである。たとえば、避けようとしたり、事故を起こそうとしたり、協力しようとしたりする。

4.7.4.6. Considering the Environment4.7.4.6 環境を考える

One key distinction between the different situations above is that a strategy that might have worked throughout in the case of a stationary environment, might not work throughout in an environment that can adapt. For instance, an arbitrage opportunity discovered by a trader is likely to disappear once it is exploited. The speed and manner at which the environment changes determines to a large extent the type of algorithms that we can bring to bear. For instance, if we know that things may only change slowly, we can force any estimate to change only slowly, too. If we know that the environment might change instantaneously, but only very infrequently, we can make allowances for that. These types of knowledge are crucial for the aspiring data scientist in dealing with concept shift, i.e., when the problem that is being solved can change over time.
英語のヒント
上のさまざまな状況のあいだの鍵となる違いの一つは、定常な環境の場合には終始うまくいったかもしれない戦略が、適応しうる環境では終始うまくいくとは限らないことである。たとえば、トレーダーが見つけた裁定取引の機会は、いったん利用されると消えてしまいやすい。環境が変わる速さとあり方は、使えるアルゴリズムの種類を大きく左右する。たとえば、物事がゆっくりとしか変わらないとわかっていれば、どんな推定値もゆっくりとしか変わらないように強制できる。環境が瞬時に変わりうるが、それはごくまれだとわかっていれば、それを見越しておける。こうした種類の知識は、データサイエンティストを志す人が概念シフト、つまり解こうとしている問題が時とともに変わりうる場合に対処するうえで、決定的に重要である。