paper-with-me

홈 › Papers

Adamas: Hadamard Sparse Attention for Efficient Long-Context Inference

2025-10-21 · Siyuan Yan, Guo-Qing Jiang, Yuchen Zhang, Xiaoxing Ma, Ran Zhu, Chun Cao, Jingwei Xu arxiv

Large language models (LLMs) now support context windows of hundreds of thousands to millions of tokens, enabling applications such as long-document summarization, large-scale code synthesis, multi-document question answering and persistent multi-turn dialogue. However, such extended contexts exacerbate the quadratic cost of self-attention, leading to severe latency in autoregressive decoding. Existing sparse attention methods alleviate these costs but rely on heuristic patterns that struggle to recall critical key-value (KV) pairs for each query, resulting in accuracy degradation. We introduce Adamas, a lightweight yet highly accurate sparse attention mechanism designed for long-context inference. Adamas applies the Hadamard transform, bucketization and 2-bit compression to produce compact representations, and leverages Manhattan-distance estimation for efficient top-k selections. Experiments show that Adamas matches the accuracy of full attention with only a 64-token budget, achieves near-lossless performance at 128, and supports up to 8x higher sparsity than prior state-of-the-art (SOTA) methods while delivering up to 4.4x self-attention and 1.5x end-to-end speedups on 32K-length sequences. Remarkably, Adamas attains comparable or even lower perplexity than full attention, underscoring its effectiveness in maintaining accuracy under aggressive sparsity.

📄 PDF Abstract BibTeX arXiv:2510.18413

Code (0)

등록된 구현이 없습니다.

Tasks

Document SummarizationQuestion Answering

Similar Papers 제목 키워드 기반

Scout Before You Attend: Sketch-and-Walk Sparse Attention for Efficient LLM Inference

2026-02-07 · Hoang Anh Duy Le, Sahil Joshi, Zeyu Yang, Zhaozhuo Xu 외 arxiv

Self-attention dominates the computational and memory cost of long-context LLM inference across both prefill and decode phases. To address this challenge, we introduce Sketch&Walk Attention, a training-free sparse attent…

WHTMix: Efficient Stereo Depth Estimation via Walsh-Hadamard Token Mixing

2026-07-28 · Prathyush Sajith, Emadeldeen Hamdan, Ahmet Enis Cetin arxiv

Stereo depth estimation for driving, robotics and augmented reality must run at high resolution under tight latency budgets, yet in transformer-based matchers the global self-attention that aggregates scene context grows…

Stereo Depth Estimation

KVLinC : KV Cache Quantization with Hadamard Rotation and Linear Correction

2025-10-06 · Utkarsh Saxena, Kaushik Roy arxiv

Quantizing the key-value (KV) cache is a promising strategy for improving the inference efficiency of large language models (LLMs). However, aggressive quantization to very low precision (e.g., 2 bits) introduces signifi…

SPRIGHT: A Fast and Robust Framework for Sparse Walsh-Hadamard Transform

2015-08-26 · Xiao Li, Joseph K. Bradley, Sameer Pawar, Kannan Ramchandran

We consider the problem of computing the Walsh-Hadamard Transform (WHT) of some $N$-length input vector in the presence of noise, where the $N$-point Walsh spectrum is $K$-sparse with $K = {O}(N^{\delta})$ scaling sub-li…

Visual Explanations from Hadamard Product in Multimodal Deep Networks

2017-12-18 · Jin-Hwa Kim, Byoung-Tak Zhang

The visual explanation of learned representation of models helps to understand the fundamentals of learning. The attentional models of previous works used to visualize the attended regions over an image or text using the…

Question AnsweringVisual Question AnsweringVisual Question Answering (VQA)