Distant Supervision and MultiR
Happy Mittal
Distant Supervision and MultiR Happy Mittal We will discuss - - PowerPoint PPT Presentation
Distant Supervision and MultiR Happy Mittal We will discuss Distant Supervision [Mintz et al, 2009] MultiR [Hoffmann et al, 2011] Relation Instance Extraction Hrithik Roshans Movie Kaabil Actor(Hrithik Roshan, Kaabil) features love
Happy Mittal
Hrithik Roshan’s Movie Kaabil features love affair between two blind people.
Actor(Hrithik Roshan, Kaabil)
Sentences (Ex : Wikipedia articles)
Person Birth Place Edwin Hubble Marshfield …. ….
Knowledge base (Ex : Freebase) Generate training data
HOW ?
Assumption : Fact r(e1,e2) => Every sentence having entities e1 and e2 specifies relation r.
NE1 NE2 Label PER LOC Birthplace
NE1 Middle NE2 Label PER [was/VERB born/VERB in/CLOSED] LOC Birthplace
Left Window NE1 Middle NE2 Right window Label [] PER [was/VERB born/VERB in/CLOSED] LOC [] Birthplace [Astronomer] PER [was/VERB born/VERB in/CLOSED] LOC [,] Birthplace [#,Astronomer] PER [was/VERB born/VERB in/CLOSED] LOC [,Missouri] Birthplace
Founded 𝑍 ∈ R Relation Variable Z1 = 1 Z2 = 0 Steve Jobs founded Apple Steve Jobs is the CEO of Apple Z1,Z2∈ {0,1} Relation mention Variables X1 X2
Founded 𝑍 ∈ R Relation Variable Z1 = 1 Z2 = 0 Steve Jobs founded Apple Steve Jobs is the CEO of Apple Z1,Z2∈ {0,1} Relation mention Variables X1 X2
Founded 𝑍 ∈ 0,1 𝑠 Relation Variables (Capture aggregate level prediction) Z1 = Founded Z2 = CEO-of Steve Jobs founded Apple Steve Jobs is the CEO of Apple 𝑎𝑗 ∈ 𝑆 Relation mention Variables (Capture sentence level prediction) X1 X2 CEO-of Z3 = None Steve Jobs left Apple X3
1 𝑎𝑦 𝑠 𝜚𝑘𝑝𝑗𝑜(𝑧𝑠, 𝑨) 𝑗 ∅𝑓𝑦𝑢𝑠𝑏𝑑𝑢(𝑨𝑗,𝑦𝑗)
1 if at least one 𝑨𝑗 mentions relation 𝑧𝑠 [Mintz et al] features
1 𝑎𝑦 𝑠 𝜚𝑘𝑝𝑗𝑜(𝑧𝑠, 𝑨) 𝑗 ∅𝑓𝑦𝑢𝑠𝑏𝑑𝑢(𝑨𝑗,𝑦𝑗)
1 𝑎𝑦 𝑠 𝜚𝑘𝑝𝑗𝑜(𝑧𝑠, 𝑨) 𝑗 exp( 𝑘 𝜄 𝑘 ∅𝑘(𝑨𝑗,𝑦𝑗)
𝑀 𝜄 =
𝑗
𝑄 𝑧𝑗 𝑦𝑗; 𝜄 =
𝑗 𝑨
𝑄 𝑧𝑗, 𝑨 𝑦𝑗; 𝜄 𝑚 𝜄 =
𝑗
𝑚𝑝
𝑨
𝑄 𝑧𝑗, 𝑨 𝑦𝑗; 𝜄
1 if at least one 𝑨𝑗 mentions relation 𝑧𝑠 [Mintz et al] features
Assumption of online training
Difficult to compute Compute argmax instead
Need to do two inferences
?
𝑍 ∈ 0,1 𝑠 Relation Variables (Capture aggregate level prediction)
? ?
Steve Jobs founded Apple Apple was founded by Steve Jobs 𝑎𝑗 ∈ 𝑆 Relation mention Variables (Capture sentence level prediction) X1 X2
? ?
Steve Jobs ls the CEO of Apple X3
founder CEO-of
?
Capital
Founder 10.5 12.5 4.5 CEO-of 8.9 8.7 8.5 Capital 6.3 4.5 0.5
?
𝑍 ∈ 0,1 𝑠 Relation Variables (Capture aggregate level prediction)
? ?
Steve Jobs founded Apple Apple was founded by Steve Jobs 𝑎𝑗 ∈ 𝑆 Relation mention Variables (Capture sentence level prediction) X1 X2
?
?
Steve Jobs is the CEO of Apple X3
founder CEO-of
?
Capital
Founder 10.5 12.5 4.5 CEO-of 8.9 8.7 8.5 Capital 6.3 4.5 0.5
?
𝑍 ∈ 0,1 𝑠 Relation Variables (Capture aggregate level prediction)
Founder Founder
Steve Jobs founded Apple Apple was founded by Steve Jobs 𝑎𝑗 ∈ 𝑆 Relation mention Variables (Capture sentence level prediction) X1 X2
?
CEO-of
Steve Jobs is the CEO of Apple X3
founder CEO-of
?
Capital
Founder 10.5 12.5 4.5 CEO-of 8.9 8.7 8.5 Capital 6.3 4.5 0.5
1
𝑍 ∈ 0,1 𝑠 Relation Variables (Capture aggregate level prediction)
Founder Founder
Steve Jobs founded Apple Apple was founded by Steve Jobs 𝑎𝑗 ∈ 𝑆 Relation mention Variables (Capture sentence level prediction) X1 X2
1
CEO-of
Steve Jobs is the CEO of Apple X3
founder CEO-of Capital
Founder 10.5 12.5 4.5 CEO-of 8.9 8.7 8.5 Capital 6.3 4.5 0.5
1
𝑍 ∈ 0,1 𝑠 Relation Variables (Capture aggregate level prediction)
? ?
Steve Jobs founded Apple Apple was founded by Steve Jobs 𝑎𝑗 ∈ 𝑆 Relation mention Variables (Capture sentence level prediction) X1 X2
1 ?
Steve Jobs is the CEO of Apple X3
founder CEO-of Capital
Founder 10.5 12.5 4.5 CEO-of 8.9 8.7 8.5 Capital 6.3 4.5 0.5
1
𝑍 ∈ 0,1 𝑠 Relation Variables (Capture aggregate level prediction)
? ?
Steve Jobs founded Apple Apple was founded by Steve Jobs 𝑎𝑗 ∈ 𝑆 Relation mention Variables (Capture sentence level prediction) X1 X2
1 ?
Steve Jobs is the CEO of Apple X3
founder CEO-of Capital
10.5 12.5 4.5 8.9 8.7 8.5 Founder 10.5 12.5 4.5 CEO-of 8.9 8.7 8.5 Capital 6.3 4.5 0.5
Potentials as edge weights (Ignore edges With y = 0)
1 Variant of weighted edge cover problem ? ?
Steve Jobs founded Apple Apple was founded by Steve Jobs X1 X2
1 ?
Steve Jobs is the CEO of Apple X3
founder CEO-of Capital
10.5 12.5 4.5 8.9 8.7 8.5 Founder 10.5 12.5 4.5 CEO-of 8.9 8.7 8.5 Capital 6.3 4.5 0.5
Potentials as edge weights (Ignore edges With y = 0) Each y at least one edge Each z exactly one edge
1 Variant of weighted edge cover problem ? ?
Steve Jobs founded Apple Apple was founded by Steve Jobs X1 X2
1 ?
Steve Jobs is the CEO of Apple X3
founder CEO-of Capital
10.5 12.5 4.5 8.9 8.7 8.5 Founder 10.5 12.5 4.5 CEO-of 8.9 8.7 8.5 Capital 6.3 4.5 0.5
Potentials as edge weights (Ignore edges With y = 0) Each y at least one edge Each z exactly one edge
1 Variant of weighted edge cover problem
Founder Founder
Steve Jobs founded Apple Apple was founded by Steve Jobs X1 X2
1
CEO-Of
Steve Jobs is the CEO of Apple X3
founder CEO-of Capital
10.5 12.5 4.5 8.9 8.7 8.5 Founder 10.5 12.5 4.5 CEO-of 8.9 8.7 8.5 Capital 6.3 4.5 0.5
Potentials as edge weights (Ignore edges With y = 0) Each y at least one edge Each z exactly one edge
1 Variant of weighted edge cover problem
Founder Founder
Steve Jobs founded Apple Apple was founded by Steve Jobs X1 X2
1
CEO-Of
Steve Jobs is the CEO of Apple X3
founder CEO-of Capital
10.5 12.5 4.5 8.9 8.7 8.5 Founder 10.5 12.5 4.5 CEO-of 8.9 8.7 8.5 Capital 6.3 4.5 0.5
Potentials as edge weights (Ignore edges With y = 0) Each y at least one edge Each z exactly one edge
Relations marked wrong.
𝑁 : Sentences MultiR extracted relation r.
𝐺 : Sentences matching arguments in freebase for relation r.
Effect of modeling
[Dinesh Raghu]
Barun]
[Anshul, Rishabh]
[Surag]