paper-with-me

Papers

Prefixing Attention Sinks can Mitigate Activation Outliers for Large Language Model Quantization

2024-06-17 · Seungwoo Son, Wonpyo Park, Woohyun Han, Kyuyeun Kim, Jaeho Lee

Despite recent advances in LLM quantization, activation quantization remains to be challenging due to the activation outliers. Conventional remedies, e.g., mixing precisions for different channels, introduce extra overhead and reduce the speedup. In this work, we develop a simple yet effective strategy to facilitate per-tensor activation quantization by preventing the generation of problematic tokens. Precisely, we propose a method to find a set of key-value cache, coined CushionCache, which mitigates outliers in subsequent tokens when inserted as a prefix. CushionCache works in two steps: First, we greedily search for a prompt token sequence that minimizes the maximum activation values in subsequent tokens. Then, we further tune the token cache to regularize the activations of subsequent tokens to be more quantization-friendly. The proposed method successfully addresses activation outliers of LLMs, providing a substantial performance boost for per-tensor activation quantization methods. We thoroughly evaluate our method over a wide range of models and benchmarks and find that it significantly surpasses the established baseline of per-tensor W8A8 quantization and can be seamlessly integrated with the recent activation quantization method.

📄 PDF Abstract BibTeX arXiv:2406.12016

Code (1)

ruikangliu/IntactKV pytorch

Tasks

Language ModelingLanguage ModellingLarge Language ModelQuantization

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training

2026-01-30 · Zihan Qiu, Zeyu Huang, Kaiyue Wen, Peng Jin 외 arxiv

We investigate the functional role of emergent outliers in large language models, specifically attention sinks (a few tokens that consistently receive large attention logits) and residual sinks (a few fixed dimensions wi…

Activation Quantization of Vision Encoders Needs Prefixing Registers

2025-10-06 · Seunghyeon Kim, Taesun Yeom, Jinho Kim, Wonpyo Park 외 arxiv

Large pretrained vision encoders are central to multimodal intelligence, powering applications from on-device vision processing to vision-language models. Since these applications often demand real-time processing of mas…

KVSink: Understanding and Enhancing the Preservation of Attention Sinks in KV Cache Quantization for LLMs

2025-08-06 · Zunhai Su, Kehong Yuan arxiv

Key-Value (KV) cache quantization has become a widely adopted optimization technique for efficient large language models (LLMs) inference by reducing KV cache memory usage and mitigating memory-bound constraints. Recent …

The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks

2026-03-05 · Shangwen Sun, Alfredo Canziani, Yann LeCun, Jiachen Zhu arxiv

We study two recurring phenomena in Transformer language models: massive activations, in which a small number of tokens exhibit extreme outliers in a few channels, and attention sinks, in which certain tokens attract dis…

Attention Sinks and Outliers in Attention Residuals

2026-05-18 · Haozheng Luo, Haoran Dai, Shaoyang Zhang, Xi Chen 외 arxiv

We propose OASIS, an outlier- and sink-aware technique built on inter-layer null signaling. As AttnResidual architectures introduce an additional depth-wise normalization channel, they improve inter-layer routing flexibi…