Proceedings

Visualisation and 'Diagnostic Classifiers' Reveal how Recurrent and Recursive Neural Networks Process Hierarchical Structure (Extended Abstract)

Download BibTeX Cite

Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence. Journal track. Pages 5617-5621.

https://doi.org/10.24963/ijcai.2018/796

Abstract

In this paper, we investigate how recurrent neural networks can learn and process languages with hierarchical, compositional semantics. To this end, we define the artificial task of processing nested

arithmetic expressions, and study whether different types of neural networks can learn to compute their meaning. We find that simple recurrent networks cannot find a generalising solution to this task, but gated recurrent neural networks perform surprisingly well: networks learn to predict the outcome of the arithmetic expressions with high accuracy, although performance deteriorates somewhat with increasing length. We test multiple hypotheses on the information that is encoded and processed by the networks using a method called diagnostic classification. In this method, simple neural classifiers are used to test sequences of predictions about features of the hidden state representations at each time step. Our results indicate that the networks follow a strategy similar to our hypothesised ‘cumulative strategy’, which explains the high accuracy of the network on novel expressions, the generalisation to longer expressions than seen in training, and the mild deterioration with increasing length. This, in turn, shows that diagnostic classifiers can be a useful technique for opening up the black box of neural networks.

  1. [Adi et al., 2017] Yossi Adi, Einat Kermany, Yonatan Belinkov, Ofer Lavi, and Yoav Goldberg. Fine- grained analysis of sentence embeddings using aux- iliary prediction tasks. In Proceedings of the 5th In- ternational Conference on Learning Representations (ICLR), 2017.
  2. [Alain and Bengio, 2017] Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using lin- ear classifier probes. In Proceedings of the 5th In- ternational Conference on Learnign Representations (ICLR) -Workshop Track, 2017.
  3. [Bahdanau et al., 2015] Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In Proceedings of the 3rd International Conference on Learning Representations (ICLR), 2015.
  4. [Cho et al., 2014] Kyunghyun Cho, Bart van Merrien- boer, Dzmitry Bahdanau, and Yoshua Bengio. On the properties of neural machine translation: en- coder-decoder approaches. In Proceedings of SSST-8, Eighth Workshop on Syntax, Semantics and Structure in Statistical Translation, pages 103-111, 2014.
  5. [Chomsky, 1956] Noam Chomsky. Three models for the description of language. IRE Transactions on infor- mation theory, 2(3):113-124, 1956.
  6. [Elman, 1990] Jeffrey L Elman. Finding Structure in Time. Cognitive Science, 14(2):179-211, 1990.
  7. [Gelderloos and Chrupa la, 2016] Lieke Gelderloos and Grzegorz Chrupa la. From phonemes to images: lev- els of representation in a recurrent neural model of visually-grounded language learning. In Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pages 1309-1319, 2016.
  8. [Gers and Schmidhuber, 2001] Felix A Gers and Jürgen Schmidhuber. LSTM recurrent networks learn simple context-free and context-sensitive languages. Neural Networks, IEEE Transactions on, 12(6):1333-1340, 2001.
  9. [Hupkes and Zuidema, 2017] Dieuwke Hupkes and Willem Zuidema. Diagnostic classification and sym- bolic guidance to understand and improve recurrent neural networks. In Proceedings of Neural Information Processing Systems -Workshop track, 2017.
  10. [Hupkes et al., 2018] Dieuwke Hupkes, Sara Veldhoen, and Willem Zuidema. Visualisation and 'diagnostic classifiers' reveal how recurrent and recursive neural networks process hierarchical structure. Journal of Artificial Intelligence Research (JAIR), 61, 2018.
  11. [Kalchbrenner et al., 2014] Nal Kalchbrenner, Edward Grefenstette, and Phil Blunsom. A convolutional neu- ral network for modelling sentences. In Proceedings of the 52nd Annual Meeting of the Association for Com- putational Linguistics, pages 655--665, 2014.
  12. [Karpathy et al., 2015] Andrej Karpathy, Justin John- son, and Li Fei-Fei. Visualizing and understanding re- current networks. In Proceedings of the International Conference on Learning Representations 2016, pages 1-13, 2015.
  13. [Le and Zuidema, 2015] Phong Le and Willem Zuidema. The forest convolutional network: compositional dis- tributional semantics with a neural chart and without binarization. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Process- ing, pages 1155-1164, 2015.
  14. [Li et al., 2016] Jiwei Li, Xinlei Chen, Eduard Hovy, and Dan Jurafsky. Visualizing and understanding neural models in NLP. In Proceedings of the North Amer- ican Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL- HLT), pages 681-691, 2016.
  15. [Marr, 1982] David Marr. Vision: A computational in- vestigation into the human representation and pro- cessing of visual information. Phenomenology and the Cognitive Sciences, 8(4):397, 1982.
  16. [Montague, 1970] Richard Montague. Universal gram- mar. Theoria, 36(3):373-398, 1970.
  17. [Rodriguez, 2001] Paul Rodriguez. Simple recurrent net- works learn context-free and context-sensitive lan- guages by counting. Neural computation, 13(9):2093- 118, 2001.
  18. [Roth and Lapata, 2016] Michael Roth and Mirella La- pata. Neural semantic role labeling with dependency path embeddings. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguis- tics (Volume 1: Long Papers), pages 1192-1202. As- sociation for Computational Linguistics, 2016.
  19. [Siegelmann and Sontag, 1995] Hava T. Siegelmann and Eduardo D. Sontag. On the computational power of neural nets. Journal of Computer and System Sci- ences, 50(1):132-150, 1995.
  20. [Socher et al., 2010] Richard Socher, Christopher D Manning, and Andrew Y Ng. Learning continuous phrase representations and syntactic parsing with re- cursive neural networks. In NIPS 2010: Deep Learning and Unsupervised Feature Learning Workshop, pages 1-9, 2010.
  21. [Socher et al., 2013] Richard Socher, Alex Perelygin, Jean Y Wu, Jason Chuang, Christopher D Manning, Andrew Y Ng, Christopher Potts, et al. Recursive deep models for semantic compositionality over a sen- timent treebank. In Proceedings of the conference on empirical methods in natural language processing (EMNLP), volume 1631, page 1642. Citeseer, 2013.
  22. [Strobelt et al., 2018] Hendrik Strobelt, Sebastian Gehrmann, Bernd Huber, Hanspeter Pfister, and Alexander M Rush. Visual analysis of hidden state dynamics in recurrent neural networks. IEEE Trans- actions on Visualization and Computer Graphics, 24(1):667-676, 2018.
  23. [Sutskever et al., 2014] Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems 27, pages 3104-3112.
  24. Curran Associates, Inc., 2014.
  25. [Tang et al., 2017] Zhiyuan Tang, Ying Shi, Dong Wang, Yang Feng, and Shiyue Zhang. Memory visual- ization for gated recurrent neural networks in speech recognition. In Acoustics, Speech and Signal Process- ing (ICASSP), 2017 IEEE International Conference on, pages 2736-2740. IEEE, 2017.

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

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