dependency based convolutional neural networks for
play

Dependency-based Convolutional Neural Networks for Sentence - PowerPoint PPT Presentation

Dependency-based Convolutional Neural Networks for Sentence Embedding What is Hawaii s state flower ? ROOT Mingbo Ma Liang Huang Bing Xiang Bowen Zhou CUNY IBM T. J. Watson ACL 2015 Beijing Convolutional Neural Network


  1. Dependency-based Convolutional Neural Networks for Sentence Embedding What is Hawaii ’ s state flower ? ROOT Mingbo Ma Liang Huang Bing Xiang Bowen Zhou CUNY IBM T. J. Watson ACL 2015 Beijing

  2. Convolutional Neural Network for NLP Kalchbrenner et al. (2014) and Kim (2014) apply CNNs to sentence modeling • alleviates data sparsity by word embedding • sequential order (sentence) instead of spatial order (image) Should use more linguistic and structural information! 2

  3. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 3

  4. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 4

  5. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 5

  6. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 6

  7. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 7

  8. Try different convolution filters and repeat the same process 8

  9. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 9

  10. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction Max pooling 10

  11. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction Max pooling Classification Feed into NN 11

  12. Example: Question Type Classification (TREC) Sequential Convolution: Location What is Hawaii 's state flower ? Gold standard: Entity 12

  13. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. 13

  14. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. Loc Loc 14

  15. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. Loc Loc Loc Loc 15

  16. Sequential Convolution Sequential convolution What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. Loc Loc Loc Loc Enty 16

  17. Convolution on Tree Sequential convolution ROOT What is Hawaii ’s state flower word rep. 1 2 3 4 5 6 17

  18. Sequential Convolution Sequential convolution: • Traditional convolution operates in surface order • Cons: No structural information is captured No long distance relationships 18

  19. Dependency-based Convolution Sequential convolution: • Traditional convolution operates in surface order • Cons: No structural information is captured No long distance relationships Structural Convolution: • operates the convolution filters on dependency tree • more “important” words are convolved more often • long distance relationships is naturally obtained 19

  20. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 20

  21. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 21

  22. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 22

  23. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 23

  24. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 24

  25. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 25

  26. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 26

  27. Try different Bigram convolution filters and repeat the same process 27

  28. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction 28

  29. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction Max pooling 29

  30. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction Max pooling 30

  31. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction Max pooling 31

  32. Convolution on Tree dependency convolution ROOT child parent What is Hawaii ’s state flower 1 2 4 3 5 6 word rep. convolution direction Max pooling 32

  33. Trigram Convolution on Trees 33

  34. Convolution on Tree ROOT* ROOT** Trigram convolution child parent grand What is Hawaii ’s state flower parent 1 2 4 3 5 6 word rep. convolution direction 34

  35. Convolution on Tree ROOT* ROOT** Trigram convolution child parent grand What is Hawaii ’s state flower parent 1 2 4 3 5 6 word rep. convolution direction 35

  36. Convolution on Tree ROOT* ROOT** Trigram convolution child parent grand What is Hawaii ’s state flower parent 1 2 4 3 5 6 word rep. convolution direction 36

  37. follow the same steps as before… 37

  38. Convolution on Tree ROOT* ROOT** Trigram convolution child parent grand What is Hawaii ’s state flower parent 1 2 4 3 5 6 word rep. convolution direction more important words are convolved more often! 38

  39. Convolution on Tree ROOT* ROOT** Trigram convolution child parent grand What is Hawaii ’s state flower parent 1 2 4 3 5 6 word rep. convolution direction Max pooling 39

  40. Convolution on Tree ROOT What is Hawaii ’s state flower 1 2 4 3 5 6 bigram Fully connected NN with softmax output trigram 40

  41. Convolution on Siblings Besides convolution on ancestor path, we also can capture conjunction information from siblings ancestor path siblings _ h s m g m _ g 2 h t h g s m m s m g 3 g 2 h g m h h t g s s m m 41

  42. Experiments Tasks: Sentimental analysis Question classification Datasets: Tasks Dataset # Classes Size Testset MR 2 10662 10-CV Sentimental Analysis SST1 5 11855 2210 TREC 6 5952 500 Question Classification TREC-2 50 5952 500 42

  43. Sentimental Analysis Data Examples Sentimental analysis from Rotten Tomatoes (MR & SST -1) straightforward statements: simplistic, silly and tedious Negative subtle statements: the film tunes into a grief that could lead a Positive man across centuries sentences with adversative: not for everyone, but for those with whom it Positive will connect, it's a nice departure from standard moviegoing fare 43

  44. Sentimental Analysis Experiments Results Category Model MR SST-1 ancestor 80.4 47.7 ancestor+sibling 81.7 48.3 This work ancestor+sibling+sequential 81.9 49.5 CNNs-non-static (Kim ’14) — baseline 81.5 48.0 CNNs-multichannel (Kim ’14) 81.1 47.4 CNNs Deep CNNs (Kalchbrenner+ ’14) - 48.5 Recursive Autoencoder (Socher+ ’11) 77.7 43.2 Recursive Neural Tensor (Socher+ ’13) - 45.7 Recursive NNs Deep Recursive NNs (Irsoy+ ’14) - 49.8 Recurrent NNs LSTM on tree (Zhu+ ’15) 81.9 48.0 Other Paragraph-Vec (Le+ ’14) - 48.7 44

  45. Question Classification Examples Top-level Fine-grained Sentence (TREC) (TREC-2) manner DESC How did serfdom develop in and then leave Russia? plant ENTY What is Hawaii 's state flower ? state LOC What sprawling U.S. state boasts the most airports ? date NUM When was Algeria colonized ? ind HUM What person 's head is on a dime ? exp ABBR What does the technical term ISDN mean ? 45

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