paper-with-me

홈 › Papers

Linearizing Transformer with Key-Value Memory

2022-03-23 · Yizhe Zhang, Deng Cai

Efficient transformer variants with linear time complexity have been developed to mitigate the quadratic computational overhead of the vanilla transformer. Among them are low-rank projection methods such as Linformer and kernel-based Transformers. Despite their unique merits, they usually suffer from a performance drop comparing with the vanilla transformer on many sequence generation tasks, and often fail to obtain computation gain when the generation is short. We propose MemSizer, an approach towards closing the performance gap while improving the efficiency even with short generation. It projects the source sequences into lower dimension representations like Linformer, while enjoying efficient recurrent-style incremental computation similar to kernel-based transformers. This yields linear computation time and constant memory complexity at inference time. MemSizer also employs a lightweight multi-head mechanism which renders the computation as light as a single-head model. We demonstrate that MemSizer provides an improved balance between efficiency and accuracy over the vanilla transformer and other efficient transformer variants in three typical sequence generation tasks, including machine translation, abstractive text summarization, and language modeling.

📄 PDF Abstract BibTeX arXiv:2203.12644

Code (0)

등록된 구현이 없습니다.

Tasks

Abstractive Text SummarizationLanguage ModelingLanguage ModellingMachine TranslationText GenerationText Summarization

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Multi-Head Linear Attention Multi-Head Linear Attention is a type of linear multi-head self-attention module, proposed with the Linformer architecture. The…
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…
Residual Connection 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Linformer Linformer is a linear Transformer that utilises a linear self-attention mechanism to tackle the self-attention bottleneck with…

Similar Papers 제목 키워드 기반

LoLCATs: On Low-Rank Linearizing of Large Language Models

2024-10-14 · Michael Zhang, Simran Arora, Rahul Chalamala, Alan Wu 외

Recent works show we can linearize large language models (LLMs) -- swapping the quadratic attentions of popular Transformer-based LLMs with subquadratic analogs, such as linear attention -- avoiding the expensive pretrai…

MMLU

Liger: Linearizing Large Language Models to Gated Recurrent Structures

2025-03-03 · Disen Lan, Weigao Sun, Jiaxi Hu, Jusen Du 외

Transformers with linear recurrent modeling offer linear-time training and constant-memory inference. Despite their demonstrated efficiency and performance, pretraining such non-standard architectures from scratch remain…

Ghost in the Kernel: In-Context Learning with Efficient Transformers via Domain Generalization

2026-07-01 · Peilin Liu, Ding-Xuan Zhou arxiv

Transformer-based large models have demonstrated remarkable generalization abilities across different tasks by leveraging a context-aware attention module for in-context learning. With richer context, transformers adapt …

Domain Generalization

Linearizing Vision Transformer with Test-Time Training

2026-05-04 · Yining Li, Dongchen Han, Zeyu Liu, Hanyi Wang 외 arxiv

While linear-complexity attention mechanisms offer a promising alternative to Softmax attention for overcoming the quadratic bottleneck, training such models from scratch remains prohibitively expensive. Inheriting weigh…

Transformer-based Koopman Autoencoder for Linearizing Fisher's Equation

2024-12-03 · Kanav Singh Rana, Nitu Kumari

A Transformer-based Koopman autoencoder is proposed for linearizing Fisher's reaction-diffusion equation. The primary focus of this study is on using deep learning techniques to find complex spatiotemporal patterns in th…