paper-with-me

Papers

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

2025-02-20 · Shang Yang, Junxian Guo, Haotian Tang, Qinghao Hu, Guangxuan Xiao, Jiaming Tang, Yujun Lin, Zhijian Liu, Yao Lu, Song Han

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 complexity of attention in the prefilling stage and the large memory footprint of the KV cache in the decoding stage. To address these issues, we introduce LServe, an efficient system that accelerates long-sequence LLM serving via hybrid sparse attention. This method unifies different hardware-friendly, structured sparsity patterns for both prefilling and decoding attention into a single framework, where computations on less important tokens are skipped block-wise. LServe demonstrates the compatibility of static and dynamic sparsity in long-context LLM attention. This design enables multiplicative speedups by combining these optimizations. Specifically, we convert half of the attention heads to nearly free streaming heads in both the prefilling and decoding stages. Additionally, we find that only a constant number of KV pages is required to preserve long-context and reasoning capabilities, irrespective of context length. We then design a hierarchical KV page selection policy that dynamically prunes KV pages based on query-centric similarity. On average, LServe accelerates LLM prefilling by up to 2.9x and decoding by 1.3-2.1x over vLLM, maintaining long-context accuracy. Code is released at https://github.com/mit-han-lab/omniserve.

📄 PDF Abstract BibTeX arXiv:2502.14866

Code (2)

mit-han-lab/omniserve 공식 구현 pytorch
mit-han-lab/qserve pytorch

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 제목 키워드 기반

On the Cost of Model-Serving Frameworks: An Experimental Evaluation

2024-11-15 · Pasquale De Rosa, Yérom-David Bromberg, Pascal Felber, Djob Mvondo 외

In machine learning (ML), the inference phase is the process of applying pre-trained models to new, unseen data with the objective of making predictions. During the inference phase, end-users interact with ML services to…

image-classificationImage ClassificationMalware DetectionSentiment Analysis+1

LONGER: Scaling Up Long Sequence Modeling in Industrial Recommenders

2025-05-07 · Zheng Chai, Qin Ren, Xijun Xiao, Huizhi Yang 외

Modeling ultra-long user behavior sequences is critical for capturing both long- and short-term preferences in industrial recommender systems. Existing solutions typically rely on two-stage retrieval or indirect modeling…

GPURecommendation Systems

EasyMLServe: Easy Deployment of REST Machine Learning Services

2022-11-26 · Oliver Neumann, Marcel Schilling, Markus Reischl, Ralf Mikut

Various research domains use machine learning approaches because they can solve complex tasks by learning from data. Deploying machine learning models, however, is not trivial and developers have to implement complete so…

Instance SegmentationSemantic SegmentationTime SeriesTime Series Analysis+1

Big Bird: Transformers for Longer Sequences

2020-07-28 · NeurIPS 2020 12 · Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie 외

Transformers-based models, such as BERT, have been one of the most successful deep learning models for NLP. Unfortunately, one of their core limitations is the quadratic dependency (mainly in terms of memory) on the sequ…

Linguistic AcceptabilityNatural Language InferenceQuestion AnsweringSemantic Textual Similarity+2

3D Point Capsule Networks

2018-12-27 · CVPR 2019 6 · Yongheng Zhao, Tolga Birdal, Haowen Deng, Federico Tombari

In this paper, we propose 3D point-capsule networks, an auto-encoder designed to process sparse 3D point clouds while preserving spatial arrangements of the input data. 3D capsule networks arise as a direct consequence o…

3D Feature Matching3D Geometry Perception3D Object Classification3D Object Reconstruction+6