paper-with-me

Papers

Accelerating Prefilling via Decoding-time Contribution Sparsity

2025-07-29 · Zhiyuan He, Yike Zhang, Chengruidong Zhang, Huiqiang Jiang, Yuqing Yang, Lili Qiu arxiv

Large Language Models (LLMs) incur quadratic attention complexity with input length, creating a major time bottleneck in the prefilling stage. Existing acceleration methods largely exploit attention score sparsity by estimating blocks with high attention scores and applying dynamic sparse attention. In this work, we identify another untapped form of sparsity in the prefilling stage, namely decoding-time contribution sparsity, where many attention blocks exhibit nontrivial attention scores during prefilling yet contribute negligibly to subsequent decoding, as indicated by gradient-based analysis. Building on this observation, we propose TriangleMix, a training-free static attention pattern that uses dense attention in a subset of layers and switches to Triangle attention in the others. Extensive experiments show that TriangleMix preserves nearly lossless performance relative to dense attention while substantially reducing attention overhead in Triangle layers. For 128K inputs, Triangle attention achieves a 15.3x speedup in attention computation, significantly exceeding the acceleration of typical dynamic sparse methods (1.9x to 3.4x). Furthermore, TriangleMix can be seamlessly combined with dynamic sparsity approaches, delivering an additional 6% to 19% reduction in TTFT over using dynamic sparsity alone. Our code is released at https://aka.ms/TriangleMix.

📄 PDF Abstract BibTeX arXiv:2507.21526

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

SparseVILA: Decoupling Visual Sparsity for Efficient VLM Inference

2025-10-20 · Samir Khaki, Junxian Guo, Jiaming Tang, Shang Yang 외 arxiv

Vision Language Models (VLMs) have rapidly advanced in integrating visual and textual reasoning, powering applications across high-resolution image understanding, long-video analysis, and multi-turn conversation. However…

LServe: Efficient Long-sequence LLM Serving with Unified Sparse Attention

2025-02-20 · Shang Yang, Junxian Guo, Haotian Tang, Qinghao Hu 외

Large language models (LLMs) have shown remarkable potential in processing long sequences and complex reasoning tasks, yet efficiently serving these models remains challenging due to the quadratic computational complexit…

DeltaLLM: A Training-Free Framework Exploiting Temporal Sparsity for Efficient Edge LLM Inference

2025-07-25 · Jiawen Qi, Chang Gao, Zhaochun Ren, Qinyu Chen arxiv

Deploying Large Language Models (LLMs) on edge devices remains challenging due to their quadratically increasing computations with the sequence length. Existing studies for dynamic attention pruning are designed for hard…

Prefilling-dLLM: Predictive Prefilling for Long-Context Inference in Diffusion Language Models

2026-06-09 · Jing Xiong, Qi Han, Shansan Gong, Yunta Hsieh 외 arxiv

Diffusion large language models (dLLMs) re-encode the entire prefix at every denoising step, causing recomputation that scales quadratically with context length and becomes prohibitive for long-context scenarios. We prop…

Mix-Quant: Quantized Prefilling, Precise Decoding for Agentic LLMs

2026-05-19 · Haiquan Lu, Zigeng Chen, Gongfan Fang, Xinyin Ma 외 arxiv

LLM agents have recently emerged as a powerful paradigm for solving complex tasks through planning, tool use, memory retrieval, and multi-step interaction. However, these agentic workflows often introduce substantial inp…