reified context models
play

Reified Context Models Jacob Steinhardt Percy Liang Stanford - PowerPoint PPT Presentation

Reified Context Models Jacob Steinhardt Percy Liang Stanford University { jsteinhardt,pliang } @cs.stanford.edu July 8, 2015 J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 1 / 11 Structured Prediction Task input


  1. Reified Context Models Jacob Steinhardt Percy Liang Stanford University { jsteinhardt,pliang } @cs.stanford.edu July 8, 2015 J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 1 / 11

  2. Structured Prediction Task input x : output y : v o l c a n i c J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 2 / 11

  3. Contexts Are Key v o c a l J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 3 / 11

  4. Contexts Are Key v o c a l v *o ***c DP: **l J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 3 / 11

  5. Contexts Are Key v o c a l v *o ***c DP: **l v o c a l v vo beam search: vol volc J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 3 / 11

  6. Contexts Are Key v o c a l v *o ***c DP: **l v o c a l v vo beam search: vol volc Key idea: contexts!   ao       bo   *o def = co     .   .   . J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 3 / 11

  7. Desiderata r *o **l ***c v *a **i ***r coverage (short contexts) better uncertainty estimates (precision) stabler partially supervised learning updates J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 4 / 11

  8. Desiderata r *o **l ***c v *a **i ***r coverage (short contexts) better uncertainty estimates (precision) stabler partially supervised learning updates J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 4 / 11

  9. Desiderata r *o **l ***c v *a **i ***r coverage (short contexts) better uncertainty estimates (precision) stabler partially supervised learning updates J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 4 / 11

  10. Desiderata r *o **l ***c v *a **i ***r coverage (short contexts) better uncertainty estimates (precision) stabler partially supervised learning updates r ro rol rolc v ra ral ralc expressivity (long contexts) capture complex dependencies J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 4 / 11

  11. Desiderata r *o **l ***c v *a **i ***r coverage (short contexts) better uncertainty estimates (precision) stabler partially supervised learning updates r ro rol rolc v ra ral ralc expressivity (long contexts) capture complex dependencies J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 4 / 11

  12. Desiderata r *o **l ***c v *a **i ***r coverage (short contexts) better uncertainty estimates (precision) stabler partially supervised learning updates r ro rol rolc v ra ral ralc expressivity (long contexts) capture complex dependencies J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 4 / 11

  13. Desiderata r *o **l ***c v *a **i ***r coverage (short contexts) better uncertainty estimates (precision) stabler partially supervised learning updates r ro rol rolc v ra ral ralc expressivity (long contexts) capture complex dependencies r ro rol *olc v ra ral ***c ← best of both worlds y *o *ol ***r * ** *** **** J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 4 / 11

  14. Reifying Contexts input x : J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 5 / 11

  15. Reifying Contexts input x : output y : v o l c a n i c J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 5 / 11

  16. Reifying Contexts input x : output y : v o l c a n i c context c : v *o *ol *olc ······ J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 5 / 11

  17. Reifying Contexts input x : output y : v o l c a n i c context c : v *o *ol *olc ······ r ro rol *olc v ra ral ***c y *o *ol ***r * ** *** **** J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 5 / 11

  18. Reifying Contexts input x : output y : v o l c a n i c context c : v *o *ol *olc ······ r ro rol *olc v ra ral ***c ← “context sets” y *o *ol ***r * ** *** **** C 1 C 2 C 3 C 4 J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 5 / 11

  19. Reifying Contexts input x : output y : v o l c a n i c context c : v *o *ol *olc ······ r ro rol *olc v ra ral ***c ← “context sets” y *o *ol ***r * ** *** **** C 1 C 2 C 3 C 4 Challenge: how to trade off contexts of different lengths? J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 5 / 11

  20. Reifying Contexts input x : output y : v o l c a n i c context c : v *o *ol *olc ······ r ro rol *olc v ra ral ***c ← “context sets” y *o *ol ***r * ** *** **** C 1 C 2 C 3 C 4 Challenge: how to trade off contexts of different lengths? = ⇒ Reify contexts as part of model! J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 5 / 11

  21. Reified Context Models Given: context sets C 1 ,..., C L J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 6 / 11

  22. Reified Context Models Given: context sets C 1 ,..., C L features φ i ( c i − 1 , y i ) J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 6 / 11

  23. Reified Context Models Given: context sets C 1 ,..., C L features φ i ( c i − 1 , y i ) Define the model � � L θ ⊤ φ i ( c i − 1 , y i ) ∑ p θ ( y 1 : L , c 1 : L − 1 ) ∝ exp · κ ( y , c ) � �� � i = 1 consistency J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 6 / 11

  24. Reified Context Models Given: context sets C 1 ,..., C L features φ i ( c i − 1 , y i ) Define the model � � L θ ⊤ φ i ( c i − 1 , y i ) ∑ p θ ( y 1 : L , c 1 : L − 1 ) ∝ exp · κ ( y , c ) � �� � i = 1 consistency Graphical model structure: C 1 C 2 C 3 C 4 κ κ κ κ κ Y 1 Y 2 Y 3 Y 4 Y 5 J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 6 / 11

  25. Reified Context Models Given: context sets C 1 ,..., C L features φ i ( c i − 1 , y i ) Define the model � � L θ ⊤ φ i ( c i − 1 , y i ) ∑ p θ ( y 1 : L , c 1 : L − 1 ) ∝ exp · κ ( y , c ) � �� � i = 1 consistency Graphical model structure: C 1 C 2 C 3 C 4 φ 1 φ 2 φ 3 φ 4 φ 5 Y 1 Y 2 Y 3 Y 4 Y 5 J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 6 / 11

  26. Reified Context Models Given: context sets C 1 ,..., C L features φ i ( c i − 1 , y i ) Define the model � � L θ ⊤ φ i ( c i − 1 , y i ) ∑ p θ ( y 1 : L , c 1 : L − 1 ) ∝ exp · κ ( y , c ) � �� � i = 1 consistency Graphical model structure: C 1 C 2 C 3 C 4 inference via φ 1 φ 2 φ 3 φ 4 φ 5 forward-backward! Y 1 Y 2 Y 3 Y 4 Y 5 J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 6 / 11

  27. Adaptive Context Selection Select context sets C i during forward pass of inference J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 7 / 11

  28. Adaptive Context Selection Select context sets C i during forward pass of inference Greedily select contexts with largest mass J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 7 / 11

  29. Adaptive Context Selection Select context sets C i during forward pass of inference Greedily select contexts with largest mass a b c d e . . . J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 7 / 11

  30. Adaptive Context Selection Select context sets C i during forward pass of inference Greedily select contexts with largest mass a b c c d e e . . . J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 7 / 11

  31. Adaptive Context Selection Select context sets C i during forward pass of inference Greedily select contexts with largest mass a c b c c e d ⋆ e e . . . C 1 J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 7 / 11

  32. Adaptive Context Selection Select context sets C i during forward pass of inference Greedily select contexts with largest mass ca a cb . . c b . c c e ea d eb ⋆ . . e e . . . ⋆ a . . . . C 1 J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 7 / 11

  33. Adaptive Context Selection Select context sets C i during forward pass of inference Greedily select contexts with largest mass ca ca a cb . . c b . c c e ea d eb ⋆ . . e e . . . ⋆ a ⋆ a . . . . C 1 J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 7 / 11

  34. Adaptive Context Selection Select context sets C i during forward pass of inference Greedily select contexts with largest mass ca ca a cb . . c ca b . c c e ea ⋆ a d eb ⋆ ⋆⋆ . . e e . . . ⋆ a ⋆ a . . . . C 1 C 2 J. Steinhardt & P. Liang (Stanford) Reified Context Models July 8, 2015 7 / 11

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