プリンキピア

第18章ガウス過程

18. Gaussian Processes18 ガウス過程

Andrew Gordon Wilson (New York University and Amazon)
英語のヒント
Andrew Gordon Wilson(ニューヨーク大学、Amazon)
Gaussian processes (GPs) are ubitiquous. You have already encountered many examples of GPs without realizing it. Any model that is linear in its parameters with a Gaussian distribution over the parameters is a Gaussian process. This class spans discrete models, including random walks, and autoregressive processes, as well as continuous models, including Bayesian linear regression models, polynomials, Fourier series, radial basis functions, and even neural networks with an infinite number of hidden units. There is a running joke that “everything is a special case of a Gaussian process”.
英語のヒント
ガウス過程(GP)はいたるところにある。気づかないうちに、すでにGPの例に数多く出会っている。パラメータについて線形で、パラメータの上にガウス分布をもつモデルは、どれもガウス過程である。この種類は、ランダムウォークや自己回帰過程を含む離散的なモデルから、ベイズ線形回帰モデル、多項式、フーリエ級数、動径基底関数、さらには無限個の隠れユニットをもつニューラルネットワークを含む連続的なモデルにまで及ぶ。「すべてはガウス過程の特別な場合である」というお決まりの冗談がある。
Learning about Gaussian processes is important for three reasons: (1) they provide a function space perspective of modelling, which makes understanding a variety of model classes, including deep neural networks, much more approachable; (2) they have an extraordinary range of applications where they are state-of-the-art, including active learning, hyperparameter learning, auto-ML, and spatiotemporal regression; (3) over the last few years, algorithmic advances have made Gaussian processes increasingly scalable and relevant, harmonizing with deep learning through frameworks such as GPyTorch (Gardner et al., 2018). Indeed, GPs and and deep neural networks are not competing approaches, but highly complementary, and can be combined to great effect. These algorithmic advances are not just relevant to Gaussian processes, but provide a foundation in numerical methods that is broadly useful in deep learning.
英語のヒント
ガウス過程について学ぶことは、三つの理由で大切である。(1) ガウス過程はモデル化に関数空間の視点を与え、それによって、深層ニューラルネットワークを含むさまざまな種類のモデルがずっと理解しやすくなる。(2) ガウス過程には、能動学習、ハイパーパラメータの学習、AutoML、時空間回帰をはじめとして、最先端である応用が並外れて幅広くある。(3) ここ数年で、アルゴリズムの進歩によってガウス過程はますます大規模化しやすく重要なものになり、GPyTorch(Gardner et al., 2018)のようなフレームワークを通じて深層学習と調和している。実際、GPと深層ニューラルネットワークは競合するやり方ではなく、互いに大きく補い合うもので、組み合わせれば大きな効果をあげられる。こうしたアルゴリズムの進歩はガウス過程にとって重要なだけでなく、深層学習で広く役立つ数値計算法の基礎も与える。
In this chapter, we introduce Gaussian processes. In the introductory notebook, we start by reasoning intuitively about what Gaussian processes are and how they directly model functions. In the priors notebook, we focus on how to specify Gaussian process priors. We directly connect the tradiational weight-space approach to modelling to function space, which will help us reason about constructing and understanding machine learning models, including deep neural networks. We then introduce popular covariance functions, also known as kernels, which control the generalization properties of a Gaussian process. A GP with a given kernel defines a prior over functions. In the inference notebook, we will show how to use data to infer a posterior, in order to make predictions. This notebook contains from-scratch code for making predictions with a Gaussian process, as well as an introduction to GPyTorch. In upcoming notebooks, we will introduce the numerics behind Gaussian processes, which is useful for scaling Gaussian processes but also a powerful general foundation for deep learning, and advanced use-cases such as hyperparameter tuning in deep learning. Our examples will make use of GPyTorch, which makes Gaussian processes scale, and is closely integrated with deep learning functionality and PyTorch.
英語のヒント
この章では、ガウス過程を紹介する。導入のノートブックでは、ガウス過程とは何か、そしてガウス過程がどのように関数を直接モデル化するかについて、直観的に考えることから始める。事前分布のノートブックでは、ガウス過程の事前分布をどう指定するかに焦点を当てる。モデル化への従来の重み空間のやり方を関数空間に直接結びつける。これは、深層ニューラルネットワークを含む機械学習のモデルを組み立て理解することについて考えるのに役立つ。それから、カーネルとしても知られる、よく使われる共分散関数を紹介する。共分散関数はガウス過程の汎化の性質を制御する。与えられたカーネルをもつGPは、関数の上の事前分布を定義する。推論のノートブックでは、予測をするために、データを使って事後分布を推論する方法を示す。このノートブックには、ガウス過程で予測をするための一から書いたコードと、GPyTorchの紹介が含まれる。今後のノートブックでは、ガウス過程の背後にある数値計算を紹介する。これはガウス過程を大規模化するのに役立つだけでなく、深層学習の強力で一般的な基礎でもある。また、深層学習でのハイパーパラメータの調整のような高度な使い方も紹介する。例では、ガウス過程を大規模化でき、深層学習の機能やPyTorchと密接に統合されたGPyTorchを使う。