TensorX
返回文献探索

Paper · arXiv 2312.12742

Cached Transformers: Improving Transformers with Differentiable Memory Cache

Zhaoyang Zhang, Wenqi Shao, Yixiao Ge, Xiaogang Wang, Jinwei Gu, Ping Luo

13 upvotesDecember 20, 2023arXiv 预印本
AI 摘要

A Cached Transformer model with Gated Recurrent Cached attention achieves significant advancements in language and vision tasks by extending self-attention with a differentiable memory cache.

TransformerGated Recurrent Cached (GRC) attentionself-attentiondifferentiable memory cacherecurrent gating unitlanguage modelingmachine translationListOPsimage classificationobject detectioninstance segmentation

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 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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Cached Transformers: Improving Transformers with Differentiable Memory Cache | TensorX