paper-with-me

홈 › Papers

Visualisation and 'diagnostic classifiers' reveal how recurrent and recursive neural networks process hierarchical structure

2017-11-28 · Dieuwke Hupkes, Sara Veldhoen, Willem Zuidema

We investigate how 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 recursive neural networks can find a generalising solution to this problem, and we visualise this solution by breaking it up in three steps: project, sum and squash. As a next step, we investigate recurrent neural networks, and show that a gated recurrent unit, that processes its input incrementally, also performs very well on this task. To develop an understanding of what the recurrent network encodes, visualisation techniques alone do not suffice. Therefore, we develop an approach where we formulate and test multiple hypotheses on the information encoded and processed by the network. For each hypothesis, we derive predictions about features of the hidden state representations at each time step, and train 'diagnostic classifiers' to test those predictions. 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 is turn shows that diagnostic classifiers can be a useful technique for opening up the black box of neural networks. We argue that diagnostic classification, unlike most visualisation techniques, does scale up from small networks in a toy domain, to larger and deeper recurrent networks dealing with real-life data, and may therefore contribute to a better understanding of the internal dynamics of current state-of-the-art models in natural language processing.

📄 PDF Abstract BibTeX arXiv:1711.10203

Code (1)

dieuwkehupkes/processing_arithmetics 공식 구현

Tasks

Diagnostic

Similar Papers 제목 키워드 기반

Facilitating Machine Learning Model Comparison and Explanation Through A Radial Visualisation

2021-04-15 · Jianlong Zhou, Weidong Huang, Fang Chen

Building an effective Machine Learning (ML) model for a data set is a difficult task involving various steps. One of the most important steps is to compare generated substantial amounts of ML models to find the optimal o…

BIG-bench Machine LearningFeature Importance

A Survey of Recursive and Recurrent Neural Networks

2025-10-16 · Jian-wei Liu, Bing-rong Xu, Zhi-yan Song arxiv

In this paper, the branches of recursive and recurrent neural networks are classified in detail according to the network structure, training objective function and learning algorithm implementation. They are roughly divi…

Analysing the potential of seq-to-seq models for incremental interpretation in task-oriented dialogue

2018-08-28 · WS 2018 11 · Dieuwke Hupkes, Sanne Bouwmeester, Raquel Fernández

We investigate how encoder-decoder models trained on a synthetic dataset of task-oriented dialogues process disfluencies, such as hesitations and self-corrections. We find that, contrary to earlier results, disfluencies …

DecoderDiagnostic

Sanity checks for patch visualisation in prototype-based image classification

2023-10-25 · Romain Xu-Darme, Georges Quénot, Zakaria Chihani, Marie-Christine Rousset

In this work, we perform an analysis of the visualisation methods implemented in ProtoPNet and ProtoTree, two self-explaining visual classifiers based on prototypes. We show that such methods do not correctly identify th…

image-classificationImage Classification

Recurrently Controlling a Recurrent Network with Recurrent Networks Controlled by More Recurrent Networks

2021-01-01 · Yi Tay, Yikang Shen, Alvin Chan, Aston Zhang 외

This paper explores an intriguing idea of recursively parameterizing recurrent nets. Simply speaking, this refers to recurrently controlling a recurrent network with recurrent networks controlled by recurrent networks. T…

Code GenerationInductive BiasMachine TranslationMusic Modeling+2