Title: TRACKING THE WORLD STATE WITH RECURRENT ENTITY NETWORKS

Abstract: We introduce a new model, the Recurrent Entity Network (EntNet). It is equipped with a dynamic long-term memory which allows it to maintain and update a representation of the state of the world as it receives new data. For language understanding tasks, it can reason on-the-fly as it reads text, not just when it is required to answer a question or respond as is the case for a Memory Network (Sukhbaatar et al., 2015). Like a Neural Turing Machine or Differentiable Neural Computer (Graves et al., 2014; 2016) it maintains a fixed size memory and can learn to perform location and content-based read and write operations. However, unlike those models it has a simple parallel architecture in which several memory locations can be updated simultaneously. The EntNet sets a new state-of-the-art on the bAbI tasks, and is the first method to solve all the tasks in the 10k training examples setting. We also demonstrate that it can solve a reasoning task which requires a large number of supporting facts, which other methods are not able to solve, and can generalize past its training horizon. It can also be practically used on large scale datasets such as Children's Book Test, where it obtains competitive performance, reading the story in a single pass.

1. INTRODUCTION:

The essence of intelligence is the ability to predict. An intelligent agent must be able to predict unobserved facts about their environment from limited percepts (visual, auditory, textual, or otherwise) , combined with their knowledge of the past. In order to reason and plan, they must be able to predict how an observed event or action will affect the state of the world. Arguably, the ability to maintain an estimate of the current state of the world, combined with a forward model of how the world evolves, is a key feature of intelligent agents.

A natural way for an agent to represent the world is to maintain a set of high-level concepts or entities together with their properties, which are updated as new information is received. For example, if a percept is the textual description of an event, such as "John walks out of the kitchen", the agent should learn to update its estimate of John's location, as well as the list (and number) of people present in each room. If John was carrying a bag, the location of the bag and the list of objects in the kitchen must also be updated. When we read a story, each sentence we read or hear causes us to update our internal representation of the current state of the world within the story. The flow of the story is captured by the evolution of this state of the world.

At any given time, an agent typically receives limited information about the state of the world, and should therefore be able to infer new information through partial observation. In this paper, we investigate this problem through a simple story understanding scenario, in which the agent is given a sequence of textual statements and events, and then given another series of statements about the final state of the world. If the second series of statements is given in the form of questions about the final state of the world together with their correct answers, the agent should be able to learn from them and its performance can be measured by the accuracy of its answers.

Even with this weak form of supervision, the system may learn basic dynamical constraints about the world. For example, it may learn that a person or object cannot be in two locations at the same time, or may learn simple update rules such as incrementing and decrementing the number of persons or objects in a room. It may also learn basic rules of approximate (logical) inference, such as the fact that objects belonging to the same category tend to have similar properties (light objects can be carried over from rooms to rooms for instance).

We propose to handle this scenario with a new kind of memory-augmented neural network that uses a distributed memory and processor architecture: the Recurrent Entity Network (EntNet). The model consists of a fixed number of dynamic memory cells, each containing a vector key w j and a vector value (or content) h j . Each cell is associated with its own "processor", a simple gated recurrent network that may update the cell value given an input. If each cell learns to represent a concept or entity in the world, one can imagine a gating mechanism that, based on the key and content of the memory cells, will only modify the cells that concern the entities mentioned in the input.

In the current version of the model, there is no direct interaction between the memory cells, hence the system can be seen as multiple identical processors functioning in parallel, with distributed local memory. Alternatively, the EntNet can be seen as a bank of gated RNNs (all sharing the same parameters), whose hidden states correspond to latent concepts and attributes, and whose parameters describe the laws of the world according to which the attributes of objects are updated. The sharing of these parameters reflects an invariance of these laws across object instances, similarly to how the weight tying scheme in a CNN reflects an invariance of image statistics across locations. Their hidden state is updated only when new information relevant to their concept is received, and remains otherwise unchanged. The keys used in the addressing/gating mechanism also correspond to concepts or entities, but are modified only during learning, not during inference.

