Abstract
Transformers are unable to model long-term memories effectively, since the amount of computation they need to perform grows with the context length. While variations of efficient transformers have been proposed, they all have a finite memory capacity and are forced to drop old information. In this paper, we propose the 8-former, which extends the vanilla transformer with an unbounded long-term memory. By making use of a continuous-space attention mechanism to attend over the long-term memory, the 8-former's attention complexity becomes independent of the context length, trading off memory length with precision. In order to control where precision is more important, 8-former maintains “sticky memories,” being able to model arbitrarily long contexts while keeping the computation budget fixed. Experiments on a synthetic sorting task, language modeling, and document grounded dialogue generation demonstrate the 8-former's ability to retain information from long sequences.
Cite
CITATION STYLE
Martins, P. H., Marinho, Z., & Martins, A. F. T. (2022). 8-former: Infinite Memory Transformer. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (Vol. 1, pp. 5468–5485). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2022.acl-long.375
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.