Proceedings

Logic Constrained Pointer Networks for Interpretable Textual Similarity

Video Download BibTeX Cite

Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence. Main track. Pages 2405-2411.

https://doi.org/10.24963/ijcai.2020/333

Abstract

Systematically discovering semantic relationships in text is an important and extensively studied area in Natural Language Processing, with various tasks such as entailment, semantic similarity, etc. Decomposability of sentence-level scores via subsequence alignments has been proposed as a way to make models more interpretable. We study the problem of aligning components of sentences leading to an interpretable model for semantic textual similarity. In this paper, we introduce a novel pointer network based model with a sentinel gating function to align constituent chunks, which are represented using BERT. We improve this base model with a loss function to equally penalize misalignments in both sentences, ensuring the alignments are bidirectional. Finally, to guide the network with structured external knowledge, we introduce first-order logic constraints based on ConceptNet and syntactic knowledge. The model achieves an F1 score of 97.73 and 96.32 on the benchmark SemEval datasets for the chunk alignment task, showing large improvements over the existing solutions. Source code is available at https://github.com/manishb89/interpretable_sentence_similarity

  1. [Agirre et al., 2012] Eneko Agirre, Mona Diab, Daniel Cer, and Aitor Gonzalez-Agirre. Semeval-2012 task 6: A pilot on semantic textual similarity. In STARSEM and SemEval, pages 385-393. Association for Computational Linguis- tics, 2012.
  2. [Agirre et al., 2015] Eneko Agirre, Carmen Banea, Claire Cardie, Daniel Cer, Mona Diab, Aitor Gonzalez-Agirre, Weiwei Guo, Inigo Lopez-Gazpio, Montse Maritxalar, Rada Mihalcea, et al. Semeval-2015 task 2: Semantic tex- tual similarity, english, spanish and pilot on interpretabil- ity. In SemEval, pages 252-263, 2015.
  3. [Agirre et al., 2016] Eneko Agirre, Aitor Gonzalez-Agirre, Inigo Lopez-Gazpio, Montse Maritxalar, German Rigau, and Larraitz Uria. Semeval-2016 task 2: Interpretable semantic textual similarity. In SemEval, pages 512-524, 2016.
  4. [Banjade et al., 2015] Rajendra Banjade, Nobal Bikram Ni- raula, Nabin Maharjan, Vasile Rus, Dan Stefanescu, Mi- hai Lintean, and Dipesh Gautam. Nerosim: A system for measuring and interpreting semantic textual similarity. In SemEval, pages 164-171, 2015.
  5. [Bär et al., 2012] Daniel Bär, Chris Biemann, Iryna Gurevych, and Torsten Zesch. Ukp: Computing semantic textual similarity by combining multiple content similarity measures. In STARSEM and SemEval, pages 435-440. Association for Computational Linguistics, 2012.
  6. [Chang et al., 2010] Ming-Wei Chang, Dan Goldwasser, Dan Roth, and Vivek Srikumar. Discriminative learning over constrained latent representations. In NAACL-HLT, pages 429-437. Association for Computational Linguis- tics, 2010.
  7. [Collobert et al., 2011] Ronan Collobert, Jason Weston, Léon Bottou, Michael Karlen, Koray Kavukcuoglu, and Pavel Kuksa. Natural language processing (almost) from scratch. JMLR, 12(Aug):2493-2537, 2011.
  8. [Conneau et al., 2017] Alexis Conneau, Douwe Kiela, Hol- ger Schwenk, Loïc Barrault, and Antoine Bordes. Super- vised learning of universal sentence representations from natural language inference data. In EMNLP, pages 670- 680, 2017.
  9. [Cuturi, 2013] Marco Cuturi. Sinkhorn distances: Light- speed computation of optimal transport. In NeurIPS, pages 2292-2300, 2013.
  10. [Devlin et al., 2019] Jacob Devlin, Ming-Wei Chang, Ken- ton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understand- ing. In NAACL-HLT, pages 4171-4186, 2019.
  11. [Franc ¸a et al., 2014] Manoel VM Franc ¸a, Gerson Zaverucha, and Artur S d'Avila Garcez. Fast relational learning us- ing bottom clause propositionalization with artificial neu- ral networks. Machine learning, 94(1):81-104, 2014.
  12. [Hänig et al., 2015] Christian Hänig, Robert Remus, and Xose De La Puente. Exb themis: Extensive feature extrac- tion from word alignments for semantic textual similarity. In SemEval, pages 264-268, 2015.
  13. [Heilman and Smith, 2010] Michael Heilman and Noah A Smith. Tree edit models for recognizing textual entail- ments, paraphrases, and answers to questions. In NAACL- HLT, pages 1011-1019. Association for Computational Linguistics, 2010.
  14. [Honnibal and Montani, 2017] Matthew Honnibal and Ines Montani. spaCy 2: Natural language understanding with Bloom embeddings, convolutional neural networks and in- cremental parsing. To appear, 2017.
  15. [Hu et al., 2016] Zhiting Hu, Xuezhe Ma, Zhengzhong Liu, Eduard Hovy, and Eric Xing. Harnessing deep neural net- works with logic rules. In ACL, pages 2410-2420, Berlin, Germany, 2016. Association for Computational Linguis- tics.
  16. [Jawahar et al., 2019] Ganesh Jawahar, Benoît Sagot, and Djamé Seddah. What does bert learn about the structure of language? In ACL, pages 3651-3657, 2019.
  17. [Jimenez et al., 2012] Sergio Jimenez, Claudia Becerra, and Alexander Gelbukh. Soft cardinality: A parameterized similarity function for text comparison. In STARSEM and SemEval, pages 449-453. Association for Computational Linguistics, 2012.
  18. [Kazmi and Schüller, 2016] Mishal Kazmi and Peter Schüller. Inspire at semeval-2016 task 2: Interpretable semantic textual similarity alignment based on answer set programming. In SemEval, pages 1109-1115, 2016.
  19. [Koehn et al., 2003] Philipp Koehn, Franz Josef Och, and Daniel Marcu. Statistical phrase-based translation. In NAACL-HLT, pages 48-54. Association for Computa- tional Linguistics, 2003.
  20. [Konopik et al., 2016] Miloslav Konopik, Ondrej Prazak, David Steinberger, and Tomáš Brychcín. Uwb at semeval- 2016 task 2: Interpretable semantic textual similarity with distributional semantics for chunks. In SemEval, pages 803-808, 2016.
  21. [Li and Srikumar, 2016] Tao Li and Vivek Srikumar. Ex- ploiting sentence similarities for better alignments. In EMNLP, pages 2193-2203, 2016.
  22. [Li and Srikumar, 2019] Tao Li and Vivek Srikumar. Aug- menting neural networks with first-order logic. In ACL, pages 292-302, Florence, Italy, July 2019. Association for Computational Linguistics.
  23. [Pagliardini et al., 2018] Matteo Pagliardini, Prakhar Gupta, and Martin Jaggi. Unsupervised learning of sentence em- beddings using compositional n-gram features. In NAACL- HLT, pages 528-540, 2018.
  24. [Pavlick et al., 2015] Ellie Pavlick, Pushpendre Rastogi, Juri Ganitkevitch, Benjamin Van Durme, and Chris Callison- Burch. Ppdb 2.0: Better paraphrase ranking, fine-grained entailment relations, word embeddings, and style classifi- cation. In ACL-IJCNLP, pages 425-430, 2015.
  25. [Pennington et al., 2014] Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In EMNLP, pages 1532-1543, 2014.
  26. [Reimers and Gurevych, 2019] Nils Reimers and Iryna Gurevych. Sentence-bert: Sentence embeddings using siamese bert-networks. In EMNLP-IJCNLP, pages 3973-3983, 2019.
  27. [Shao, 2017] Yang Shao. Hcti at semeval-2017 task 1: Use convolutional neural network to evaluate semantic textual similarity. In SemEval, pages 130-133, 2017.
  28. [Socher et al., 2011] Richard Socher, Eric H Huang, Jeffrey Pennin, Christopher D Manning, and Andrew Y Ng. Dy- namic pooling and unfolding recursive autoencoders for paraphrase detection. In NeurIPS, pages 801-809, 2011.
  29. [Speer et al., 2017] Robert Speer, Joshua Chin, and Cather- ine Havasi. Conceptnet 5.5: An open multilingual graph of general knowledge. In AAAI, 2017.
  30. [Sultan et al., 2015] Md Arafat Sultan, Steven Bethard, and Tamara Sumner. Dls@ cu: Sentence similarity from word alignment and semantic vector composition. In SemEval, pages 148-153, 2015.
  31. [Tai et al., 2015] Kai Sheng Tai, Richard Socher, and Christopher D Manning. Improved semantic representa- tions from tree-structured long short-term memory net- works. In ACL-IJCNLP, pages 1556-1566, Beijing, China, 2015. Association for Computational Linguistics.
  32. [Towell et al., 1990] Geoffrey G Towell, Jude W Shavlik, and Michiel O Noordewier. Refinement of approximate domain theories by knowledge-based neural networks. In AAAI, volume 861866. Boston, MA, 1990.
  33. [Vinyals et al., 2015] Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. Pointer networks. In NeurIPS, pages 2692-2700, 2015.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards