310 likes | 467 Views
BIUTEE. Knowledge and Tree-Edits in Learnable Entailment Proofs. Asher Stern, Amnon Lotan , Shachar Mirkin , Eyal Shnarch , Lili Kotlerman , Jonathan Berant and Ido Dagan TAC November 2011, NIST, Gaithersburg, Maryland, USA Download at: http ://www.cs.biu.ac.il/~ nlp/downloads/biutee.
E N D
BIUTEE Knowledge and Tree-Edits in Learnable Entailment Proofs Asher Stern,AmnonLotan, ShacharMirkin, EyalShnarch, LiliKotlerman, Jonathan Berantand Ido Dagan TAC November 2011, NIST, Gaithersburg, Maryland, USA Download at: http://www.cs.biu.ac.il/~nlp/downloads/biutee
RTE • Classify a (T,H) pair asENTAILING or NON-ENTAILING Example • T: The boy was located by the police. • H: Eventually, the police found the child.
Matching vs. Transformations • Matching • Sequence of transformations (A proof) • Tree-Edits • Complete proofs • Estimate confidence • Knowledge based Entailment Rules • Linguistically motivated • Formalize many types of knowledge T = T0→ T1→ T2→ ... →Tn = H
Transformation based RTE - Example T = T0→ T1→ T2→ ... →Tn = H Text: The boy was located by the police. Hypothesis: Eventually, the police found the child.
Transformation based RTE - Example T = T0→ T1→ T2→ ... →Tn = H Text: The boy was located by the police. The police located the boy. The police found the boy. The police found the child. Hypothesis:Eventually, the police found the child.
Transformation based RTE - Example T = T0→ T1→ T2→ ... →Tn = H
BIUTEE Goals • Tree Edits • Complete proofs • Estimate confidence • Entailment Rules • Linguistically motivated • Formalize many types of knowledge • BIUTEE • Integrates the benefits of both worlds
Challenges / System Components How to • generate linguistically motivated complete proofs? • estimate proof confidence? • find the best proof? • learn the model parameters?
Entailment Rules Generic Syntactic Lexical Syntactic Lexical boy child Bar-Haim et al. 2007. Semantic inference at the lexical-syntactic level.
Extended Tree Edits (On The Fly Operations) • Predefined custom tree edits • Insert node on the fly • Move node / move sub-tree on the fly • Flip part of speech • … • Heuristically capture linguistic phenomena • Operation definition • Features definition
Proof over Parse Trees - Example T = T0→ T1→ T2→ ... →Tn = H Text: The boy was located by the police. Passive to active The police located the boy. X locate Y X find Y The police found the boy. Boy child The police found the child. Insertion on the fly Hypothesis: Eventually, the police found the child.
Cost based Model • Define operation cost • Assesses operation’s validity • Represent each operation as a feature vector • Cost is linear combination of feature values • Define proof cost as the sum of the operations’ costs • Classify: entailment if and only if proof cost is smaller than a threshold
Feature vector representation • Define operation cost • Represent each operation as a feature vector Features (Insert-Named-Entity, Insert-Verb, … , WordNet, Lin, DIRT, …) The police located the boy. DIRT: X locate Y X find Y (score = 0.9) The police found the boy. An operation A downward function of score (0,0,…,0.457,…,0) (0 ,0,…,0,…,0) Feature vector that represents the operation
Cost based Model • Define operation cost • Cost is linear combination of feature values Cost = weight-vector * feature-vector • Weight-vector is learned automatically
Confidence Model • Define operation cost • Represent each operation as a feature vector • Define proof cost as the sum of the operations’ costs Vector represents the proof.Define Cost of proof Weight vector
Feature vector representation - example T = T0→ T1→ T2→ ... →Tn = H Text: The boy was located by the police. Passive to active The police located the boy. X locate Y X find Y The police found the boy. Boy child The police found the child. Insertion on the fly Hypothesis: Eventually, the police found the child. (0,0,……………….………..,1,0) + (0,0,………..……0.457,..,0,0) + (0,0,..…0.5,.……….……..,0,0) + (0,0,1,……..…….…..…....,0,0) = (0,0,1..0.5..…0.457,....…1,0)
Cost based Model • Define operation cost • Represent each operation as a feature vector • Define proof cost as the sum of the operations’ costs • Classify: “entailing” if and only if proof cost is smaller than a threshold Learn
Search the best proof T H Proof #1 Proof #2 Proof #3 Proof #4
Search the best proof T H T H Proof #1 Proof #1 Proof #2 Proof #2 Proof #3 Proof #3 Proof #4 Proof #4 • Need to find the “best” proof • “Best Proof” = proof with lowest cost • Assuming a weight vector is given • Search space is exponential • AI style search algorithm
Learning • Goal: Learn parameters (w,b) • Use a linear learning algorithm • logistic regression, SVM, etc.
Inference vs. Learning Feature extraction Vector representation Learning algorithm Training samples Feature extraction Best Proofs w,b
Inference vs. Learning Vector representation Learning algorithm Training samples Feature extraction Best Proofs w,b
Iterative Learning Scheme Vector representation Learning algorithm Training samples 3. Learn new w and b Best Proofs w,b 4. Repeat to step 2 2. Find the best proofs 1. W=reasonable guess
Summary- System Components How to • Generate syntactically motivated complete proofs? • Entailment rules • On the fly operations (Extended Tree Edit Operations) • Estimate proof validity? • Confidence Model • Find the best proof? • Search Algorithm • Learn the model parameters? • Iterative Learning Scheme
Conclusions • Inference via sequence of transformations • Knowledge • Extended Tree Edits • Proof confidence estimation • Results • Better than median on RTE7 • Best on RTE6 • Open Source http://www.cs.biu.ac.il/~nlp/downloads/biutee
Thank You http://www.cs.biu.ac.il/~nlp/downloads/biutee