Read Once, Answer Many: Parallel Prompting for Shared-Context LLM Inference
Not on the map. Why?
Abstract (arXiv)
LLM workloads sometimes ask many independent questions about the same long document, as in document QA, data labeling and LLM-based evaluation. Prefix caching removes the redundant prefill shared by these queries, but each decode step still reads the document's key-value (KV) cache once per question, so decoding is bound by memory bandwidth and scales with the number of questions. We present Parallel Prompting, which decodes P questions as P independent streams of a single request all at once, fixing this issue. In our method, every step reads the shared document once for all P streams, and a stream-id attention mask, evaluated inside the attention kernel, keeps each answer conditioned only on the document and its own question. We implement Parallel Prompting in SGLang by adding about 80 lines to three existing files and a small engine package; the mask needs no dense tensor, and every decode step has a fixed shape that is captured as a CUDA graph. With CodeLlama-7B, 8k-16k-token documents and 64-256 questions per document, Parallel Prompting is 3.7x faster than stock SGLang with its FlashInfer backend on an A100 and 5.9-6.0x faster on an RTX A6000, on two SGLang releases, including the most recent release. Timed on identical inputs, it is faster than stock SGLang in all 144 runs (2 GPUs x 2 releases x 6 workloads x 6 input sets). Code: https://github.com/jlab-nlp/parallel-prompting
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 35 of its 47 references that are in the map. Submitted 11 Nov 2026.
Builds on
35 of 47 references.
References · 35
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2024Qwen2.5 Technical Reportcited by 5,525
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,276
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,428
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,853
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,337
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,163
- 2023BloombergGPT: A Large Language Model for Financecited by 997
- 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Headscited by 961
23 more
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 949
- 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 923
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 610
- 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 445
- 2024Better & Faster Large Language Models via Multi-token Predictioncited by 422
- 2023SpecInfer: Accelerating Generative Large Language Model Serving with Tree-based Speculative Inference and Verificationcited by 412
- 2018QuAC : Question Answering in Contextcited by 386
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 330
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 307
- 2021QuALITY: Question Answering with Long Input Texts, Yes!cited by 230
- 2023LooGLE: Can Long-Context Language Models Understand Long Contexts?cited by 214
- 2021Want To Reduce Labeling Cost? GPT-3 Can Helpcited by 204
- 2023Evaluating Correctness and Faithfulness of Instruction-Following Models for Question Answeringcited by 156
- 2024TriForce: Lossless Acceleration of Long Sequence Generation with Hierarchical Speculative Decodingcited by 113
- 2023Batch Prompting: Efficient Inference with Large Language Model APIscited by 99
- 2024Hydragen: High-Throughput LLM Inference with Shared Prefixescited by 94
- 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partitioncited by 88
- 2024BatchLLM: Optimizing Large Batched LLM Inference with Global Prefix Sharing and Throughput-oriented Token Batchingcited by 37
- 2024DeFT: Decoding with Flash Tree-attention for Efficient Tree-structured LLM Inferencecited by 24
- 2023BatchPrompt: Accomplish more with lesscited by 20
- 2024Prepacking: A Simple Method for Fast Prefilling and Increased Throughput in Large Language Modelscited by 12
- 2025Accelerate Parallelizable Reasoning via Parallel Decoding within One Sequencecited by 7
- 2026Intra-Prompt Parallel Decoding for Common-Context Question Answeringcited by 4
Built on by
Not cited yet.