cs.CLSep 4, 2026

Intra-Prompt Parallel Decoding for Common-Context Question Answering

Authors: Theodore Glavas, Nikhita Vedula, Dushyanta Dhyani, Antonios Valkanas, Yilun Zhu, Shervin Malmasi

Organizations: Amazon.com, Inc. · McGill University · Mila · Int. Lab. Learning Systems

Abstract

In common-context question answering (CCQA) tasks, multiple input questions share a common context to base their answers from. However, Large Language Models typically generate each answer using an independent prompt. While existing batching and caching techniques help improve parallelism and reduce repeated computations, the separation of questions across prompts limits the achievable speedup, as modern GPUs are underutilized due to a memory bottleneck during attention. We present Intra-Prompt Parallel Decoding (IPPD), a novel inference method that answers multiple common-context questions in parallel within a single prompt. IPPD directly addresses the bottleneck by efficiently sharing both memory and computation during the attention process, as the next token for every question is decoded in a single inference step. IPPD uses virtual position IDs and attention mask manipulation to generate the same output as standard prompting without requiring fine-tuning or any changes to the LLM architecture. Since all parallelism occurs within a prompt, IPPD is fully compatible with batched inference, even when each prompt features a different context. 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.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference

    Sep 22, 2026Md Mostafizer Rahman, Md Faizul Ibne Amin, Md Shahajada Mia +2LLM Inference EfficiencyLong-Context Language Model Inference

  2. CSAttention: Centroid-Scoring Attention for Accelerating LLM Inference

    Mar 30, 2026Chuxu Song, Zhencan Peng, Jiuqi Wei +1LLM Inference AccelerationLong-Context Language Model Inference

  3. PAIR: Memory-Efficient and Fast Inference with Reading--Reasoning Fusion

    Oct 12, 2026Sejun Park, Haocheng Xia, Yongjoo ParkMemory-Efficient InferenceLong-Context Language Model Inference