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
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 changed | Where | Measured | Effect |
|---|---|---|---|
| add RelayAttention to vLLM-PS | vLLM (Llama2-7B) · interactive ShareGPTv3, system prompt 2048 | sustainable request rate at ~0.5 s/token: up to ~2.2x | Improved |
| integrate RelayAttention into vLLM | vLLM (Llama2-7B) · ShareGPTv3 batch processing | throughput: 1.06x to 4.36x of vLLM | Improved |
| add prefix sharing and PromptCache (vLLM-PS) | vLLM · ShareGPTv3 batch processing | throughput: up to 108% | Improved |
| add RelayAttention to vLLM-PS | vLLM-PS (Llama2-7B) · MMLU 5-shot, A100-80G | processing time (s): 432 -> 316 | Improved |
| add RelayAttention to vLLM-PS | vLLM-PS (Llama2-7B) · MMLU 1-shot, A40-48G | processing time (s): 675 -> 621 | Improved |
| add RelayAttention to vLLM-PS | vLLM-PS (Mistral-7B) · ShareGPTv3, system prompt 512 | throughput (req/s): 5.40 -> 5.90 | Improved |
| add RelayAttention to vLLM-PS | vLLM-PS (Phi-2 2.7B) · ShareGPTv3, system prompt 1024 | throughput (req/s): 4.82 -> 8.76 | Improved |
| lengthen the system prompt (1-shot to 5-shot) | vLLM · MMLU | accuracy: 37.6% -> 43.2% | Improved |
| lengthen the system prompt (1-shot to 5-shot) | vLLM · MMLU, A100-80G | processing time (s): 502 -> 1308 | Hurt |
| use RelayAttention with synthetic workloads of long contexts (256+512) | vLLM-RA · synthetic workload, system prompt 2048 | throughput: up to 2.2x speedup | Improved |
Open problems in sparse attention for long-context LLMs
Which attention can a long-context model drop without losing the answer?
- The overhead does not vanish. · 14 papers state it
- Very long contexts hit memory limits or go untested. · 8 papers state it
- Sparsity speeds up prefill or decoding, not both. · 6 papers state it
Closest papers by meaning
- NoMAD-Attention: Efficient LLM Inference on CPUs Through Multiply-add-free Attention (NeurIPS 2024 · similarity 0.88)
- Hogwild! Inference: Parallel LLM Generation via Concurrent Attention (NeurIPS 2025 · similarity 0.88)
- ArkVale: Efficient Generative LLM Inference with Recallable Key-Value Eviction (NeurIPS 2024 · similarity 0.87)
- DeFT: Decoding with Flash Tree-attention for Efficient Tree-structured LLM Inference (ICLR 2025 · similarity 0.87)
- D-LLM: A Token Adaptive Computing Resource Allocation Strategy for Large Language Models (NeurIPS 2024 · similarity 0.87)
- Simple linear attention language models balance the recall-throughput tradeoff (ICML 2024 · similarity 0.87)
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.