paper-with-me

Papers

Tactic: Adaptive Sparse Attention with Clustering and Distribution Fitting for Long-Context LLMs

2025-02-17 · Kan Zhu, Tian Tang, Qinyu Xu, Yile Gu, Zhichen Zeng, Rohan Kadekodi, Liangyu Zhao, Ang Li, Arvind Krishnamurthy, Baris Kasikci

Long-context models are essential for many applications but face inefficiencies in loading large KV caches during decoding. Prior methods enforce fixed token budgets for sparse attention, assuming a set number of tokens can approximate full attention. However, these methods overlook variations in the importance of attention across heads, layers, and contexts. To address these limitations, we propose Tactic, a sparsity-adaptive and calibration-free sparse attention mechanism that dynamically selects tokens based on their cumulative attention scores rather than a fixed token budget. By setting a target fraction of total attention scores, Tactic ensures that token selection naturally adapts to variations in attention sparsity. To efficiently approximate this selection, Tactic leverages clustering-based sorting and distribution fitting, allowing it to accurately estimate token importance with minimal computational overhead. We show that Tactic outperforms existing sparse attention algorithms, achieving superior accuracy and up to 7.29x decode attention speedup. This improvement translates to an overall 1.58x end-to-end inference speedup, making Tactic a practical and effective solution for long-context LLM inference in accuracy-sensitive applications.

📄 PDF Abstract BibTeX arXiv:2502.12216

Code (0)

등록된 구현이 없습니다.

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 설명 없음
SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

AdaCluster: Adaptive Query-Key Clustering for Sparse Attention in Video Generation

2026-04-20 · Haoyue Tan, Shengnan Wang, Yulin Qiao, Juncheng Zhang 외 arxiv

Video diffusion transformers (DiTs) suffer from prohibitive inference latency due to quadratic attention complexity. Existing sparse attention methods either overlook semantic similarity or fail to adapt to heterogeneous…

Semantic SimilarityVideo Generation

Multi-view Subspace Adaptive Learning via Autoencoder and Attention

2022-01-01 · Jian-wei Liu, Hao-jie Xie, Run-kun Lu, Xiong-lin Luo

Multi-view learning can cover all features of data samples more comprehensively, so multi-view learning has attracted widespread attention. Traditional subspace clustering methods, such as sparse subspace clustering (SSC…

ClusteringMULTI-VIEW LEARNING

A Novel Efficient Approach with Data-Adaptive Capability for OMP-based Sparse Subspace Clustering

2019-03-05 · Jiaqiyu Zhan, Zhiqiang Bai, Yuesheng Zhu

Orthogonal Matching Pursuit (OMP) plays an important role in data science and its applications such as sparse subspace clustering and image processing. However, the existing OMP-based approaches lack of data adaptiveness…

Clustering

A Domain Adaptive Density Clustering Algorithm for Data with Varying Density Distribution

2019-11-23 · Jianguo Chen, Philip S. Yu

As one type of efficient unsupervised learning methods, clustering algorithms have been widely used in data mining and knowledge discovery with noticeable advantages. However, clustering algorithms based on density peak …

Clustering

Sparse Convex Clustering

2016-01-18 · Binhuan Wang, Yilong Zhang, Will Wei Sun, Yixin Fang

Convex clustering, a convex relaxation of k-means clustering and hierarchical clustering, has drawn recent attentions since it nicely addresses the instability issue of traditional nonconvex clustering methods. Although …

Clusteringfeature selection