pe personalized language model fo for query auto co
play

Pe Personalized Language Model fo for Query Auto- - PowerPoint PPT Presentation

Pe Personalized Language Model fo for Query Auto- -Co Completion Aaron Jaech and Mari Ostendorf University of Washington Qu Query Auto- -Co


  1. Pe Personalized ¡ ¡Language ¡ ¡Model ¡ ¡ fo for ¡ ¡Query ¡ ¡Auto-­‑ -­‑Co Completion Aaron ¡Jaech ¡and ¡Mari ¡Ostendorf University ¡of ¡Washington

  2. Qu Query ¡ ¡Auto-­‑ -­‑Co Completion Search ¡engine ¡suggests ¡queries ¡as ¡ ● the ¡user ¡types Idea ¡from ¡Park ¡& ¡Chiba ¡(2017): ¡Use ¡ ● an ¡LSTM ¡to ¡generate ¡completions Memory ¡savings ¡over ¡most ¡popular ¡ ○ completion Handles ¡previously ¡unseen ¡prefixes ○ Can ¡we ¡do ¡better ¡by ¡adapting ¡the ¡LM ¡ ● to ¡provide ¡personalized ¡suggestions? 2

  3. RNN ¡ RN ¡Language ¡ ¡Model ¡ ¡Adaptation user ¡ word ¡ embedding Learn ¡an ¡embedding, ¡ c , ¡ ¡for ¡each ¡user ¡and ¡ embedding ● use ¡it ¡to ¡adapt ¡the ¡predictions " ℎ ')* ,𝑓 ' , 𝑑 + 𝑐 ℎ ' = 𝜏 𝑋 Method ¡#1: Concatenate ¡the ¡user ¡ ● embedding ¡with ¡the ¡input ¡at ¡each ¡step* ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡= 𝜏 𝑋 ℎ ')* , 𝑓 ' ¡ + 𝑊𝑑 + 𝑐 Same ¡as ¡applying ¡a ¡constant ¡linear ¡shift ¡to ¡ ○ " = 𝑋 ¡𝑊 𝑋 the ¡bias ¡vector ¡(in ¡recurrent ¡& ¡output ¡layers) 𝑐 0 Leaves ¡most ¡of ¡the ¡recurrent ¡model ¡ ○ Concatenating ¡the ¡user ¡ parameters ¡unchanged embedding ¡is ¡the ¡same ¡ Method ¡#2: Low-­‑rank ¡adaptation ¡of ¡ ● as ¡shifting ¡the ¡bias. ¡ recurrent ¡weight ¡matrix ¡(FactorCell ¡model) Adjust ¡b ¡and ¡W! * ¡Referred ¡to ¡here ¡as ¡ConcatCell (Mikolov& ¡Zweig, ¡2012) 3

  4. Fa FactorCell ¡ ¡Model Low-­‑rank ¡adaptation Adapted ¡weights Generic ¡weights c L L L W 0 + W A = L R c (e ¡+ ¡h) ¡x ¡h (e ¡+ ¡h) ¡x ¡h k ¡x ¡1 1 ¡x ¡k k ¡x ¡(e ¡+ ¡h) ¡x ¡r r ¡x ¡h ¡x ¡k The ¡adaptation ¡matrix ¡is ¡formed ¡from ¡a ¡product ¡of ¡the ¡context ¡ ● embedding ¡with ¡left ¡and ¡right ¡bases. The ¡two ¡bases ¡tensors ¡( L and ¡ R ) ¡hold ¡k ¡different ¡rank ¡r ¡matrices, ¡each ¡ ● the ¡same ¡size ¡as ¡ W. Context ¡vectors ¡give ¡a ¡weighted ¡combination. 4

  5. Le Learning User ¡embeddings, ¡recurrent ¡layer ¡weights ¡and ¡{L, ¡R} ¡tensor ¡learned ¡ ● jointly ¡ Need ¡online ¡learning ¡to ¡adapt ¡to ¡users ¡that ¡were ¡not ¡previously ¡seen ● In ¡joint ¡training, ¡learn ¡a ¡cold-­‑start ¡embedding ¡for ¡set ¡of ¡infrequent ¡users ● During ¡evaluation ● Initialize ¡each ¡users’ ¡embedding ¡with ¡learned ¡cold-­‑start ¡vector ○ Make ¡query ¡suggestions ○ After ¡user ¡selects ¡a ¡query, ¡back-­‑propagate ¡and ¡ only ¡ update ¡the ¡user ¡embedding ○ 5

  6. Dat Data ¡ a ¡& ¡ ¡Experim iments Using ¡AOL ¡2006 ¡Query ¡Log ¡data, ¡173K ¡ ● users ¡and ¡12 ¡million ¡queries ¡for ¡training User ¡embedding ¡size ¡= ¡32, ¡LSTM ¡size ¡= ¡600 ● Evaluate ¡on ¡500K ¡queries ¡with ¡disjoint ¡ ● user ¡population Mean reciprocal ¡rank (MRR) ¡as ¡a ¡metric ● 6

  7. Ex Experimental ¡ ¡Re Results Benefit ¡improves ¡over ¡time! Mean ¡Reciprocal ¡Rank Performance ¡for ¡users ¡with ¡> ¡50 ¡queries 7

  8. Qu Qualitative ¡ ¡Comparison What ¡queries ¡are ¡boosted ¡the ¡most ¡after ¡searching ¡for ¡“ high school softball ” ¡and ¡“ math homework help ”? FactorCell ConcatCell high school musical horoscope high school musical chris brown funnyjunk.com homes for sale funbrain.com modular homes chat room hair styles Queries ¡that ¡most ¡decrease ¡in ¡likelihood ¡with ¡the ¡ FactorCell include ¡travel ¡agencies ¡and ¡plane ¡tickets. ¡ 8

  9. Re Recent ¡ ¡Re Related ¡ ¡Work: ¡ ¡ Fl Florini & ¡ & ¡Lu, ¡ u, ¡NAACL ¡ ¡2018 • Also ¡personalized ¡LSTM ¡for ¡query ¡prediction • ConcatCell adaptation ¡framework • User ¡embedding ¡learned ¡separately • No ¡online ¡learning • Assessed ¡on ¡two ¡datasets, ¡but ¡different ¡split ¡of ¡AOL ¡data • Confirms ¡benefit ¡of ¡adapted ¡LM 9

  10. Co Conclusions Personalization ¡helps ¡and ¡the ¡benefit ¡increases ¡as ¡more ¡queries ¡are ¡seen ● Stronger ¡adaptation ¡of ¡the ¡recurrent ¡layer ¡(FactorCell) ¡gives ¡better ¡ ● results ¡than ¡concatenating ¡a ¡user ¡vector No ¡extra ¡latency/computation ¡due ¡to ¡caching ¡of ¡adapted ¡weight ¡matrix ○ Try ¡out ¡the ¡FactorCell ¡on ¡your ¡data ● http://github.com/ajaech/query_completion ○ 10

  11. THANKS!

  12. Qualitative ¡Comparison What ¡queries ¡are ¡boosted ¡the ¡most ¡after ¡searching ¡for ¡“ prada handbags ” ¡and ¡“ versace eyewear ”? FactorCell ConcatCell neiman marcus craigslist nyc myspace layours pottery barn jc penny verizon wireless verizon wireless jensen ackles bed bath and webster dictionary beyond 12

  13. Backup ¡Slides 13

  14. FactorCell ¡Model Low-­‑rank ¡adaptation Adapted ¡weights Generic ¡weights The ¡adapted ¡weight ¡ W 0 + W A = c L L L L matrix ¡is ¡a ¡drop-­‑in ¡ R replacement ¡for ¡ W c YELLOW FOX JUMPED THE ℎ '1* ¡ = ¡𝜏( W 4 + W 0 ℎ ' , 𝑓 ' + 𝑐) h 1 h 2 h 3 h 4 Much ¡larger ¡change ¡in ¡recurrent ¡ layer ¡than ¡what ¡ConcatCell does <START> THE YELLOW FOX 14

  15. Prefix ¡and ¡query ¡length • Longer ¡queries ¡are ¡more ¡difficult • Suggestion ¡quality ¡improves ¡as ¡ prefix ¡length ¡increases 15

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