this class
play

This Class Weighted Majority Algorithm Mul+ple experts - PowerPoint PPT Presentation

Online Predic+on & Decision Making CompSci 590.03 Instructor: Ashwin Machanavajjhala Lecture 10 : 590.02 Spring 13 1 This Class Weighted Majority


  1. Online ¡Predic+on ¡& ¡Decision ¡Making ¡ CompSci ¡590.03 ¡ Instructor: ¡Ashwin ¡Machanavajjhala ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 1 ¡

  2. This ¡Class ¡ • Weighted ¡Majority ¡Algorithm ¡ ¡ – Mul+ple ¡experts ¡problem ¡ • Follow ¡the ¡perturbed ¡Leader ¡ – Online ¡shortest ¡paths ¡ • Mul+-­‑armed ¡bandit ¡problems ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 2 ¡

  3. Mul+ple ¡Experts ¡Problem ¡ Will ¡it ¡rain ¡ Yes ¡ Yes ¡ Yes ¡ No ¡ today? ¡ ¡ What ¡is ¡the ¡best ¡predic5on ¡based ¡on ¡these ¡experts? ¡ ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 3 ¡

  4. Mul+ple ¡Experts ¡Problem ¡ • Suppose ¡we ¡know ¡the ¡best ¡expert ¡(who ¡makes ¡the ¡least ¡error), ¡ then ¡we ¡can ¡just ¡return ¡that ¡expert ¡says. ¡ – This ¡is ¡the ¡best ¡we ¡can ¡hope ¡for. ¡ • We ¡don’t ¡know ¡who ¡the ¡best ¡expert ¡is. ¡ – But ¡we ¡can ¡learn ¡… ¡we ¡know ¡whether ¡it ¡rained ¡or ¡not ¡at ¡the ¡end ¡of ¡the ¡ day. ¡ • Regret ¡Minimiza+on ¡: ¡number ¡of ¡mistakes ¡made ¡by ¡our ¡ algorithms ¡should ¡be ¡close ¡to ¡the ¡number ¡of ¡mistakes ¡made ¡by ¡ the ¡best ¡expert. ¡ ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 4 ¡

  5. Weighted ¡Majority ¡Algorithm ¡ [LiZlestone&Warmuth ¡‘94] ¡ “Experts” ¡ Algorithm ¡ W 1 ¡ ¡ W 2 ¡ ¡ W 3 ¡ ¡ W 4 ¡ ¡ Y 1 ¡ ¡ Y 2 ¡ ¡ Y 3 ¡ ¡ Y 4 ¡ ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 5 ¡

  6. Weighted ¡Majority ¡Algorithm ¡ [LiZlestone&Warmuth ¡‘94] ¡ “Experts” ¡ Algorithm ¡ Truth ¡ 1-­‑ε ¡ 1-­‑ε ¡ 1-­‑ε ¡ 1 ¡ 1 ¡ 1 ¡ 1 ¡ Yes ¡ ¡ Yes ¡ ¡ Yes ¡ ¡ No ¡ ¡ No ¡ Yes! ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 6 ¡

  7. Weighted ¡Majority ¡Algorithm ¡ Maintain ¡weights ¡(or ¡probability ¡distribu+on) ¡over ¡experts. ¡ • ¡ Answering/Predic+on: ¡ ¡ Answer ¡using ¡weighted ¡majority, ¡OR ¡ • Randomly ¡pick ¡an ¡expert ¡based ¡on ¡current ¡probability ¡ • distribu+on. ¡Use ¡random ¡experts ¡answer. ¡ ¡ ¡ Update: ¡ Observe ¡truth. ¡ • Decrease ¡weight ¡(or ¡probability) ¡assigned ¡to ¡the ¡experts ¡who ¡are ¡ • wrong. ¡ ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 7 ¡

  8. Error ¡Analysis ¡ [Arora, ¡Hazan, ¡Kale ¡‘05] ¡ Theorem: ¡ ¡ Aber ¡t ¡steps, ¡ ¡ let ¡m(t,j) ¡be ¡the ¡number ¡of ¡errors ¡made ¡by ¡expert ¡j ¡ let ¡m(t) ¡be ¡the ¡number ¡of ¡errors ¡made ¡by ¡algorithm ¡ let ¡n ¡be ¡the ¡number ¡of ¡experts, ¡ ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 8 ¡

  9. Error ¡Analysis: ¡Proof ¡ • Let ¡ ¡φ(t) ¡= ¡Σw i . ¡Then, ¡φ(1) ¡= ¡n. • When ¡the ¡algorithm ¡makes ¡a ¡mistake, ¡ φ(t+1) ¡≤ ¡φ(t) ¡(1/2 ¡+ ¡½(1-­‑ε)) ¡= ¡φ(t)(1-­‑ε/2) • When ¡the ¡algorithm ¡is ¡correct,� ¡φ(t+1) ¡≤ ¡φ(t) • Therefore, ¡� Therefore, ¡� ¡φ ¡φ(t (t) ¡ ) ¡≤ ¡ ≤ ¡n(1 (1-­‑ -­‑ε/2 /2) m(t m(t) ¡� ¡� Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 9 ¡

  10. Error ¡Analysis: ¡Proof ¡ • φ(t) ¡≤ ¡n(1-­‑ε/2) m(t) ¡ • Also, ¡W j (t) ¡= ¡(1-­‑ε) m(t,j) • φ(t) ¡≥ ¡W j (t) ¡ ¡=> ¡n(1-­‑ε/2) m(t) ¡≥ ¡(1-­‑ε) m(t,j) • ¡Hence, ¡m(t) ¡≥ ¡2/ε ¡ln ¡n ¡+ ¡2(1+ε)m(t,j) Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 10 ¡

  11. Online ¡Learning ¡ • Mistake ¡bound ¡model ¡ – Algorithm ¡receives ¡an ¡unlabeled ¡example ¡ x ¡ (like ¡our ¡experts) ¡ – Algorithm ¡predicts ¡a ¡classifica+on ¡of ¡this ¡example ¡ p ¡(either ¡-­‑1 ¡or ¡+1) ¡ – Environment ¡produces ¡the ¡correct ¡answer ¡ y ¡(either ¡-­‑1 ¡or ¡+1) ¡ • Winnow ¡algorithm ¡ – Learn ¡a ¡weight ¡func+on ¡ w ¡such ¡that ¡ sign ( w ¡x ) ¡= ¡p ¡ – Same ¡as ¡the ¡Weighted ¡Majority ¡algorithm ¡ ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 11 ¡

  12. Online ¡Shortest ¡Paths ¡Problem ¡ • Input: ¡A ¡directed ¡graph ¡G ¡= ¡(V,E), ¡and ¡a ¡fixed ¡pair ¡of ¡nodes ¡(u,v) ¡ ¡ • Each ¡period ¡(+me ¡t), ¡we ¡pick ¡a ¡path ¡from ¡u ¡to ¡v, ¡and ¡the ¡length ¡of ¡ the ¡path ¡is ¡revealed. ¡ ¡ • Cost ¡at ¡+me ¡t ¡= ¡length ¡of ¡chosen ¡path. ¡ ¡ ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 12 ¡

  13. Online ¡shortest ¡paths ¡ • We ¡could ¡have ¡used ¡weighted ¡majority, ¡where ¡each ¡path ¡is ¡an ¡ expert ¡ • But, ¡number ¡of ¡paths ¡(experts) ¡is ¡exponen+al ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 13 ¡

  14. Follow ¡the ¡perturbed ¡leader ¡(FPL) ¡ Randomized ¡variant ¡… ¡ ¡ Ini+aliza+on: ¡ ¡ • Each ¡expert ¡ j ¡is ¡assigned ¡a ¡cost ¡ c(j, ¡0) ¡= ¡0 ¡ Predic+on ¡(+me ¡t): ¡ • For ¡each ¡expert ¡j ¡select ¡p(j, ¡t) ¡ ¡>= ¡0 ¡from ¡an ¡exponen+al ¡ distribu+on ¡( ¡ ¡μ(x) ¡~ ¡εe -­‑εx ¡ ¡ ) ¡ • Make ¡the ¡same ¡predic+on ¡as ¡expert ¡with ¡smallest ¡c(j, ¡t) ¡– ¡p(j, ¡t) ¡ Update: ¡ ¡ • If ¡expert ¡j’s ¡predic+on ¡is ¡correct, ¡c(j, ¡t+1) ¡= ¡c(j, ¡t) ¡ • Else, ¡c(j, ¡t+1) ¡= ¡c(j,t) ¡+ ¡1 ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 14 ¡

  15. Error ¡Analysis ¡ Theorem: ¡ ¡ Aber ¡t ¡steps, ¡ ¡ let ¡m(t,j) ¡be ¡the ¡number ¡of ¡errors ¡made ¡by ¡expert ¡j ¡ let ¡m(t) ¡be ¡the ¡number ¡of ¡errors ¡made ¡by ¡algorithm ¡ let ¡n ¡be ¡the ¡number ¡of ¡experts, ¡ ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 15 ¡

  16. Linear ¡Generaliza+on ¡ • FPL ¡works ¡for ¡more ¡general ¡predic+on ¡problems, ¡where ¡ ¡ – The ¡predic+on ¡and ¡states ¡are ¡ ¡in ¡R n ¡ – Total ¡cost ¡of ¡the ¡decisions ¡are ¡Σ ¡d t ¡s t ¡ – Σ ¡d t ¡s t ¡should ¡be ¡close ¡to ¡min d ¡Σ ¡d ¡s t ¡ • Mul+ple ¡experts: ¡ – ¡d ¡: ¡0/1 ¡vector ¡where ¡d[j] ¡= ¡1 ¡if ¡expert ¡j ¡is ¡picked ¡by ¡the ¡algorithm ¡ – ¡s ¡: ¡0/1 ¡vector ¡where ¡s[j] ¡= ¡0 ¡if ¡jth ¡expert ¡is ¡correct. ¡ ¡ – Total ¡cost ¡is ¡number ¡of ¡mistakes. ¡ ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 16 ¡

  17. Online ¡Shortest ¡Paths ¡ ¡ Algorithm: ¡ ¡ Ini+alize ¡all ¡edge ¡costs ¡c(e,0) ¡= ¡0. ¡ ¡ At ¡each ¡+me ¡period: ¡ ¡ • For ¡each ¡edge, ¡pick ¡p(e, ¡t) ¡from ¡an ¡exponen+al ¡distribu+on ¡ • Use ¡the ¡shortest ¡path ¡in ¡the ¡graph ¡with ¡lengths ¡c(e,t) ¡+ ¡p(e,t) ¡on ¡ each ¡edge. ¡ ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 17 ¡

  18. Online ¡shortest ¡paths ¡ • We ¡could ¡have ¡used ¡weighted ¡majority, ¡where ¡each ¡path ¡is ¡an ¡ expert ¡ • But, ¡number ¡of ¡paths ¡(experts) ¡is ¡exponen+al ¡ • FPL ¡allows ¡solving ¡the ¡problem ¡in ¡polynomial ¡+me. ¡ ¡ E [ cost ] ≤ (1 + ε )(best-time in hindsight) + O ( mn log n ) ε Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 18 ¡

  19. Mul+-­‑armed ¡Bandit ¡Problem ¡ • A ¡set ¡of ¡ac+ons ¡(or ¡arms) ¡ • Selec+ng ¡ac+on ¡a ¡in ¡A ¡(or ¡pulling ¡an ¡arm) ¡results ¡in ¡a ¡reward ¡from ¡ an ¡unknown ¡probability ¡distribu+on ¡P(r ¡| ¡a) ¡ • ¡At ¡+me=t, ¡agent ¡selects ¡ac+on ¡a t ¡ • Environment ¡generates ¡reward ¡r t ¡ • Goal ¡is ¡to ¡maximize ¡Σ t ¡r t ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 19 ¡

  20. Applica+on ¡ • Web ¡adver+sing ¡ – What ¡is ¡the ¡best ¡ad/ar+cle ¡to ¡show ¡a ¡user? ¡ • Clinical ¡trials ¡ – Iden+fying ¡efficient ¡drugs ¡with ¡minimal ¡pa+ent ¡loss/side-­‑effects ¡ • Web ¡search ¡ – Which ¡result ¡must ¡be ¡ranked ¡at ¡the ¡top? ¡ ¡ • … ¡ Lecture ¡10 ¡: ¡590.02 ¡Spring ¡13 ¡ 20 ¡

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