Intra-Prompt Parallel Decoding for Common-Context Question Answering
- Source
- arxiv.org
- Author
- Theodore Glavas, Nikhita Vedula, Dushyanta Dhyani, Antonios Valkanas, Yilun Zhu, Shervin Malmasi
- Date

Context
When several questions refer to the same material, answering each through a separate prompt repeats work. Intra-Prompt Parallel Decoding puts those questions into one prompt and generates the next piece of each answer in the same processing step. It adjusts position information and which parts of the prompt each answer can attend to, sharing memory and computation without retraining the model. Research abstract.
The authors report up to seven times the effective throughput of standard decoding without reduced answer quality in their experiments. The opportunity is specific to groups of questions sharing , where the system can reuse that common material while producing separate answers.
- context window — The maximum amount of text a model can consider at once — its working memory for the current conversation or task.
- inference — Running a trained model to get answers — the phase where AI is actually used, as opposed to trained.
- attention — The mechanism that lets a model weigh which earlier words matter for the word it's currently processing — the core operation of a transformer.
“We present Intra-Prompt Parallel Decoding (IPPD), a novel inference method that answers multiple common-context questions in parallel within a single prompt.”
“Our experiments show that IPPD delivers up to 7X the effective throughput as standard decoding without quality degradation, and outperforms prefix caching with PagedAttention in most settings.”
articleHow Do Prompt Variations Affect Energy Consumption in On-Device LLMs?Wei Hu, Xiaolong Tu, Dawei Chen, Yitao Chen, Kyungtae Han, Haoxin Wang
articleCache-aware prefill–decode disaggregation (CPD) for up to 40% faster long-context LLM servingTogether AI
articleXHotpotQA: A Benchmark for Cross-Lingual Knowledge Composition in Multi-Hop Question AnsweringIman Barati, Arash Ghafouri, Behrouz Minaei-Bidgoli
Checking sign-in…
Loading comments…