The EntNet is able to solve all 20 bAbI question-answering tasks (Weston et al., 2015) , a popular benchmark of story understanding, which to our knowledge sets a new state-of-the-art. Our experiments also indicate that the model indeed maintains an internal representation of the simplified world in which the stories take place, and that the model does not limit itself to storing the aspects of the world required to answer a specific question. We also introduce a new reasoning task which, unlike the bAbI tasks, requires a model to use a large number of supporting facts to answer the question, and show that the EntNet outperforms both LSTMs and Memory Networks (Sukhbaatar et al., 2015) by a significant margin. It is also able to generalize to sequences longer than those seen during training. Finally, our model also obtains competitive results on the Childrens Book Test (Hill et al., 2016) , and performs best among models that read the text in a single pass before receiving knowledge of the question.

2. MODEL:

Our model is designed to process data in sequential form, and consists of three main parts: an input encoder, a dynamic memory and an output layer, which we now describe in detail. We developed it in the context of question answering on short stories where the inputs are word sequences, but the model could be adapted to many other contexts.

2.1. INPUT ENCODER:

The encoding layer summarizes an element of the input sequence with a vector of fixed length. Typically the input element at time t is a sequence of words, e.g. a sentence or window of words. One is free to choose the encoding module to be any standard sequence encoder, which is an active area of research. Typical choices include a bag-of-words (BoW) representation or the final state of a recurrent neural net (RNN) run over the sequence. In this work, we use a simple encoder consisting of a learned multiplicative mask followed by a summation. More precisely, let the input at time t be a sequence of words with embeddings {e 1 , ..., e k }. The vector representation of this input is then:

EQUATION

The same set of vectors {f 1 , ..., f k } are used at each time step and are learned jointly with the other parameters of the model. Note that the model can choose to adopt a standard BoW representation by setting all weights in the multiplicative mask to 1, or can choose a positional encoding model as used in (Sukhbaatar et al., 2015) .

2.2. DYNAMIC MEMORY:

The dynamic memory is a gated recurrent network with a (partially) block structured weight tying scheme. We divide the hidden states of the network into blocks h 1 , ..., h m ; the full hidden state is the concatenation of the h j . In the experiments below, m is of the order of 5 to 20, and each block h j is of the order of 20 to 100 units.

At each time step t, the content of the hidden states {h j } (which we will call the jth memory) are updated using a set of key vectors {w j } and the encoded input s t . In its most general form, the update equations of our model are given by:

g j ← σ(s T t h j + s T t w j ) (2) hj ← φ(U h j + V w j + W s t )

(3)

EQUATION

Here σ represents a sigmoid, g j is a gating function which determines how much the j th memory should be updated, and hj is the new candidate value of the memory to be combined with the existing memory h j . The function φ can be chosen from any number of activation functions, in our experiments we use either parametric ReLU non-linearities (He et al., 2015) or the identity. The matrices U, V, W are typically trainable parameters of the model, and are shared between all the blocks. They can also be fixed to certain values, such as the identity or zero, to yield a simpler model which we use in some of our experiments.

The gating function g j contains two terms: a "content" term s T t h j which causes the gate to open for memory slots whose content matches the input, and a "location" term s T t w j which causes the gate to open for memory slots whose key matches the input. The final normalization step allows the model to forget previous information. To see this, note that since the memories lie on the unit sphere, all information is contained in their phase. Adding any vector to a given memory (other than the memory itself) will decrease the cosine distance between the original memory and the updated one. Therefore, as new information is added, old information is forgotten.

2.3. OUTPUT MODULE:

Whenever the model is required to produce an output, it is presented with a query vector q. Specifically, the output is computed using the following equations:

p j = Softmax(q T h j ) u = j p j h j y = Rφ(q + Hu) (6)

The matrices H and R are additional trainable parameters of the model. The output module can be viewed as a one-hop Memory Network (Sukhbaatar et al., 2015) with an additional non-linearity φ between the internal state and the decoder matrix. If the memory slots correspond to specific words (as we will describe in the following section) which contain the answer, p can be viewed as a distribution over potential answers and can be used to make a prediction directly or fed into a loss function, removing the need for the last two steps.

