mlsanityData to 7 Oct 2026

Learning Efficient Algorithms with Hierarchical Attentive Memory

arXiv 1602.03218 ↗First posted 9 Feb 2016cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). First posted on arXiv 9 Feb 2016.

Builds on

No reference list yet.

Built on by

Cited by year

Citing papers per year: 2022: 1; 2023: 0; 2024: 0; 2025: 1.

2 papers.