Proceedings

Transformers as Soft Reasoners over Language

Video Download BibTeX Cite

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

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

Abstract

Beginning with McCarthy's Advice Taker (1959), AI has pursued the goal of providing a system with explicit, general knowledge and having the system reason over that knowledge. However, expressing the knowledge in a formal (logical or probabilistic) representation has been a major obstacle to this research. This paper investigates a modern approach to this problem where the facts and rules are provided as natural language sentences, thus bypassing a formal representation. We train transformers to reason (or emulate reasoning) over these sentences using synthetically generated data. Our models, that we call RuleTakers, provide the first empirical demonstration that this kind of soft reasoning over language is learnable, can achieve high (99%) accuracy, and generalizes to test data requiring substantially deeper chaining than seen during training (95%+ scores). We also demonstrate that the models transfer well to two hand-authored rulebases, and to rulebases paraphrased into more natural language. These findings are significant as it suggests a new role for transformers, namely as limited "soft theorem provers" operating over explicit theories in language. This in turn suggests new possibilities for explainability, correctability, and counterfactual reasoning in question-answering.

  1. [Abboud et al., 2020] R. Abboud, I. Ceylan, and T. Luk- asiewicz. Learning to reason: Leveraging neural networks for approximate dnf counting. In AAAI, 2020.
  2. [Abdelaziz et al., 2020] Ibrahim Abdelaziz, Veronika Thost, Maxwell Crouse, and Achille Fokoue. An experimental study of formula embeddings for automated theorem prov- ing in first-order logic. arXiv, 2002.00423, 2020.
  3. [Apt et al., 1988] K. Apt, H. Blair, and A. Walker. Towards a theory of declarative knowledge. In Foundations of De- ductive Databases and Logic Programming., 1988.
  4. [Bidoit and Froidevaux, 1991] N. Bidoit and C. Froidevaux. General logical databases and programs: Default logic se- mantics and stratification. Inf. Comput., 91:15-54, 1991.
  5. [Chen et al., 2017] Qian Chen, Xiao-Dan Zhu, Zhen-Hua Ling, Si Wei, Hui Jiang, and Diana Inkpen. Enhanced lstm for natural language inference. In ACL, 2017.
  6. [Dagan et al., 2013] Ido Dagan, Dan Roth, Mark Sammons, and Fabio Zanzotto. Recognizing Textual Entailment: Models and Applications. Morgan and Claypool, 2013.
  7. [He and Choi, 2019] Han He and Jinho D. Choi. Establish- ing strong baselines for the new decade: Sequence tag- ging, syntactic and semantic parsing with bert. ArXiv, abs/1908.04943, 2019.
  8. [Kalyan et al., 2019] Ashwin Kalyan, Oleksandr Polozov, and Adam Kalai. Adaptive generation of program- ming puzzles. Technical report, Georgia Tech, 2019. (https://openreview.net/forum?id=HJeRveHKDH). Link
  9. [Kamath and Das, 2019] Aishwarya Kamath and Rajarshi Das. A survey on semantic parsing. In AKBC'19, 2019.
  10. [Lai et al., 2017] G. Lai, Q. Xie, H. Liu, Y. Yang, and E. Hovy. RACE: Large-scale reading comprehension dataset from examinations. In EMNLP, 2017.
  11. [Lample and Charton, 2019] G. Lample and F. Charton. Deep learning for symbolic mathematics. In ICLR, 2019.
  12. [Lin et al., 2019] Kevin Lin, Oyvind Tafjord, Peter Clark, and Matt Gardner. Reasoning over paragraph effects in situations. In Proc. MRQA Workshop (EMNLP'19), 2019. also arXiv:1908.05852.
  13. [Liu et al., 2019] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. RoBERTa: a robustly optimized BERT pretraining ap- proach. arXiv preprint arXiv:1907.11692, 2019.
  14. [MacCartney and Manning, 2014] Bill MacCartney and Chris Manning. Natural logic and natural language inference. Computing Meaning, 47:129-147, 2014.
  15. [Manning and MacCartney, 2009] Christopher D. Manning and Bill MacCartney. Natural language inference. Stan- ford University, 2009.
  16. [McCarthy, 1959] John W. McCarthy. Programs with com- mon sense. In Proc. Tedding Conf. on the Mechanization of Thought Processes, pages 75-91, 1959.
  17. [McCarthy, 1984] J. McCarthy. Applications of circumscrip- tion to formalizing commonsense. In NMR, 1984.
  18. [Metaxiotis et al., 2002] Kostas S Metaxiotis, Dimitris Ask- ounis, and John Psarras. Expert systems in production planning and scheduling: A state-of-the-art survey. Jour- nal of Intelligent Manufacturing, 13(4):253-260, 2002.
  19. [Musen and Van der Lei, 1988] Mark A Musen and Johan Van der Lei. Of brittleness and bottlenecks: Challenges in the creation of pattern-recognition and expert-system models. In Machine Intelligence and Pattern Recognition, volume 7, pages 335-352. Elsevier, 1988.
  20. [Newell and Simon, 1956] A. Newell and H. Simon. The logic theory machine-a complex information processing system. IRE Trans. Information Theory, 2:61-79, 1956.
  21. [Parikh et al., 2016] Ankur Parikh, Oscar Täckström, Dipan- jan Das, and Jakob Uszkoreit. A decomposable attention model for natural language inference. In EMNLP, 2016.
  22. [Rajpurkar et al., 2016] P. Rajpurkar, J. Zhang, K. Lopyrev, and P. Liang. SQuAD: 100,000+ questions for machine comprehension of text. In EMNLP, 2016.
  23. [Richardson and Sabharwal, 2019] Kyle Richardson and Ashish Sabharwal. What does my qa model know? de- vising controlled probes using expert knowledge. ArXiv, abs/1912.13337, 2019.
  24. [Richardson et al., 2020] Kyle Richardson, Hai Hu, Lawrence S Moss, and Ashish Sabharwal. Probing natural language inference models through semantic fragments. In AAAI'20, 2020.
  25. [Saxton et al., 2019] David Saxton, Edward Grefenstette, Felix Hill, and Pushmeet Kohli. Analysing mathematical reasoning abilities of neural models. In ICLR, 2019.
  26. [Selsam et al., 2019] Daniel Selsam, Matthew Lamm, Benedikt Bünz, Percy Liang, Leonardo de Moura, and David L. Dill. Learning a SAT solver from single-bit supervision. In ICLR, 2019.
  27. [Sinha et al., 2019] K. Sinha, S. Sodhani, J. Dong, J. Pineau, and W. Hamilton. CLUTRR: a diagnostic benchmark for inductive reasoning from text. In EMNLP, 2019.
  28. [Tafjord et al., 2019] Oyvind Tafjord, Matt Gardner, Kevin Lin, and Peter Clark. Quartz: An open-domain dataset of qualitative relationship questions. In EMNLP, 2019.
  29. [Talmor et al., 2019] A. Talmor, Y. Elazar, Y. Goldberg, and J. Berant. oLMpics -on what language model pre-training captures. ArXiv, abs/1912.13283, 2019.
  30. [Wang et al., 2019] Q. Wang, B. Li, T. Xiao, J. Zhu, C. Li, D. Wong, and L. Chao. Learning deep transformer models for machine translation. In ACL, 2019.
  31. [Weber et al., 2019] Leon Weber, Pasquale Minervini, Jannes Münchmeyer, Ulf Leser, and Tim Rocktäschel. Nlprolog: Reasoning with weak unification for question answering in natural language. In ACL, 2019.
  32. [Weston et al., 2016] J. Weston, A. Bordes, S. Chopra, and T. Mikolov. Towards AI-Complete question answering: A set of prerequisite toy tasks. In ICLR, 2016.

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

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