Learning Efficient Algorithms with Hierarchical Attentive Memory

By Marcin Andrychowicz, Karol Kurach. 2016

53 citations recorded by the source corpus.

In this paper, we propose and investigate a novel memory architecture for neural networks called Hierarchical Attentive Memory (HAM). It is based on a binary tree with leaves corresponding to memory cells. This allows HAM to perform memory access in O(log n) complexity, which is a significant improvement over the standard attention mechanism that requires O(n) operations, where n is the size of the memory. We show that an LSTM network augmented with HAM can learn algorithms for problems like merging, sorting or binary searching from pure input-output examples. In particular, it learns to sort n numbers in time O(n log n) and generalizes well to input sequences much longer than the ones seen during the training. We also show that HAM can be trained to act like classic data structures: a stack, a FIFO queue and a priority queue.

Subfields: Artificial Intelligence, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Yoshua Bengio
  3. Jianfeng Gao
  4. Percy Liang
  5. Kyunghyun Cho
  6. Yejin Choi
  7. Luke S. Zettlemoyer
  8. Sergey Levine

In Model Architectures

  1. C. Pal
  2. Yoshua Bengio
  3. Sebastian Riedel
  4. Tim Rocktaschel
  5. Alessandro Sordoni
  6. Joelle Pineau
  7. Pushmeet Kohli
  8. Nan Rosemary Ke

Citations in the corpus