第4章分類のための線形ニューラルネットワーク
4.7. Environment and Distribution Shift4.7 環境と分布シフト
In the previous sections, we worked through a number of hands-on applications of machine learning, fitting models to a variety of datasets. And yet, we never stopped to contemplate either where data came from in the first place or what we ultimately plan to do with the outputs from our models. Too often, machine learning developers in possession of data rush to develop models without pausing to consider these fundamental issues.
英語のヒント
これまでの節では、機械学習を実際に使う応用をいくつもこなし、さまざまなデータセットにモデルを当てはめてきた。それでも、そもそもデータがどこから来たのか、そしてモデルの出力を最終的に何に使うつもりなのかについて、立ち止まって考えることは一度もなかった。データを手にした機械学習の開発者は、こうした根本的な問題を考えるために立ち止まることなく、あわててモデルを開発してしまうことがあまりにも多い。
Many failed machine learning deployments can be traced back to this failure. Sometimes models appear to perform marvelously as measured by test set accuracy but fail catastrophically in deployment when the distribution of data suddenly shifts. More insidiously, sometimes the very deployment of a model can be the catalyst that perturbs the data distribution. Say, for example, that we trained a model to predict who will repay rather than default on a loan, finding that an applicant’s choice of footwear was associated with the risk of default (Oxfords indicate repayment, sneakers indicate default). We might be inclined thereafter to grant a loan to any applicant wearing Oxfords and to deny all applicants wearing sneakers.
英語のヒント
機械学習の導入の失敗の多くは、この落ち度にさかのぼることができる。テスト集合での正解率で測ればモデルがすばらしい性能を出しているように見えても、データの分布が急に変わると、実地での運用で壊滅的に失敗することがある。もっとたちの悪いことに、モデルを導入すること自体が、データの分布をかき乱すきっかけになることもある。たとえば、ローンを返済するのは誰で、債務不履行に陥るのは誰かを予測するモデルを訓練し、申込者の履物の選び方が債務不履行の危険と結びついていることを見いだしたとしよう(オックスフォードシューズは返済を、スニーカーは債務不履行を示す)。するとその後は、オックスフォードシューズを履いた申込者には誰にでもローンを認め、スニーカーを履いた申込者はみな断りたくなるかもしれない。
In this case, our ill-considered leap from pattern recognition to decision-making and our failure to critically consider the environment might have disastrous consequences. For starters, as soon as we began making decisions based on footwear, customers would catch on and change their behavior. Before long, all applicants would be wearing Oxfords, without any coincident improvement in credit-worthiness. Take a minute to digest this because similar issues abound in many applications of machine learning: by introducing our model-based decisions to the environment, we might break the model.
英語のヒント
この場合、パターン認識から意思決定への軽率な飛躍と、環境を批判的に考えなかったことが、悲惨な結果を招くかもしれない。手始めに、履物にもとづいて判断し始めたとたん、客はそれに気づいて行動を変えるだろう。ほどなく、申込者はみなオックスフォードシューズを履いているだろうが、それに伴って信用力が上がるわけではまったくない。少し時間をとって、このことをよく飲み込んでほしい。機械学習の多くの応用で、同じような問題がいくらでもあるからである。モデルにもとづく判断を環境に持ち込むことで、モデルを壊してしまうかもしれないのである。
While we cannot possibly give these topics a complete treatment in one section, we aim here to expose some common concerns, and to stimulate the critical thinking required to detect such situations early, mitigate damage, and use machine learning responsibly. Some of the solutions are simple (ask for the “right” data), some are technically difficult (implement a reinforcement learning system), and others require that we step outside the realm of statistical prediction altogether and grapple with difficult philosophical questions concerning the ethical application of algorithms.
英語のヒント
一つの節でこれらの話題を完全に扱うことはとてもできないが、ここでは、よくある懸念のいくつかを明らかにし、こうした状況を早く見つけ、被害を和らげ、機械学習を責任をもって使うのに必要な批判的思考を促すことをめざす。解決策のなかには単純なもの(「正しい」データを求める)もあれば、技術的に難しいもの(強化学習のシステムを実装する)もあり、さらには統計的予測の領域からすっかり出て、アルゴリズムの倫理的な適用にかかわる難しい哲学的な問いと格闘しなければならないものもある。