paper-with-me

홈 › Papers

Rectified Sparse Attention

2025-06-04 · Yutao Sun, Tianzhu Ye, Li Dong, Yuqing Xia, Jian Chen, Yizhao Gao, Shijie Cao, Jianyong Wang, Furu Wei

Efficient long-sequence generation is a critical challenge for Large Language Models. While recent sparse decoding methods improve efficiency, they suffer from KV cache misalignment, where approximation errors accumulate and degrade generation quality. In this work, we propose Rectified Sparse Attention (ReSA), a simple yet effective method that combines block-sparse attention with periodic dense rectification. By refreshing the KV cache at fixed intervals using a dense forward pass, ReSA bounds error accumulation and preserves alignment with the pretraining distribution. Experiments across math reasoning, language modeling, and retrieval tasks demonstrate that ReSA achieves near-lossless generation quality with significantly improved efficiency. Notably, ReSA delivers up to 2.42$\times$ end-to-end speedup under decoding at 256K sequence length, making it a practical solution for scalable long-context inference. Code is available at https://aka.ms/ReSA-LM.

📄 PDF Abstract BibTeX arXiv:2506.04108

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingMath

Methods 이 논문이 사용한 방법론

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$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Rectified SpaAttn: Revisiting Attention Sparsity for Efficient Video Generation

2025-11-25 · Xuewen Liu, Zhikai Li, Jing Zhang, Mengjuan Chen 외 arxiv

Diffusion Transformers dominate video generation, but the quadratic complexity of attention computation introduces substantial latency. Attention sparsity reduces computational costs by focusing on critical tokens while …

Video Generation

Self-Attention Dense Depth Estimation Network for Unrectified Video Sequences

2020-05-28 · Alwyn Mathew, Aditya Prakash Patra, Jimson Mathew

The dense depth estimation of a 3D scene has numerous applications, mainly in robotics and surveillance. LiDAR and radar sensors are the hardware solution for real-time depth estimation, but these sensors produce sparse …

Depth Estimation

CCDSReFormer: Traffic Flow Prediction with a Criss-Crossed Dual-Stream Enhanced Rectified Transformer Model

2024-03-26 · Zhiqi Shao, Michael G. H. Bell, Ze Wang, D. Glenn Geers 외

Accurate, and effective traffic forecasting is vital for smart traffic systems, crucial in urban traffic planning and management. Current Spatio-Temporal Transformer models, despite their prediction capabilities, struggl…

Computational EfficiencyManagement

Softpick: No Attention Sink, No Massive Activations with Rectified Softmax

2025-04-29 · Zayd M. K. Zuhri, Erland Hilman Fuadi, Alham Fikri Aji

We introduce softpick, a rectified, not sum-to-one, drop-in replacement for softmax in transformer attention mechanisms that eliminates attention sink and massive activations. Our experiments with 340M parameter models d…

Quantization

Rectified Gaussian Scale Mixtures and the Sparse Non-Negative Least Squares Problem

2016-01-22 · Alican Nalci, Igor Fedorov, Maher Al-Shoukairi, Thomas T. Liu 외

In this paper, we develop a Bayesian evidence maximization framework to solve the sparse non-negative least squares (S-NNLS) problem. We introduce a family of probability densities referred to as the Rectified Gaussian S…