The entire model (all three components described above) is trained via backpropagation through time, receiving gradients from any time steps where the reader is required to produce an output, which are then propagated through the unrolled network.

3. MOTIVATING EXAMPLE OF OPERATION:

We now describe a motivating example of how our model can perform reasoning on-the-fly as it is ingesting input sequences. Let us suppose our model is reading a story, so the inputs are natural language sentences, and then it is required to answer questions about the story it has just read.

Our model is free to learn the key vectors w j for each memory j. One choice the model could make is to associate a single memory (via the key) with each entity in the story. The memory slot corresponding to a person could encode that person's location, the objects they are carrying, or the people they are with, depending on what information is relevant for the task at hand. As new information is received indicating that objects are acquired or discarded, or the person changes location, their memory slot will change accordingly. Similarly useful updates can be made for memories corresponding to object and location entities as well.

In fact, we could encode this choice of memories directly into our model, which we consider as a type of prior knowledge. By tying the weights of the key vectors with the embeddings of specific words, we can encourage the model to record information about certain words occuring in the text which we believe to be important. For example, given a list of named entities (which could be produced by a standard tagger), we could make the model have a separate memory slot for each entity. We consider this "tied" variant in our experiments. Since the list of entities is independent of the training data, this variant can handle entities not seen in the training set, as long as their embeddings can be initialized in a reasonable way (such as pre-training on a larger corpus). Now, consider that the model reads the following two sentences, and the desired behavior of the gating function and update function at each memory as they are seen:

• Mary picked up the ball.

• Mary went to the garden.

As the first sentence s t is ingested, and assuming memories encode entities, we would like the gates of the memories corresponding to both "Mary" and "ball" to activate. This is possible due to the location addressing term s T t w j which uses the key w j . We expect that a well trained model would learn to do this. The model would hence modify both the entry corresponding to "Mary" to indicate that she is now carrying the ball, and also the entry corresponding to "ball", to indicate that it is being carried by Mary. When the second sentence is seen, we would like the model to again modify the "Mary" entry to indicate that she is now in the garden, and also modify the "ball" entry to reflect its new location as well. Assuming the information for "Mary" is contained in the "ball" memory as described before, the gate corresponding to "ball" can activate due to the content addressing term s T t h j , even though the word "ball" does not occur in the second sentence. As before, the gate corresponding to the "Mary" entry can open due to the second term.

If the gating function and update function have weights such that the steps above are executed, then the memory will be in a state where questions such as "Where is the ball?" or "Where is Mary?" can be answered from the values of relevant memories, without the need for further complex reasoning.

4. RELATED WORK:

The EntNet is related to gated recurrent models such as the LSTM (Hochreiter & Schmidhuber, 1997) and GRU (Cho et al., 2014) , which also use gates to fix or modify the information stored in the hidden state. However, these models use scalar memory cells with full interactions between them, whereas ours has separate memory slots which could be seen as groups of hidden units with tied weights in the gating and update functions. Another important difference is the content-based matching term between the input and hidden state, which is not present in these models.

Our model also shares some similarities with the DNC/NTM framework of (Graves et al., 2014; 2016) . There, as in our model, a block of hidden states acts as a set of read-writeable memories. On the other hand, the DNC has a relatively sophisticated controller network (such as an LSTM) which reads an input and outputs a number of interface vectors (such as keys and weightings) which are then combined via a softmax to read from and write to the external memory matrix. In contrast, our model can be viewed as a set of separate recurrent models whose hidden states store the memory slots. These hidden states are either fixed by the gates, or modified through a simple RNN-style update. The bulk of the reasoning is thus performed by these parallel recurrent models, rather than through a central controller. Moreover, instead of using a softmax, our model uses an independent gate for writing to each memory.

Our model is similar to a Memory Network and its variants (Weston et al., 2014; Sukhbaatar et al., 2015; Chandar et al., 2016; Miller et al., 2016) in the way it produces an output using a softmax over blocks of hidden states, and our encoding layer is inspired by techniques used in those works. However, Memory Networks explicitly store the entire input sequence in memory, and then sequentially update a controller's hidden state via a softmax gating over the memories. In contrast, our model keeps a fixed number of blocks of hiddens as memories and updates each block with an independent gated RNN. The Dynamic Memory Network of (Xiong et al., 2016) also performs updates via a recurrent model, however it links memories to input tokens and updates them sequentially rather than in parallel.

The weight tying scheme and the parallel gated RNNs recall the gated graph network of (Li et al., 2015) . If we interpret our work in that context, the "graph" is just a set of vertices with no edges; our gating mechanism is also somewhat different than the one they use. The CommNN model of (Sukhbaatar et al., 2016) , the Interaction Network of (Battaglia et al., 2016) , the Neural Physics Engine of (Chang et al., 2016) and the model of (Fragkiadaki et al., 2015) also use a set of parallel recurrent models with tied weights, but differ from our model in their use of inter-network communication and the lack of a gating mechanism.

Finally, there is another class of recent models that have a writeable memory arranged as (unbounded) stacks, linked lists or queues (Joulin & Mikolov, 2015; Grefenstette et al., 2015) . Our model is different from these in that we use a key-value pair array instead of a stack, and in the experiments in this work, the array is of fixed size. 

5. EXPERIMENTS:

In this section we evaluate our model on three different datasets. Training details common to all experiments can be found in Appendix A.

5.1. SYNTHETIC WORLD MODEL TASK:

We first study our model's properties on a toy task designed to measure the ability to keep a world model in memory. In this task two agents are initially placed randomly on an 10×10 grid, and at each time step a randomly chosen agent either changes direction or moves ahead. After a certain number of time steps, the model is required to provide the locations of each of the agents, thus revealing its internal world model (details can be found in Appendix B). This task is challenging because the model must combine up to T -2 supporting facts in order to answer the question correctly, and must also keep the locations of both agents in memory and update them at different times.

We compared the performance of a MemN2N, LSTM and EntNet. For the MemN2N, we set the number of hops equal to T -2 and the embedding dimension to d = 20. The EntNet had embedding dimension d = 20 and 5 memory slots, and the LSTM had 50 hidden units which resulted in it having significantly more parameters than the other two models. For each model, we repeated the experiment with 5 different initializations and reported the best performance. All models were trained with ADAM (Kingma & Ba, 2014 ) with initial learning rates set by grid search over {0.1, 0.01, 0.001} and divided by 2 every 10,000 updates. Table 1a shows the results. The MemN2N has the worst performance, which degrades quickly as the length of the sequence increases. The LSTM performs better, but still loses accuracy as the length of the sequence increases. In contrast, the EntNet is able to solve the task in all cases.

The ability to generalize to sequences longer than those seen during training is a desirable property, which suggests that the network has learned the dynamics of the world it is trying to model. It also means the model can be trained less expensively. To study this, we trained an EntNet on variable length sequences between 1 and 20, and evaluated it on different length sequences longer than 20.

Results are shown in Table 1b . We see that the model is able to achieve good performance several times past its training horizon.

5.2. BABI TASKS:

We next evaluate our model on the bAbI tasks, which are a collection of 20 synthetic questionanswering datasets first introduced in (Weston et al., 2015) designed to test a wide variety of reasoning abilities. They have since become a benchmark for memory-augmented neural networks and most of the related methods described in Section 4 have been tested on them. Performance is measured using two metrics: the average error across all tasks, and the number of failed tasks (more than 5% error). We used version 1.2 of the dataset with 10k samples.1 

Training Details We used a similar training setup as (Sukhbaatar et al., 2015) . All models were trained with ADAM using a learning rate of η = 0.01, which was divided by 2 every 25 epochs until 200 epochs were reached. Copying previous works (Sukhbaatar et al., 2015; Xiong et al., 2016) , the capacity of the memory was limited to the most recent 70 sentences, except for task 3 which In Table 2 we compare our model to various other state-of-the-art models in the literature: the larger MemN2N reported in the appendix of (Sukhbaatar et al., 2015) , the Dynamic Memory Network of (Xiong et al., 2016) , the Dynamic Neural Turing Machine (Gulcehre et al., 2016) , the Neural Turing Machine (Graves et al., 2014) and the Differentiable Neural Computer (Graves et al., 2016) . Our model is able to solve all the tasks, outperforming the other models in terms of both the number of solved tasks and the average error.

To analyze what kind of representations our model can learn, we conducted an additional experiment on Task 2 using a simple BoW sentence encoding and key vectors which were tied to entity embeddings. This was designed to make the model more interpretable, since the weight tying forces memory slots to encode information about specific entities. 2 After training, we ran the model over a story and computed the cosine distance between φ(Hh j ) and each row r i of the decoder matrix R. This gave us a score which measures the affinity between a given memory slot and each word in the vocabulary. Table 3 shows the nearest neighboring words for each memory slot (which itself corresponds to an entity). We see that the model has indeed stored locations of all of the objects and characters in its memory slots which reflect the final state of the story. In particular, it has the correct answer readily stored in the memory slot of the entity being inquired about (the milk). It also has correct location information about all other non-location entities stored in the appropriate memory slots. Note that it does not store useful or correct information in the memory slots corresponding to Table 3 : On the left, the network's final "world model" after reading the story on the right. First and second nearest neighbors from each memory slot are shown, along with their cosine distance. Story mary got the milk there john moved to the bedroom sandra went back to the kitchen mary travelled to the hallway john got the football there john went to the hallway john put down the football mary went to the garden john went to the kitchen sandra travelled to the hallway daniel went to the hallway mary discarded the milk where is the milk ? answer: garden locations, most likely because this task does not contain questions about locations (such as "who is in the kitchen?").

5.3. CHILDREN'S BOOK TEST (CBT):

We next evaluated our model on the Children's Book Test (Hill et al., 2016) , which is a semantic language modeling (sentence completion) benchmark built from children's books that are freely available from Project Gutenberg3 . Models are required to read 20 consecutive sentences from a given story and use this context to fill in a missing word from the 21st sentence. More specifically, each sample consists of a tuple (S, q, C, a) where S is the story consisting of 20 sentences, Q is the 21st sentence with one word replaced by a special blank token, C is a set of 10 candidate answers of the same type as the missing word (for example, common nouns or named entities), and a is the true answer (which is always contained in C).

It was shown in (Hill et al., 2016) that methods with limited memory such as LSTMs perform well on more frequent, syntax based words such as prepositions and verbs, being similar to human performance, but poorly relative to humans on more semantically meaningful words such as named entities and common nouns. Therefore, most recent methods have been evaluated on the Named Entity and Common Noun subtasks, since they better test the ability of a model to make use of wider contextual information.

Training Details We adopted the same window memory approach used in (Hill et al., 2016) , where each input corresponds to a window of text from {w (i-b-1/2) ...w i ...w (i+(b-1)/2) } centered at a candidate w i ∈ C. In our experiments we set b = 5. All models were trained using standard stochastic gradient descent (SGD) with a fixed learning rate of 0.001. We used separate input encodings for the update and gating functions, and applied a dropout rate of 0.5 to the word embedding dimensions. Key embeddings were tied to the embeddings of the candidate words, resulting in 10 hidden blocks, one per member of C. Due to the weight tying, we did not need a decoder matrix and used the distribution over candidates to directly produce a prediction, as described in Section 3.

We found that a simpler version of the model worked best, with U = V = 0, W = I and φ equal to the identity. We also removed the normalization step in this simplified model, which we found to hurt performance. This can be explained by the fact that the maximum frequency baseline model in (Hill et al., 2016 ) has performance which is significantly higher than random, and including the normalization step hides this useful frequency-based information.

Results:

We draw a distinction between two setups: the single-pass setup, where the model must read the story and query in order and immediately produce an output, and the multi-pass setup, where the model can use the query to perform attention over the story. The first setup is more challenging (Trischler et al., 2016) 0.697 0.674 AoA Reader (Cui et al., 2016) 0.720 0.694 NSE Adaptive Computation (Munkhdalai & Yu, 2016) 0.732 0.714 because the model does not know beforehand which query it will be presented with, and must learn to retain information which is useful for a wide variety of potential queries. For this reason it can be viewed as a test of the model's ability to construct a general-purpose representation of the current state of the story. The second setup leverages all available information, and allows the model to use knowledge of which question will be asked when it reads the story.

In Table 4 , we show the performance of the general EntNet, the simplified EntNet, as well as other single-pass models taken from (Hill et al., 2016) . The general EntNet performs better than the LSTMs and n-gram model on the Named Entities Task, but lags behind on the Common Nouns task.

The simplified EntNet outperforms all other single-pass models on both tasks, and also performs better than the Memory Network which does not use the self-supervision heuristic. However, there is still a performance gap when compared to more sophisticated machine comprehension models, many of which perform multiple layers of attention over the story using query knowledge. The fact that the simplified EntNet is able to obtain decent performance is encouraging since it indicates that the model is able to build an internal representation of the story which it can then use to answer a relatively diverse set of queries.

6. CONCLUSION:

Two closely related challenges in artificial intelligence are designing models which can maintain an estimate of the state of a world with complex dynamics over long timescales, and models which can predict the forward evolution of the state of the world from partial observation. In this paper, we introduced the Recurrent Entity Network, a new model that makes a promising step towards the first goal. Our model is able to accurately track the world state while reading text stories, which enables it to set a new state-of-the-art on the bAbI tasks, the competitive benchmark of story understanding, by being the first model to solve them all. We also showed that our model is able to capture simple dynamics over long timescales, and is able to perform competitively on a real-world dataset.

Although our model was able to solve all the bAbI tasks using 10k training samples, we found that performance dropped considerably when using only 1k samples (see Appendix). Most recent work on the bAbI tasks has focused on the 10k samples setting, and we would like to emphasize that solving them in the 1k samples setting remains an open problem which will require improving the sample efficiency of reasoning models, including ours.

Recent works have made some progress towards the second goal of forward modeling, for instance in capturing simple physics (Lerer et al., 2016) , predicting future frames in video (Mathieu et al., 2015) or responses in dialog (Weston, 2016) . Although we have only applied our model to tasks with textual inputs in this work, the architecture is general and future work should investigate how to combine the EntNet's tracking abilities with such predictive models. 

:

Code to reproduce these experiments can be found at https://github.com/facebook/MemNN/tree/master/EntNet-babi.

For most tasks including this one, tying key vectors did not significantly change performance, although it hurt in a few cases (see Appendix C). Therefore we did not apply it in Table2

www.gutenberg.org

Figures and Tables:

Figure 1: Diagram of the Recurrent Entity Network's dynamic memory. Update equations 1 and 2 are represented by the module f θ , where θ is the set of trainable parameters. Equations 3 and 4 are represented by the gate, since they fullfill a similar function.

a) Error of different models on the World Model Task. b) Generalization of an EntNet trained up to T = 20. All errors range from 0 to 1.

Results on bAbI Tasks with 10k training samples.

