102
Global Learning of Textual Entailment Graphs Supervisors : Eytan Ruppin, Ido dagan, Shimon Edelman 15/8/12

Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Global  Learning  of  Textual  Entailment  Graphs

Supervisors:  Eytan  Ruppin,  Ido  dagan,  Shimon  Edelman  15/8/12

Page 2: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Natural  Language  Understanding

•  Roots  in  early  AI  (50’s)  

•  InformaKon  explosion  •  2008:  1  trillion  unique  URLs  found  by  Google  

Global  Learning  of  Textual  Entailment  Graphs   2  

Page 3: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Organizing  Textual  InformaKon

•  Acute  need  to  organize  textual  informaKon  – Based  on  meaning  rather  than  form  

•  Etzioni,  Search  needs  a  shake-­‐up,  Nature  476  – Challenge:  inference/language  variability  

Global  Learning  of  Textual  Entailment  Graphs   3  

Page 4: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

NLU  ApplicaKons

Q Where was Reagan raised? A Reagan was brought up in Dixon.

… IBS is characterized by lower abdominal pain …

Global  Learning  of  Textual  Entailment  Graphs   4  

Page 5: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

NLU  ApplicaKons

Purchase  events:  

IBM   Coremetrics  

Yahoo!   Overture  

Google   reMail  

…   …  

… Google acquires mobile E-mail utility reMail …

Global  Learning  of  Textual  Entailment  Graphs   5  

Page 6: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Obama  gave  a  speech  last  night  in  the  Israeli  lobby  conference  

In  his  speech  at  the  American  Israel  Public  Affairs  CommiFee  yesterday,  the  president  challenged  …    Barack  Obama’s  AIPAC  

address  yesterday  ...  

NLU  ApplicaKons

•   MulK-­‐document  SummarizaKon

6  Global  Learning  of  Textual  Entailment  Graphs  

Page 7: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Textual  Entailment

Page 8: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Textual  Entailment  (TE)  -­‐  DefiniKon •  A  direcKonal  relaKon  between  two  text  fragments:  Text  (t)  and  Hypothesis  (h).

t  textually  entails  h  (t  ⇒  h)  if  humans  reading  t  will  infer  that  h  is  most  likely  true

t: Usain Bolt celebrates 100m gold with Swedish women's handball team h: Usain Bolt won a gold medal

•  Recognising  Textual  Entailment  (RTE):  given  t  and  h,  recognize  whether  t  textually  entails  h

Global  Learning  of  Textual  Entailment  Graphs   8  

Page 9: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Appeal  of  Textual  Entailment  •  Inferences  required  by  semanKc  applicaKons  can  be  reduced  to  recognizing  textual  entailment:  •  QA:  (Harabagiu  and  Hickl,  2006)  

•  Reagan  was  brought  up  in  Dixon  ⇒  Reagan  was  raised  in  X  

•  IE:  (Romano  et  al.,  2006)  •  Google  acquired  e-­‐mail  uRlity  reMail  ⇒  Xcompany    purchase  Ycompany  

•  SummarizaKon:  omit  sentences  entailed  by  current  summary  

•  Led  to  seven  challenges  since  2005  for  semanKc  inference  systems  

Global  Learning  of  Textual  Entailment  Graphs   9  

Page 10: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Entailment  rules

•  TE  systems  require  knowledge  –   encoded  as  entailment  rules:  

 

•  AutomaKc  methods  for  learning  large-­‐scale  knowledge  resources  is  imperaKve

giraffe  ⇒  mammal  X  was  brought  up  in  Y  ⇒  X  was  raised  in  Y  Xcity  capital  of  Ycountry  ⇒  Xcity  be  part  of  Ycountry  X  [VERBtrans]  Y  ⇒  Y  be  [VERBparRciple]  by  X  

Global  Learning  of  Textual  Entailment  Graphs   10  

Page 11: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

PredicaKve  Entailment  Rules

•  ProposiKon:  NL  expression  containing  one  predicate  and  at  least  one  argument:  

•  ProposiKonal  template:  proposiKon  where  at  least  one  argument  is  replaced  by  a  variable:  

   

 

 

X  jumped  up  and  down  Xplayer  beat  Yplayer  X  passed  the  baton  to  Y  

