so solving geometry problems co combining text and
play

So Solving geometry problems: co combining text - PowerPoint PPT Presentation

So Solving geometry problems: co combining text and diagram in interpretatio ion Minjoon Seo 1 , Hannaneh Hajishirzi 1 , Ali Farhadi 1,2 , Oren Etzioni 2 ,


  1. So Solving ¡ ¡geometry ¡ ¡problems: ¡ ¡ co combining ¡ ¡text ¡ ¡and ¡ ¡diagram ¡ ¡ in interpretatio ion Minjoon ¡ Seo 1 , ¡Hannaneh Hajishirzi 1 , ¡Ali ¡Farhadi 1,2 , ¡ Oren ¡Etzioni 2 , ¡Clint ¡Malcolm 1 Sep. ¡20 EMNLP ¡2015 1 2 1

  2. Ge Geometry ¡ ¡Word ¡ ¡Problems C In the diagram at the 2 B E D right, circle O has a radius of 5, and CE = 2. Diameter AC is 5 perpendicular to chord O BD. What is the length of BD? a) 2 b) 4 c) 6 d) 8 e) 10 A 2

  3. Wh Why ¡ ¡geometry ¡ ¡problems? ¡ ¡ • Solving ¡geometry ¡word ¡problems ¡is ¡challenging ¡in ¡AI • Part ¡of ¡broader ¡scope ¡of ¡solving ¡math ¡word ¡problems ¡ (Kushman et ¡al., ¡2014; ¡Hosseini et ¡al., ¡2014; ¡Roy ¡et ¡al., ¡2015; ¡Dai ¡et ¡al., ¡2015; ¡Shi ¡ et ¡al., ¡2015) • Interesting ¡interplay ¡between ¡natural ¡language ¡and ¡vision

  4. Wh Why ¡ ¡geometry ¡ ¡problems? ¡ ¡ • Solving ¡geometry ¡word ¡problems ¡is ¡challenging ¡in ¡AI • Part ¡of ¡broader ¡scope ¡of ¡solving ¡math ¡word ¡problems ¡ (Kushman et ¡al., ¡2014; ¡Hosseini et ¡al., ¡2014; ¡Roy ¡et ¡al., ¡2015; ¡Dai ¡et ¡al., ¡2015; ¡Shi ¡ et ¡al., ¡2015) • Interesting ¡interplay ¡between ¡natural ¡language ¡and ¡vision In the diagram at the right, circle O has a radius of 5, and CE = 2. Diameter AC is perpendicular to chord BD. What is the length of BD? a) 2 b) 4 c) 6 d) 8 e) 10

  5. Wh Why ¡ ¡geometry ¡ ¡problems? ¡ ¡ • Solving ¡geometry ¡word ¡problems ¡is ¡challenging ¡in ¡AI • Part ¡of ¡broader ¡scope ¡of ¡solving ¡math ¡word ¡problems ¡ (Kushman et ¡al., ¡2014; ¡Hosseini et ¡al., ¡2014; ¡Roy ¡et ¡al., ¡2015; ¡Dai ¡et ¡al., ¡2015; ¡Shi ¡ et ¡al., ¡2015) • Interesting ¡interplay ¡between ¡natural ¡language ¡and ¡vision C 2 B E D 5 O A 5

  6. Wh Why ¡ ¡geometry ¡ ¡problems? ¡ ¡ • Solving ¡geometry ¡word ¡problems ¡is ¡challenging ¡in ¡AI • Part ¡of ¡broader ¡scope ¡of ¡solving ¡math ¡word ¡problems ¡ (Kushman et ¡al., ¡2014; ¡Hosseini et ¡al., ¡2014; ¡Roy ¡et ¡al., ¡2015; ¡Dai ¡et ¡al., ¡2015; ¡Shi ¡ et ¡al., ¡2015) • Interesting ¡interplay ¡between ¡natural ¡language ¡and ¡vision • Closely ¡related ¡to ¡language ¡& ¡vision ¡and ¡grounded ¡language ¡ acquisition • Requires ¡semantic ¡understanding ¡of ¡each ¡modality ¡ • Has ¡well-­‑defined ¡metric • Interesting ¡to ¡NLP: ¡unique ¡characteristics ¡of ¡the ¡geometry ¡ word ¡problems. ¡

  7. Challenge ¡#1 ¡ Interaction ¡between ¡Text ¡and ¡Diagram B C In ¡the ¡diagram ¡at ¡the ¡ right, ¡the ¡line is ¡tangent ¡ to ¡the ¡circle. O A • Previous ¡work ¡in ¡semantic ¡parsing ¡and ¡relation ¡extraction ¡does ¡ not ¡consider ¡another ¡modality ¡ (Zettlemoyer and ¡Collins, ¡2005; ¡Kate ¡and ¡ Mooney, ¡2007; ¡Poon ¡and ¡Domingos, ¡2009; ¡Kwiatkowski ¡et ¡al., ¡2013; ¡Flanigan et ¡al., ¡2014; ¡ Reddy ¡et ¡al., ¡2014; ¡Berant et ¡al., ¡2014; Cowie and ¡Lehnert, ¡1996; ¡Culotta and ¡Sorensen, ¡ 2004) 7

  8. Challenge ¡#2: Lexical ¡Ambiguity B Line ¡OC ¡bisects line ¡AB, ¡ C and ¡line ¡OC ¡bisects angle ¡ AOB. O A 8 8

  9. Challenge ¡#3: Implication C 2 B E D Circle ¡O ¡has ¡a ¡radius ¡of ¡5. 5 O Equals(RadiusOf(O), 5) A 9

  10. Challenge ¡#4: Syntactic ¡Complication B C AB ¡and ¡CD ¡are ¡perpendicular. A D F B C AB ¡and ¡CD ¡are ¡perpendicular ¡to ¡ EF. A E D 10

  11. Ge GeoS: ¡ : ¡Overview B D E PointLiesOnLine(D, ¡AB) ¡ ∧ PointLiesOnLine(E, ¡BC) A C (d) ¡15 In ¡triangle ¡ABC, ¡line ¡ IsTriangle(ABC) ¡ ∧ DE ¡is ¡parallel ¡with ¡line ¡ Parallel(AC, ¡DE) ∧ AC, ¡DB ¡equals ¡4, ¡AD ¡is ¡ Equals(LengthOf(DB), ¡4) ¡ ∧ Equals(LengthOf(AD), ¡8) ¡ ∧ 8, ¡and ¡DE ¡is ¡5. ¡Find ¡ Equals(LengthOf(DE), ¡5) ¡ ∧ AC. Find(LengthOf(AC)) (a) ¡9 ¡ ¡ ¡(b) ¡10 ¡ ¡(c) ¡12.5 ¡ ¡ ¡ (d) ¡15 ¡ ¡ ¡(e) ¡17 11

  12. Ge GeoS: ¡ : ¡Overview (1) Diagram facts (3) Help answer (2) Text facts (1) Diagram ¡understanding ¡(Seo ¡et ¡al., ¡2014) (2) Text ¡parsing ¡ (3) Solving 12

  13. Diagram-­‑ Di -­‑ai aided ¡ ¡text ¡ ¡par arsing In ¡triangle ¡ABC, ¡line ¡DE ¡is ¡parallel ¡with ¡ B line ¡AC, ¡DB ¡equals ¡4, ¡AD ¡is ¡8, ¡and ¡DE ¡is ¡5. ¡ Text D E Find ¡AC. Input (a) ¡9 ¡ ¡ ¡(b) ¡10 ¡ ¡(c) ¡12.5 ¡ ¡ ¡(d) ¡15 ¡ ¡ ¡(e) ¡17 A C Logical IsTriangle(ABC) ∧ Parallel(AC, ¡DE) ∧ Equals(LengthOf(DB), ¡4) ¡ ¡ ∧ ¡ Equals(LengthOf(AD), ¡8) ¡ ∧ form Equals(LengthOf(DE), ¡5) ¡ ∧ ¡ Find(LengthOf(AC)) Difficult ¡to ¡directly ¡map ¡text ¡to ¡a ¡long ¡logical ¡form! 13

  14. Di Diagram-­‑ -­‑ai aided ¡ ¡text ¡ ¡par arsing In ¡triangle ¡ABC, ¡line ¡DE ¡is ¡parallel ¡with ¡ B line ¡AC, ¡DB ¡equals ¡4, ¡AD ¡is ¡8, ¡and ¡DE ¡is ¡5. ¡ Text D E Find ¡AC. Input (a) ¡9 ¡ ¡ ¡(b) ¡10 ¡ ¡(c) ¡12.5 ¡ ¡ ¡(d) ¡15 ¡ ¡ ¡(e) ¡17 A C Over-­‑generated ¡literals Text ¡scores Diagram ¡scores IsTriangle(ABC) 0.96 1.00 Parallel(AC, ¡DE) 0.91 0.99 Parallel(AC, ¡DB) 0.74 0.02 Our ¡ Equals(LengthOf(DB), ¡4) 0.97 n/a method Equals(LengthOf(AD), ¡8) 0.94 n/a Equals(LengthOf(DE), ¡5) 0.94 n/a Equals(4, ¡LengthOf(AD)) 0.31 n/a … … … Selected ¡subset IsTriangle(ABC) ∧ Parallel(AC, ¡DE) ∧ Logical Equals(LengthOf(DB), ¡4) ¡ ¡ ∧ ¡ Equals(LengthOf(AD), ¡8) ¡ ∧ form Equals(LengthOf(DE), ¡5) ¡ ∧ ¡ Find(LengthOf(AC)) 14

  15. St Step ¡ p ¡1. ¡ ¡Literal ¡ ¡over-­‑ -­‑ge generation In ¡triangle ¡ABC, ¡line ¡DE ¡is ¡parallel ¡with ¡ B line ¡AC, ¡DB ¡equals ¡4, ¡AD ¡is ¡8, ¡and ¡DE ¡is ¡5. ¡ D E Find ¡AC. (a) ¡9 ¡ ¡ ¡(b) ¡10 ¡ ¡(c) ¡12.5 ¡ ¡ ¡(d) ¡15 ¡ ¡ ¡(e) ¡17 A C Over-­‑generated ¡literals IsTriangle(ABC) Parallel(AC, ¡DE) Parallel(AC, ¡DB) Equals(LengthOf(DB), ¡4) Equals(LengthOf(AD), ¡8) Equals(LengthOf(DE), ¡5) Equals(4, ¡LengthOf(AD)) … 15

  16. St Step ¡ ¡1. ¡ ¡Generating ¡ ¡literals “Lines ¡AB ¡and ¡CD ¡are ¡perpendicular ¡to ¡EF” IsLine(AB) IsLine(CD) IsLine(EF) Perpendicular(AB, CD) Perpendicular(CD, EF) Perpendicular(AB, EF) 16

  17. St Step ¡ ¡1. ¡ . ¡Generating ¡ ¡lit liter erals ls “Lines ¡AB ¡and ¡CD ¡are ¡perpendicular ¡to ¡EF” IsLine(AB) IsLine(CD) IsLine(EF) Red ¡literals ¡ Perpendicular(AB, CD) are ¡false. Perpendicular(CD, EF) Perpendicular(AB, EF) 17

  18. Co Concepts IsLine Perpendicular AB EF CD Lines ¡ ¡ ¡AB ¡ ¡ ¡and ¡ ¡ ¡CD ¡ ¡ ¡are ¡ ¡ ¡perpendicular ¡ ¡ ¡to ¡ ¡ ¡EF 18

  19. Le Lexicon • We ¡built ¡lexicon ¡from ¡training ¡data ¡and ¡textbooks • Lexicon ¡maps ¡geometry-­‑related ¡words ¡(or ¡phrases) ¡to ¡ concepts • Some ¡concepts ¡are ¡obtained ¡via ¡simple ¡regular ¡expressions • Single ¡word ¡can ¡map ¡to ¡two ¡or ¡more ¡concepts Word ¡or phrase Concept “Perpendicular” Perpendicular “Lies ¡on” PointLiesOnLine, PointLiesOnCircle “CD” line, arc “ABC” triangle, angle 19

  20. Re Relations IsLine Perpendicular AB EF CD Lines ¡ ¡ ¡AB ¡ ¡ ¡and ¡ ¡ ¡CD ¡ ¡ ¡are ¡ ¡ ¡perpendicular ¡ ¡ ¡to ¡ ¡ ¡EF 20

  21. Re Relations IsLine Perpendicular Unary ¡relation AB EF CD Lines ¡ ¡ ¡AB ¡ ¡ ¡and ¡ ¡ ¡CD ¡ ¡ ¡are ¡ ¡ ¡perpendicular ¡ ¡ ¡to ¡ ¡ ¡EF IsLine(EF) 21

  22. Re Relations IsLine Perpendicular Binary ¡relation AB EF CD Lines ¡ ¡ ¡AB ¡ ¡ ¡and ¡ ¡ ¡CD ¡ ¡ ¡are ¡ ¡ ¡perpendicular ¡ ¡ ¡to ¡ ¡ ¡EF Perpendicular(AB, CD) 22

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend