Memory Networks — Talks, Press, and Discussion

Press & Blog Coverage

  1. Memory Networks, arXiv. The paper (ICLR 2015 version, arXiv 1410.3916).

  2. Towards AI-Complete Question Answering: A Set of Prerequisite Toy Tasks, Weston et al. (2015). The bAbI tasks, a set of 20 story-based question types built to test models such as Memory Networks.

  3. End-To-End Memory Networks, Sukhbaatar et al. (2015). A soft-attention version trained without labelled supporting facts.

  4. Key-Value Memory Networks for Directly Reading Documents, Miller et al. (2016). Memory networks with separate keys and values, for question answering from documents.

Q&A (answers from the paper)

Q1: What are the four components? I (input feature map) converts the input to an internal representation; G (generalization) updates the memories given the new input; O (output feature map) produces an output from the input and the memory; R (response) turns that output into the response, for example a word (Section 2).

Q2: Why not just use an RNN or LSTM? Their memory “is typically too small, and is not compartmentalized enough to accurately remember facts from the past (knowledge is compressed into dense vectors)” (Section 1).

Q3: How does the model find two supporting facts? The first hop takes the memory with the highest score s_O(x, m_i) for the question x; the second takes the highest s_O([x, m_o1], m_i). R then ranks words given [x, m_o1, m_o2]. All scores have the form Φ_x(x)ᵀ Uᵀ U Φ_y(y) (Section 3.1, Eqs. 2–5).

Q4: What supervision does training use? The supporting sentences are labelled in the training data but not in the test data, and the model is trained with a margin ranking loss and SGD (Section 3.1, Eqs. 6–8).

Q5: How does the model know which fact is most recent? With write time (Section 3.4): the model compares pairs of memories with extra features that say which is older, and loops over the memories keeping the winner. In Table 3, at difficulty 5, adding time lifted k = 1 from 18.5% to 44.4% on actor+object questions, and k = 2 (+time) reached 99.9%.

Q6: How did it do on large-scale question answering? On the QA set of Fader et al. (2013) with 14M stored facts, MemNN reached F1 0.82 with bag-of-words features, against 0.54 and 0.73 for earlier methods (Table 1). Hashing the memory into clusters kept F1 at 0.80 while scoring 80 times fewer candidates (Table 2).

Common Misconceptions

  1. “Memory Networks learn which facts to use on their own.” This version needs the supporting facts labelled during training (Section 3.1). End-To-End Memory Networks removed that need.

  2. “More memory hops are always better.” In Table 3, two hops matter for actor+object questions, but without write-time features even the memory network fails at difficulty 5 (k = 1 without time: 18.5%).

  3. “It reads whole documents.” Each memory slot holds one sentence or fact; the simulated-world stories are short texts produced by a simple grammar (Section 5.2).

Real Citations

  • Weston, J., Chopra, S., Bordes, A. (2015). “Memory Networks.” ICLR 2015. arXiv:1410.3916.
  • Weston, J. et al. (2015). “Towards AI-Complete Question Answering: A Set of Prerequisite Toy Tasks.” arXiv:1502.05698.
  • Sukhbaatar, S., Szlam, A., Weston, J., Fergus, R. (2015). “End-To-End Memory Networks.” NIPS 2015. arXiv:1503.08895.
  • Miller, A. et al. (2016). “Key-Value Memory Networks for Directly Reading Documents.” arXiv:1606.03126.