PARALLELPROMPT: Extracting Parallelism from Large Language Model Queries

Steven Kolawole, Keshav Santhanam, Virginia Smith, Pratiksha Thaker

TL;DR

While LLM serving systems typically optimize latency across queries (batching) or token-by-token (speculative decoding), many single prompts contain hidden, independent subtasks that can be executed simultaneously. This paper introduces PARALLELPROMPT, a benchmark of over 37,000 real-world, parallelizable user prompts, along with a schema extraction and execution framework that unlocks up to $5.7\times$ speedups with minimal output quality loss.

What Problem Does This Paper Address?

Current LLM inference systems treat each incoming prompt as an atomic, indivisible block. However, many real-world prompts exhibit latent semantic parallelism—for example, asking an LLM to generate ten distinct room descriptions, translate a list of separate sentences, or answer five reading comprehension questions about a single passage.

Executing these prompts serially forces the model to generate responses sequentially, leading to high latency and "length budgeting" behavior (where the model shortens individual answers to conserve total output length). While prior decomposition frameworks exist (such as Skeleton-of-Thought or Tree-of-Problems), they rely on rigid, hand-crafted templates or synthetic tasks that fail when confronted with unstructured, messy user queries.

Methods

The authors propose a general, structure-aware pipeline composed of three core stages:

  1. LLM-Assisted Schema Extraction: Using Claude 3.5, the pipeline extracts a structured 5-field schema from unstructured prompts:
  2. serial: Original user prompt.
  3. template: A prompt template with variable placeholders (e.g., Translate: {data}).
  4. context: Shared information reused across subtasks (e.g., a reading passage).
  5. data or n: Either an iterable list of items (data) or an integer count for repeated calls (n), enforced as strictly mutually exclusive.
  6. category: The parallelization taxonomy label.
  7. Tiered Validation: Prompts are validated against symbolic rules (e.g., placeholder compatibility, mutual exclusivity, minimum item counts) and categorized into High-Confidence (explicit structural delimiters, 62%), Medium-Confidence (softer semantic cues, 38%), or Failed (rejected due to constraint violations).
  8. Category-Agnostic Execution Suite: A modular C++ backend manages thread pools, exponential backoff for API rate limits, and asynchronous dispatch to models (evaluated with GPT-4-1106-preview). To maintain output variety in ungrounded repeated generation, a diversity heuristic instructs parallel instances to start answers with distinct letters of the alphabet. Output quality is evaluated with an independent LLM judge (GPT-4o) alongside latency and length-normalized speedup metrics.

Datasets

The authors inspected 358,000 raw first-turn conversation prompts filtered from two massive public chat datasets:

  • LMSYS-Chat-1M
  • WildChat-1M

From these logs, they curated PARALLELPROMPT, containing 37,070 validated parallelizable prompts (a ~10.3% yield). The dataset covers:

  • 7 Canonical Categories (~95% of data): Reading Comprehension (30%), Repeated Generation (25%), Named Entity Recognition (14%), Translation (9%), Keyword Extraction (7%), Language Correction (6%), and Sentiment Analysis (3%).
  • 400+ Novel/Long-Tail Categories: Grouped into 6 meta-categories (Generative, Comparative, Analytical, Transformative, Organizational, Computational).
  • Multilingual Prompts: Spanning 11+ languages (83.9% English, 6.3% Russian, 5.6% Chinese, plus Japanese, Spanish, French, etc.).

Key Insights and Ideas

  • Intra-query parallelism is surprisingly common: Roughly 10% of real-world user prompts contain parallelizable structures, representing millions of daily queries in hyperscale LLM deployments.
  • Serial execution penalizes response quality: Sequential processing causes LLMs to compress individual item responses. Running decomposed subtasks in parallel gives each item dedicated attention and output budget.
  • Rigid decomposition methods fail in the wild: Prior methods like Skeleton-of-Thought (SoT) and Tree-of-Problems (ToP) achieve low execution success rates (38% and 42% respectively) because real-world prompts rarely match strict tree hierarchies or outline-expansion patterns.

Key Results

  • Substantial Speedups:
  • Reading Comprehension achieved a $5.72\times$ normalized speedup ($2.94\times$ raw) with 92% quality preservation.
  • Repeated Generation achieved a $4.39\times$ normalized speedup ($3.41\times$ end-to-end speedup including schema extraction overhead).
  • Overall, PARALLELPROMPT demonstrated an average $3.91\times$ speedup with a 76% success rate, outperforming SoT ($2.04\times$, 38%) and ToP ($1.73\times$, 42%).
  • Scalability with Query Complexity: While serial duration scales linearly with subtask count $n$, parallel execution duration stays relatively flat, magnifying speedups on complex, multi-part prompts until hitting API rate limits.
  • Task Tradeoffs: Factual/extraction tasks retain high quality (>90% preservation) under parallelization, whereas open-ended creative generation experiences larger quality degradations (~76% preservation) due to broken narrative cohesion.

Limitations and Future Work

  • Dependency Blindness: In ~25% of structurally validated prompts, subtasks have hidden sequential, narrative, or cumulative dependencies (e.g., "compare each paragraph to the previous one"), causing parallel execution to fail semantically.
  • Multilingual Disparities: Non-Latin and East Asian scripts showed substantially lower validation rates (27.8% high-confidence in Chinese vs. 63% in French), pointing to extraction prompt biases and differing list/syntactic conventions.
  • Task-Adaptive Execution: Future serving systems should develop lightweight classifiers to dynamically route prompts: aggressively parallelizing factual subtasks while executing interdependent or creative tasks serially or via hybrid DAGs.

Summary updated

BibTeX
@inproceedings{kolawole2025parallelprompt,
  author = {Steven Kolawole and Keshav Santhanam and Virginia Smith and Pratiksha Thaker},
  title = {{PARALLELPROMPT: Extracting Parallelism from Large Language Model Queries}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=1KSxxnFNb9},
}
Figure