Andy  Murray  jumped  up  and  down  Ryan  Lochte  beat  Michael  Phelps  Yohan  Blake  passed  the  baton  to  Ussain  Bolt  

Global  Learning  of  Textual  Entailment  Graphs   11  

Page 12: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

PredicaKve  Entailment  Rules

•   InformaKon  is  conveyed  by  proposiKons    

Y  is  a  symptom  of  X  ⇒  X  cause  Y    

X  cause  an  increase  in  Y  ⇒  X  affect  Y    

X’s  treatment  of  Y  ⇒  X  treat  Y    

Global  Learning  of  Textual  Entailment  Graphs   12  

Page 13: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

ContribuKon  1:  Entailment  Graphs

X  affect  Y

X  treat  Y X  lower  Y

X  reduce  Y

X  affect  Y  ⇒  X  treat  Y

X  treat  Y  ⇒  X  affect  Y

X  affect  Y  ⇒  X  lower  Y

X  lower  Y  ⇒  X  affect  Y

X  lower  Y  ⇒  X  reduce  Y

X  reduce  Y  ⇒  X  lower  Y

•   Advantage:  employ  structural  constraints  

Global  Learning  of  Textual  Entailment  Graphs   13  

Page 14: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

ContribuKon  2:  Scaling

1  

10  

100  

1000  

10000  

100000  

2010   2011   2012  

#  rules  

#  nodes  

exact exact approximate

Global  Learning  of  Textual  Entailment  Graphs   14  

Page 15: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

ContribuKon  3:  ApplicaKons

•  Public  release  of  learned  rules:  1.  High  precision  resource:  100,000  rules  2.  High  coverage  resource:  10,000,000  rules  

•  Textual  exploraKon  applicaKon  

Global  Learning  of  Textual  Entailment  Graphs   15  

Page 16: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:
Page 17: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Outline

•  Background  •  Basic  algorithm  and  ILP  formulaKon  •  Scalability  1:  Graph  decomposiKon  •  Scalability  2:  Tree-­‐based  approximaKon  •  Text  exploraKon  applicaKon  

17  

Page 18: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Background

Page 19: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Local  Learning  

•  Sources  of  informaKon:  1.  Lexicographic:  WordNet  (Szpektor  and  Dagan,  2009),  

FrameNet  (Ben-­‐aharon  et  al,  2010)  2.  Paiern-­‐based  (Chklovsky  and  Pantel,  2004)  3.  DistribuKonal  similarity  (Lin  and  Pantel,  2001;  Szpektor  

and  Dagan,  2008;  Bhagat  et  al,  2007;Yates  and  Etzioni,  2009;  Poon  and  Domingos  2010;  Schoenmackers  et  al.,  2010)  

Input:  pair  of  predicates  (p1,p2)  QuesKon:  p1→p2  ?    

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

19  

Page 20: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

ProperKes  of  InformaKon  Sources  

1.  Lexicographic:  – WordNet  relaKons:  hyponym,  derivaKon,  entailment  

– Limited  coverage:  “X  cause  a  reducRon  in  Y”  2.  Paiern-­‐based:  

– “he  scared  and  even  startled  me”  – Requires  very  large  corpus  (web-­‐scale)  – DisKnguishes  different  semanKc  relaKons:  

•  “to  X  and  even  Y”  vs.  “Either  X  or  Y”  3.  DistribuKonal  similarity  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

20  

Page 21: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

DistribuKonal  Similarity

X  affect  Y

# Y X 7 metabolism insulin

4 BP Zantac

… … …

X  treat  Y

# Y X 9 BP Zantac

2 diabetes diet

… … …

•  Vary  w.r.t  to  representaKon  and  similarity  computaKon  •  Symmetric  vs.  direcKonal  

•  Good  coverage  •  Discerning  exact  semanKc  relaKon  is  difficult  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

21  

Page 22: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Global  Learning Input:  Set  of  predicates  P  QuesKon:  Find  E  =  {  (p1,p2)  |  p1  à  p2  }  

•  Applying  transiKvity  constraints:  – Undirected  graphs:  

•  Paraphrasing  (Yates  and  Etzioni,  2009)  •  Co-­‐reference  resoluKon  (Finkel  and  manning,  2008)  

