Pe Personalized ¡ ¡Language ¡ ¡Model ¡ ¡ fo for ¡ ¡Query ¡ ¡Auto-‑
- ‑Co
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
the ¡user ¡types
an ¡LSTM ¡to ¡generate ¡completions
○
Memory ¡savings ¡over ¡most ¡popular ¡ completion
○
Handles ¡previously ¡unseen ¡prefixes
to ¡provide ¡personalized ¡suggestions?
2
use ¡it ¡to ¡adapt ¡the ¡predictions
embedding ¡with ¡the ¡input ¡at ¡each ¡step*
○
Same ¡as ¡applying ¡a ¡constant ¡linear ¡shift ¡to ¡ the ¡bias ¡vector ¡(in ¡recurrent ¡& ¡output ¡layers)
○
Leaves ¡most ¡of ¡the ¡recurrent ¡model ¡ parameters ¡unchanged
recurrent ¡weight ¡matrix ¡(FactorCell ¡model)
Concatenating ¡the ¡user ¡ embedding ¡is ¡the ¡same ¡ as ¡shifting ¡the ¡bias. ¡
3
𝑋 " = 𝑋 ¡𝑊 ℎ' = 𝜏 𝑋 " ℎ')*,𝑓', 𝑑 + 𝑐 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡= 𝜏 𝑋 ℎ')*, 𝑓' ¡ + 𝑊𝑑 + 𝑐
user ¡ embedding word ¡ embedding
Adjust ¡b ¡and ¡W! 𝑐0
* ¡Referred ¡to ¡here ¡as ¡ConcatCell (Mikolov& ¡Zweig, ¡2012)
Low-‑rank ¡adaptation Generic ¡weights Adapted ¡weights (e ¡+ ¡h) ¡x ¡h (e ¡+ ¡h) ¡x ¡h k ¡x ¡(e ¡+ ¡h) ¡x ¡r r ¡x ¡h ¡x ¡k 1 ¡x ¡k k ¡x ¡1
4
embedding ¡with ¡left ¡and ¡right ¡bases.
the ¡same ¡size ¡as ¡W. Context ¡vectors ¡give ¡a ¡weighted ¡combination.
jointly ¡
○
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
users ¡and ¡12 ¡million ¡queries ¡for ¡training
user ¡population
6
7
Mean ¡Reciprocal ¡Rank
Performance ¡for ¡users ¡with ¡> ¡50 ¡queries
Benefit ¡improves ¡over ¡time!
What ¡queries ¡are ¡boosted ¡the ¡most ¡after ¡searching ¡for ¡“high school softball” ¡and ¡“math homework help”?
8
FactorCell ConcatCell
high school musical
horoscope chris brown
high school musical
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. ¡
9
results ¡than ¡concatenating ¡a ¡user ¡vector
○
No ¡extra ¡latency/computation ¡due ¡to ¡caching ¡of ¡adapted ¡weight ¡matrix
○
http://github.com/ajaech/query_completion
10
What ¡queries ¡are ¡boosted ¡the ¡most ¡after ¡searching ¡for ¡“prada handbags” ¡and ¡“versace eyewear”?
12
FactorCell ConcatCell
neiman marcus
craigslist nyc pottery barn
myspace layours
jc penny verizon wireless verizon wireless jensen ackles bed bath and beyond webster dictionary
13
14
Low-‑rank ¡adaptation Generic ¡weights Adapted ¡weights
c L
c
The ¡adapted ¡weight ¡ matrix ¡is ¡a ¡drop-‑in ¡ replacement ¡for ¡W
h1 h2 h3 h4
<START> THE YELLOW FOX THE YELLOW FOX JUMPED
Much ¡larger ¡change ¡in ¡recurrent ¡ layer ¡than ¡what ¡ConcatCell does
prefix ¡length ¡increases
15