scimeatlas

Research map / Architectures and efficiency / Attention and transformers

RelayAttention for Efficient Large Language Model Serving with Long System Prompts

Lei Zhu, Xinjiang Wang, Wayne Zhang, Rynson Lau

ACL 2024Architectures and efficiency › Attention and transformersapproach: Sparse attention for long-context LLMsopen problems in this approach27 citations (OpenAlex)

City University of Hong Kong · SenseTime

Read the paperPlace an idea next to itCheck your own paper ↗

10measured effects
9improved
1hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add RelayAttention to vLLM-PSvLLM (Llama2-7B) · interactive ShareGPTv3, system prompt 2048sustainable request rate at ~0.5 s/token: up to ~2.2xImproved
integrate RelayAttention into vLLMvLLM (Llama2-7B) · ShareGPTv3 batch processingthroughput: 1.06x to 4.36x of vLLMImproved
add prefix sharing and PromptCache (vLLM-PS)vLLM · ShareGPTv3 batch processingthroughput: up to 108%Improved
add RelayAttention to vLLM-PSvLLM-PS (Llama2-7B) · MMLU 5-shot, A100-80Gprocessing time (s): 432 -> 316Improved
add RelayAttention to vLLM-PSvLLM-PS (Llama2-7B) · MMLU 1-shot, A40-48Gprocessing time (s): 675 -> 621Improved
add RelayAttention to vLLM-PSvLLM-PS (Mistral-7B) · ShareGPTv3, system prompt 512throughput (req/s): 5.40 -> 5.90Improved
add RelayAttention to vLLM-PSvLLM-PS (Phi-2 2.7B) · ShareGPTv3, system prompt 1024throughput (req/s): 4.82 -> 8.76Improved
lengthen the system prompt (1-shot to 5-shot)vLLM · MMLUaccuracy: 37.6% -> 43.2%Improved
lengthen the system prompt (1-shot to 5-shot)vLLM · MMLU, A100-80Gprocessing time (s): 502 -> 1308Hurt
use RelayAttention with synthetic workloads of long contexts (256+512)vLLM-RA · synthetic workload, system prompt 2048throughput: up to 2.2x speedupImproved

Open problems in sparse attention for long-context LLMs

Which attention can a long-context model drop without losing the answer?

All 4 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy