Learning to Remember More with Less Memorization
About
Memory-augmented neural networks consisting of a neural controller and an external memory have shown potentials in long-term sequential learning. Current RAM-like memory models maintain memory accessing every timesteps, thus they do not effectively leverage the short-term memory held in the controller. We hypothesize that this scheme of writing is suboptimal in memory utilization and introduces redundant computation. To validate our hypothesis, we derive a theoretical bound on the amount of information stored in a RAM-like system and formulate an optimization problem that maximizes the bound. The proposed solution dubbed Uniform Writing is proved to be optimal under the assumption of equal timestep contributions. To relax this assumption, we introduce modifications to the original solution, resulting in a solution termed Cached Uniform Writing. This method aims to balance between maximizing memorization and forgetting via overwriting mechanisms. Through an extensive set of experiments, we empirically demonstrate the advantages of our solutions over other recurrent architectures, claiming the state-of-the-arts in various sequential modeling tasks.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | MNIST (test) | Accuracy99.1 | 882 | |
| Text Classification | AGNews | Accuracy93.9 | 119 | |
| Text Classification | IMDB | Accuracy91.4 | 107 | |
| Image Classification | permuted MNIST (pMNIST) (test) | Accuracy96.3 | 63 | |
| Document Classification | Yelp Polarity | Accuracy96.4 | 25 | |
| Document Classification | Yahoo Answers | Accuracy74.3 | 23 | |
| Image Classification | MNIST non-permutation (test) | Accuracy99.1 | 8 | |
| Image Classification | PMNIST (test) | Accuracy96.3 | 7 | |
| Synthetic Copy | Synthetic Copy L=50 (test) | Test Accuracy97.7 | 6 | |
| Synthetic Copy | Synthetic Copy L=100 (test) | Test Accuracy69.3 | 6 |