paper-with-me

홈 › Papers

Cached Transformers: Improving Transformers with Differentiable Memory Cache

2023-12-20 · Zhaoyang Zhang, Wenqi Shao, Yixiao Ge, Xiaogang Wang, Jinwei Gu, Ping Luo

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.

📄 PDF Abstract BibTeX arXiv:2312.12742

Code (1)

annosubmission/GRC-Cache pytorch

Tasks

image-classificationImage ClassificationInstance SegmentationLanguage ModelingLanguage ModellingListOpsMachine Translationobject-detectionObject DetectionSemantic Segmentation

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Position-Wise Feed-Forward Layer 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음

Similar Papers 제목 키워드 기반

Efficient Reasoning at Fixed Test-Time Cost via Length-Aware Attention Priors and Gain-Aware Training

2026-03-10 · Rian Atri arxiv

We study efficient reasoning under tight compute. We ask how to make structured, correct decisions without increasing test time cost. We add two training only components to small and medium Transformers that also transfe…

AdaCorrection: Adaptive Offset Cache Correction for Accurate Diffusion Transformers

2026-02-13 · Dong Liu, Yanxuan Yu, Ben Lengerich, Ying Nian Wu arxiv

Diffusion Transformers (DiTs) achieve state-of-the-art performance in high-fidelity image and video generation but suffer from expensive inference due to their iterative denoising structure. While prior methods accelerat…

Video Generation

A Simple and Effective $L_2$ Norm-Based Strategy for KV Cache Compression

2024-06-17 · Alessio Devoto, Yu Zhao, Simone Scardapane, Pasquale Minervini

The deployment of large language models (LLMs) is often hindered by the extensive memory requirements of the Key-Value (KV) cache, especially as context lengths increase. Existing approaches to reduce the KV cache size i…

DecoderLanguage Modelling

Accelerating Diffusion Transformers with Dual Feature Caching

2024-12-25 · Chang Zou, Evelyn Zhang, Runlin Guo, Haohang Xu 외

Diffusion Transformers (DiT) have become the dominant methods in image and video generation yet still suffer substantial computational costs. As an effective approach for DiT acceleration, feature caching methods are des…

Video Generation

Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttention

2024-03-23 · Bin Gao, Zhuomin He, Puru Sharma, Qingxuan Kang 외

Interacting with humans through multi-turn conversations is a fundamental feature of large language models (LLMs). However, existing LLM serving engines executing multi-turn conversations are inefficient due to the need …

GPULanguage ModelingLanguage ModellingLarge Language Model