Table content: <table><tr><td>Task</td><td colspan="6">NTM D-NTM MemN2N DNC DMN+ EntNet</td></tr><tr><td>1: 1 supporting fact</td><td>31.5</td><td>4.4</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>2: 2 supporting facts</td><td>54.5</td><td>27.5</td><td>0.3</td><td>0.4</td><td>0.3</td><td>0.1</td></tr><tr><td>3: 3 supporting facts</td><td>43.9</td><td>71.3</td><td>2.1</td><td>1.8</td><td>1.1</td><td>4.1</td></tr><tr><td>4: 2 argument relations</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>5: 3 argument relations</td><td>0.8</td><td>1.7</td><td>0.8</td><td>0.8</td><td>0.5</td><td>0.3</td></tr><tr><td>6: yes/no questions</td><td>17.1</td><td>1.5</td><td>0.1</td><td>0</td><td>0</td><td>0.2</td></tr><tr><td>7: counting</td><td>17.8</td><td>6.0</td><td>2.0</td><td>0.6</td><td>2.4</td><td>0</td></tr><tr><td>8: lists/sets</td><td>13.8</td><td>1.7</td><td>0.9</td><td>0.3</td><td>0.0</td><td>0.5</td></tr><tr><td>9: simple negation</td><td>16.4</td><td>0.6</td><td>0.3</td><td>0.2</td><td>0.0</td><td>0.1</td></tr><tr><td>10: indefinite knowledge</td><td>16.6</td><td>19.8</td><td>0</td><td>0.2</td><td>0</td><td>0.6</td></tr><tr><td>11: basic coreference</td><td>15.2</td><td>0</td><td>0.0</td><td>0</td><td>0.0</td><td>0.3</td></tr><tr><td>12: conjunction</td><td>8.9</td><td>6.2</td><td>0</td><td>0</td><td>0.2</td><td>0</td></tr><tr><td colspan="2">13: compound coreference 7.4</td><td>7.5</td><td>0</td><td>0</td><td>0</td><td>1.3</td></tr><tr><td>14: time reasoning</td><td>24.2</td><td>17.5</td><td>0.2</td><td>0.4</td><td>0.2</td><td>0</td></tr><tr><td>15: basic deduction</td><td>47.0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>16: basic induction</td><td>53.6</td><td>49.6</td><td>51.8</td><td>55.1</td><td>45.3</td><td>0.2</td></tr><tr><td>17: positional reasoning</td><td>25.5</td><td>1.2</td><td>18.6</td><td>12.0</td><td>4.2</td><td>0.5</td></tr><tr><td>18: size reasoning</td><td>2.2</td><td>0.2</td><td>5.3</td><td>0.8</td><td>2.1</td><td>0.3</td></tr><tr><td>19: path finding</td><td>4.3</td><td>39.5</td><td>2.3</td><td>3.9</td><td>0.0</td><td>2.3</td></tr><tr><td>20: agent's motivation</td><td>1.5</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td colspan="2">Failed Tasks (&gt; 5% error): 16</td><td>9</td><td>3</td><td>2</td><td>1</td><td>0</td></tr><tr><td>Mean Error:</td><td>20.1</td><td>12.8</td><td>4.2</td><td>3.8</td><td>2.8</td><td>0.5</td></tr></table>

Accuracy on CBT test set. Single-pass models encode the document before seeing the query, multi-pass models have access to the query at read time.

Table content: <table><tr><td>Model</td></tr></table>

Error rates on bAbI Tasks with inputs are encoded using BoW. "Tied" refers to the case where key vectors are tied with entity embeddings.