– Directed  graph  •  Taxonomy  inducKon  (Snow  et  al.,  2006)  •  Ontology  inducKon  (Poon  and  Domingos,  2010)  •  Temporal  informaKon  extracKon  (Ling  and  Weld,  2010)  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

22  

Page 23: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Global  Learning

•  Snow  et  al.  (2006)  presented  an  algorithm  for  taxonomy  inducKon.

mammal

carnivore

feline

horse

cat

•  At  each  step  they  add  the  concept  that  maximizes  the  likelihood  of  the  taxonomy  given  the  transiKvity  constraint.

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

23  

Page 24: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Basic  Algorithm  and    ILP  FormulaKon

Page 25: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Entailment  Graphs  

•  Nodes:  proposiKonal  templates  •  Edges:  entailment  rules   X  affect  Y

ProperKes  •  Entailment  is  transi8ve  •  Strong  connecKvity  components  correspond  to  “equivalence”  •  Caveat:  ambiguity  

X  treat  Y X  lower  Y

X  reduce  Y

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

25  

Page 26: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Learning  Entailment  Graph  Edges

Input:  Corpus  C  Output:  Entailment  graph  G  =  (P,E)  

1.  Extract  proposiKonal  templates  P  from  C    2.  Train  a  local  entailment  classifier:  given  (p1,p2),  

esKmate  whether  p1à  p2  3.  Decoding:  Find  the  edges  of  the  graph  using  the  

local  probabiliKes  and  a  transiKvity  constraint  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

26  

Page 27: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

raise,lower

Corpus  

treat(Norvasc,BP)  affect(Norvasc,BP)  treat(insulin,metab.)  affect(diet,diabetes)  raise(wine,faRgue)  lower(wine,BP)  

Local  Entailment  Classifier  –  Step  1+2  

PosiKve:  Treatàaffect   Raise,Lower  

treatàaffect 0.1 0.9 0.8 0.6 1 0 0.7

treatàaffect   raise  à  lower  

raiseàlower 0 0.1 0.2 0 0 0.3 0

classifier  

(raise,increase)

P  =  0.7

Distant  supervision  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

27  

