paper-with-me

홈 › Papers

Leveraging redundancy in attention with Reuse Transformers

2021-10-13 · Srinadh Bhojanapalli, Ayan Chakrabarti, Andreas Veit, Michal Lukasik, Himanshu Jain, Frederick Liu, Yin-Wen Chang, Sanjiv Kumar

Pairwise dot product-based attention allows Transformers to exchange information between tokens in an input-dependent way, and is key to their success across diverse applications in language and vision. However, a typical Transformer model computes such pairwise attention scores repeatedly for the same sequence, in multiple heads in multiple layers. We systematically analyze the empirical similarity of these scores across heads and layers and find them to be considerably redundant, especially adjacent layers showing high similarity. Motivated by these findings, we propose a novel architecture that reuses attention scores computed in one layer in multiple subsequent layers. Experiments on a number of standard benchmarks show that reusing attention delivers performance equivalent to or better than standard transformers, while reducing both compute and memory usage.

📄 PDF Abstract BibTeX arXiv:2110.06821

Code (1)

tensorflow/models/blob/master/official/nlp/modeling/layers/reuse_transformer.py tf

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Adam 설명 없음
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…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
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…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…

Similar Papers 제목 키워드 기반

Skip-Attention: Improving Vision Transformers by Paying Less Attention

2023-01-05 · Shashanka Venkataramanan, Amir Ghodrati, Yuki M. Asano, Fatih Porikli 외

This work aims to improve the efficiency of vision transformers (ViT). While ViTs use computationally expensive self-attention operations in every layer, we identify that these operations are highly correlated across lay…

Denoisingimage-classificationImage ClassificationImage Denoising+3

MoECa: Aligning Feature Reuse with Expert Decomposition in Diffusion Transformers

2026-06-14 · Maoliang Li, Haojing Chen, Jiayu Chen, Zihao Zheng 외 arxiv

Diffusion Transformers with Mixture-of-Experts (DiT-MoE) improve model capacity under sparse activation, but diffusion inference is still bottlenecked by redundant computation across timesteps. Existing caching methods m…

UniForm: A Reuse Attention Mechanism Optimized for Efficient Vision Transformers on Edge Devices

2024-12-03 · Seul-Ki Yeom, Tae-Ho Kim

Transformer-based architectures have demonstrated remarkable success across various domains, but their deployment on edge devices remains challenging due to high memory and computational demands. In this paper, we introd…

ToMA: Token Merge with Attention for Diffusion Models

2025-09-13 · Wenbo Lu, Shaoyi Zheng, Yuxuan Xia, Shengjie Wang arxiv

Diffusion models excel in high-fidelity image generation but face scalability limits due to transformers' quadratic attention complexity. Plug-and-play token reduction methods like ToMeSD and ToFu reduce FLOPs by merging…

Image Generation

DARE: Diffusion Language Model Activation Reuse for Efficient Inference

2026-05-01 · Natalia Frumkin, Bokun Wang, Hung-Yueh Chiang, Chi-Chih Chang 외 arxiv

Diffusion Large Language Models (dLLMs) have emerged as a promising alternative to auto-regressive (AR) models, offering greater expressive capacity and potential for parallel generation and faster inference. However, op…