On the Realization of Compositionality in Neural Networks

Open Access
Authors
  • J. Baan
  • J. Leible
  • M. Nikolaus
  • D. Rau
Publication date 2019
Host editors
  • T. Linzen
  • G. Chrupała
  • Y. Belinkov
  • D. Hupkes
Book title The BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP at ACL 2019
Book subtitle ACL 2019 : proceedings of the Second Workshop : August 1, 2019, Florence, Italy
ISBN (electronic)
  • 9781950737307
Event BlackboxNLP 2019
Pages (from-to) 127-137
Publisher Stroudsburg, PA: The Association for Computational Linguistics
Organisations
  • Interfacultary Research - Institute for Logic, Language and Computation (ILLC)
  • Faculty of Science (FNWI)
Abstract
We present a detailed comparison of two types of sequence to sequence models trained to conduct a compositional task. The models are architecturally identical at inference time, but differ in the way that they are trained: our baseline model is trained with a task-success signal only, while the other model receives additional supervision on its attention mechanism (Attentive Guidance), which has shown to be an effective method for encouraging more compositional solutions. We first confirm that the models with attentive guidance indeed infer more compositional solutions than the baseline, by training them on the lookup table task presented by Liska et al. (2019). We then do an in-depth analysis of the structural differences between the two model types, focusing in particular on the organisation of the parameter space and the hidden layer activations and find noticeable differences in both these aspects. Guided networks focus more on the components of the input rather than the sequence as a whole and develop small functional groups of neurons with specific purposes that use their gates more selectively. Results from parameter heat maps, component swapping and graph analysis also indicate that guided networks exhibit a more modular structure with a small number of specialized, strongly connected neurons.
Document type Conference contribution
Language English
Published at https://doi.org/10.18653/v1/W19-4814
Downloads
W19-4814 (Final published version)
Permalink to this page
Back