Page 28: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

)1()1(log

maxargˆ

θθ−⋅−

=

⋅=

≠∑

ij

ijij

ijji

ijX

ppw

xwG

Graph  ObjecKve  FuncKon

•  Use  local  classifier  probabiliKes  pij  to  express  the  graph  probability:  

 “density”  prior

1  i  à  j  0  else  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

28  

Page 29: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Global  Learning  of  Edges  –  Step  3  

•  Problem  is  NP-­‐hard:  –  ReducKon  from  “TransiKve  Subgraph”  (Yannakakis,  1978)  

Input:  Set  of  nodes  V,  weighKng  funcKon  w:V×Và  R  Output:  Set  of  directed  edges  E    that  maximizes  the    objecKve  funcKon  under  a  global  transi8vity  constraint  

Input:  Directed  graph  G  =  (V,E)  Output:  Maximal  set  of  edges  A  ⊆  E  such  that    G’  =  (V,A)  is  transiKve    

•  Integer  Linear  Programming  FormulaKon  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

29  

Page 30: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Integer  Linear  Program  

}1,0{1,,,

maxargˆ

≤∈∀

⋅=

−+

≠∑

ij

ikjkij

ijji

ij

xxxxVkji

xwG

•  Variables:  xij  •  ObjecKve  funcKon:  maximizes  P(G)  •  Global  transiKvity  constraint:  -­‐  O(|V|3)  constraints  

i  

k  

j  1  1  

0   1+1-­‐0  =  2  >  1  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

30  

Page 31: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

EvaluaKon:  Focused  Entailment  Graphs

•  Argument  is  instanKated  by  a  target  concept  (nausea)  •  InstanKaKng  an  argument  reduces  ambiguity  

X-­‐related-­‐to-­‐nausea   X-­‐associated-­‐with-­‐nausea  

X-­‐prevent-­‐nausea   X-­‐help-­‐with-­‐nausea  

X-­‐reduce-­‐nausea   X-­‐treat-­‐nausea  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

31  

Page 32: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

32  

Page 33: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Experimental  EvaluaKon

•  50  million  word  tokens  healthcare  corpus  •  Ten  medical  students  prepared  gold  standard  graphs  for  23  medical  concepts:  – Smoking,  seizure,  headache,  lungs,  diarrhea,  chemotherapy,  HPV,  Salmonella,  Asthma,  etc.  

•  EvaluaKon:  – F1  on  set  of  learned  edges  vs.  gold  standard  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

33  

Page 34: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Gold  Standard  Graph  -­‐  Asthma  Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

Page 35: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Evaluated  algorithms

•  Local  algorithms  – DistribuKonal  similarity  – WordNet  – Local  classifier  

•  Global  algorithms  –  ILP/Snow  et  al.  (greedy  opKmizaKon)  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

35  

Page 36: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Results F1 Precision recall

43.8* 50.1 46.0 ILP-­‐global

36.6 37.1 45.7 Greedy

38.1 45.3 44.5 ILP-­‐local

37.5 34.9 53.5 Local1 37.7 31.6 52.5 Local2 39.8 38.0 53.5 Local*1 38.1 32.1 52.5 Local*2 13.2 44.1 10.8 WordNet

•  The  algorithm  significantly  outperforms  all  other  baselines.

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

36  

Page 37: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Results Global=false/Local=true Global=true/Local=false

42 48 Gold  standard  =  true

494 78 Gold  standard  =  false

•  Global  algorithm  avoids  false  posiKves.

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

37  

Page 38: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

IllustraKon  –  Graph  Fragment

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formula8on  à  Graph  decomposiKon  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

38  

Page 39: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Graph  DecomposiKon  

Page 40: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Graph  DecomposiKon  

•  ProposiKon:  If  we  can  parKKon  the  nodes  to  I,J  such  that  wij<0  for  every  i,j  then  any  (i,j)  is  not  an  edge  in  the  opKmal  soluKon  

I   J  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

40  

Page 41: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Graph  DecomposiKon  

wij>0  wij<0

•   Entailment  graphs  are  sparse  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

41  

Page 42: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Scalability  –  Graph  DecomposiKon  

Wij>0  Wij<0

•   Local  soluKon  •   Trans.  violaKons  •   Local  soluKon  •   Global  SoluKon  •   Local  SoluKon  •   Conn.  components

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

42  

Page 43: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Scalability  –  Graph  DecomposiKon  

1.   Input  2.   Undirected  

posiKve  edges  3.   Conn.  

Components  4.  Apply  ILP  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

43  

Page 44: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Scalability  –  Graph  DecomposiKon  

•   Input  •   Undirected  posiKve  edges  •   Conn.  Components  5.  Global  soluKon  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

44  

Page 45: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

DecomposiKon  Extension  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

45  

Page 46: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Cuzng-­‐plane  Method  

•  Applied  in  parsing  (Riedel  and  Clarke,  2006)  •  Number  of  constraints:  O(|V|3)  •  A  reasonable  local  classifier  does  not  violate  most  of  the  constraints  

•  Add  constraints  only  if  they  are  violated  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

46  

Page 47: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Cuzng-­‐plane  Method  

a b

dc

Constraints:  1.  (c,a,b)  2.  (d,b,a)  3.  (d,b,c)  

•  Empirically  converges  in  6  iteraKons  and  reduces  number  of  constraints  from  106  to  103-­‐104  

Wij>0  Wij<0

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

47  

Page 48: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Final  Algorithm

•  Given  a  set  of  predicates:  – Decompose  into  components  – Apply  a  cuzng-­‐plane  method  on  each  component

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

48  

Page 49: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

EvaluaKon:  Typed  Entailment  Graphs  

•  Predicate  variables  are  typed:  – Xcompany  acquire  Ycompany  à  Ycompany  is  sold  to  Xcompany  

•  Rules  of  wide-­‐applicability  but  less  ambiguous  •  Schoenmackers  et  al.  (EMNLP  2010)  used  a  local  algorithm  to  learn  30,000  entailment  rules  

•  We  want  to  use  a  global  algorithm        

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

49  

Page 50: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Typed  Entailment  Graphs  

province  of  (place,country)  

become  part  of  (place,country)  

annex  (country,place)  

invade  (country,place)  

•  A  graph  is  defined  for  every  pair  of  types  •  Nodes  are  termed  typed  predicates  •  Types  alleviate  the  ambiguity  problem  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

50  

Page 51: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Experiment  1  -­‐  TransiKvity

•  1  million  TextRunner  tuples  over  10,672  typed  predicates  and  156  types  

•  Consist  ~2,000  typed  entailment  graphs  •  10  gold  standard  graphs  of  sizes:  7,  14,  22,  30,  38,  53,  59,  62,  86  and  118  

•  EvaluaKon:  – F1  on  set  of  edges  vs.  gold  standard  – Area  Under  the  Curve  (AUC)

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

51  

Page 52: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Evaluated  algorithms

•  Local  algorithms  – DistribuKonal  similarity  (DIRT,  BInc,  etc.)  – DistribuKonal  similarity  +  background  knowledge  –  ILP  with  No  transiKvity  constraints  – Sherlock  rule  resource  

•  Global  algorithm:  ILP  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

52  

Page 53: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

0  

0.2  

0.4  

0.6  

0.8  

1  

0   0.1   0.2   0.3   0.4   0.5   0.6   0.7   0.8   0.9  

precision  

recall  

Global  Local  

Precision-­‐Recall:  Global  vs.  Local

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

53  

Page 54: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

0  

0.2  

0.4  

0.6  

0.8  

1  

0   0.1   0.2   0.3   0.4   0.5   0.6   0.7   0.8   0.9  

precision  

recall  

Global  Local1  Local2  Local3  Local4  

Precision-­‐Recall:  Global  vs.  Local

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

54  

Page 55: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

0  

0.2  

0.4  

0.6  

0.8  

1  

0   0.1   0.2   0.3   0.4   0.5   0.6   0.7   0.8   0.9  

precision  

recall  

Global  Sherlock  

Precision-­‐Recall:  Global  vs.  Local

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

55  

Page 56: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Results Micro-­‐average   AUC  

R   P   F1  ILP   43.4   42.2   42.8   0.22  

Clsf   30.8   37.5   33.8   0.17  

Sherlock   20.6   43.3   27.9   N/A  

SR   38.4   23.2   28.9   0.14  

DIRT   25.7   31.0   28.1   0.13  

BINC   31.8   34.1   32.9   0.17  

•  R/P/F1  at  point  of  maximal  micro-­‐F1  •  TransiKvity  improves  rule  learning  over  typed  predicates  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

56  

Page 57: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Experiment  2  -­‐  Scalability  

•  Run  ILP  with  and  without  graph  decomposiKon  over  ~2,000  graphs  

•  Compare  number  of  learned  rules  for  various  sparseness  parameters  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

57  

Page 58: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Results  Sparsity   #  learned  rules   Δ(%)  

-­‐1.75   6,242/7,466   +20  

-­‐1   16,790/19,396   +16  

-­‐0.6   26,330/29,732   +13  

•  Scaling  techniques  add  3,500  new  rules  to  best  configuraKon  

•  Corresponds  to  13%  increase  in  relaKve  recall  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposi8on  à  Tree-­‐based  approximaKon  à  Text  exploraKon  applicaKon  

58  

Page 59: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Tree-­‐based  ApproximaKon  

Page 60: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Tree-­‐based  ApproximaKon  -­‐  Outline

1.  Forest-­‐reducible  graphs  (FRG)  2.  Tree-­‐Node-­‐Fix  algorithm  (TNF)  3.  Experiments:  

1.  Typed  entailment  graph  2.  Untyped  entailment  graphs  

Page 61: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Directed  Forest

•  For  an  edge  iàj  in  a  DAG  we  say  that  i  is  a  child  of  j  and  j  a  parent  of  i  

•  A  directed  forest  is  a  DAG  where  all  nodes  have  no  more  than  one  parent

j

i

i

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

61  

Page 62: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Entailment  Graphs  are  not  Forests

Xdisease    be  epidemic  in  

 Ycountry

Xdisease  common  in    Ycountry

Xdisease    occur  in    Ycountry

Xdisease  frequent  in    Ycountry

Xdisease    begin  in    Ycountry

•  But  generally  entailment  is  from  “specific”  predicates  to  more  “general”  ones

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

62  

Page 63: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

CompuKng  SCC  Graph

Xdisease    be  epidemic  in    

Ycountry  

Xdisease  common  in  Ycountry  Xdisease    frequent  in  Ycountry  

Xdisease    occur  in    Ycountry  

Xdisease    begin  in  Ycountry

•  Contract  strongly  connected  components.

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

63  

Page 64: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

TransiKve  ReducKon

Xdisease    be  epidemic  in    

Ycountry  

Xdisease  common  in  Ycountry  Xdisease    frequent  in  Ycountry  

Xdisease    occur  in    Ycountry  

Xdisease    begin  in  Ycountry

•  Delete  edges  inferred  by  transiKvity  Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

64  

Page 65: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Reduced  Graphs

•  Reduced  graphs  are  an  equivalent  representaKon  for  transiKve  graphs.  

•  The  reduced  graph  in  this  case  is  a  directed  forest

epidemic  in

common  in  

occur  in  

frequent  in  

 begin  in  

be  epidemic  in    

common  in  frequent  in  

occur  in    

begin  in

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

65  

Page 66: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Forest-­‐reducible  Graphs  (FRG) •  Hypothesis:  The  reduced  graph  of  entailment  graphs  is  usually  a  directed  forest,  i.e.,  entailment  graphs  are  FRGs  

•  Not  necessarily  true:

Xperson    ambush    Yperson  

•  But  excepKons  are  rare…  

Xperson    wait  for    Yperson  

Xperson    plan  to  aZack  

 Yperson  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

66  

Page 67: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

FRG  AssumpKon  is  reasonable

•  Over  our  Typed  entailment  graph  data  set:  – We  manually  constructed  FRGs  >=  .95  recall  and  1.0  precision  on  7  gold  standard  graphs  

•  Finding  the  best  FRG  is  sKll  NP-­‐hard,  by  a  polynomial  reducKon  from  X3C.

Input:  Set  X  of  size  3n,  subsets  S1,  S2,  …,  Sm  of  size  3  Output:  Subsets  Si1,  …,  Sin  covering  X  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

67  

Page 68: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

.  

.  

.

x1

x2

x3

x4

x5

x3n-­‐1

x3n

.  

.  

.  

.

s1

s2

sm

.  

.  

.  

.

t1

tm

t2 a

2

2

2

1

1

1

M M

M

1

1

1

1

1 1

1 1 1

Page 69: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

FRG  Summary •  Entailment  graphs  are  o~en  FRGs  

–  InteresKng  linguisKc  observaKon  – Leads  to  an  efficient  method  for  learning  edges  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

69  

Page 70: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Tree-­‐based  ApproximaKon  -­‐  Outline

•  Forest-­‐reducible  graphs  (FRG)  •  Tree-­‐Node-­‐Fix  algorithm  (TNF)  •   Experiments:  

– Typed  entailment  graph  – Large  untyped  entailment  graphs  +  resource  

Page 71: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

SequenKal  ApproximaKon

2 3

1

4

5

Input: Nodes V and weighting function w!1. Initialize graph (e.g., empty graph)!2. For every node v in V:!

1.  Re-attach v in a locally-optimal way!3. Until convergence!

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

71  

Page 72: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

2 3

1

4

5

Reaiach  (2)

Input: Nodes V and weighting function w!1. Initialize graph (e.g., empty graph)!2. For every node v in V:!

1.  Re-attach v in a locally-optimal way!3. Until convergence!

SequenKal  ApproximaKon

Candidate  edges:  (1,2)  (2,1)  (2,3)  (3,2)  (2,4)  (4,2)  (2,5)  (5,2)

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

72  

Page 73: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

2

3

1

4

5

Input: Nodes V and weighting function w!1. Initialize graph (e.g., empty graph)!2. For every node v in V:!

1.  Re-attach v in a locally-optimal way!3. Until convergence!

SequenKal  ApproximaKon

Candidate  edges:  (1,2)  (2,1)  (2,3)  (3,2)  (2,4)  (4,2)  (2,5)  (5,2)

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

73  

Page 74: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

2

3

1

4

5

Reaiach  (4)

Input: Nodes V and weighting function w!1. Initialize graph (e.g., empty graph)!2. For every node v in V:!

1.  Re-attach v in a locally-optimal way!3. Until convergence!

SequenKal  ApproximaKon

Candidate  edges:  (1,4)  (4,1)  (2,4)  (4,2)  (3,4)  (4,3)  (4,5)  (5,4)

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

74  

Page 75: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

2

3

1

45

Input: Nodes V and weighting function w!1. Initialize graph (e.g., empty graph)!2. For every node v in V:!

1.  Re-attach v in a locally-optimal way!3. Until convergence!

SequenKal  ApproximaKon

Candidate  edges:  (1,4)  (4,1)  (2,4)  (4,2)  (3,4)  (4,3)  (4,5)  (5,4)

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

75  

Page 76: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Tree-­‐Node-­‐Fix:  Re-­‐aiach  v

Input: Graph G, node v in V, function w!1. Delete v!2. Compute reduced graph Gred (directed

forest)!3. Re-attach v in a locally-optimal way.!

Node  re-­‐aiachment  in  FRGs  takes  linear  Kme!

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

76  

Page 77: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

ObjecKve  FuncKon

v

c3 c4 c2

c1

c5

∑∑≠

⋅ +vk

vkvkvi

iviv xwxwmaxarg

Incoming  edges Outgoing  edges Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

77  

Page 78: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Scores  for  Components

v

c3 c4 c2

c1

c5

∑∑∈

− +=)(

)()(cchildd

invci

ivinv dSwcS Sv-­‐in(c4)

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

78  

Page 79: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

DefiniKons

v

c3 c4 c2

c1

c5

∑∑∈

− +=)(

)()(cchildd

invci

ivinv dSwcS Sv-­‐in(c1)

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

79  

Page 80: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

DefiniKons

v

c3 c4 c2

c1

c5

Sv-­‐out(c4) ))(()( cparentSwcS outvci

vioutv −

− +=∑

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

80  

Page 81: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

DefiniKons

v

c3 c4 c2

c1

c5

Sv-­‐out(c5) ))(()( cparentSwcS outvci

vioutv −

− +=∑

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

81  

Page 82: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

TNF  –  case  1

v

c3

•  InserKon  into  one  of  the  components  

c4 c2

c1

c5

)()( cScS outvinv −− +Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

82  

Page 83: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

TNF  –  case  2

v

c2

•  Choose  a  single  parent  •  Only  direct  children  of  p  can  become  children  of  v  •  Once  a  parent  is  chosen,  choose  children  independently.  

c3 c1

p

g

))(,0max()( cSpS invc

outv −− ∑+Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

83  

Page 84: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

TNF  –  case  3

v

c2

•  Choose  no  parent  (forest  root)  •  Choose  children  independently  from  roots.  

c3 c1

r

g

))(,0max( rS invrootsr

∈∑

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

84  

Page 85: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

TNF  -­‐  Summary

•  CompuKng  Sv-­‐in(c)  and  Sv-­‐out(c)  is  linear  (DP)  •  Choosing  best  case  is  linear  •  Re-­‐aiachment  is  linear  •  TNF  is  quadraKc  •  Extension:  Tree-­‐Node-­‐Component-­‐Fix  (TNCF)  

– Allow  re-­‐aiachment  of  reduced  graph  components.  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

85  

Page 86: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Complexity  Results

FRG TransiKve  Graph

NP-­‐hard NP-­‐hard EnKre  graph

Linear ? Node  re-­‐aiachment

86  Global  Learning  of  Entailment  Graphs  

Background  à  Algorithm  scheme  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Future  work  

Page 87: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Outline

•  Forest-­‐reducible  graphs  (FRG)  •  Tree-­‐Node-­‐Fix  algorithm  (TNF)  •   Experiments:  

– Typed  entailment  graph  – Large  untyped  entailment  graphs  +  resource  

Page 88: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Experiment  1:  Typed  Graphs  

province  of  (place,country)  

become  part  of  (place,country)  

annex  (country,place)  

invade  (country,place)  

•  ACL  11’  experimental  sezng  •  Medium-­‐size  graphs  •  Predicates/nodes  are  disambiguated  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

88  

Page 89: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Evaluated  Algorithms

•  No-­‐trans:  no  transiKvity  constraints  (wij)  •  Exact-­‐graph:  ACL  11’  exact  method  •  Exact-­‐forest:  Find  opKmal  FRG  with  ILP  solver  •  LP-­‐relax  (MarKns  et  al.,  09’)  •  Tree-­‐Node-­‐Fix  (TNF)  •  Graph-­‐Node-­‐Fix  (GNF)    

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

89  

Page 90: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Run  Kme

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

90  

Page 91: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Precision-­‐recall  Curve

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

91  

Page 92: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Expriment  2:  Untyped  Graphs •  Large  graph:  10,000  predicates  •  Based  on  REVERB  (fader  et  al.,  11’)  •  Predicates  are  ambiguous  

– TransiKvity  and  FRG  assumpKon  

•  Features:  distribuKonal  similarity,  lexicographic  and  string-­‐similarity  features  for  every  pair  of  predicates  

 

X  lower  Y

X  reduce  Y

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

92  

Page 93: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Training  and  Test  Set  GeneraKon

•  Gold  standard  annotaKon:  –  Instance-­‐based  evaluaKon  with  crowdsourcing  (Zeichner  et  al.,  2012)  

– Training  set:  ~3,300  pairs  of  predicates  – Test  set:  ~1,750  pairs  of  predicates  

•  Trained  classifier  provides  wij  

•  We  managed  to  run  only  No-­‐trans,  TNF,  and  TNCF  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

93  

Page 94: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Experiment  2  -­‐  Results F1 Precision Recall Method 0.24 0.7 0.14 No-­‐trans 0.25 0.7 0.15 TNF 0.27 0.8 0.16 TNCF

•  FRG  and  TransiKvity  assumpKons  limit  recall  •  TNCF  –  improved  precision  for  recall  ~  0.15  •  High  precision  resource  of  >  100,000  entailment  rules  

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

94  

Page 95: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Resource

•  High-­‐precision  resource  of  >  100,000  entailment  rules    

•  In  addiKon,  15  million  rules  learned  over  100,000  predicates  – Outperforms  DIRT  (Lin  and  Pantel,  2001)  

•  SyntacKc  and  lexical  representaKons  •  hip://u.cs.biu.ac.il/~nlp/downloads/

Global  Learning  of  Textual  Entailment  Graphs  

Background  à  Basic  algorithm  and  ILP  formulaKon  à  Graph  decomposiKon  à  Tree-­‐based  approxima8on  à  Text  exploraKon  applicaKon  

95  

Page 96: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:
Page 97: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Local  Results

97  

Page 98: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Re-­‐aiachment  Examples

offer  a  wealth  of  provide  a  wealth  of

provide  a  lot  of  provide  plenty  of

offer  a  lot  of

offer  plenty  of

give  a  lot  of

generate  a  lot  of

mean  a  lot  of cause  of

cause

Global  Learning  of  Textual  Entailment  Graphs   98  

Page 99: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Re-­‐aiachment  Examples

encrypt  

convert   convince  

compress  

code  encode  

Global  Learning  of  Textual  Entailment  Graphs   99  

Page 100: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Re-­‐aiachment  Examples

depress  

deter  

discourage  

bring  down  

lower  

Global  Learning  of  Textual  Entailment  Graphs   100  

Page 101: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Conclusions

•  NLU  ApplicaKons  require  large  knowledge  resources  of  predicaKve  entailment  rules  

•  In  this  dissertaKon  we  presented  – A  model  that  uKlizes  graph  structure  to  improve  rule  learning  

– Algorithms  that  scale  for  learning  entailment  graphs  – A  large  knowledge  resource  of  rules  – An  applicaKon  for  text  exploraKon  

•  Future  work:  ambiguity  

Global  Learning  of  Textual  Entailment  Graphs   101  

Page 102: Global&Learning&of&Textual& EntailmentGraphsnlp.stanford.edu/joberant/homepage_files/talks/Public... · 2014. 7. 27. · Global&Learning&of&Textual& EntailmentGraphs ! Supervisors:

Thanks  for  coming!

Global  Learning  of  Textual  Entailment  Graphs   102