Table content: <table><tr><td>Task</td><td colspan="3">MemN2N EntNet-tied EntNet</td></tr><tr><td>1: 1 supporting fact</td><td>0</td><td>0</td><td>0</td></tr><tr><td>2: 2 supporting facts</td><td>0.6</td><td>3.0</td><td>1.2</td></tr><tr><td>3: 3 supporting facts</td><td>7</td><td>9.6</td><td>9.0</td></tr><tr><td>4: 2 argument relations</td><td>32.6</td><td>33.8</td><td>31.8</td></tr><tr><td>5: 3 argument relations</td><td>10.2</td><td>1.7</td><td>3.5</td></tr><tr><td>6: yes/no questions</td><td>0.2</td><td>0</td><td>0</td></tr><tr><td>7: counting</td><td>10.6</td><td>0.5</td><td>0.5</td></tr><tr><td>8: lists/sets</td><td>2.6</td><td>0.1</td><td>0.3</td></tr><tr><td>9: simple negation</td><td>0.3</td><td>0</td><td>0</td></tr><tr><td>10: indefinite knowledge</td><td>0.5</td><td>0</td><td>0</td></tr><tr><td>11: basic coreference</td><td>0</td><td>0.3</td><td>0</td></tr><tr><td>12: conjunction</td><td>0</td><td>0</td><td>0</td></tr><tr><td colspan="2">13: compound coreference 0</td><td>0.2</td><td>0.4</td></tr><tr><td>14: time reasoning</td><td>0.1</td><td>6.2</td><td>0.1</td></tr><tr><td>15: basic deduction</td><td>11.4</td><td>12.5</td><td>12.1</td></tr><tr><td>16: basic induction</td><td>52.9</td><td>46.5</td><td>0</td></tr><tr><td>17: positional reasoning</td><td>39.3</td><td>40.5</td><td>40.5</td></tr><tr><td>18: size reasoning</td><td>40.5</td><td>44.2</td><td>45.7</td></tr><tr><td>19: path finding</td><td>74.4</td><td>75.1</td><td>74.0</td></tr><tr><td>20: agent's motivation</td><td>0</td><td>0</td><td>0</td></tr><tr><td>Failed Tasks (&gt; 5%):</td><td>9</td><td>8</td><td>6</td></tr><tr><td>Mean Error:</td><td>15.6</td><td>13.7</td><td>10.9</td></tr></table>

Results on bAbI Tasks with 1k samples.

Table content: <table><tr><td>Task</td><td colspan="2">MemN2N EntNet</td></tr><tr><td>1: 1 supporting fact</td><td>0</td><td>0.7</td></tr><tr><td>2: 2 supporting facts</td><td>8.3</td><td>56.4</td></tr><tr><td>3: 3 supporting facts</td><td>40.3</td><td>69.7</td></tr><tr><td>4: 2 argument relations</td><td>2.8</td><td>1.4</td></tr><tr><td>5: 3 argument relations</td><td>13.1</td><td>4.6</td></tr><tr><td>6: yes/no questions</td><td>7.6</td><td>30.0</td></tr><tr><td>7: counting</td><td>17.3</td><td>22.3</td></tr><tr><td>8: lists/sets</td><td>10.0</td><td>19.2</td></tr><tr><td>9: simple negation</td><td>13.2</td><td>31.5</td></tr><tr><td>10: indefinite knowledge</td><td>15.1</td><td>15.6</td></tr><tr><td>11: basic coreference</td><td>0.9</td><td>8.0</td></tr><tr><td>12: conjunction</td><td>0.2</td><td>0.8</td></tr><tr><td colspan="2">13: compound coreference 0.4</td><td>9.0</td></tr><tr><td>14: time reasoning</td><td>1.7</td><td>62.9</td></tr><tr><td>15: basic deduction</td><td>0</td><td>57.8</td></tr><tr><td>16: basic induction</td><td>1.3</td><td>53.2</td></tr><tr><td>17: positional reasoning</td><td>51.0</td><td>46.4</td></tr><tr><td>18: size reasoning</td><td>11.1</td><td>8.8</td></tr><tr><td>19: path finding</td><td>82.8</td><td>90.4</td></tr><tr><td>20: agent's motivation</td><td>0</td><td>2.6</td></tr><tr><td>Failed Tasks (&gt; 5%):</td><td>11</td><td>15</td></tr><tr><td>Mean Error:</td><td>13.9</td><td>29.6</td></tr></table>

Peer review (iclr2017):
The work proposes a variant of a recurrent neural network that can selectively update a fixed number of multiple memory slots to update entity states. The architecture is well motivated, especially with the motivating example, and the operation is shown to validate the intuition as shown in visualizations. Experimental results, datasets and the baselines used are sufficient to quantitatively show the strength of the proposed architecture. A limitation is failing to (explicitly) generalize to unseen entities, however this is not a trivial problem on its own and the authors have addressed to this issue and proposed several ideas as workarounds. I consider the work as a good conference contribution.