pith. sign in

arxiv: 2312.12742 · v1 · pith:2JSFPNQYnew · submitted 2023-12-20 · 💻 cs.CV

Cached Transformers: Improving Transformers with Differentiable Memory Cache

classification 💻 cs.CV
keywords attentioncachecachedlanguagedifferentiablememorymodelmodeling
0
0 comments X
read the original abstract

This work introduces a new Transformer model called Cached Transformer, which uses Gated Recurrent Cached (GRC) attention to extend the self-attention mechanism with a differentiable memory cache of tokens. GRC attention enables attending to both past and current tokens, increasing the receptive field of attention and allowing for exploring long-range dependencies. By utilizing a recurrent gating unit to continuously update the cache, our model achieves significant advancements in \textbf{six} language and vision tasks, including language modeling, machine translation, ListOPs, image classification, object detection, and instance segmentation. Furthermore, our approach surpasses previous memory-based techniques in tasks such as language modeling and displays the ability to be applied to a broader range of situations.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.