scott wen-tau yih...cvt3 series mila kunis family guy cast argmin meg griffin y x topic entity core...

32
Scott Wen-tau Yih

Upload: others

Post on 06-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Scott Wen-tau Yih

Page 2: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph
Page 3: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph
Page 4: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Knowledge

Base𝜆𝑥. sister_of(justin_bieber, 𝑥)

Who is Justin Bieber’s sister?

𝜆𝑥. sibling_of(justin_bieber, x) ∧ gender(x, female)

semantic parsing

querymatching

Jazmyn Bieber

Page 5: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Knowledge

Base

Who is Justin Bieber’s sister?

𝜆𝑥. sibling_of(justin_bieber, x) ∧ gender(x, female)

semantic parsingquery

Jazmyn Bieber

Page 6: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

“What was the date that Minnesota became a state?”

“When was the state Minnesota created?”

“Minnesota's date it entered the union?”

location.dated_location.date_founded

Page 7: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

directly

grows staged

Basic idea

Page 8: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Addresses Key Challenges

52.5

Page 9: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

• Introduction

• Background• Graph knowledge base

• Query graph

Page 10: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

• Family Guy cvt2

Meg Griffin

Lacey Chabert

1/31/1999

cvt1

from

12/26/1999

cvt3

series

Mila Kunis

Page 11: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Family Guy cast

Meg Griffinargmin

xy

topic entity core inferential chain

constraints

Page 12: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

• Introduction

• Background

• Staged Query Graph Generation (Our Approach)• Link topic entity

• Identify core inferential chain

• Augment constraints

Page 13: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Staged

Meg Family Guy

Family Guys1

Meg Griffins2

ϕ s0

(1) Link Topic Entity

Page 14: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Staged

Meg Family Guy

(2) Identify Core Inferential Chain

Family Guys1

Family Guy cast actor xys3

Family Guy writer start xys4

Family Guy genre xs5

Page 15: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Staged

Meg Family Guy

(3) Augment Constraints

Family Guy cast actor xy

Family Guy cast actor xy

Meg Griffin

Family Guy xy

Meg Griffinargmin

s3

s6

s7

Page 16: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Family Guys1

Meg Griffins2

ϕ s0

Page 17: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Family Guys1

Family Guy cast actor xys3

Family Guy writer start xys4

Family Guy genre xs5

Who first voiced Meg on Family Guy?

{cast−actor, writer−start, genre}

Page 18: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

• Input is mapped to two 𝑘-dimensional vectors

𝑃 𝑅 𝑃 =exp cos(𝑦𝑅 , 𝑦𝑃)

𝑅′ exp cos(𝑦𝑅′ , 𝑦𝑃)

𝑦𝑃 ∈ R𝑘 𝑦𝑅 ∈ R

𝑘

who voiced meg on 𝑒 cast−actor

15K 15K 15K 15K 15K

1000 1000 1000

max max

...

...

... max

300

...

...

<s> w1 w2 wT </s>

... ...

300

Page 19: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

• Who voiced Family Guy

cast FamilyGuy 𝑦 actor 𝑦 𝑥

• One or more constraint nodes can be added to 𝑦 or 𝑥• 𝑦 : Additional property of this event (e.g., character 𝑦 MegGriffin )

• 𝑥 : Additional property of the answer entity (e.g., gender)

Family Guy cast actor xy

Family Guy cast actor xy

Meg Griffin

Family Guy xy

Meg Griffinargmin

s3

s6

s7

Family Guy cast actor xys3

Page 20: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Who first voiced Meg on Family Guy?

Family Guy cast actor xys3

Family Guy writer start xys4

Page 21: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Who first voiced Meg on Family Guy?

Family Guy cast actor xys3

Family Guy xy

Meg Griffinargmins7

Page 22: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

𝑞 =Who first voiced Meg on Family Guy?

Family Guy cast

Meg Griffinargmin

xy

𝑠 =

Page 23: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

• Introduction

• Background

• Staged Query Graph Generation (Our Approach)

• Experiments• Data & evaluation metric

• Creating training data from Q/A pairs

• Results

Page 24: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

• What character did Natalie Portman play in Star Wars? Padme Amidala

• What currency do you use in Costa Rica? Costa Rican colon

• What did Obama study in school? political science

• What do Michelle Obama do for a living? writer, lawyer

• What killed Sammy Davis Jr? throat cancer [Examples from Berant]

Page 25: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Relation Matching (Identifying Core Inferential Chain)

Pattern Inferential Chain

what was <e> known for people.person.profession

what kind of government does <e> have location.country.form_of_government

what year were the <e> established sports.sports_team.founded

what city was <e> born in people.person.place_of_birth

what did <e> die from people.deceased_person.cause_of_death

who married <e> people.person.spouse_s

people.marriage.spouse

Page 26: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Reward Function 𝛾

Page 27: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

3335.7

37.539.2 39.9

41.344.3 45.3

52.5

0

10

20

30

40

50

60

Avg. F1 (Accuracy) on WebQuestions Test Set

Yao-14 Berant-13 Bao-14 Bordes-14b Berant-14 Yang-14 Yao-15 Wang-14 Yih-15

Page 28: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

Method #Entities Covered Ques. Labeled Ent.

Freebase API 19,485 98.8% 81.2%

Yang & Chang, ACL-15 9,147 99.8% 87.8%

52.5% 48.4%

Page 29: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

49.6 52.5

Page 30: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

A random sample of 100 incorrectly answered questions

Page 31: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

directly

Page 32: Scott Wen-tau Yih...cvt3 series Mila Kunis Family Guy cast argmin Meg Griffin y x topic entity core inferential chain constraints •Introduction •Background •Staged Query Graph

http://aka.ms/sent2vec

http://aka.ms/codalab-webq

http://aka.ms/stagg