pac learning
play

PAC Learning Learning Theory Readings: Matt Gormley Murphy -- - PowerPoint PPT Presentation

10-601 Introduction to Machine Learning Machine Learning Department School of Computer Science Carnegie Mellon University PAC Learning Learning Theory Readings: Matt Gormley Murphy -- Bishop


  1. 10-­‑601 ¡Introduction ¡to ¡Machine ¡Learning Machine ¡Learning ¡Department School ¡of ¡Computer ¡Science Carnegie ¡Mellon ¡University PAC ¡Learning Learning ¡Theory ¡Readings: Matt ¡Gormley Murphy ¡-­‑-­‑ Bishop ¡-­‑-­‑ Lecture ¡28 HTF ¡-­‑-­‑ May ¡1, ¡2016 Mitchell ¡7 1

  2. Reminders • Homework 9: ¡Applications of ¡ML – Release: ¡Mon, ¡Apr. ¡24 – Due: ¡Wed, ¡May 3 ¡at ¡11:59pm 4

  3. Outline • Statistical ¡Learning ¡Theory – True ¡Error ¡vs. ¡Train ¡Error – Function ¡Approximation ¡View ¡(aka. ¡PAC/SLT ¡Model) – Three ¡Hypotheses ¡of ¡Interest • Probably ¡Approximately ¡Correct ¡(PAC) ¡Learning – PAC ¡Criterion – PAC ¡Learnable – Consistent ¡Learner – Sample ¡Complexity • Generalization ¡and ¡Overfitting – Realizable ¡vs. ¡Agnostic ¡Cases – Finite ¡vs. ¡Infinite ¡Hypothesis ¡Spaces – VC ¡Dimension – Sample ¡Complexity ¡Bounds – Empirical ¡Risk ¡Minimization – Structural ¡Risk ¡Minimization • Excess ¡Risk 5

  4. LEARNING ¡THEORY 6

  5. Questions ¡For ¡Today 1. Given ¡a ¡classifier ¡with ¡zero ¡training ¡error, ¡what ¡ can ¡we ¡say ¡about ¡generalization ¡error? (Sample ¡Complexity, ¡Realizable ¡Case) 2. Given ¡a ¡classifier ¡with ¡low ¡training ¡error, ¡what ¡ can ¡we ¡say ¡about ¡generalization ¡error? (Sample ¡Complexity, ¡Agnostic ¡Case) 3. Is ¡there ¡a ¡theoretical ¡justification ¡for ¡ regularization ¡to ¡avoid ¡overfitting? (Structural ¡Risk ¡Minimization) 7

  6. Statistical ¡Learning ¡Theory Whiteboard: – Function ¡Approximation ¡View ¡(aka. ¡PAC/SLT ¡ Model) – True ¡Error ¡vs. ¡Train ¡Error – Three ¡Hypotheses ¡of ¡Interest 8

  7. PAC/SLT models for Supervised Learning PAC ¡/ ¡SLT ¡Model Data Distribution D on X Source Expert / Oracle Learning Algorithm Labeled Examples (x 1 ,c*(x 1 )),…, ( x m ,c*(x m )) c* : X ! Y Alg.outputs h : X ! Y x 1 > 5 + + - + - + +1 x 6 > 2 - - - - -1 +1 9 Slide ¡from ¡Nina ¡Balcan

  8. PAC ¡/ ¡SLT ¡Model 10

  9. Two ¡Types ¡of ¡Error True ¡Error ¡(aka. ¡ expected ¡risk ) Train ¡Error ¡(aka. ¡ empirical ¡risk ) 11

  10. Three ¡Hypotheses ¡of ¡Interest 12

  11. PAC ¡LEARNING 13

  12. Probably ¡Approximately ¡Correct ¡ (PAC) ¡Learning Whiteboard: – PAC ¡Criterion – Meaning ¡of ¡“Probably ¡Approximately ¡Correct” – PAC ¡Learnable – Consistent ¡Learner – Sample ¡Complexity 14

  13. PAC ¡Learning 15

  14. SAMPLE ¡COMPLEXITY ¡RESULTS 16

  15. Sample ¡Complexity ¡Results We’ll ¡start ¡with ¡the ¡ Four ¡Cases ¡we ¡care ¡about… finite ¡case… Realizable Agnostic 17

  16. Generalization ¡and ¡Overfitting Whiteboard: – Realizable ¡vs. ¡Agnostic ¡Cases – Finite ¡vs. ¡Infinite ¡Hypothesis ¡Spaces – Sample ¡Complexity ¡Bounds ¡(Finite ¡Case) 18

  17. Sample ¡Complexity ¡Results Four ¡Cases ¡we ¡care ¡about… Realizable Agnostic 19

  18. Example: ¡Conjunctions In-­‑Class ¡Quiz: Suppose ¡H ¡= ¡class ¡of ¡conjunctions ¡over ¡ x ¡ in ¡{0,1} M If ¡M ¡= ¡10, ¡ 𝜁 = ¡0.1, ¡δ = ¡0.01, ¡how ¡many ¡examples ¡suffice? Realizable Agnostic 20

  19. Sample ¡Complexity ¡Results Four ¡Cases ¡we ¡care ¡about… Realizable Agnostic 21

  20. Sample ¡Complexity ¡Results Four ¡Cases ¡we ¡care ¡about… Realizable Agnostic We ¡need ¡a ¡new ¡definition ¡of ¡ “complexity” ¡for ¡a ¡Hypothesis ¡space ¡ for ¡these ¡results ¡(see ¡ VC ¡Dimension ) 22

  21. VC ¡DIMENSION 23

  22. What if H is infinite? + + - + E.g., linear separators in R d - + - - - - - + E.g., thresholds on the real line w - - + E.g., intervals on the real line a b 24

  23. Shattering, VC-dimension Definition : H[S] – the set of splittings of dataset S using concepts from H. H shatters S if | H S | = 2 |𝑇| . A set of points S is shattered by H is there are hypotheses in H that split S in all of the 2 |𝑇| possible ways; i.e., all possible ways of classifying points in S are achievable using concepts in H. Definition : VC-dimension (Vapnik-Chervonenkis dimension) The VC-dimension of a hypothesis space H is the cardinality of the largest set S that can be shattered by H. If arbitrarily large finite sets can be shattered by H, then VCdim(H) = ∞ 25

  24. Shattering, VC-dimension Definition : VC-dimension (Vapnik-Chervonenkis dimension) The VC-dimension of a hypothesis space H is the cardinality of the largest set S that can be shattered by H. If arbitrarily large finite sets can be shattered by H, then VCdim(H) = ∞ To show that VC-dimension is d: – there exists a set of d points that can be shattered – there is no set of d+1 points that can be shattered. Fact : If H is finite, then VCdim (|H|) . (H) ≤ log 26

  25. Shattering, VC-dimension If the VC-dimension is d, that means there exists a set of d points that can be shattered, but there is no set of d+1 points that can be shattered. - + E.g., H= Thresholds on the real line w VCdim H = 1 + - - - + E.g., H= Intervals on the real line VCdim H = 2 + - + 27

  26. Shattering, VC-dimension If the VC-dimension is d, that means there exists a set of d points that can be shattered, but there is no set of d+1 points that can be shattered. VCdim H = 2k E.g., H= Union of k intervals on the real line + - + + - - A sample of size 2k shatters VCdim H ≥ 2k (treat each pair of points as a separate case of intervals) VCdim H < 2k + 1 + - + - + … 28

  27. Shattering, VC-dimension E.g., H= linear separators in R 2 VCdim H ≥ 3 29

  28. Shattering, VC-dimension E.g., H= linear separators in R 2 VCdim H < 4 Case 1: one point inside the triangle formed by the others. Cannot label inside point as positive and outside points as negative. Case 2: all points on the boundary (convex hull). Cannot label two diagonally as positive and other two as negative. Fact: VCdim of linear separators in R d is d+1 30

  29. SAMPLE ¡COMPLEXITY ¡RESULTS 32

  30. Sample ¡Complexity ¡Results Four ¡Cases ¡we ¡care ¡about… Realizable Agnostic We ¡need ¡a ¡new ¡definition ¡of ¡ “complexity” ¡for ¡a ¡Hypothesis ¡space ¡ for ¡these ¡results ¡(see ¡ VC ¡Dimension ) 33

  31. Sample ¡Complexity ¡Results Four ¡Cases ¡we ¡care ¡about… Realizable Agnostic 34

  32. Generalization ¡and ¡Overfitting Whiteboard: – Sample ¡Complexity ¡Bounds ¡(Infinite ¡Case) – Empirical ¡Risk ¡Minimization – Structural ¡Risk ¡Minimization 35

  33. EXCESS ¡RISK 36

  34. Excess ¡Risk 37

  35. Excess ¡Risk ¡Results 38

  36. Questions ¡For ¡Today 1. Given ¡a ¡classifier ¡with ¡zero ¡training ¡error, ¡what ¡ can ¡we ¡say ¡about ¡generalization ¡error? (Sample ¡Complexity, ¡Realizable ¡Case) 2. Given ¡a ¡classifier ¡with ¡low ¡training ¡error, ¡what ¡ can ¡we ¡say ¡about ¡generalization ¡error? (Sample ¡Complexity, ¡Agnostic ¡Case) 3. Is ¡there ¡a ¡theoretical ¡justification ¡for ¡ regularization ¡to ¡avoid ¡overfitting? (Structural ¡Risk ¡Minimization) 39

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend