model-based machine learning - imperial college …nsjones/talkslides/bishopslides.pdfmodel-based...

25
Model-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Upload: others

Post on 16-Feb-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Model-based Machine Learning Chris Bishop

Microsoft Research Cambridge

Royal Society, March 2012

Page 2: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012
Page 3: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Traditional machine learning

Logistic regression

Neural networks

K-means, mixture of Gaussians

PCA, kernel PCA, ICA, FA

Support vector machines

Deep belief networks

Decision trees and random forests

… many others …

Page 4: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Model-based machine learning

Goal: a single modelling framework which supports a wide range of models

Traditional:

“how do I map my problem onto a standard algorithm”?

Model-based:

“what is the model that represents my problem”?

Page 5: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Realisation of model-based ML

Bayesian framework

Probabilistic graphical models

Efficient deterministic inference

Page 6: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Movie recommender demo

Page 7: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Probabilistic graphical models

Maths (M)

Algebra (A) Geometry (G)

P(M, G, A) = P(M) P(G|M) P(A|M)

Graph structure captures domain knowledge

Page 8: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Efficient inference

Page 9: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Local message-passing

?

Maths (M)

Algebra (A) Geometry (G)

Page 10: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

What if distributions are intractable?

True distribution Monte Carlo Variational Message Passing

Loopy belief propagation

Expectation propagation

Page 11: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Algorithms Models

M. E. Tipping and C. M. Bishop (1997)

C. M. Bishop (1999)

Page 12: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012
Page 13: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Childhood Asthma

Page 14: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Allergic Sensitisation Model

Page 15: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Comparison with traditional ML

Separation of model and training algorithm

Auto-generated inference algorithm

Easy extension to more complex situations

Modify model, use the same inference algorithms

Flexible as requirements change

Compact code

Easy to write and maintain

Transparent functionality

Many traditional methods are special cases

One simple framework for newcomers to the field

Page 16: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

“Big data”

Computational size vs. statistical size

?

len

gth

temperature

Page 17: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Noisy ranking

Conventional approach to ranking: “Elo” single strength value for each player cannot handle teams, or more than 2 players

Page 18: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Bayesian Ranking: TrueSkillTM

y12

1 2

s1 s2

R. Herbrich, T. Minka, and T. Graepel; NIPS (2006)

Page 19: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

s1 s2 s3 s4

t1

y12

t2 t3

y23

Multi-player multi-team model

Page 20: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

y12

1 2

s1 s2

y12

1 2

s1 s2 ^ ^

^ ^

^

Page 21: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

TrueSkillTM

Sept. 2005; 10s of millions of users; millions of matches per day

Page 22: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Convergence

0

5

10

15

20

25

30

35

40 Le

vel

0 100 200 300 400

Number of Games

char (Elo)

SQLWildman (Elo)

char (TrueSkill™)

SQLWildman (TrueSkill™)

Page 23: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

Infer.NET

1. Specify your machine learning problem as a probabilistic model in a .NET program (typically 10-20 lines of code).

2. Use Infer.NET to compile the model into optimized runtime code.

3. Run the code to make inferences on your data automatically.

research.microsoft.com/infernet

Page 24: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012

research.microsoft.com/~cmbishop

Page 25: Model-based Machine Learning - Imperial College …nsjones/TalkSlides/BishopSlides.pdfModel-based Machine Learning Chris Bishop Microsoft Research Cambridge Royal Society, March 2012